Refactoring
This commit is contained in:
parent
a06c835497
commit
60de89015a
@ -132,8 +132,8 @@ export default abstract class LeafletMap {
|
|||||||
shadowSize: [41, 41]
|
shadowSize: [41, 41]
|
||||||
});
|
});
|
||||||
const customLatLng = this.convertToCustomFormat(mousePositionOnMap);
|
const customLatLng = this.convertToCustomFormat(mousePositionOnMap);
|
||||||
mousePositionOnMap.lat = customLatLng[this.options.latKeyName];
|
mousePositionOnMap.lat = customLatLng[this.options.latKeyName];
|
||||||
mousePositionOnMap.lng = customLatLng[this.options.lngKeyName];
|
mousePositionOnMap.lng = customLatLng[this.options.lngKeyName];
|
||||||
|
|
||||||
const newMarker = L.marker(mousePositionOnMap, { icon }).addTo(this.map);
|
const newMarker = L.marker(mousePositionOnMap, { icon }).addTo(this.map);
|
||||||
this.addMarkers.push(newMarker);
|
this.addMarkers.push(newMarker);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user