@symfony/ux-leaflet-map 3.1.0 → 3.5.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.
@@ -6,17 +6,35 @@ const IconTypes = {
6
6
  Svg: "svg",
7
7
  UxIcon: "ux-icon"
8
8
  };
9
- var _Class = class extends Controller {
10
- constructor(..._args) {
11
- super(..._args);
12
- this.markers = /* @__PURE__ */ new Map();
13
- this.polygons = /* @__PURE__ */ new Map();
14
- this.polylines = /* @__PURE__ */ new Map();
15
- this.circles = /* @__PURE__ */ new Map();
16
- this.rectangles = /* @__PURE__ */ new Map();
17
- this.infoWindows = [];
18
- this.isConnected = false;
19
- }
9
+ var abstract_map_controller_default = class extends Controller {
10
+ static values = {
11
+ providerOptions: Object,
12
+ center: Object,
13
+ zoom: Number,
14
+ minZoom: Number,
15
+ maxZoom: Number,
16
+ fitBoundsToMarkers: Boolean,
17
+ markers: Array,
18
+ polygons: Array,
19
+ polylines: Array,
20
+ circles: Array,
21
+ rectangles: Array,
22
+ options: Object,
23
+ extra: Object
24
+ };
25
+ map;
26
+ markers = /* @__PURE__ */ new Map();
27
+ polygons = /* @__PURE__ */ new Map();
28
+ polylines = /* @__PURE__ */ new Map();
29
+ circles = /* @__PURE__ */ new Map();
30
+ rectangles = /* @__PURE__ */ new Map();
31
+ infoWindows = [];
32
+ isConnected = false;
33
+ createMarker;
34
+ createPolygon;
35
+ createPolyline;
36
+ createCircle;
37
+ createRectangle;
20
38
  connect() {
21
39
  const extra = this.hasExtraValue ? this.extraValue : {};
22
40
  const mapDefinition = {
@@ -128,22 +146,7 @@ var _Class = class extends Controller {
128
146
  });
129
147
  }
130
148
  };
131
- _Class.values = {
132
- providerOptions: Object,
133
- center: Object,
134
- zoom: Number,
135
- minZoom: Number,
136
- maxZoom: Number,
137
- fitBoundsToMarkers: Boolean,
138
- markers: Array,
139
- polygons: Array,
140
- polylines: Array,
141
- circles: Array,
142
- rectangles: Array,
143
- options: Object,
144
- extra: Object
145
- };
146
- var map_controller_default = class extends _Class {
149
+ var map_controller_default = class extends abstract_map_controller_default {
147
150
  connect() {
148
151
  L.Marker.prototype.options.icon = L.divIcon({
149
152
  html: "<svg xmlns=\"http://www.w3.org/2000/svg\" xml:space=\"preserve\" fill-rule=\"evenodd\" stroke-linecap=\"round\" clip-rule=\"evenodd\" viewBox=\"0 0 500 820\"><defs><linearGradient id=\"__sf_ux_map_gradient_marker_fill\" x1=\"0\" x2=\"1\" y1=\"0\" y2=\"0\" gradientTransform=\"matrix(0 -37.57 37.57 0 416.45 541)\" gradientUnits=\"userSpaceOnUse\"><stop offset=\"0\" stop-color=\"#126FC6\"/><stop offset=\"1\" stop-color=\"#4C9CD1\"/></linearGradient><linearGradient id=\"__sf_ux_map_gradient_marker_border\" x1=\"0\" x2=\"1\" y1=\"0\" y2=\"0\" gradientTransform=\"matrix(0 -19.05 19.05 0 414.48 522.49)\" gradientUnits=\"userSpaceOnUse\"><stop offset=\"0\" stop-color=\"#2E6C97\"/><stop offset=\"1\" stop-color=\"#3883B7\"/></linearGradient></defs><circle cx=\"252.31\" cy=\"266.24\" r=\"83.99\" fill=\"#fff\"/><path fill=\"url(#__sf_ux_map_gradient_marker_fill)\" stroke=\"url(#__sf_ux_map_gradient_marker_border)\" stroke-width=\"1.1\" d=\"M416.54 503.61c-6.57 0-12.04 5.7-12.04 11.87 0 2.78 1.56 6.3 2.7 8.74l9.3 17.88 9.26-17.88c1.13-2.43 2.74-5.79 2.74-8.74 0-6.18-5.38-11.87-11.96-11.87Zm0 7.16a4.69 4.69 0 1 1-.02 9.4 4.69 4.69 0 0 1 .02-9.4Z\" transform=\"translate(-7889.1 -9807.44) scale(19.54)\"/></svg>",
package/package.json CHANGED
@@ -2,14 +2,17 @@
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": "3.1.0",
5
+ "version": "3.5.0",
6
6
  "keywords": [
7
7
  "symfony-ux",
8
8
  "leaflet",
9
9
  "map"
10
10
  ],
11
11
  "homepage": "https://ux.symfony.com/map",
12
- "repository": "https://github.com/symfony/ux",
12
+ "repository": {
13
+ "type": "git",
14
+ "url": "https://github.com/symfony/ux"
15
+ },
13
16
  "type": "module",
14
17
  "files": [
15
18
  "dist"