nicolasmendoza / google-maps-icons

Automatically exported from code.google.com/p/google-maps-icons
0 stars 0 forks source link

Contribution: shadow icon for 32x37 icons #324

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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);

Original issue reported on code.google.com by marc.ste...@cwi.nl on 25 Feb 2011 at 8:30

Attachments:

GoogleCodeExporter commented 8 years ago
Excellent, I was just about to make one of these myself!

Original comment by steven.m...@gmail.com on 30 Mar 2011 at 3:35