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

How to add/remove shapes dynamic?

2 Answers 141 Views
Map
This is a migrated thread and some comments may be shown as answers.
Evgeny Vdovin
Top achievements
Rank 1
Evgeny Vdovin asked on 11 Aug 2014, 04:52 PM
Hi there,

I wonder how to add/remove shapes after the map is rendered. All of your demos for shapes layer are adding shapes during map initialize.

Thanks!

2 Answers, 1 is accepted

Sort by
0
Evgeny Vdovin
Top achievements
Rank 1
answered on 11 Aug 2014, 06:46 PM
Never mind. Found the solution from a previous post.

By using a kendo.ui.DataSource as the shape layer's dataSource, then handle this datasource collection to add/remove shapes.

Thanks!
0
Evgeny Vdovin
Top achievements
Rank 1
answered on 11 Aug 2014, 06:47 PM
Sorry, should be kendo.data.DataSource.
Tags
Map
Asked by
Evgeny Vdovin
Top achievements
Rank 1
Answers by
Evgeny Vdovin
Top achievements
Rank 1
Share this question
or