mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Add comment and cleanup in map
This commit is contained in:
parent
8ae6eff0e4
commit
c26a037007
@ -23,10 +23,7 @@
|
|||||||
>
|
>
|
||||||
<!-- may use MglPopup for the styles? -->
|
<!-- may use MglPopup for the styles? -->
|
||||||
<base-button
|
<base-button
|
||||||
:class="[
|
:class="['map-style-button', mapOptions.style === style.url ? '' : '--deactivated']"
|
||||||
'map-style-button',
|
|
||||||
mapOptions.style === style.url ? '' : '--deactivated'
|
|
||||||
]"
|
|
||||||
v-for="style in styles.available"
|
v-for="style in styles.available"
|
||||||
:key="style.title"
|
:key="style.title"
|
||||||
filled
|
filled
|
||||||
@ -35,8 +32,6 @@
|
|||||||
>
|
>
|
||||||
{{ style.title }}
|
{{ style.title }}
|
||||||
</base-button>
|
</base-button>
|
||||||
<!-- Wolle: is MglAttributionControl needed? or what can we use it for? -->
|
|
||||||
<!-- <MglAttributionControl /> -->
|
|
||||||
<MglFullscreenControl />
|
<MglFullscreenControl />
|
||||||
<MglNavigationControl position="top-right" />
|
<MglNavigationControl position="top-right" />
|
||||||
<MglGeolocateControl position="top-right" />
|
<MglGeolocateControl position="top-right" />
|
||||||
@ -252,6 +247,7 @@ export default {
|
|||||||
this.loadMarkesIconsAndAddMarkers()
|
this.loadMarkesIconsAndAddMarkers()
|
||||||
},
|
},
|
||||||
language(map) {
|
language(map) {
|
||||||
|
// example in mapbox-gl-language: https://github.com/mapbox/mapbox-gl-language/blob/master/index.js
|
||||||
map.getStyle().layers.forEach(function (thisLayer) {
|
map.getStyle().layers.forEach(function (thisLayer) {
|
||||||
if (thisLayer.id.indexOf('-label') > 0) {
|
if (thisLayer.id.indexOf('-label') > 0) {
|
||||||
// seems to use user language. specific language would be `name_de`, but is not compatible with all maps
|
// seems to use user language. specific language would be `name_de`, but is not compatible with all maps
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user