gasparovic

Renderer : creating from json ignores width and height

Discussion created by gasparovic on Sep 29, 2013
Latest reply on Sep 30, 2013 by manish_patel
Hi,

can anyone explain why is renderer ignoring my width and height settings for the picture marker symbols ?

if I create the renderer like this:
new SimpleRenderer(new PictureMarkerSymbol({"url":"./graphics/rm/renderer/boatRamp.png","height":24,"width":24,"type":"esriPMS"}))

the renderer ends up with the symbol properties of :

height: 32
size: 16
type: "picturemarkersymbol"
url: "./graphics/rm/renderer/boatRamp.png"
width: 32
xoffset: 0
yoffset: 0


When I create the renderer like this:
new SimpleRenderer(new PictureMarkerSymbol('./graphics/rm/renderer/boatRamp.png', 24, 24))
then it works as expected.

Any ideas?
Thank you

Outcomes