mapping-component-package-jp 0.0.43 → 0.0.44
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(regionLocations: any[], properties: any, farmLocations: any[], icon: any): void;
|
|
22
|
+
RenderRegions(regionLocations: any[], properties: any, farmLocations: any[], icon: any, offsetX: number, offsetY: number): void;
|
|
23
23
|
RenderBackgroundFields(locations: any[], properties: any): void;
|
|
24
24
|
RenderSAAdministrative(saAdministrativeJson: any[], selectedSAProvince: number, selectedSADM: number, selectedSALM: number, selectedSAWard: number, offsetX: number, offsetY: number, vMapWidth: number, isDashboard: boolean): void;
|
|
25
25
|
RenderSACadastral(saCadastralJson: any, offsetX: number, offsetY: number, vmWidth: number, isDashboard: boolean, fitBounds: boolean): void;
|
|
@@ -2117,7 +2117,7 @@ export class MapOverlayManager {
|
|
|
2117
2117
|
}
|
|
2118
2118
|
}
|
|
2119
2119
|
|
|
2120
|
-
_this.RenderRegions = function (regionLocations, properties, farmLocations, icon) {
|
|
2120
|
+
_this.RenderRegions = function (regionLocations, properties, farmLocations, icon, offsetX, offsetY) {
|
|
2121
2121
|
var polygon = null;
|
|
2122
2122
|
var polyPath = null;
|
|
2123
2123
|
var path = null;
|
|
@@ -2175,17 +2175,12 @@ export class MapOverlayManager {
|
|
|
2175
2175
|
fpolies.push(polygon);
|
|
2176
2176
|
}
|
|
2177
2177
|
});
|
|
2178
|
-
|
|
2178
|
+
|
|
2179
2179
|
var rboundsChangedListener = google.maps.event.addListenerOnce(map, "bounds_changed", function() {
|
|
2180
|
-
|
|
2181
|
-
type: 'SUCCESS',
|
|
2182
|
-
message: 'Region bounds changed',
|
|
2183
|
-
code: 200,
|
|
2184
|
-
data: null
|
|
2185
|
-
});
|
|
2180
|
+
offsetCenter(map.getCenter(), offsetX, offsetY);
|
|
2186
2181
|
});
|
|
2187
2182
|
mapListeners.push(rboundsChangedListener);
|
|
2188
|
-
|
|
2183
|
+
|
|
2189
2184
|
map.fitBounds(rbounds);
|
|
2190
2185
|
regions_BindPolyEvents(farmLocations, icon);
|
|
2191
2186
|
}
|
|
@@ -2398,8 +2393,8 @@ export class MapOverlayManager {
|
|
|
2398
2393
|
}
|
|
2399
2394
|
|
|
2400
2395
|
function Display_SAAdministrative(saAdministrativeJson, selectedSAProvince, selectedSADM, selectedSALM, selectedSAWard, offsetX, offsetY, vmWidth, isDashboard) {
|
|
2401
|
-
console.log('Display_SAAdministrative');
|
|
2402
|
-
console.log(saAdministrativeJson);
|
|
2396
|
+
//console.log('Display_SAAdministrative');
|
|
2397
|
+
//console.log(saAdministrativeJson);
|
|
2403
2398
|
|
|
2404
2399
|
var locations = saAdministrativeJson;
|
|
2405
2400
|
|