O'Reilly logo

Map Scripting 101 by Adam DuVander

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Appendix B. MAPSTRACTION REFERENCE

image with no caption

The Mapstraction library makes it easy to create maps that work with any provider. This appendix provides details of Mapstraction's many classes and functions. Use it as a reference as you develop your own maps.

This appendix is organized by Mapstraction class—the way the library itself is separated. Within each class, I've covered its constructor, other functions, and any class variables. The classes include:

  • mxn.Mapstraction, the main class used to create and control the map

  • mxn.BoundingBox, used to describe rectangular areas (bounds)

  • mxn.LatLonPoint, a class for storing and referencing a single coordinate

  • mxn.Marker ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required