mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-12 23:35:58 +00:00
Add mapbox controls
This commit is contained in:
parent
c5b452d831
commit
bde5002650
@ -21,6 +21,7 @@
|
||||
:max-pitch="60"
|
||||
@load="onMapLoad"
|
||||
>
|
||||
<!-- may use MglPopup for the styles -->
|
||||
<ds-button
|
||||
class="style-button"
|
||||
v-for="style in styles.available"
|
||||
@ -32,7 +33,11 @@
|
||||
>
|
||||
{{ style.title }}
|
||||
</ds-button>
|
||||
<!-- Wolle: is MglAttributionControl needed? or what can we use for? -->
|
||||
<!-- <MglAttributionControl /> -->
|
||||
<MglScaleControl />
|
||||
<MglNavigationControl position="top-right" />
|
||||
<MglGeolocateControl position="top-right" />
|
||||
<MglMarker :coordinates="[10.452764, 51.165707]" color="blue" />
|
||||
</mgl-map>
|
||||
</client-only>
|
||||
|
||||
@ -6,14 +6,20 @@ import {
|
||||
MglMap,
|
||||
MglMarker,
|
||||
MglPopup,
|
||||
MglAttributionControl,
|
||||
MglScaleControl,
|
||||
MglNavigationControl,
|
||||
MglGeolocateControl,
|
||||
} from 'v-mapbox'
|
||||
|
||||
// Map
|
||||
Vue.component('MglMap', MglMap)
|
||||
|
||||
// Controls
|
||||
Vue.component('MglAttributionControl', MglAttributionControl)
|
||||
Vue.component('MglScaleControl', MglScaleControl)
|
||||
Vue.component('MglNavigationControl', MglNavigationControl)
|
||||
Vue.component('MglGeolocateControl', MglGeolocateControl)
|
||||
|
||||
// Layers
|
||||
Vue.component('MglGeojsonLayer', MglGeojsonLayer)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user