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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
4 additions and
3 deletions
-
ui-ngx/src/app/modules/home/components/widget/lib/maps/leaflet-map.ts
-
ui-ngx/src/app/modules/home/components/widget/lib/maps/map-widget2.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) { |
|
|
|
|
|
|
|
@ -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, |
|
|
|
|