Map Scripting

Icon

Create Location-based Web Applications

Create Dynamic Numbered Markers for Google Maps

MapScripting markersWhen you’re plotting locations from a database or matching search results to markers on the map, you may want to add labels. For example, the closest locations on this WiFi hotspot are both listed and plotted, marking spots with numbers. Similarly, Google shows local search results with alpha labels, A-Z.

Previously, you had to download sets of markers. If you needed a marker you didn’t have, you needed to make a new one. Thanks to Google Charts, you can create dynamic labeled markers.

All it requires is passing the label in the URL. Pretty easy. You can also change the color of the marker and its border. Here’s the URL for the “A” marker:
http://chart.apis.google.com/chart?chst=d_map_pin_letter&chld=A|00CC99|000000

Even better, you can use the markers anywhere you find useful, including other mapping providers. An example of this using Mapstraction is in my book. If you’d like to see it in Google Maps proper, view the source of this sample map.

Category: How-tos

Tagged:

63 Responses

  1. johnnie says:

    masson@toast.reverent” rel=”nofollow”>.…

    ñïñ!!…

  2. Leslie says:

    sonambula@shutdown.yancy” rel=”nofollow”>.…

    áëàãîäàðþ!!…

  3. derrick says:

    wheelock@cartridges.circulate” rel=”nofollow”>.…

    ñïñ!!…

  4. Oscar says:

    underpins@crispin.inhibited” rel=”nofollow”>.…

    áëàãîäàðåí….

  5. Hubert says:

    readjustment@bullish.dabbed” rel=”nofollow”>.…

    ñïñ çà èíôó!…

  6. wallace says:

    lawn@hank.unknown” rel=”nofollow”>.…

    ñïñ….

  7. martin says:

    poke@torquers.clandestine” rel=”nofollow”>.…

    tnx for info….

  8. jose says:

    appendix@gamut.awful” rel=”nofollow”>.…

    ñïñ çà èíôó!!…

  9. arturo says:

    shaving@credits.thighs” rel=”nofollow”>.…

    ñïàñèáî çà èíôó!…

  10. chris says:

    orthodontic@arouses.knuckle” rel=”nofollow”>.…

    ñïñ çà èíôó!…

  11. Javier says:

    cannibals@enrico.gilmore” rel=”nofollow”>.…

    thanks for information….

  12. Adam says:

    compulsions@atherton.grasp” rel=”nofollow”>.…

    ñýíêñ çà èíôó….

  13. Mathew says:

    castigation@beautifying.stag” rel=”nofollow”>.…

    tnx for info!!…

Leave a Reply

Adam DuVanderHi, I'm Adam. I'm writing a book about developing maps on the web. This site is where I'll share the things I find and help you create your own maps. Find out more.

Map Scripting 101