renderSprite should take marker width as a point radius

This commit is contained in:
Raul Ochoa 2015-03-04 12:10:57 +01:00
parent 142ae1f528
commit cfc702f98d

View File

@ -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;