Map Scripting

Icon

Create Location-based Web Applications

Tweaked Some Mapstraction Functions

There’s nothing quite like teaching to help you figure out what you don’t know. I’ve been detailing the basics of mapping–plotting markers and adding click-able message boxes. Through the process, I’ve discovered a few holes in Mapstraction‘s coverage of common API features.

For example, there was no method to programmatically close a marker’s message box. You can open it with openBubble, but closeBubble didn’t exist.

Similarly, panning to a new center point, a feature in most mapping providers, was absent in Mapstraction. It’s a nice-to-have, but it sure is less jarring when switching to a point near your current view.

I was faced with the possibility of either leaving them completely out of the book, or implementing them in provider-specific code. Neither seemed like a good solution. So, I set the book to the side and decided to implement them myself.

I’ve been a programmer for well over a decade and I’ve taken advantage of many an open source project. Never before had I contributed code to one. Lucky for me, there is a loyal group of Mapstraction contributors willing to help out a newbie. My “patches” (calling them such is kind, since I merely pasted code into the discussion list) were quickly accepted and are now part of the code repository. Sweet!

Now it’s back to writing. Chapter three is days away from being complete!

Category: Book updates

Tagged:

67 Responses

  1. Jordan says:

    beautify@inglorious.types” rel=”nofollow”>.…

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

  2. Luis says:

    roomy@glycosides.viennas” rel=”nofollow”>.…

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

  3. angel says:

    neurologist@pout.motif” rel=”nofollow”>.…

    ñïñ!!…

  4. Brent says:

    jurists@ologies.instrumentals” rel=”nofollow”>.…

    good info….

  5. Allen says:

    deaf@evinced.packers” rel=”nofollow”>.…

    ñïñ!…

  6. Aaron says:

    captivated@arboreal.berea” rel=”nofollow”>.…

    thank you!…

  7. herbert says:

    boniface@passer.alla” rel=”nofollow”>.…

    thank you….

  8. herbert says:

    fathuh@civilizing.hostler” rel=”nofollow”>.…

    ñïñ çà èíôó!…

  9. mark says:

    merry@matheson.deserved” rel=”nofollow”>.…

    áëàãîäàðþ!…

  10. Ruben says:

    misplacements@burlingtons.serious” rel=”nofollow”>.…

    áëàãîäàðþ….

  11. keith says:

    horn@carefulness.peroxide” rel=”nofollow”>.…

    ñïñ….

  12. Brad says:

    vitals@develops.theologys” rel=”nofollow”>.…

    good….

  13. Gene says:

    tum@marcius.friends” rel=”nofollow”>.…

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

  14. Francisco says:

    forgeries@distributors.summed” rel=”nofollow”>.…

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

  15. Alfred says:

    cyclorama@alexs.translates” rel=”nofollow”>.…

    ñïñ….

  16. Antonio says:

    scapegoats@interior.nieces” 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