Nick BalestraNick Balestra Personal Blog

Comments

Using Custom Markers with Google Static Map APIs

Just few small tip and trick if you plan to use custom map marker to generate your google static map images.

  1. img have to be max 64x64px in size
  2. If you have gradient images or detailed png ones make sure to set format=png32 so that the returned images doesn’t loss too much quality
  3. if you want to create your own shadow, set shadow:false but then you need to be aware of a little detail: when u set shadow:false your marker will be centered in the center of the image so take care of this, while when shadow:true the center in the bottom of your image will be used by google.
  4. If you won’t to get a little bit more of quality set scale=2 and then resize the image with img { width & height } on your css.

for a detailed use of google static map api go: http://code.google.com/apis/maps/documentation/staticmaps/