I'm loading a KML layer that defines its own icons, but the custom icon 
image I made keeps getting scaled. After searching the forum, it seems KML 
will only support 32x32 pixel icons, so I used a workaround suggested here 
and made the icon image 32x32, with transparent areas all around it. 
However, the icon is still being enlarged. 

Click the northmost crocodile ("Wilma") to see the KML layer with scaled 
icons:
http://crocdoc.ifas.ufl.edu/projects/saveyourlogo/mapbeta/

This is the KML file: 
http://crocdoc.ifas.ufl.edu/projects/saveyourlogo/mapbeta/kml/wilma1s.kml
The JS: 
http://crocdoc.ifas.ufl.edu/projects/saveyourlogo/mapbeta/js/trackingmap.js
And the icon image: 
http://crocdoc.ifas.ufl.edu/projects/saveyourlogo/mapbeta/markers/reddot.png

If I try to use <gx:w>32</gx:w> <gx:h>32</gx:h> to define the size of the 
icon image, the custom icon gets replaced by Google's default blue pinpoint. 
And whether I place the icon in the middle or the bottom left of the .png, 
it still scales the same way on my map, making me suspect that the map is 
trimming the transparent edges.

Any ideas how to get the icon to show up at the correct size?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to