Skip to content

Commit

Permalink
Improved Map Performance for OSM basemaps (#1784)
Browse files Browse the repository at this point in the history
This increases the displayed size of the tiles on the screen and therefore reduces the numbers of tiles being requested at any given time to speed up the entire map display as well as increase the size of objects on the screen while maintaining the appropriate zoom level for the tile provider.
  • Loading branch information
Archaejohn authored and lognaturel committed Jan 17, 2018
1 parent 0731eb7 commit 30e9b20
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ protected void onCreate(Bundle savedInstanceState) {

map.setMultiTouchControls(true);
map.setBuiltInZoomControls(true);
map.setTilesScaledToDpi(true);
}

marker = new Marker(map);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ protected void onCreate(Bundle savedInstanceState) {
helper = new MapHelper(this, map, this);
map.setMultiTouchControls(true);
map.setBuiltInZoomControls(true);
map.setTilesScaledToDpi(true);
map.setMapListener(mapViewListener);
overlayPointPathListener();
saveButton.setOnClickListener(new View.OnClickListener() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ protected void onCreate(Bundle savedInstanceState) {

mapView.setMultiTouchControls(true);
mapView.setBuiltInZoomControls(true);
mapView.setTilesScaledToDpi(true);
mapView.getController().setZoom(zoomLevel);

inflater = this.getLayoutInflater();
Expand Down Expand Up @@ -893,4 +894,4 @@ public void setMyLocationOverlay(MyLocationNewOverlay myLocationOverlay) {
public AlertDialog getErrorDialog() {
return errorDialog;
}
}
}

0 comments on commit 30e9b20

Please sign in to comment.