mapping-component-package-jp 0.2.11 → 0.2.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/package.json
CHANGED
|
@@ -84,7 +84,7 @@ export class IQLPolygonCustomEdit {
|
|
|
84
84
|
// 1. Solid Point Icon (24x24)
|
|
85
85
|
const svgpi =
|
|
86
86
|
'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">' +
|
|
87
|
-
'<path fill="#ffffff" stroke="#303030" stroke-width="1
|
|
87
|
+
'<path fill="#ffffff" stroke="#303030" stroke-width="1" d="M12 12 m-4,0 a 4,4,0 0,1 8,0 a 4,4 0 0,1 -8,0z" />' +
|
|
88
88
|
"</svg>";
|
|
89
89
|
|
|
90
90
|
pointIcon = {
|
|
@@ -107,7 +107,7 @@ export class IQLPolygonCustomEdit {
|
|
|
107
107
|
// 2. Ghost/Midpoint Icon (24x24)
|
|
108
108
|
const svgmpi =
|
|
109
109
|
'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">' +
|
|
110
|
-
'<path fill="rgba(255,255,255,0.4)" stroke="#303030" stroke-width="0.
|
|
110
|
+
'<path fill="rgba(255,255,255,0.4)" stroke="#303030" stroke-width="0.3" d="M12 12 m-4,0 a 4,4,0 0,1 8,0 a 4,4 0 0,1 -8,0z" />' +
|
|
111
111
|
"</svg>";
|
|
112
112
|
|
|
113
113
|
midPointIcon = {
|
|
@@ -132,14 +132,14 @@ export class IQLPolygonCustomEdit {
|
|
|
132
132
|
|
|
133
133
|
// 3. Handle Up (Tightened Viewbox)
|
|
134
134
|
const svgup =
|
|
135
|
-
'<svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0
|
|
136
|
-
'<g transform="scale(0.5 0.5)
|
|
135
|
+
'<svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 26 26" width="26" height="26">' + // Viewbox matches scaled size
|
|
136
|
+
'<g transform="scale(0.5 0.5)">' +
|
|
137
137
|
'<path style="fill:#f1a81e;" d="M38.853,5.324c-7.098-7.098-18.607-7.098-25.706,0C6.751,11.72,6.031,23.763,11.459,31L26,52l14.541-21C45.969,23.763,45.249,11.72,38.853,5.324z"/>' +
|
|
138
138
|
"</g></svg>";
|
|
139
139
|
|
|
140
140
|
handleIconUp = {
|
|
141
141
|
url: "data:image/svg+xml;charset=UTF-8;base64," + btoa(svgup),
|
|
142
|
-
anchor: new google.maps.Point(13,
|
|
142
|
+
anchor: new google.maps.Point(13, 26) // 52 scaled by 0.5 = 26
|
|
143
143
|
};
|
|
144
144
|
/*
|
|
145
145
|
const svgdown =
|
|
@@ -157,14 +157,14 @@ export class IQLPolygonCustomEdit {
|
|
|
157
157
|
*/
|
|
158
158
|
// 4. Handle Down (Tightened Viewbox)
|
|
159
159
|
const svgdown =
|
|
160
|
-
'<svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0
|
|
160
|
+
'<svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 26 26" width="26" height="26">' +
|
|
161
161
|
'<g transform="scale(0.5 0.5) rotate(180 26 26)">' +
|
|
162
162
|
'<path style="fill:#f1a81e;" d="M38.853,5.324c-7.098-7.098-18.607-7.098-25.706,0C6.751,11.72,6.031,23.763,11.459,31L26,52l14.541-21C45.969,23.763,45.249,11.72,38.853,5.324z"/>' +
|
|
163
163
|
"</g></svg>";
|
|
164
164
|
|
|
165
165
|
handleIconDown = {
|
|
166
166
|
url: "data:image/svg+xml;charset=UTF-8;base64," + btoa(svgdown),
|
|
167
|
-
anchor: new google.maps.Point(13, 0) //
|
|
167
|
+
anchor: new google.maps.Point(13, 0) // Top tip remains at 0
|
|
168
168
|
};
|
|
169
169
|
|
|
170
170
|
} else {
|