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

High Memory Consumption of Custom TiledProvider having GeoBounds set

1 Answer 42 Views
Map
This is a migrated thread and some comments may be shown as answers.
Heinz Meissl
Top achievements
Rank 1
Heinz Meissl asked on 10 Nov 2011, 01:48 PM
We implemented a custom TiledProvider to access a private OSM tile server with your 2011 Q2 release - we used your example code for that.
The only addition is that we set the GeoBounds on our provider before we pass it to the RadMap instance.

VDM_OSM_Provider provider = new VDM_OSM_Provider(tileServer);
provider.GeoBoundsNW = new Location(53, 8);
provider.GeoBoundsSE = new Location(50, 12);
this.bgMap.Provider = provider;

When we load this silverlight application into a Browser (IE or Firefox) the memory consumption of the plugin container process increases with every zoom step. When reaching zoom level 14 we reach 1.7GB and the CPU usage goes up to nearly 100%. We also observe many more calls to TiledMapSource.GetTile() then would actually be necessary.

We tracked it down to the GeoBounds of the provider: when not setting the GeoBounds, everything performs normal.
Is this a bug or are we doing something wrong?

Thanks in advance,
Heinz

1 Answer, 1 is accepted

Sort by
0
Accepted
Andrey
Telerik team
answered on 15 Nov 2011, 11:22 AM
Hello Heinz Meissl,

It is an expected behavior. Primarily the geobounds feature is designed for the custom image map providers. When the tiled map provider uses geobounds then for high zoom levels it could have a huge image size which will require downloading a lots of tiles. I would recommend to use geobounds for tiled map providers for small regions and with restriction of the zoom level only.

Kind regards,
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

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