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

  • 相关阅读:
    HTML表格的简单使用1
    守卫路由使用
    CSS高度塌陷问题解决方案
    CSS导航条nav简单样式
    Linux学习
    TYpeScript接口的使用
    javaScript中自定义sort中的比较函数,用于比较字符串长度,数值大小
    給eclipse添加字体,设置字体
    tomcat自动URLDecode解码问题(+号变空格)
    时间管理
  • 原文地址:https://www.cnblogs.com/laojie4321/p/2509158.html
Copyright © 2011-2022 走看看