mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-12 23:35:58 +00:00
Add mapbox 'MglFullscreenControl'
This commit is contained in:
parent
bde5002650
commit
67d01f8e32
@ -35,9 +35,10 @@
|
||||
</ds-button>
|
||||
<!-- Wolle: is MglAttributionControl needed? or what can we use for? -->
|
||||
<!-- <MglAttributionControl /> -->
|
||||
<MglScaleControl />
|
||||
<MglFullscreenControl />
|
||||
<MglNavigationControl position="top-right" />
|
||||
<MglGeolocateControl position="top-right" />
|
||||
<MglScaleControl />
|
||||
<MglMarker :coordinates="[10.452764, 51.165707]" color="blue" />
|
||||
</mgl-map>
|
||||
</client-only>
|
||||
|
||||
@ -10,16 +10,21 @@ import {
|
||||
MglScaleControl,
|
||||
MglNavigationControl,
|
||||
MglGeolocateControl,
|
||||
MglFullscreenControl,
|
||||
} from 'v-mapbox'
|
||||
|
||||
// Map
|
||||
Vue.component('MglMap', MglMap)
|
||||
|
||||
// overview of all: https://github.com/geospoc/v-mapbox/tree/v1.11.2/src/components
|
||||
// mapbox: https://docs.mapbox.com/mapbox-gl-js/api/markers/
|
||||
|
||||
// Controls
|
||||
Vue.component('MglAttributionControl', MglAttributionControl)
|
||||
Vue.component('MglScaleControl', MglScaleControl)
|
||||
Vue.component('MglNavigationControl', MglNavigationControl)
|
||||
Vue.component('MglGeolocateControl', MglGeolocateControl)
|
||||
Vue.component('MglFullscreenControl', MglFullscreenControl)
|
||||
|
||||
// Layers
|
||||
Vue.component('MglGeojsonLayer', MglGeojsonLayer)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user