com.amap.api.maps.model.LatLngBounds.Builder Java Examples
The following examples show how to use
com.amap.api.maps.model.LatLngBounds.Builder.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: TraceOverlay.java From TraceByAmap with MIT License | 5 votes |
public void setProperCamera(List<LatLng> lists) { Builder builder = LatLngBounds.builder(); if (lists == null || lists.size() == 0) { return; } for (LatLng latlng : lists) { builder.include(latlng); } try { LatLngBounds bounds = builder.build(); mAMap.moveCamera(CameraUpdateFactory.newLatLngBounds(bounds, 20)); } catch (IllegalStateException e) { e.printStackTrace(); } }
Example #2
Source File: TraceOverlay.java From BmapLite with GNU General Public License v3.0 | 5 votes |
public void setProperCamera(List<LatLng> lists) { Builder builder = LatLngBounds.builder(); if (lists == null || lists.size() == 0) { return; } for (LatLng latlng : lists) { builder.include(latlng); } try { LatLngBounds bounds = builder.build(); mAMap.moveCamera(CameraUpdateFactory.newLatLngBounds(bounds, 20)); } catch (IllegalStateException e) { e.printStackTrace(); } }
Example #3
Source File: TraceOverlay.java From BmapLite with Apache License 2.0 | 5 votes |
public void setProperCamera(List<LatLng> lists) { Builder builder = LatLngBounds.builder(); if (lists == null || lists.size() == 0) { return; } for (LatLng latlng : lists) { builder.include(latlng); } try { LatLngBounds bounds = builder.build(); mAMap.moveCamera(CameraUpdateFactory.newLatLngBounds(bounds, 20)); } catch (IllegalStateException e) { e.printStackTrace(); } }