@symfony/ux-leaflet-map 2.30.0 → 2.32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/map_controller.js +20 -5
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -14,7 +14,7 @@ composer require symfony/ux-leaflet-map:2.23.0
|
|
|
14
14
|
npm add @symfony/ux-leaflet-map@2.23.0
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
-
**Tip:** Your `package.json` file will be automatically modified by [Flex](https://github.com/symfony/flex) when installing or upgrading a PHP package. To prevent this behavior, ensure to **use at least Flex 1.22.0 or 2.5.0**, and run `composer config extra.symfony
|
|
17
|
+
**Tip:** Your `package.json` file will be automatically modified by [Flex](https://github.com/symfony/flex) when installing or upgrading a PHP package. To prevent this behavior, ensure to **use at least Flex 1.22.0 or 2.5.0**, and run `composer config --json "extra.symfony/flex.synchronize_package_json" false`.
|
|
18
18
|
|
|
19
19
|
## Resources
|
|
20
20
|
|
package/dist/map_controller.js
CHANGED
|
@@ -33,11 +33,21 @@ var abstract_map_controller_default = class extends Controller {
|
|
|
33
33
|
this.createCircle = this.createDrawingFactory("circle", this.circles, this.doCreateCircle.bind(this));
|
|
34
34
|
this.createRectangle = this.createDrawingFactory("rectangle", this.rectangles, this.doCreateRectangle.bind(this));
|
|
35
35
|
this.map = this.doCreateMap({ definition: mapDefinition });
|
|
36
|
-
this.markersValue.forEach((definition) =>
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
this.
|
|
40
|
-
|
|
36
|
+
this.markersValue.forEach((definition) => {
|
|
37
|
+
this.createMarker({ definition });
|
|
38
|
+
});
|
|
39
|
+
this.polygonsValue.forEach((definition) => {
|
|
40
|
+
this.createPolygon({ definition });
|
|
41
|
+
});
|
|
42
|
+
this.polylinesValue.forEach((definition) => {
|
|
43
|
+
this.createPolyline({ definition });
|
|
44
|
+
});
|
|
45
|
+
this.circlesValue.forEach((definition) => {
|
|
46
|
+
this.createCircle({ definition });
|
|
47
|
+
});
|
|
48
|
+
this.rectanglesValue.forEach((definition) => {
|
|
49
|
+
this.createRectangle({ definition });
|
|
50
|
+
});
|
|
41
51
|
if (this.fitBoundsToMarkersValue) {
|
|
42
52
|
this.doFitBoundsToMarkers();
|
|
43
53
|
}
|
|
@@ -228,6 +238,11 @@ var map_controller_default = class extends abstract_map_controller_default {
|
|
|
228
238
|
this.createInfoWindow({ definition: infoWindow, element: marker2 });
|
|
229
239
|
}
|
|
230
240
|
if (icon2) {
|
|
241
|
+
if (Object.prototype.hasOwnProperty.call(bridgeOptions, "icon")) {
|
|
242
|
+
console.warn('[Symfony UX Map] Defining "bridgeOptions.icon" for a marker with a custom icon is not supported and will be ignored.');
|
|
243
|
+
} else if (Object.prototype.hasOwnProperty.call(rawOptions, "icon")) {
|
|
244
|
+
console.warn('[Symfony UX Map] Defining "rawOptions.icon" for a marker with a custom icon is not supported and will be ignored.');
|
|
245
|
+
}
|
|
231
246
|
this.doCreateIcon({ definition: icon2, element: marker2 });
|
|
232
247
|
}
|
|
233
248
|
return marker2;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@symfony/ux-leaflet-map",
|
|
3
3
|
"description": "Leaflet bridge for Symfony UX Map, integrate interactive maps in your Symfony applications",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"version": "2.
|
|
5
|
+
"version": "2.32.0",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"symfony-ux",
|
|
8
8
|
"leaflet",
|
|
@@ -58,7 +58,8 @@
|
|
|
58
58
|
"build": "tsx ../../../../../../bin/build_package.ts .",
|
|
59
59
|
"watch": "tsx ../../../../../../bin/build_package.ts . --watch",
|
|
60
60
|
"test": "pnpm run test:browser",
|
|
61
|
-
"test:browser": "
|
|
61
|
+
"test:browser": "playwright test",
|
|
62
|
+
"test:browser:ui": "playwright test --ui",
|
|
62
63
|
"check": "biome check",
|
|
63
64
|
"ci": "biome ci"
|
|
64
65
|
}
|