Skip to content

Mapping

Suraj Swarnapuri edited this page May 5, 2019 · 2 revisions

BNav uses the Esri API for Android for its Mapping and Routing services

Global Variables

  • Mapview mMapView
    • holds the map information for the UI
  • GraphicsOverlay mGraphicsOverlay
    • holds the graphics for the route and stop information
  • GraphicsOverlay _personUpdate
    • holds the graphics information for the players location
  • Point mStart
    • starting location
  • Point mEnd
    • ending location

Methods

  • void setupMap()
    • initializes basemap layers and orientation sensors
  • void createGraphicsOverlay()
    • initializes mGraphicsOverlay and mMapView
  • void setMapMarker(Point location, SimpleMarkerSymbol.Style style, int markerColor, int outlineColor)
    • draws point on map given certain parameters
  • void setStartMarker(Point location)
    • sets the start location
  • void setEndMarker(Point location)
    • sets the end location
  • void mapClicked(Point location) [DEPRECATED]
    • draws point on map where map is clicked

References

Clone this wiki locally