Google marker

what is google maps markers

Well I was pretty annoyed that while working with Google Maps, everytime you need a marker of a different color fill, different color stroke or a different label you have to go in Photoshop to make a new image. Now there exist some solutions on the web to do so programaticaly, but they are all complicated or they required you download something.

Now this website provide a simple API to generate a majority of the markers / icon you might need without having to download something or put a file on your server.

 

how does it work

fill color

If you just want the usual Google Marker but with a different color, here is how you do it.
As the source of you're image use the following url:

http://www.googlemapsmarkers.com/v1/COLOR/
Where COLOR is the color you want as a RGB hexadecimal number. Example :
http://www.googlemapsmarkers.com/v1/009900/ will give 

label and fill color

If you want add a Label to your marker and change the color here is the url you would use as source
http://www.googlemapsmarkers.com/v1/LABEL/COLOR/
Where LABEL is the text you want on your marker (gives better results with just one letter or number) and COLOR is your color:
http://www.googlemapsmarkers.com/v1/A/0099FF/ will give 

label, fill color, stroke color and label color

This is the most complicated option but it is still pretty easy to do, you just add two parameters to the url.
http://www.googlemapsmarkers.com/v1/LABEL/FILL COLOR/LABEL COLOR/STROKE COLOR/
Here is an example: http://www.googlemapsmarkers.com/v1/A/0099FF/FFFFFF/FF0000/ will give 

Follow this link to learn how Google Maps Marker works

posted on 2012-05-19 20:23  n哖苡逅  阅读(702)  评论(0编辑  收藏  举报

导航