This is a migrated thread and some comments may be shown as answers.
dragging objects
1 Answer 31 Views
Map
This is a migrated thread and some comments may be shown as answers.
Ulrich Fiege
Top achievements
Rank 1
Ulrich Fiege asked on 25 May 2010, 08:34 AM
Hi,

i want to drag mapobjects, like mappolygon and mappinpoint, over the map.
I've loaded the mapobjects into an informationlayer. I want to start the drag-operation
with mousebuttondown, dragging the objects while holding button down and drop the
objects at the new position with mousebuttonup. If i handle these events, the map
will be panned, too. How can i avoid this behaviour?
I tried to set e.handed=true in mousebuttondown, but the objects won´t be refreshed.

greetings ...

1 Answer, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 27 May 2010, 02:40 PM
Hello Ulrich,

There is a problem with refreshing some MapShape elements on the map when its location property is changed. It is required to call informationLayer.InvalidateArrange method immediately or remove/add object in information layer.
I have attached a sample solution that demonstrates dragging implementation for MapPinPoint and MapPolygon objects.

Best wishes,
Andrey Murzov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Map
Asked by
Ulrich Fiege
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Share this question
or