mapping-component-package-jp 0.2.3 → 0.2.5

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mapping-component-package-jp",
3
- "version": "0.2.3",
3
+ "version": "0.2.5",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -133,9 +133,13 @@ export class MapOverlayManager {
133
133
  var areaText = `${location.Area} ha`;
134
134
  var bl = formatBlockLabel(location.Id, location.LocationName, areaText, 8);
135
135
 
136
- var svgText = `<svg viewBox="0 0 200 30" xmlns="http://www.w3.org/2000/svg">
137
- <text x="0" y="12" fill="${location.LabelColor}" font-family="Arial, sans-serif" font-size="8px">${ClearHTML.clearString(location.LocationName)}</text>
136
+ console.log('bl', bl);
137
+
138
+ var svgText = `<svg viewBox="0 0 200 10" xmlns="http://www.w3.org/2000/svg">
139
+ <text x="0" y="1" fill="${location.LabelColor}" font-family="Roboto, "Helvetica Neue", sans-serif" font-size="8px">${ClearHTML.clearString(location.LocationName)}</text>
138
140
  </svg>`;
141
+
142
+ console.log('svgText', svgText);
139
143
 
140
144
  var polyLabel = new google.maps.Marker({
141
145
  map: map,
@@ -454,7 +458,7 @@ export class MapOverlayManager {
454
458
  zIndex: location.MapLocationFeature.ZIndex
455
459
  }
456
460
 
457
- if (properties.showLabel) AddLabelMobile(location);
461
+ if (location.ShowLabel) AddLabelMobile(location);
458
462
 
459
463
  var polygon = new google.maps.Polygon(polygonOptions);
460
464
  polygons.push(polygon);