use of com.mapbox.mapboxsdk.plugins.geojson.GeoJsonPluginBuilder in project mapbox-plugins-android by mapbox.
the class GeoJsonActivity method onMapReady.
@Override
public void onMapReady(MapboxMap mapboxMap) {
this.mapboxMap = mapboxMap;
geoJsonPlugin = new GeoJsonPluginBuilder().withContext(this).withMap(mapboxMap).withOnLoadingURL(this).withOnLoadingFileAssets(this).withOnLoadingFilePath(this).withMarkerClickListener(this).withRandomFillColor().build();
mapboxMap.moveCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(32.6546, 51.6680), 7));
}
Aggregations