Closed Black-Horse closed 4 years ago
Hello,
Maybe only: import { VectorContext } from 'ol/render'
?
I looked in the ol/render folder and there is no getVectorContext.
Thanks for your help! Unfortunately, it also doesn't find it: VectorContext not found in 'ol/render'
Ok, I'll ask even though you may have already done that, but did you install the "ol" package? :)
You were right. yarn add ol
helped. Now it finds getVectorContext. However, after installing this, a simple yarn remove ol
it draws again. Do you have another hint?
Hi there! @Black-Horse I guess you use vuelayers v0.11.x and install latest ol v6.x.x version. Current vuelayers v0.11 works only with ol v5. Now you have to ways:
node_modules/ol
and node_modules/vuelayers
and re-install with ol v5. Then use https://openlayers.org/en/v5.3.0/examples/feature-animation.html as example. And also transformed to vuelayers example from demo https://github.com/ghettovoice/vuelayers-demo/blob/master/src/App.vue#L343npm i vuelayers@next
. And try to migrate ol animation example for yourself. This shouldn't be very hard, because vuelayers v0.12 have same events addfeature
Thank you so much for your help! I chose 1. and adapted according to the example! It works nicely! 👍
Hi!
I am trying to recreate the custom animation example: https://openlayers.org/en/master/examples/feature-animation.html
However, on
import { getVectorContext } from 'ol/render'
I getgetVectorContext not found in 'ol/render'
.Any hint on what I am doing wrong? Cheers!