From cfc702f98d8373a8ef11441f338cb5744a86bbda Mon Sep 17 00:00:00 2001 From: Raul Ochoa Date: Wed, 4 Mar 2015 12:10:57 +0100 Subject: [PATCH] renderSprite should take marker width as a point radius --- lib/torque/renderer/point.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/torque/renderer/point.js b/lib/torque/renderer/point.js index 1c710f9..d0a1fb2 100644 --- a/lib/torque/renderer/point.js +++ b/lib/torque/renderer/point.js @@ -137,7 +137,7 @@ var Filters = require('./torque_filters'); if (qualifiedUrl && this._iconsToLoad <= 0) { var img = this._icons[qualifiedUrl]; - var dWidth = st['marker-width'] || img.width; + var dWidth = st['marker-width'] * 2 || img.width; var dHeight = (st['marker-height'] || dWidth) * (img.width / img.height); canvas.width = ctx.width = dWidth;