Martin V

Results 44 comments of Martin V

You can test this by: * calling https://www.maptiler.com/maps/#basic//vector/6.62/7.745/45.995 in a browser * copy a tile request using dev tools/network and insert the x/y/z placeholders * use this URL in the...

For static images that might be ok. However, we need to support dynamic environments and (relatively) unskilled administrators: * you want another icon for your POI - or it should...

@ahocevar: add the style modification hook: where (which class) would this be?

Yes, as described above, with mapbox we used addImage, but also the "styleimagemissing" event: * addImage to add images (we didn't use sprites) * respond to "styleimagemissing" events and load/create...

It seems I somehow missed your last comment and thought this PR was dead. We definitely need this functionality and are currently using a patched ol-mapbox-style. I will now continue...

@ahocevar: Included your suggestion to automatically trigger layer change, if image not yet loaded. Also added getImage to apply/applyStyle options. Tests added. Layer in function is still needed to notify...

Added string parameter and improved documentation. We don't (and didn't) the load event, this should be handled by the Icon/IcomImage style.

This describes an improved handling of tile responses and caching. #1551 describes a specific problem that *might* be solved by the improved 204-response handling of this issue.

I got the fiddle working and added another screenshot from it, where the differences are in the same view.

It's much better know. There might be still a problem with tilting and/or distance of the tile: ![image](https://user-images.githubusercontent.com/59872815/191498019-ebbb0970-2381-4b65-ad18-253cff4816d7.png) When tilting a bit more the far tiles get darker: ![image](https://user-images.githubusercontent.com/59872815/191498199-b1b5248c-ba28-4a56-9c7b-69298548d668.png)