I am working on a project where I have draw a Poligon using
PolygonOptions rectOptions = new PolygonOptions();
rectOptions.addAll(lat_longList);
rectOptions.strokeColor(Color.BLACK);
rectOptions.strokeWidth(5);
rectOptions.fillColor(Color.LTGRAY);
poliPolygon = map.addPolygon(rectOptions);
But now I want to check another lat/lon (line 22.00,88.011) falls in that polygon area or not. if that lat/lon is in that are then load a marker.
Please help on this issue.
You could try using the getPoints() of PolygonOptions. https://developers.google.com/maps/documentation/business/mobile/android/reference/com/google/android/m4b/maps/model/PolygonOptions
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.