Add markers only inside polyline

Iā€™m creating an app that uses Google maps. I added a polyline and I want my users to add markers only inside the polyline . Is it possible ? Polyline is created by converting KML coordinates to json string thanks to @Peter tutorial. Any help appreciated :slight_smile:

Never tried that before but i think you should use polygon for this instead of polyline. A polyline is just a line, a polygon is an area.

1 Like

Since in polygon in Kodular we can use min and max values of latitude and longitude I tried to use a mathematical approach and it works. Since I can not create a custom polygon I will try to make more polygons to fit to my polyline :slight_smile:

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.