mapping-component-package-jp 0.0.11 → 0.0.13
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/package.json
CHANGED
|
@@ -19,7 +19,7 @@ export class MapOverlayManager {
|
|
|
19
19
|
// Rendering Methods
|
|
20
20
|
RenderFields(locations: any[], properties: any, editMode?: boolean): void;
|
|
21
21
|
RenderRegionFarms(locationsJson: any, icon: any, fitBounds: boolean): void;
|
|
22
|
-
RenderRegions(
|
|
22
|
+
RenderRegions(regionLocations: any[], properties: any, farmLocations: any[], icon: any): void;
|
|
23
23
|
RenderBackgroundFields(locations: any[], properties: any): void;
|
|
24
24
|
|
|
25
25
|
// Shape Selection and Management
|
|
@@ -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) {
|
|
@@ -2116,7 +2117,7 @@ export class MapOverlayManager {
|
|
|
2116
2117
|
}
|
|
2117
2118
|
}
|
|
2118
2119
|
|
|
2119
|
-
_this.RenderRegions = function (
|
|
2120
|
+
_this.RenderRegions = function (regionLocations, properties, farmLocations, icon) {
|
|
2120
2121
|
var polygon = null;
|
|
2121
2122
|
var polyPath = null;
|
|
2122
2123
|
var path = null;
|
|
@@ -2124,7 +2125,7 @@ export class MapOverlayManager {
|
|
|
2124
2125
|
mapListeners = [];
|
|
2125
2126
|
var rbounds = new google.maps.LatLngBounds();
|
|
2126
2127
|
|
|
2127
|
-
|
|
2128
|
+
regionLocations.forEach(function (location) {
|
|
2128
2129
|
|
|
2129
2130
|
const hasId = typeof location.Id === "string"
|
|
2130
2131
|
? location.Id.length > 0
|
|
@@ -2174,7 +2175,7 @@ export class MapOverlayManager {
|
|
|
2174
2175
|
fpolies.push(polygon);
|
|
2175
2176
|
}
|
|
2176
2177
|
});
|
|
2177
|
-
|
|
2178
|
+
/*
|
|
2178
2179
|
var rboundsChangedListener = google.maps.event.addListenerOnce(map, "bounds_changed", function() {
|
|
2179
2180
|
eventHandlers["RegionBoundsChanged"]({
|
|
2180
2181
|
type: 'SUCCESS',
|
|
@@ -2184,9 +2185,9 @@ export class MapOverlayManager {
|
|
|
2184
2185
|
});
|
|
2185
2186
|
});
|
|
2186
2187
|
mapListeners.push(rboundsChangedListener);
|
|
2187
|
-
|
|
2188
|
+
*/
|
|
2188
2189
|
map.fitBounds(rbounds);
|
|
2189
|
-
regions_BindPolyEvents();
|
|
2190
|
+
regions_BindPolyEvents(farmLocations, icon);
|
|
2190
2191
|
}
|
|
2191
2192
|
|
|
2192
2193
|
_this.Shape_Convert = function (ShapeId) {
|