Closed chrisamow closed 3 years ago
Hello @chrisamow ,
I'm not sure is it support openlayers v5/v6.
In my test demo I can't setup it https://jsfiddle.net/ghettovoice/vsg468od/144/.
I'm actually tried to reproduce their example from here https://github.com/kekscom/osmbuildings/blob/master/dist/index-OpenLayers.html
Frankly speaking I see this tool for the first time, maybe I just missed something...
VueLayers is based on OpenLayers, so if OSMBuildings is not supporting OpenLayers v5/v6 then it is not supported by VueLayers.
As for DOM issues, Vue currently doesn't support something like fully virtual components without any dom representation. So vuelayers supports several use cases to work with vector features:
vl-feature
and vl-geom-*
components. This components like any other Vue components append some html element to the dom (<i>
or <!---->
), because this is required by Vue engine.
So I always recommend use them only for simple cases, like show fpr example show search marker or user geolocation where you need only one feature.vl-layer-vector
and vl-source-vector
bound to DOM elements, features are just an reactive array.Thanks @ghettovoice ! I meant to do a proof of concept on this by now, but it will have to wait until early next year - I'd really like to switch over to vuelayers - it is a more elegant way to do things than many of the options out there. Appreciate the detailed ideas too! I'll close this and reopen if I have a more specific question. Take care.
Hi GhettoVoice - thanks for your work here, it looks great!
Have you seen it work with osmbuildings ? I see that it supports osmlayers, but I've had troubles in the past with libraries that work directly with other libraries that vue is built on top of (e.g. they do a lot of dom manipulation that is not very vue-like and it gets messy quickly.)