Export to GitHub

google-maps-icons - issue #324

Contribution: shadow icon for 32x37 icons


Posted on Feb 25, 2011 by Happy Rabbit

I missed a shadow icon for use on google maps, so I created one (attached) that fits all 32x37 standard icons of this project. Below is how to use it in javascript for proper alignment:

First create 'iconshadow': iconshadow = new google.maps.MarkerImage('shadow.png', new google.maps.Size(51.0, 37.0), new google.maps.Point(0, 0), new google.maps.Point(16.0, 37.0) );

Then apply shadow to any marker: marker.setIcon('accident.png'); // any 32x37 icon marker.setShadow(iconshadow);

Attachments

Comment #1

Posted on Mar 30, 2011 by Happy Ox

Excellent, I was just about to make one of these myself!

Status: New

Labels:
Type-Enhancement Priority-Medium