ig_markerfactory
Advanced tools
Comparing version 2.9.3 to 2.9.4
@@ -434,2 +434,4 @@ var MarkerFactory = {}; | ||
var createTransparentMarkerIcon = function (theoptions) { | ||
@@ -441,3 +443,3 @@ | ||
font = options.font || 'fontello', | ||
fontsize = options.fontsize || 40, | ||
fontsize = options.fontsize || 30, | ||
color0, color1; | ||
@@ -449,2 +451,6 @@ | ||
/*context.rect(1, 1, canvas.width - 2, canvas.height - 2); | ||
context.lineWidth = 1; | ||
context.strokeStyle = 'black'; | ||
context.stroke();*/ | ||
@@ -496,6 +502,9 @@ if (options.index !== undefined && options.count > 0) { | ||
context.shadowColor = '#FFFFFF'; | ||
context.fillStyle = color0; | ||
context.fillText(options.unicodelabel, text_x + 1, 0); | ||
context.shadowOffsetX = 2; | ||
context.shadowOffsetY = 2; | ||
context.shadowBlur = 1; | ||
context.shadowColor = '#FFFFFF'; | ||
context.strokeStyle = color1; | ||
@@ -512,5 +521,7 @@ context.strokeText(options.unicodelabel, text_x + 1, 0); | ||
var markerCanvas = generateTransparentCanvas(theoptions); | ||
theoptions.scale = theoptions.scale || 1; | ||
theoptions.fontsize = theoptions.fontsize || 30; | ||
var markerCanvas = generateTransparentCanvas(theoptions); | ||
var scale = theoptions.scale; | ||
@@ -541,2 +552,3 @@ if (theoptions.shadow) { | ||
MarkerFactory.toDecColor = toDecColor; | ||
@@ -543,0 +555,0 @@ |
@@ -440,2 +440,4 @@ (function (global, factory) { | ||
var createTransparentMarkerIcon = function (theoptions) { | ||
@@ -447,3 +449,3 @@ | ||
font = options.font || 'fontello', | ||
fontsize = options.fontsize || 40, | ||
fontsize = options.fontsize || 30, | ||
color0, color1; | ||
@@ -455,2 +457,6 @@ | ||
/*context.rect(1, 1, canvas.width - 2, canvas.height - 2); | ||
context.lineWidth = 1; | ||
context.strokeStyle = 'black'; | ||
context.stroke();*/ | ||
@@ -502,6 +508,9 @@ if (options.index !== undefined && options.count > 0) { | ||
context.shadowColor = '#FFFFFF'; | ||
context.fillStyle = color0; | ||
context.fillText(options.unicodelabel, text_x + 1, 0); | ||
context.shadowOffsetX = 2; | ||
context.shadowOffsetY = 2; | ||
context.shadowBlur = 1; | ||
context.shadowColor = '#FFFFFF'; | ||
context.strokeStyle = color1; | ||
@@ -518,5 +527,7 @@ context.strokeText(options.unicodelabel, text_x + 1, 0); | ||
var markerCanvas = generateTransparentCanvas(theoptions); | ||
theoptions.scale = theoptions.scale || 1; | ||
theoptions.fontsize = theoptions.fontsize || 30; | ||
var markerCanvas = generateTransparentCanvas(theoptions); | ||
var scale = theoptions.scale; | ||
@@ -547,2 +558,3 @@ if (theoptions.shadow) { | ||
MarkerFactory.toDecColor = toDecColor; | ||
@@ -549,0 +561,0 @@ |
@@ -6,3 +6,3 @@ { | ||
"description": "Uses canvas to generate google.maps.Marker Icons from graphic fonts (i.e. font-awesome) on the fly", | ||
"version": "2.9.3", | ||
"version": "2.9.4", | ||
"license": "MIT", | ||
@@ -9,0 +9,0 @@ "repository": { |
@@ -434,2 +434,4 @@ var MarkerFactory = {}; | ||
var createTransparentMarkerIcon = function (theoptions) { | ||
@@ -441,3 +443,3 @@ | ||
font = options.font || 'fontello', | ||
fontsize = options.fontsize || 40, | ||
fontsize = options.fontsize || 30, | ||
color0, color1; | ||
@@ -449,2 +451,6 @@ | ||
/*context.rect(1, 1, canvas.width - 2, canvas.height - 2); | ||
context.lineWidth = 1; | ||
context.strokeStyle = 'black'; | ||
context.stroke();*/ | ||
@@ -496,6 +502,9 @@ if (options.index !== undefined && options.count > 0) { | ||
context.shadowColor = '#FFFFFF'; | ||
context.fillStyle = color0; | ||
context.fillText(options.unicodelabel, text_x + 1, 0); | ||
context.shadowOffsetX = 2; | ||
context.shadowOffsetY = 2; | ||
context.shadowBlur = 1; | ||
context.shadowColor = '#FFFFFF'; | ||
context.strokeStyle = color1; | ||
@@ -512,5 +521,7 @@ context.strokeText(options.unicodelabel, text_x + 1, 0); | ||
var markerCanvas = generateTransparentCanvas(theoptions); | ||
theoptions.scale = theoptions.scale || 1; | ||
theoptions.fontsize = theoptions.fontsize || 30; | ||
var markerCanvas = generateTransparentCanvas(theoptions); | ||
var scale = theoptions.scale; | ||
@@ -541,2 +552,3 @@ if (theoptions.shadow) { | ||
MarkerFactory.toDecColor = toDecColor; | ||
@@ -543,0 +555,0 @@ |
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
1409843
43
4895