ghettovoice / vuelayers

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

Update view.vue #420

Closed qiuzuhui closed 3 years ago

qiuzuhui commented 3 years ago

fix: update center should update visibleExtentDataProj

ghettovoice commented 3 years ago

visibleExtentDataProj and visibleExtentViewProj already updating during any change in the map view, because they are bound with internal rev field. This field is updating on any chage inside ol object instance.

UPD sure but not so often as actual center/zoom changing during view animation. Do you think it should update at the same rate as center/zoom/rotation fields?

qiuzuhui commented 3 years ago

check this to reproduce the issue. moving map update extent, but reset center not. (this demo even not work when moving the map, don't know where is the problem)

ghettovoice commented 3 years ago

Ok, I found the reason. I will merge and release a patch asap. Thanks for report!