zoukankan      html  css  js  c++  java
  • 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

  • 相关阅读:
    Auth模块使用方法大全
    正则模块
    Django实现Rbac权限管理
    Django models中关于blank与null的补充说明
    Laravel日常使用总结
    关闭IIS开启自启
    phpstorm常用快捷键
    将程序sublime添加到右键菜单中
    form表单利用iframe高仿ajax
    PHP生成二维码,PHPQRCode
  • 原文地址:https://www.cnblogs.com/laojie4321/p/2509158.html
Copyright © 2011-2022 走看看