Java Code Examples for com.amap.api.maps.AMap#addPolyline()

The following examples show how to use com.amap.api.maps.AMap#addPolyline() . 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: ListViewAdapter.java    From TraceByAmap with MIT License 4 votes vote down vote up
private void addPolyline(AMap map, List<LatLng> polylinePoints) {
    map.addPolyline((new PolylineOptions())
            .addAll(polylinePoints)
            .width(10));
    map.moveCamera(CameraUpdateFactory.newLatLngZoom(polylinePoints.get(0), 15));
}
 
Example 2
Source File: MyRecycleViewAdapter.java    From TraceByAmap with MIT License 4 votes vote down vote up
private void addPolyline(AMap map, List<LatLng> polylinePoints) {
    map.addPolyline((new PolylineOptions())
            .addAll(polylinePoints)
            .width(10));
    map.moveCamera(CameraUpdateFactory.newLatLngZoom(polylinePoints.get(0), 15));
}
 
Example 3
Source File: TraceOverlay.java    From TraceByAmap with MIT License 4 votes vote down vote up
public TraceOverlay(AMap amap, List<LatLng> lines) {
	this.mAMap = amap;
	options();
	mOption.addAll(lines);
	mPolyline = amap.addPolyline(mOption);
}
 
Example 4
Source File: TraceOverlay.java    From BmapLite with GNU General Public License v3.0 4 votes vote down vote up
public TraceOverlay(AMap amap, List<LatLng> lines) {
	this.mAMap = amap;
	options();
	mOption.addAll(lines);
	mPolyline = amap.addPolyline(mOption);
}
 
Example 5
Source File: TraceOverlay.java    From BmapLite with Apache License 2.0 4 votes vote down vote up
public TraceOverlay(AMap amap, List<LatLng> lines) {
	this.mAMap = amap;
	options();
	mOption.addAll(lines);
	mPolyline = amap.addPolyline(mOption);
}
 
Example 6
Source File: AMapPolyline.java    From react-native-amap with MIT License 4 votes vote down vote up
@Override
public void addToMap(AMap map) {
    polyline = map.addPolyline(getPolylineOptions());
    //polyline.setClickable(true);
}