ghettovoice / vuelayers

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

imageloaderror event on vl-source-tile-wms #371

Closed aliciahogue closed 3 years ago

aliciahogue commented 3 years ago

Is this expected to fire on vl-source-tile-wms?

@imageloaderror="handleError"

the event only seems to fire when I subscribe to it manually from the ol $source

** I did try @update:imageloaderror and @change:imageloaderror as well.

ghettovoice commented 3 years ago

vl-source-tile-wms fires tile related events:

imageloaderror is fired by image source like vl-source-image-wms, vl-source-image-static and so on. Image source fires those events:

This is true for vuelayers v0.12.x. Those events are similar to OpenLayers events

aliciahogue commented 3 years ago

oh my.. hahaha. When I referenced it manaually I was using tileloaderror

this.$refs.mapSource.$source.once('tileloaderror', this.handleError);

but on the component must have been trying to use imageloaderror. Thank you!!!