Changing Map Provider at the Runtime

2 posts, 0 answers
  1. Sanjay
    Sanjay avatar
    21 posts
    Member since:
    Jun 2014

    Posted 27 Feb 2015 Link to this post

    Hi There

    I have a scenario where I need to show maps under RadPane , i.e. Bing Tab shows Bing Map, Open Street Tab shows Open Streets and Empty provider Tab shows Shapefile map.Under each RadPane i have individual RadMap for each kind of provider.So my question is,

    Should I use 1 radMap for all providers and when user clicks tabs , i change the map provider at the runtime, OR should i have individual radMaps for each provider under each tab. What are the performance issues associated with each approach.

  2. Petar Mladenov
    Petar Mladenov avatar
    2986 posts

    Posted 03 Mar 2015 Link to this post

    Hi Sanjay,

    Performance should not be much different if we compare changing tabs with RadMaps inside or changing the kind of the Map's provider runtime. However, I think the bigger question is usability - what will clients expect in such application. For example clients may need to pan and zoom in the Bing RadMap , then go to the OpenStreetMap and then return to the BingMap and they may want to have the previous pan and zoom settings preserved. With TabControl / PaneGroup this is simple - just set IsContentPreserved = True.
    With "changing-providers-runtime" approach this would requirement much more code.

    Petar Mladenov

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

Back to Top