ghettovoice / vuelayers

Web map Vue components with the power of OpenLayers
https://vuelayers.github.io/
MIT License
680 stars 227 forks source link

Modification after polygon selection? #326

Closed kireevRoman closed 4 years ago

kireevRoman commented 4 years ago

Hi! If there are a lot of polygons on the map. then how can I do it so that when using vl-interaction-modify, only the selected polygon can be changed. Like in this example https://openlayers.org/en/latest/examples/modify-features.html. Help please.

ghettovoice commented 4 years ago

Hello @kireevRoman , yes you can. Just provide vl-interaction-modify with source pointed to vl-interaction-select. Here is a demo https://jsfiddle.net/ghettovoice/mhL08qya/

kireevRoman commented 4 years ago

Thanks! You helped me a lot