ig_markerfactory
Advanced tools
Comparing version 2.8.0 to 2.8.1
@@ -315,7 +315,7 @@ var MarkerFactory = {}; | ||
var textWidth = context.measureText(options.label); | ||
var textWidth = context.measureText(options.unicodelabel); | ||
// centre the text. | ||
context.fillText(options.label, | ||
context.fillText(options.unicodelabel, | ||
1 + Math.floor((canvas.width / 2) - (textWidth.width / 2)), | ||
@@ -629,4 +629,4 @@ 49 - canvas.height | ||
// This is a charcode specified as an octal number, so I'll decode it | ||
options.label = String.fromCharCode(String(options.label)); | ||
options.unicodelabel = String.fromCharCode(String(options.label)); | ||
options.label = options.label.slice(2); | ||
if (options.transparent_background === true) { | ||
@@ -633,0 +633,0 @@ // Estilo frontdev |
@@ -321,7 +321,7 @@ (function (global, factory) { | ||
var textWidth = context.measureText(options.label); | ||
var textWidth = context.measureText(options.unicodelabel); | ||
// centre the text. | ||
context.fillText(options.label, | ||
context.fillText(options.unicodelabel, | ||
1 + Math.floor((canvas.width / 2) - (textWidth.width / 2)), | ||
@@ -635,4 +635,4 @@ 49 - canvas.height | ||
// This is a charcode specified as an octal number, so I'll decode it | ||
options.label = String.fromCharCode(String(options.label)); | ||
options.unicodelabel = String.fromCharCode(String(options.label)); | ||
options.label = options.label.slice(2); | ||
if (options.transparent_background === true) { | ||
@@ -639,0 +639,0 @@ // Estilo frontdev |
@@ -5,3 +5,3 @@ { | ||
"jsnext:main": "markerfactory.esm.js", | ||
"version": "2.8.0", | ||
"version": "2.8.1", | ||
"license": "MIT", | ||
@@ -8,0 +8,0 @@ "repository": { |
@@ -315,7 +315,7 @@ var MarkerFactory = {}; | ||
var textWidth = context.measureText(options.label); | ||
var textWidth = context.measureText(options.unicodelabel); | ||
// centre the text. | ||
context.fillText(options.label, | ||
context.fillText(options.unicodelabel, | ||
1 + Math.floor((canvas.width / 2) - (textWidth.width / 2)), | ||
@@ -629,4 +629,4 @@ 49 - canvas.height | ||
// This is a charcode specified as an octal number, so I'll decode it | ||
options.label = String.fromCharCode(String(options.label)); | ||
options.unicodelabel = String.fromCharCode(String(options.label)); | ||
options.label = options.label.slice(2); | ||
if (options.transparent_background === true) { | ||
@@ -633,0 +633,0 @@ // Estilo frontdev |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1370495
4638