This is a migrated thread and some comments may be shown as answers.

OpenStreetMap and the Layer property

8 Answers 50 Views
Map
This is a migrated thread and some comments may be shown as answers.
Patrick
Top achievements
Rank 2
Iron
Iron
Iron
Patrick asked on 15 Nov 2019, 03:50 PM

Hello,

When setting the Layer property by code, it works as expected. But, when a layer is selected by the user, the Layer property doesn't change!

8 Answers, 1 is accepted

Sort by
0
Vladimir Stoyanov
Telerik team
answered on 20 Nov 2019, 12:41 PM

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

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Patrick
Top achievements
Rank 2
Iron
Iron
Iron
answered on 20 Nov 2019, 12:56 PM

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.

0
Vladimir Stoyanov
Telerik team
answered on 21 Nov 2019, 03:09 PM

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

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Patrick
Top achievements
Rank 2
Iron
Iron
Iron
answered on 21 Nov 2019, 03:14 PM

Hi Vladimir,

I think you forgot your attachement...

0
Patrick
Top achievements
Rank 2
Iron
Iron
Iron
answered on 21 Nov 2019, 03:15 PM

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

0
Vladimir Stoyanov
Telerik team
answered on 22 Nov 2019, 12:09 PM

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

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Patrick
Top achievements
Rank 2
Iron
Iron
Iron
answered on 21 Feb 2020, 05:45 AM

Hello Vladimir,

I just see that the problem is the same for the ArcGis map provider.

0
Vladimir Stoyanov
Telerik team
answered on 25 Feb 2020, 05:08 PM

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

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Map
Asked by
Patrick
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Vladimir Stoyanov
Telerik team
Patrick
Top achievements
Rank 2
Iron
Iron
Iron
Share this question
or