Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

B. MAPSTRACTION REFERENCE

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, which maintains data for a single point of interest

  • mxn.Polyline, a class for collections of connected points (shapes or lines)


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint