mapping-component-package-jp 0.0.10 → 0.0.12
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/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/js/mapEncapsulation/mapOverlayManager.js +10 -7
package/package.json
CHANGED
|
@@ -174,6 +174,7 @@ export class MapOverlayManager {
|
|
|
174
174
|
console.warn('Invalid polygon object found in fpolies array:', poly);
|
|
175
175
|
}
|
|
176
176
|
});
|
|
177
|
+
AdvancedMarker(farmLocations, icon, 'farm', false);
|
|
177
178
|
}
|
|
178
179
|
|
|
179
180
|
function injectTooltip(event, data) {
|
|
@@ -511,7 +512,8 @@ export class MapOverlayManager {
|
|
|
511
512
|
|
|
512
513
|
function fmarkers_clear() {
|
|
513
514
|
fmarkers.forEach(function (fm) {
|
|
514
|
-
fm.setMap(null);
|
|
515
|
+
fm.setMap(null); //for Marker
|
|
516
|
+
fm.map = null; //for AdvancedMarkerElement
|
|
515
517
|
fm = null;
|
|
516
518
|
});
|
|
517
519
|
fmarkers = [];
|
|
@@ -519,7 +521,8 @@ export class MapOverlayManager {
|
|
|
519
521
|
|
|
520
522
|
_this.fmarkers_clear = function() {
|
|
521
523
|
fmarkers.forEach(function (fm) {
|
|
522
|
-
fm.setMap(null);
|
|
524
|
+
fm.setMap(null); //for Marker
|
|
525
|
+
fm.map = null; //for AdvancedMarkerElement
|
|
523
526
|
fm = null;
|
|
524
527
|
});
|
|
525
528
|
fmarkers = [];
|
|
@@ -2114,7 +2117,7 @@ export class MapOverlayManager {
|
|
|
2114
2117
|
}
|
|
2115
2118
|
}
|
|
2116
2119
|
|
|
2117
|
-
_this.RenderRegions = function (
|
|
2120
|
+
_this.RenderRegions = function (regionLocations, properties, farmLocations, icon) {
|
|
2118
2121
|
var polygon = null;
|
|
2119
2122
|
var polyPath = null;
|
|
2120
2123
|
var path = null;
|
|
@@ -2122,7 +2125,7 @@ export class MapOverlayManager {
|
|
|
2122
2125
|
mapListeners = [];
|
|
2123
2126
|
var rbounds = new google.maps.LatLngBounds();
|
|
2124
2127
|
|
|
2125
|
-
|
|
2128
|
+
regionLocations.forEach(function (location) {
|
|
2126
2129
|
|
|
2127
2130
|
const hasId = typeof location.Id === "string"
|
|
2128
2131
|
? location.Id.length > 0
|
|
@@ -2172,7 +2175,7 @@ export class MapOverlayManager {
|
|
|
2172
2175
|
fpolies.push(polygon);
|
|
2173
2176
|
}
|
|
2174
2177
|
});
|
|
2175
|
-
|
|
2178
|
+
/*
|
|
2176
2179
|
var rboundsChangedListener = google.maps.event.addListenerOnce(map, "bounds_changed", function() {
|
|
2177
2180
|
eventHandlers["RegionBoundsChanged"]({
|
|
2178
2181
|
type: 'SUCCESS',
|
|
@@ -2182,9 +2185,9 @@ export class MapOverlayManager {
|
|
|
2182
2185
|
});
|
|
2183
2186
|
});
|
|
2184
2187
|
mapListeners.push(rboundsChangedListener);
|
|
2185
|
-
|
|
2188
|
+
*/
|
|
2186
2189
|
map.fitBounds(rbounds);
|
|
2187
|
-
regions_BindPolyEvents();
|
|
2190
|
+
regions_BindPolyEvents(farmLocations, icon);
|
|
2188
2191
|
}
|
|
2189
2192
|
|
|
2190
2193
|
_this.Shape_Convert = function (ShapeId) {
|