Closed YoungFaithful closed 3 years ago
Sorry. I just came up with the solution after thinking about it for the last few hours: I used the same ident="the-source'
Hello @YoungFaithful ,
yes, you are right.
The reason is because you used same ident
on two maps at the same time.
ident
allows to share underlying OpenLayers instance between multiple components, like with draw/modify interactions or synchronized view for multiple maps.
I use vuelayers in nuxt (with the recommended config from the documentation) and the following map components:
They both work fine on separate pages (I assume due to the other
and this for the
This is what happens when first using ![image](https://user-images.githubusercontent.com/10561245/119813440-90260400-bee9-11eb-9bd3-474c1c44122a.png)
window
). However, integrating them on the same single-page leads to unwanted interaction: This is expected forMapCountry
:MapPolygon
:MapCountry
and usingMapPolygon
afterwards:What do I do wrong? I'd highly appreciate your feedback and thank you for the great project!