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

Dynamicaly added interactable elements

1 Answer 17 Views
Map
This is a migrated thread and some comments may be shown as answers.
Savva
Top achievements
Rank 1
Savva asked on 08 Dec 2018, 12:27 PM

Hello!

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.

1 Answer, 1 is accepted

Sort by
0
Vladimir Stoyanov
Telerik team
answered on 12 Dec 2018, 02:56 PM
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.

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
Savva
Top achievements
Rank 1
Answers by
Vladimir Stoyanov
Telerik team
Share this question
or