Dynamicaly added interactable elements

2 posts, 0 answers
  1. Savva
    Savva avatar
    5 posts
    Member since:
    Nov 2018

    Posted 08 Dec 2018 Link to this post


    We are developing a n app with a Map controll element. And for the app purposes, we need some interactable and dynamicly added.

    For example, by click on the map, dricen by OpenStreetMap provider, you add a point (e.g. Ellipse) on the map. Then, you can click on that point and select it for altering (changing location or color, for instance) or delitin the point.

    Bu the problem is, that adding elemnts by clicikg on the map during the rubtime is provided by Visualization layer. And that layer operates with MapShapeData, whic can not be interactive (clickable). And clicakble elemnts are provided by the Information layer, and that layer loaded only once, during the app loading.

    So here is the question: is it posible to operate with clickable items with the Visualization Layer, or is it possible to mannualy "reload" the information layer to update is Items collection, displayed on the screen? Or, maybe, there is another way to solve the problem?


    Thank ypu and best regards,

    S. Kozlovskiy.

  2. Vladimir Stoyanov
    Vladimir Stoyanov avatar
    444 posts

    Posted 12 Dec 2018 Link to this post

    Hello Savva,

    You should be able to achieve what you are going for by using the VisualizationLayer of the RadMap. You can add new items during runtime by adding objects to its ItemsSource. As clicking on the map items, you can check out the Items Selection article in our documentation as well as the VisualizationLayerItemsSelection SDK example.

    Hope you find this helpful.

    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