Browse Source

Refactoring

pull/3705/head
Kalutka Zhenya 6 years ago
parent
commit
60de89015a
  1. 4
      ui-ngx/src/app/modules/home/components/widget/lib/maps/leaflet-map.ts

4
ui-ngx/src/app/modules/home/components/widget/lib/maps/leaflet-map.ts

@ -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);

Loading…
Cancel
Save