This is a migrated thread and some comments may be shown as answers.

don't load superior levels

1 Answer 62 Views
Map
This is a migrated thread and some comments may be shown as answers.
Kineas
Top achievements
Rank 1
Kineas asked on 01 Mar 2013, 01:32 PM
Hello,

I have a question. I have implemented a TileProvider to bring tiles from a WMS.

Problem is the tiles load very slow on a slow connection because telerik maps loads the superior levels of tiles too. How can we stop that behaviour?

Attached you have my examples of what i mean.



1 Answer, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 04 Mar 2013, 11:35 AM
Hello Kineas,

The RadMap shows map tiles using the standard Silverlight MultiScaleImage control. This way of loading tiles is the standard behavior of that control. And unfortunately we can't change the order of requesting tiles using the TiledMapSource.GetTile method.
There is one way to show tiles for the current zoom level only. You can modify your custom provider for returning correct URIs only for current zoom level of RadMap. In other case it should return null. Also when the zoom level is changed then you should invalidate "null" tiles which were returned for this level from another levels using the MultiScaleTileSource.InvalidateTileLayer method. You can handle the RadMap.ZoomChanged event within implementation of custom TiledMapSource for this purpose.
I have attached a sample solution which implement this functionality for OpenStreet custom provider.
I hope it helps.

Kind regards,
Andrey Murzov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
Map
Asked by
Kineas
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Share this question
or