Skip to content

Instantly share code, notes, and snippets.

@ahmadazimi
Created January 1, 2019 04:46
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 ahmadazimi/75f873956883c801ee7472a498049877 to your computer and use it in GitHub Desktop.
Save ahmadazimi/75f873956883c801ee7472a498049877 to your computer and use it in GitHub Desktop.
// Initializing map
private void initMap(){
// add Standard_day map to layer BASE_MAP_INDEX
map.getOptions().setZoomRange(new Range(4.5f, 18f));
mapStyle = NeshanMapStyle.STANDARD_DAY;
map.getLayers().insert(BASE_MAP_INDEX, NeshanServices.createBaseMap(NeshanMapStyle.STANDARD_DAY));
// Setting map focal position to a fixed position and setting camera zoom
map.setFocalPointPosition(new LngLat(51.330743, 35.767234),0 );
map.setZoom(14,0);
// adding POI layer to POI_INDEX
map.getLayers().insert(2, NeshanServices.createPOILayer(mapStyle == NeshanMapStyle.STANDARD_NIGHT));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment