mirror of
https://github.com/nowcommunity/nowdatabase.git
synced 2026-10-12 19:13:52 +03:00
fixed lint-issues
This commit is contained in:
@@ -79,8 +79,6 @@ export const LocalitiesMap = ({ localitiesQueryData, localitiesQueryIsFetching }
|
||||
// Add a scale bar to the map
|
||||
L.control.scale({ position: 'bottomright' }).addTo(mapInstance)
|
||||
|
||||
|
||||
|
||||
//Add a layer control to the map
|
||||
L.control.layers(baseMaps, {}, { position: 'topright' }).addTo(mapInstance)
|
||||
|
||||
@@ -88,14 +86,14 @@ export const LocalitiesMap = ({ localitiesQueryData, localitiesQueryIsFetching }
|
||||
|
||||
const northArrowControl = L.Control.extend({
|
||||
onAdd: function () {
|
||||
var img = L.DomUtil.create('img');
|
||||
img.src = northarrow;
|
||||
img.style.width = '40px';
|
||||
return img;
|
||||
const img = L.DomUtil.create('img')
|
||||
img.src = northarrow
|
||||
img.style.width = '40px'
|
||||
return img
|
||||
},
|
||||
});
|
||||
})
|
||||
|
||||
const northArrow = new northArrowControl({position: 'bottomright'})
|
||||
const northArrow = new northArrowControl({ position: 'bottomright' })
|
||||
northArrow.addTo(mapInstance)
|
||||
|
||||
return () => {
|
||||
@@ -140,7 +138,6 @@ export const LocalitiesMap = ({ localitiesQueryData, localitiesQueryIsFetching }
|
||||
markersRef.current = newMarkers
|
||||
}, [localitiesQueryData, localitiesQueryIsFetching, columnFilters, map])
|
||||
|
||||
|
||||
document.title = 'Map'
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user