ThinkGeo.com    |     Documentation    |     Premium Support

Render from the cache only?

Hi
I’m trying to implement an offline mode using “OpenStreetMapOverlay” (my tile server) and I’d assumed that setting the “IsCacheOnly” property would stop it issuing requests to the server. It does not. Tried with 13.1.2, and 14.4.1.

I also tried suppressing the requests themselves by setting “Cancel” on the relevant “SendingxxxRequest” event. This appears to work in 14.x but not in 13.x - as soon as an area without a cached tile becomes visible XyzTileLayer throws as it dereferences a null webResponse object.

I’d rather not bump to 14 - does anyone know how to only use the cached tiles?

Cheers

Hi Kev,

We verified “IsCacheOnly” doesn’t work in the latest v14. We will fix it in the latest version.

We’ve made many improvements in web-based layers in v14, the biggest one is fetching the tiles in an async way which makes the map more responsive. We recommended everyone to upgrade to v14 if possible. Are you sure you don’t want to upgrade? there might be some API changes (sync -> async) but you will find it worth it.

If you want to stay with v13.x, do you want to stay specifically with v13.1.2? We can check if anyway we can do to work around the issue in this version.

Thanks,
Ben

Thanks Ben,

I did jump to v14 in the end as it was the only way to get my “fix” working.

Thanks

Thanks Kev, v14 is the recommended way.

We will review IsCacheOnly property and make sure it works on v14.

Thanks,
Ben