OpenStreetMap and the Layer property

7 posts, 0 answers
  1. Patrick
    Patrick avatar
    447 posts
    Member since:
    Aug 2012

    Posted 15 Nov Link to this post

    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!

  2. Vladimir Stoyanov
    Admin
    Vladimir Stoyanov avatar
    503 posts

    Posted 20 Nov Link to this post

    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.
  3. Patrick
    Patrick avatar
    447 posts
    Member since:
    Aug 2012

    Posted 20 Nov in reply to Vladimir Stoyanov Link to this post

    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.

  4. Vladimir Stoyanov
    Admin
    Vladimir Stoyanov avatar
    503 posts

    Posted 21 Nov Link to this post

    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.
  5. Patrick
    Patrick avatar
    447 posts
    Member since:
    Aug 2012

    Posted 21 Nov in reply to Vladimir Stoyanov Link to this post

    Hi Vladimir,

    I think you forgot your attachement...

  6. Patrick
    Patrick avatar
    447 posts
    Member since:
    Aug 2012

    Posted 21 Nov in reply to Vladimir Stoyanov Link to this post

    However the layer is changed accordingly from the UI.

    Vladimir,

    I don't tell you that the layer doesn't change, but the Layer property of the control doesn't change.

  7. Vladimir Stoyanov
    Admin
    Vladimir Stoyanov avatar
    503 posts

    Posted 22 Nov Link to this post

    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.
Back to Top