Refactoring

This commit is contained in:
Kalutka Zhenya 2020-09-28 15:01:20 +03:00
parent a06c835497
commit 60de89015a

View File

@ -132,8 +132,8 @@ export default abstract class LeafletMap {
shadowSize: [41, 41]
});
const customLatLng = this.convertToCustomFormat(mousePositionOnMap);
mousePositionOnMap.lat = customLatLng[this.options.latKeyName];
mousePositionOnMap.lng = customLatLng[this.options.lngKeyName];
mousePositionOnMap.lat = customLatLng[this.options.latKeyName];
mousePositionOnMap.lng = customLatLng[this.options.lngKeyName];
const newMarker = L.marker(mousePositionOnMap, { icon }).addTo(this.map);
this.addMarkers.push(newMarker);