Skip to content Skip to sidebar Skip to footer

Draw Polygon Using Onmarkerdrag Google Map V2

I'm trying to draw a free form lines over google map v2, so I'm trying to do this by listening to marker drag. I wrote the following code but it doesn't draw anything @Override pub

Solution 1:

I solved it using polyline instead of polygon

 myMap.addPolyline(new PolylineOptions()
        .addAll(lineCordinates)
        .width(5)
        .color(Color.RED));

Post a Comment for "Draw Polygon Using Onmarkerdrag Google Map V2"