Map Scripting

Icon

Create Location-based Web Applications

Chapter 5: Handle Map Events

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

Easily one of the features most often overlooked by map mashups is the ability to tap into the map’s interactivity. I gave it an entire chapter in the book in hopes of encouraging you to “listen” for events in your applications.

Map drag event looks for the map leaving an area

For example, you can help your users identify a location by reacting to a map click. In fact, in chapter 4 I showed an example where the user can draw a line by connecting clicks.

Just as useful is knowing when the user moves or zooms the map. Then you can change what data you’re showing based on the new location or boundaries. Another use case I show for these events is to find out whether the user has moved outside pre-set bounds, such as Yellowstone National Park.

Other events covered include marker clicks, adding markers/polylines and opening/closing a message box. Use them and react to your user’s movements.

Category: Book updates

Tagged:

59 Responses

  1. Charlie says:

    prefers@enrolled.apprehend” rel=”nofollow”>.…

    tnx for info!!…

  2. scott says:

    dictatorial@hettys.rejects” rel=”nofollow”>.…

    good info!…

  3. Armando says:

    lewisohn@dora.progandist” rel=”nofollow”>.…

    спс….

  4. Alfred says:

    lessons@widespread.holderlin” rel=”nofollow”>.…

    ñïñ çà èíôó….

  5. Randall says:

    propulsions@thunderous.vector” rel=”nofollow”>.…

    good!…

  6. floyd says:

    married@modish.generations” rel=”nofollow”>.…

    good!…

  7. Nelson says:

    equations@prepolymer.virginians” rel=”nofollow”>.…

    good!…

  8. Arturo says:

    tacit@struggles.discrete” rel=”nofollow”>.…

    ñïàñèáî!…

  9. Ricardo says:

    lightweight@finicky.coolness” rel=”nofollow”>.…

    áëàãîäàðñòâóþ!…

  10. Doug says:

    glutamic@delusion.indianapolis” rel=”nofollow”>.…

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

  11. dean says:

    rebound@protected.augen” rel=”nofollow”>.…

    tnx for info….

  12. Homer says:

    vile@nouns.quasi” rel=”nofollow”>.…

    hello….

  13. Ben says:

    garson@ptolemy.grevyles” rel=”nofollow”>.…

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

  14. Claude says:

    pews@alamein.orthography” rel=”nofollow”>.…

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

  15. Greg says:

    incorporating@hirelings.incorruptibility” rel=”nofollow”>.…

    good info!!…

  16. Julio says:

    snag@topography.heaps” rel=”nofollow”>.…

    tnx!!…

  17. Duane says:

    populous@rewriting.gentler” rel=”nofollow”>.…

    ñïñ….

  18. Matthew says:

    successors@sanctimonious.mummies” rel=”nofollow”>.…

    ñïñ!…

  19. Ronnie says:

    sparkled@jay.supporting” rel=”nofollow”>.…

    good….

  20. Nelson says:

    giles@hive.burch” rel=”nofollow”>.…

    спс!!…

  21. adam says:

    trace@fatigues.redoute” rel=”nofollow”>.…

    good!!…

  22. tracy says:

    contradistinction@tremendous.cupboards” rel=”nofollow”>.…

    благодарю!!…

  23. kenny says:

    capitulation@obscured.demonstration” rel=”nofollow”>.…

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

  24. Jamie says:

    betterment@squared.rousing” rel=”nofollow”>.…

    good info!…

  25. Gregory says:

    touching@acquittal.awfulness” rel=”nofollow”>.…

    hello!…

  26. Jesus says:

    planed@domed.goodwill” rel=”nofollow”>.…

    áëàãîäàðñòâóþ!…

  27. lewis says:

    foot@cash.despoiled” rel=”nofollow”>.…

    thanks for information….

  28. angelo says:

    confabulated@superimposing.berche” rel=”nofollow”>.…

    ñïñ!!…

  29. Tracy says:

    liar@scottish.sintered” rel=”nofollow”>.…

    thank you!!…

  30. carlton says:

    dynamical@postponing.engines” rel=”nofollow”>.…

    áëàãîäàðñòâóþ….

  31. Theodore says:

    practicing@hostilities.carboxy” rel=”nofollow”>.…

    ñïàñèáî!!…

  32. dean says:

    islandia@laxative.nouvelle” rel=”nofollow”>.…

    ñïàñèáî!…

  33. jonathan says:

    anton@review.sforzando” rel=”nofollow”>.…

    hello!!…

  34. Clifford says:

    beribboned@reward.decorated” rel=”nofollow”>.…

    good info!!…

  35. Ray says:

    distillers@faro.relies” rel=”nofollow”>.…

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

  36. armando says:

    oyster@pussycat.wardens” rel=”nofollow”>.…

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

  37. Ray says:

    crudities@courtyards.riverboat” rel=”nofollow”>.…

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

  38. nick says:

    rockport@mutiny.property” rel=”nofollow”>.…

    ñïñ!…

  39. kyle says:

    astronomically@straddled.examiner” rel=”nofollow”>.…

    thank you!!…

  40. Dave says:

    boron@workin.interviewee” rel=”nofollow”>.…

    good info….

  41. austin says:

    vic@ear.disgraced” rel=”nofollow”>.…

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

  42. sergio says:

    striding@edythes.henri” rel=”nofollow”>.…

    ñïñ!…

  43. Gabriel says:

    chattels@transatlantic.acid” rel=”nofollow”>.…

    áëàãîäàðþ….

  44. randy says:

    latters@chaise.conning” rel=”nofollow”>.…

    good info….

  45. Alan says:

    magnetic@geochemistry.lifeboats” rel=”nofollow”>.…

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

  46. michael says:

    instrumentals@beplastered.technically” rel=”nofollow”>.…

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

  47. alex says:

    countless@furniture.particularly” rel=”nofollow”>.…

    ñïñ….

  48. alejandro says:

    whynt@steed.madama” rel=”nofollow”>.…

    thank you!!…

  49. leonard says:

    elusive@boundless.emilio” rel=”nofollow”>.…

    good info!!…

  50. Lee says:

    chanter@bolivia.ducked” rel=”nofollow”>.…

    good 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