New to RadMap and need some help.

2 posts, 0 answers
  1. David Kucharski
    David Kucharski avatar
    50 posts
    Member since:
    Feb 2010

    Posted 06 Jul 2011 Link to this post

    Currently we are using another provider for our Maps. This provider allows us to combine 'shape' files into 1 file and we can tell, inside that file when and what layers are to be shown from an extent perspective. What we can also do is pull out the list of all layers inside this file to give the user control over what they want to see and not. Again, all of the layers, about 30, reside in 1 file. Each layer has a data source for a table in SQL Server. This file is consumed by a service. We call this service to be the Base Map and we gather the layer names out of the service to show the user a list box of what layers are within the Base Map. Upon a layer turning on because of the extent change, the user will be able to hide this layer themselves if they deem necessary.

    Looking at the Telerik RadMap control, is something like this possible. It seems to me that if I am not using the Bing or OpenStreet providers then I would have to have a RadMap with 30 physical shape files associated to it instead of 1 service. Then I would need to create a list box with 30 entries that are associated to the 30 shape files.

    Even if I was using the Bing or OpenStreet providers and the user wants to turn off a certain layer that they are supplying how is that done?

    I thank you for you time and response(s).
  2. Andrey
    Andrey avatar
    1681 posts

    Posted 08 Jul 2011 Link to this post

    Hi David Kurcharski,

    There are few ways to do it. For example:

    1. When customer turns on/off a layer you remove all items from the information layer (use RemoveAll method on items collection) and then add items from the selected shape files.

    2. The RadMap control supports the usage of multiple information layers. So you can load every shape file to a separate information layer and then turn on/of the corresponding layers when user selects a shape file.

    Best wishes,
    Andrey Murzov
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Back to Top