diff --git a/lib/torque/renderer/cartocss_render.js b/lib/torque/renderer/cartocss_render.js index 192860e..5688b43 100644 --- a/lib/torque/renderer/cartocss_render.js +++ b/lib/torque/renderer/cartocss_render.js @@ -87,5 +87,5 @@ module.exports = { renderPoint: renderPoint, renderSprite: renderSprite, renderRectangle: renderRectangle, - maxSpriteRadius: MAX_SPRITE_RADIUS + MAX_SPRITE_RADIUS: MAX_SPRITE_RADIUS }; diff --git a/lib/torque/renderer/point.js b/lib/torque/renderer/point.js index e431063..9e6007d 100644 --- a/lib/torque/renderer/point.js +++ b/lib/torque/renderer/point.js @@ -137,8 +137,8 @@ var Filters = require('./torque_filters'); if (qualifiedUrl && this._iconsToLoad <= 0 && this._icons[qualifiedUrl]) { var img = this._icons[qualifiedUrl]; - var dWidth = Math.min(st['marker-width'] * 2 || img.width, cartocss.maxSpriteRadius * 2); - var dHeight = Math.min((st['marker-height'] || dWidth) * (img.width / img.height), cartocss.maxSpriteRadius * 2); + var dWidth = Math.min(st['marker-width'] * 2 || img.width, cartocss.MAX_SPRITE_RADIUS * 2); + var dHeight = Math.min((st['marker-height'] || dWidth) * (img.width / img.height), cartocss.MAX_SPRITE_RADIUS * 2); canvas.width = ctx.width = dWidth; canvas.height = ctx.height = dHeight;