Why Are My Markers Distorted?

1527
6
10-01-2011 01:49 PM
JohnWeiss
New Contributor
hi

my online map is pointing to a kml file. The kml file contains:
<Style id="BasicStyle">
<BalloonStyle>
<text>$[description]</text>
</BalloonStyle>
<IconStyle>
<color>FFFFFFFF</color>
<scale>1</scale>
<hotSpot x="0.5" y="0" xunits="fraction" yunits="fraction"/><Icon>
<href>http://bayviewfootprints.org/assets/images/pins/bluepin.png</href>
</Icon>
</IconStyle>
</Style>


which contains  the following icon:
http://bayviewfootprints.org/assets/images/pins/bluepin.png

In the arcgis map, my icon is distorted.
http://bit.ly/pyQL0o

Why is my icon distorted?

thanks!
Tags (2)
0 Kudos
6 Replies
MikeMinami
Esri Notable Contributor
We do scale icons to 32x32. I believe this is what google maps does. We probably could scale the symbols proportionally. Can you share your KML file?

Thanks,

Mike
0 Kudos
johnywhy
New Contributor
you can download the entire kml file here:

bayviewfootprints.org/flower.kml

the key excerpt is above.

thanks!
0 Kudos
MikeMinami
Esri Notable Contributor
I've written up an enhancement request and we'll see what we can do. I the mean time, you need to stick with square icons...just enlarge your current one to 64x64 pixels and then it will scale proportionally.

Mike
0 Kudos
johnywhy
New Contributor
enlarge your current one to 64x64 pixels and then it will scale proportionally.


hi Mike

i scaled up my image proportionally, 64x126
it's still coming up distorted on the map. what should i do?

thanks!
0 Kudos
johnywhy
New Contributor
hi

does sizing the image canvas work?

i scaled my image CANVAS to 63x63, but still coming up distorted.

is the distorted one getting cached someplace?
0 Kudos
MikeMinami
Esri Notable Contributor
Looks like you've fixed your problem. The issue on our side is that we support images of 32x32 pixels in size. If either dimension of the image is larger than 32, we resize to 32. Thus, in your case, we were distorting your image because only the height of your image was larger (63 pixels).  The solution is to make your images 32x32 and it will look fine and no scaling will occur. On our side, we'll change our code to scale proportionally in the future.

Thanks for your help with this issue.

Mike
0 Kudos