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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值