dragging objects

2 posts, 0 answers
  1. Ulrich Fiege
    Ulrich  Fiege avatar
    62 posts
    Member since:
    Sep 2005

    Posted 25 May 2010 Link to this post


    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 ...
  2. Andrey
    Andrey avatar
    1681 posts

    Posted 27 May 2010 Link to this post

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