lolochristen / OpenLayers.Blazor

An Map component for Blazor based on OpenLayers with support for swisstopo swiss maps.
MIT License
37 stars 13 forks source link

Polygon in Features Tag #39

Closed BruderJohn closed 7 months ago

BruderJohn commented 7 months ago

I want to add a Polygon inside the Features Tag. Is this possible?

lolochristen commented 7 months ago

Do you mean adding just adding a polygon as shape/feautre. It is supported via code but not yet as razor component (child of Features). I'll add this to my backlog....

lolochristen commented 7 months ago

Actually, it should work by adding a <Shape ShapeType="ShapeType.Polygon" ..... />

lolochristen commented 7 months ago

I have added Polygon support. It's currently on the main branch. I will release it asap.

BruderJohn commented 7 months ago

Ok👍. Is there any Example on how to add polygons via code?