草庐IT

latLngList

全部标签

android - Google Maps Android API v2 中折线的触摸检测

我想实现一个touchListener在使用GoogleMapsV2AndroidAPI显示的折线上。缩放级别:CameraUpdatecameraUpdate=CameraUpdateFactory.newLatLngZoom(lat_Lng,5);我尝试了以下折线触摸代码:booleanonpoly=false;for(Polylinepolyline:mPolylines){for(LatLngpolyCoords:polyline.getPoints()){float[]results=newfloat[1];Location.distanceBetween(points.la