@symfony/ux-google-map 2.31.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/dist/map_controller.js +19 -7
- package/package.json +1 -1
package/dist/map_controller.js
CHANGED
|
@@ -36,11 +36,21 @@ var abstract_map_controller_default = class extends Controller {
|
|
|
36
36
|
this.createCircle = this.createDrawingFactory("circle", this.circles, this.doCreateCircle.bind(this));
|
|
37
37
|
this.createRectangle = this.createDrawingFactory("rectangle", this.rectangles, this.doCreateRectangle.bind(this));
|
|
38
38
|
this.map = this.doCreateMap({ definition: mapDefinition });
|
|
39
|
-
this.markersValue.forEach((definition) =>
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
this.
|
|
43
|
-
|
|
39
|
+
this.markersValue.forEach((definition) => {
|
|
40
|
+
this.createMarker({ definition });
|
|
41
|
+
});
|
|
42
|
+
this.polygonsValue.forEach((definition) => {
|
|
43
|
+
this.createPolygon({ definition });
|
|
44
|
+
});
|
|
45
|
+
this.polylinesValue.forEach((definition) => {
|
|
46
|
+
this.createPolyline({ definition });
|
|
47
|
+
});
|
|
48
|
+
this.circlesValue.forEach((definition) => {
|
|
49
|
+
this.createCircle({ definition });
|
|
50
|
+
});
|
|
51
|
+
this.rectanglesValue.forEach((definition) => {
|
|
52
|
+
this.createRectangle({ definition });
|
|
53
|
+
});
|
|
44
54
|
if (this.fitBoundsToMarkersValue) {
|
|
45
55
|
this.doFitBoundsToMarkers();
|
|
46
56
|
}
|
|
@@ -174,7 +184,7 @@ var map_controller_default = class extends abstract_map_controller_default {
|
|
|
174
184
|
const loader = new Loader(loaderOptions);
|
|
175
185
|
libraries = ["core", ...libraries.filter((library) => library !== "core")];
|
|
176
186
|
const librariesImplementations = await Promise.all(libraries.map((library) => loader.importLibrary(library)));
|
|
177
|
-
librariesImplementations.
|
|
187
|
+
librariesImplementations.forEach((libraryImplementation, index) => {
|
|
178
188
|
if (typeof libraryImplementation !== "object" || libraryImplementation === null) {
|
|
179
189
|
return;
|
|
180
190
|
}
|
|
@@ -188,7 +198,9 @@ var map_controller_default = class extends abstract_map_controller_default {
|
|
|
188
198
|
_loading = false;
|
|
189
199
|
_loaded = true;
|
|
190
200
|
onLoaded();
|
|
191
|
-
_onLoadedCallbacks.forEach((callback) =>
|
|
201
|
+
_onLoadedCallbacks.forEach((callback) => {
|
|
202
|
+
callback();
|
|
203
|
+
});
|
|
192
204
|
_onLoadedCallbacks = [];
|
|
193
205
|
}
|
|
194
206
|
centerValueChanged() {
|
package/package.json
CHANGED