Changing icon size in Google Maps

4,500 views
Skip to first unread message

stillinorbit

unread,
Aug 12, 2008, 3:07:30 AM8/12/08
to KML Developer Support - Getting Started with KML
Hello,

How do I change the size of a placemark icon in Google Maps?

Altering the <scale> value works in Google Earth, but in Google Maps
the icon always stays the same size.

I even changed the physical x/y dimensions of the icon image file that
is referred to in my <style> section, but that made no difference in
Google Maps - the icons are still rendered the same size on the
screen.

I'm stumped. Ideas?

Thanks in advance, Stu

barryhunter [KML Guru]

unread,
Aug 12, 2008, 8:30:34 AM8/12/08
to KML Developer Support - Getting Started with KML
Google Maps (and GGeoXML in the Google Maps API) - always renders
icons as 32x32 pixels - no exceptions, the KML cant change that.

It's mainly down to a technical limitation, as the javascript doesnt
know the icon size before rendering - ok there are work arounds but
probably non-trivial.

If you using the API, then there are alternatives to GGeoXML which can
cope with different size icons - the source is available so can edit
it.
Reply all
Reply to author
Forward
0 new messages