This is a migrated thread and some comments may be shown as answers.
New to RadMap and need some help.
1 Answer 30 Views
Map
This is a migrated thread and some comments may be shown as answers.
David Kucharski
Top achievements
Rank 1
David Kucharski asked on 06 Jul 2011, 05:33 PM
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).

1 Answer, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 08 Jul 2011, 11:21 AM
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!

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