@symfony/ux-leaflet-map
Advanced tools
@@ -11,3 +11,3 @@ import AbstractMapController from '@symfony/ux-map'; | ||
| options: Record<string, unknown>; | ||
| }; | ||
| } | false; | ||
| }; | ||
@@ -14,0 +14,0 @@ export default class extends AbstractMapController<MapOptions, L.Map, MarkerOptions, L.Marker, PopupOptions, L.Popup, PolygonOptions, L.Polygon, PolylineOptions, L.Polyline> { |
@@ -48,3 +48,3 @@ import { Controller } from '@hotwired/stimulus'; | ||
| const infoWindow = this.doCreateInfoWindow({ definition, element }); | ||
| this.dispatchEvent('info-window:after-create', { infoWindow, element }); | ||
| this.dispatchEvent('info-window:after-create', { infoWindow, definition, element }); | ||
| this.infoWindows.push(infoWindow); | ||
@@ -80,3 +80,3 @@ return infoWindow; | ||
| const drawing = factory({ definition }); | ||
| this.dispatchEvent(eventAfter, { [type]: drawing }); | ||
| this.dispatchEvent(eventAfter, { [type]: drawing, definition }); | ||
| draws.set(definition['@id'], drawing); | ||
@@ -150,6 +150,8 @@ return drawing; | ||
| }); | ||
| L.tileLayer(options.tileLayer.url, { | ||
| attribution: options.tileLayer.attribution, | ||
| ...options.tileLayer.options, | ||
| }).addTo(map); | ||
| if (options.tileLayer) { | ||
| L.tileLayer(options.tileLayer.url, { | ||
| attribution: options.tileLayer.attribution, | ||
| ...options.tileLayer.options, | ||
| }).addTo(map); | ||
| } | ||
| return map; | ||
@@ -156,0 +158,0 @@ } |
+2
-2
@@ -5,3 +5,3 @@ { | ||
| "license": "MIT", | ||
| "version": "2.25.2", | ||
| "version": "2.26.0", | ||
| "keywords": [ | ||
@@ -53,3 +53,3 @@ "symfony-ux", | ||
| "@hotwired/stimulus": "^3.0.0", | ||
| "@symfony/ux-map": "2.25.2", | ||
| "@symfony/ux-map": "2.26.0", | ||
| "@types/leaflet": "^1.9.12", | ||
@@ -56,0 +56,0 @@ "leaflet": "^1.9.4" |
16053
0.57%299
0.67%