Skip to content

Commit e1ed67c

Browse files
committed
adjust leaflet attribution position
1 parent 7def25b commit e1ed67c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

components/MyLeafletMap.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,10 @@ onMounted(() => {
275275
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
276276
attribution: '© OpenStreetMap contributors',
277277
}).addTo(leafletMap);
278+
279+
L.control.attribution({
280+
position: 'topright',
281+
}).addTo(leafletMap);
278282
});
279283
280284
watch(() => props.fetchedData, (newData) => {

0 commit comments

Comments
 (0)