Created
January 1, 2019 04:46
-
-
Save ahmadazimi/75f873956883c801ee7472a498049877 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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