Skip to content

Instantly share code, notes, and snippets.

@abdallaadelessa
Last active October 28, 2015 15:49
Show Gist options
  • Save abdallaadelessa/f36ba4fc6c2b5ff1c6db to your computer and use it in GitHub Desktop.
Save abdallaadelessa/f36ba4fc6c2b5ff1c6db to your computer and use it in GitHub Desktop.
mMapView.setAccessToken("pk.eyJ1IjoibW9zZWxheW1kIiwiYSI6ImNpZjNzYzZsejAwbGJzdmx2OHg3bjd4aXEifQ.g4tCt7lO9sgKphV6hcWBgQ");
// Main World Map
mMapView.setTileSource(new MapboxTileLayer("moselaymd.cif3sc6e400m2stlylfe3q8nb"));
// Max Bounds
mMapView.setScrollableAreaLimit(new BoundingBox(new LatLng(30.01926989644603, 31.413833498954773), new LatLng(30.017535041023624, 31.411263942718506)));
// My Indoor Map Layer
MapTileLayerBase overlayTileLayer = new MapTileLayerBasic(mapView.getContext(), new MapboxTileLayer("moselaymd.la9yhkt9"), mapView);
TilesOverlay tilesOverlay = new TilesOverlay(overlayTileLayer);
tilesOverlay.setLoadingBackgroundColor(Color.TRANSPARENT);
tilesOverlay.setDrawLoadingTile(false);
mapView.getOverlays().add((tilesOverlay));
// Custom overlay drawing
mapView.getOverlays().add(new LocationOverlay(mMapView));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment