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

  • 相关阅读:
    TCP定时器 之 重传/延迟ACK/保活 定时器初始化
    指针03-指针和字符串
    指针02
    指针01
    switch语句分析
    结构体分析
    参数、返回值、局部变量、数组分析
    多维数组分析
    循环语句分析
    if语句分析
  • 原文地址:https://www.cnblogs.com/laojie4321/p/2509158.html
Copyright © 2011-2022 走看看