Skip to content

Instantly share code, notes, and snippets.

@respectTheCode
Created August 27, 2014 22:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save respectTheCode/16058b92a4bc6431377f to your computer and use it in GitHub Desktop.
Save respectTheCode/16058b92a4bc6431377f to your computer and use it in GitHub Desktop.
public class APMapboxLayer extends APLayer {
private MapView mMapView;
public APMapboxLayer(final Context context, final LayerDataSource data, final float density, final float scale, final View.OnClickListener hotspotClickListener) {
super(context, data, density, hotspotClickListener);
String mapId = data.getMapId();
if (mapId == null) {
return;
}
mMapView = new MapView(context);
mMapView.setTileSource(new MapboxTileLayer(mapId));
setView(mMapView);
}
}
@respectTheCode
Copy link
Author

map id millemr.ja67pkif

@tmcw
Copy link

tmcw commented Sep 2, 2014

Have you tried setting the map view's center and zoom?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment