8 Answers, 1 is accepted
Hello Patrick,
May I ask you to provide some more information on the scenario so that I can better understand it? Can you share some sample code? How is a layer selected by the user and how are you setting it in code? If possible, you can send over a sample project demonstrating the scenario, which I can investigate.
Thank you in advance for any help you can provide.
Regards,
Vladimir Stoyanov
Progress Telerik
Vladimir,
Look at the screenshot to see how the user is choosing a layer.
For code selection it's done with the theOpenStreetMapProvider.Layer property.
Hello Patrick,
Thank you for the provided picture.
I tested the described scenario in the Bing and OpenStreetMap Providers example from our demos, however the layer is changed accordingly from the UI. I am attaching a video demonstrating my test (you can drag&drop the video in Internet Explorer in order to watch it). Can you check out the mentioned example and see how it differs from the setup on your end?
Should you need any further assistance, I would ask you to isolate the scenario in a sample project and send it over in a new support ticket (since projects cannot be added to forum posts).
Regards,
Vladimir Stoyanov
Progress Telerik
Hi Vladimir,
I think you forgot your attachement...
[quote]
However the layer is changed accordingly from the UI.
[/quote]
Vladimir,
I don't tell you that the layer doesn't change, but the Layer property of the control doesn't change.
Hello Patrick,
Thank you for the update.
I was able to reproduce the described scenario on my end and I have logged it in our feedback portal where you can track its progress: Map: Layer property of OpenStreetMapProvider is not updated when the layer is changed from the UI. I have also updated your telerik points for bringing this to our attention.
For the time being as a workaround, you can create a custom provider inheriting OpenStreetMapProvider and handle the MapSourceChanged event. In it, you can assign the Layer property depending on the new source.
Regards,
Vladimir Stoyanov
Progress Telerik
Hello Vladimir,
I just see that the problem is the same for the ArcGis map provider.
Hello Patrick,
I have logged this in our backlog as well: Map: Mode property of ArcGisMapProvider is not updated when the mode is changed from the UI and I added some telerik points to your account for sharing this with us.
As a workaround you can use the same approach suggested earlier.
Don't hesitate to contact us again, if you have any other questions or concerns.
Regards,
Vladimir Stoyanov
Progress Telerik