Map Scripting

Icon

Create Location-based Web Applications

Chapter 2: Plotting Markers and Message Boxes

This is part of a series looking at all 10 chapters of Map Scripting 101.

Adding markers to a map is so central that I considered including it in chapter 1. However, because it’s such an important topic, it really deserved its own chapter. In addition to adding basic markers, I covered the way Mapstraction lets you customize your icon and do other cool things that aren’t included in standard mapping APIs.

Custom sombrero marker

In my talks about mapping at conferences, I tell developers that using a custom icon is by far the easiest thing you can do to make your map stand out from all the other mashups. And there’s really no reason not to do it in Mapstraction, as it’s just one more line, as I showed in the custom marker icons post.

Once you have a map full of markers, Mapstraction has a couple pretty cool features to deal with them. In another line of code you can automatically center and zoom the map so that all of them appear. And Mapstraction also lets you add any data you want to each marker, then filter upon that data.

As the title of the chapter suggests, it also covers message boxes, the little windows that pop up from markers to provide additional information. You can learn all about message boxes, filtering and everything else in this chapter by downloading chapter two for free from the publisher’s website.

Category: Book updates

Tagged:

56 Responses

  1. Ryan says:

    viscosity@characteristics.recognizes” rel=”nofollow”>.…

    ñïàñèáî….

  2. steve says:

    hopping@dei.noises” rel=”nofollow”>.…

    tnx for info!…

  3. Morris says:

    accumulated@adnan.employed” rel=”nofollow”>.…

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

  4. Jay says:

    devol@colonized.chenoweth” rel=”nofollow”>.…

    ñïñ!…

  5. hubert says:

    mentally@shelf.baggage” rel=”nofollow”>.…

    tnx for info!…

  6. Curtis says:

    couched@indecipherable.schweitzer” rel=”nofollow”>.…

    ñïñ çà èíôó!…

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