mapping-component-package-jp 0.2.6 → 0.2.8

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.6",
3
+ "version": "0.2.8",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -138,7 +138,7 @@ function formatBlockLabelMobile(Id, locname, locarea, fontFamily, fontSize, font
138
138
  nameContainerElem.remove();
139
139
  areaContainerElem.remove();
140
140
 
141
- return { nameWidth: nameWidth, areaWidth: areaWidth };
141
+ return { nameWidth: nameWidth+2, areaWidth: areaWidth+2 };
142
142
  }
143
143
 
144
144
  export { projectMercator, tile2latLng, diffLatLng2Meters, formatBlockLabel, formatBlockLabelMobile, get_FillColorOpacity, get_FillColor }
@@ -140,11 +140,9 @@ export class MapOverlayManager {
140
140
  location.LabelFontWeight,
141
141
  );
142
142
 
143
- var svgText = '<svg width="'+bl.nameWidth+'" height="'+location.LabelFontSize+'" viewBox="0 0 '+bl.nameWidth+' '+location.LabelFontSize+'" xmlns="http://www.w3.org/2000/svg">';
143
+ var svgText = '<svg width="'+(bl.nameWidth)+'" height="'+location.LabelFontSize+'" viewBox="0 0 '+bl.nameWidth+' '+location.LabelFontSize+'" xmlns="http://www.w3.org/2000/svg">';
144
144
  svgText += '<text x="0" y="'+location.LabelFontSize+'" fill="'+location.LabelColor+'" font-family="'+location.LabelFontFamily+'" font-size="'+location.LabelFontSize+'px" font-weight="'+location.LabelFontWeight+'">'+location.LocationName+'</text>';
145
145
  svgText += '</svg>';
146
-
147
- console.log('svgText', svgText);
148
146
 
149
147
  var polyLabel = new google.maps.Marker({
150
148
  map: map,