[V2X]道路施工事件(AI云)去掉围栏
This commit is contained in:
@@ -92,33 +92,33 @@ public class V2XRoadEventMarker implements IV2XMarker<V2XRoadEventEntity> {
|
||||
}
|
||||
}
|
||||
|
||||
if (polygons.size() > 1) {
|
||||
if (overlayManager == null) {
|
||||
overlayManager = MogoOverlayManager.getInstance();
|
||||
}
|
||||
MogoPolylineOptions options = new MogoPolylineOptions();
|
||||
List<Integer> colors = new ArrayList<>();
|
||||
colors.add(Color.argb(204, 237, 172, 21));
|
||||
colors.add(Color.argb(0, 255, 255, 255));
|
||||
options.colorValues(colors);
|
||||
List<MogoLatLng> points = new ArrayList<>();
|
||||
for (int i = 0; i < polygons.size(); i++) {
|
||||
Pair<Double, Double> p = polygons.get(i);
|
||||
points.add(new MogoLatLng(p.second, p.first));
|
||||
}
|
||||
if (points.size() > 2) {
|
||||
points.add(points.get(0));
|
||||
}
|
||||
options.points(points);
|
||||
options.useGradient(true);
|
||||
options.useFacade(true);
|
||||
options.setGps(false);
|
||||
options.width(5f);
|
||||
options.zIndex(75000f);
|
||||
options.maxIndex(800000f);
|
||||
polyline = overlayManager.addPolyline(options);
|
||||
polyline.setVisible(true);
|
||||
}
|
||||
// if (polygons.size() > 1) {
|
||||
// if (overlayManager == null) {
|
||||
// overlayManager = MogoOverlayManager.getInstance();
|
||||
// }
|
||||
// MogoPolylineOptions options = new MogoPolylineOptions();
|
||||
// List<Integer> colors = new ArrayList<>();
|
||||
// colors.add(Color.argb(204, 237, 172, 21));
|
||||
// colors.add(Color.argb(0, 255, 255, 255));
|
||||
// options.colorValues(colors);
|
||||
// List<MogoLatLng> points = new ArrayList<>();
|
||||
// for (int i = 0; i < polygons.size(); i++) {
|
||||
// Pair<Double, Double> p = polygons.get(i);
|
||||
// points.add(new MogoLatLng(p.second, p.first));
|
||||
// }
|
||||
// if (points.size() > 2) {
|
||||
// points.add(points.get(0));
|
||||
// }
|
||||
// options.points(points);
|
||||
// options.useGradient(true);
|
||||
// options.useFacade(true);
|
||||
// options.setGps(false);
|
||||
// options.width(5f);
|
||||
// options.zIndex(75000f);
|
||||
// options.maxIndex(800000f);
|
||||
// polyline = overlayManager.addPolyline(options);
|
||||
// polyline.setVisible(true);
|
||||
// }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user