High Memory Consumption of Custom TiledProvider having GeoBounds set

2 posts, 1 answers
  1. Heinz Meissl
    Heinz Meissl avatar
    2 posts
    Member since:
    Mar 2010

    Posted 10 Nov 2011 Link to this post

    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
  2. Answer
    Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 15 Nov 2011 Link to this post

    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 >>

  3. DevCraft banner
Back to Top