Google Maps API : V2 : marker icons are not square

Posted by PlanetUnknown on Stack Overflow See other posts from Stack Overflow or by PlanetUnknown
Published on 2010-04-03T15:20:05Z Indexed on 2010/04/03 15:23 UTC
Read the original article Hit count: 187

Filed under:

I have generated a bunch of png files to use as markers on my site.
However when I applied them using GIcon(). I see that they are squeezed such that the height is more than the width.

This even though my png files are exactly 22x22 pixels.

I don't think I have the resources to generate the whole set to fit the odd 20x34 or some such size.

Is there any way this can be fixed ?

I tried specifying a GSize() to unsqueeze them, but that didn't work.

© Stack Overflow or respective owner

Related posts about google-maps