Plot a polygon on web world map

3 views (last 30 days)
Ali
Ali on 15 May 2023
Answered: Adam Danz on 15 May 2023
Hello dear friends
Is there a way to plot a free hand polygon using drawpolygon function on web world map (webmap)?
Thanks in advance;
Best regards

Answers (1)

Adam Danz
Adam Danz on 15 May 2023
> Is there a way to plot a free hand polygon using drawpolygon function on web world map (webmap)?
Polygon objects created in drawpolygon can only drawn on axes but webmap does not contain axes. You can use wmpolygon if you know the coordinates but this does not offer interactive drawing. See also https://www.mathworks.com/help/map/adding-overlay-layers-to-a-web-map.html

Products


Release

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!