ghettovoice / vuelayers

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

Map Bug #366

Closed WEBcdh closed 3 years ago

WEBcdh commented 3 years ago

refresh() Returns: {Promise} Updates map size and re-renders map.

render() Returns: {Promise} Request a map rendering (at the next animation frame).

These two functional modules seem to be imperfect, and there is no change before and after use. Using native openlayers will work

ghettovoice commented 3 years ago

Hello @webcdh , do you have code sample? And which vuelayers version?

Actually render is a wrapper around ol/Map#render() method. And refresh a wrapper around render + updateSize methods. So it is a bit strange that it is not work while native openlayers call works.