Skip to content

Commit

Permalink
Merge pull request #117 from SpeciesFileGroup/development
Browse files Browse the repository at this point in the history
Add prefix prop for map, set false by default
  • Loading branch information
José Luis Pereira authored and GitHub committed Aug 14, 2023
2 parents 67a11d3 + 6c67a6a commit d42682d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/components/Map/VMap.client.vue
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,11 @@ const props = defineProps({
geojsonOptions: {
type: Object,
default: () => ({})
},
prefix: {
type: [String, Boolean],
default: false
}
})
Expand Down Expand Up @@ -168,6 +173,7 @@ onMounted(() => {
geoJSONGroup = new L.FeatureGroup()
mapObject = L.map(leafletMap.value, options)
mapObject.attributionControl.setPrefix(props.prefix)
mapObject.pm.setGlobalOptions({
layerGroup: drawnItems
Expand Down

0 comments on commit d42682d

Please sign in to comment.