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

How to animate movement of object on the map using PointAnimation

1 Answer 122 Views
Map
This is a migrated thread and some comments may be shown as answers.
Sanjay
Top achievements
Rank 1
Sanjay asked on 20 Jan 2015, 06:33 AM
Hi There

My question is based on examples shared here : http://www.telerik.com/forums/location-animation-for-informationlayer-items , answered by Andrey.

Inside method AnimationPointChangedHandler , a new location is created each time and setting it to pushpin. Here i already have a collection of locations, how can i set it to pushpin. The problem is AnimationPointChangedHandler is called each time pushpin point is changed if i have understood it rightly.

So in nutshell , i have a collection of location and i want the pushpin to move from location at index 0 to location at last index of 
collection.
  
Thanks In Anticipation

1 Answer, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 21 Jan 2015, 08:27 AM
Hi Sanjay,

I hope my last reply in the mentioned thread gives you a good starting point. Also you can check our routing demo in which there is an animation. The pushpin moves from point to point and these points are chosen from the User.
private void MapMouseClick(object sender, MapMouseRoutedEventArgs eventArgs)
        {
            this.routePoints.Add(eventArgs.Location);
        }

I think the code of this demo could also be useful for your requirement.

Regards,
Petar Mladenov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Map
Asked by
Sanjay
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Share this question
or