Browse Source

Merge pull request #5634 from vvlladd28/bug/map/load-default-marker

[3.3.3] UI: Fixed incorrect URL for default marker icon in maps widget
pull/5667/head
Igor Kulikov 5 years ago
committed by GitHub
parent
commit
26d1872442
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      ui-ngx/src/app/modules/home/components/widget/lib/maps/leaflet-map.ts
  2. 6
      ui-ngx/src/app/modules/home/components/widget/lib/maps/map-widget2.ts

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

@ -91,6 +91,7 @@ export default abstract class LeafletMap {
options: UnitedMapSettings) {
this.options = options;
this.editPolygons = options.showPolygon && options.editablePolygon;
L.Icon.Default.imagePath = '/';
}
public initSettings(options: MapSettings) {

6
ui-ngx/src/app/modules/home/components/widget/lib/maps/map-widget2.ts

@ -70,9 +70,9 @@ export class MapWidgetController implements MapWidgetInterface {
parseWithTranslation.setTranslate(this.translate);
this.map = new MapClass(this.ctx, $element, this.settings);
(this.ctx as any).mapInstance = this.map;
this.map.saveMarkerLocation = this.setMarkerLocation;
this.map.savePolygonLocation = this.savePolygonLocation;
this.map.saveLocation = this.saveLocation;
this.map.saveMarkerLocation = this.setMarkerLocation.bind(this);
this.map.savePolygonLocation = this.savePolygonLocation.bind(this);
this.map.saveLocation = this.saveLocation.bind(this);
this.pageLink = {
page: 0,
pageSize: this.settings.mapPageSize,

Loading…
Cancel
Save