mapping-component-package-jp 0.0.57 → 0.1.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/package.json
CHANGED
|
@@ -6,6 +6,7 @@ export class MapOverlayManager {
|
|
|
6
6
|
eventHandlers_get(): any;
|
|
7
7
|
|
|
8
8
|
// Shape Management
|
|
9
|
+
Shape_IsShapeHole(ShapeId: string | number): boolean;
|
|
9
10
|
Shape_PolygonCustomEdit_Add(isHole: boolean, config: any, isMobile: boolean, mapWidth: number, mapHeight: number, vmWidth: number, offsetX: number, offsetY: number): string;
|
|
10
11
|
Shape_CircleFull_Add(isHole: boolean, config: any, isMobile: boolean, mapWidth: number, mapHeight: number, vmWidth: number, vmcLat: number, vmcLng: number, offsetX: number, offsetY: number): string;
|
|
11
12
|
Shape_CircleSector_Add(isHole: boolean, config: any, isMobile: boolean, mapWidth: number, mapHeight: number, vmWidth: number, vmcLat: number, vmcLng: number, offsetX: number, offsetY: number): string;
|
|
@@ -609,6 +609,18 @@ export class MapOverlayManager {
|
|
|
609
609
|
|
|
610
610
|
// #endregion
|
|
611
611
|
|
|
612
|
+
_this.Shape_IsShapeHole = function(ShapeId) {
|
|
613
|
+
let isHole = false;
|
|
614
|
+
locPolygons.forEach(function (polygon, index) {
|
|
615
|
+
if (polygon.id == ShapeId) {
|
|
616
|
+
isHole = polygon.isHole;
|
|
617
|
+
}
|
|
618
|
+
});
|
|
619
|
+
return (isHole);
|
|
620
|
+
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
|
|
612
624
|
_this.selectShape = function(shapeId, selectedStyle, unselectedStyle) {
|
|
613
625
|
console.log('Selecting shape:', shapeId);
|
|
614
626
|
console.log('Current locPolygons:', locPolygons);
|