Creating path animations in bing map v8

Balasaheb Molawade 136 Reputation points
2021-01-29T14:10:45.947+00:00

Hi,

We want to show route with moving pushpin on route as shown below screenshot and mention in below link.

61819-untitled.png

We found the code of Bing map v7 code in below link. How to achieve similar in Bing map v8 mention in section "Creating path animations" in below link.

https://blogs.bing.com/maps/2014/08/07/bring-your-maps-to-life-creating-animations-with-bing-maps-javascript/

Is anyone have solution for it.

Thanks!

Balasaheb

Azure Maps
Azure Maps
An Azure service that provides geospatial APIs to add maps, spatial analytics, and mobility solutions to apps.
604 questions
{count} votes

1 answer

Sort by: Most helpful
  1. rbrundritt 15,546 Reputation points Microsoft Employee
    2021-02-02T17:53:27.81+00:00

    That sample wasn't ported to Bing Maps V8 due to performance issues. The v8 control makes use of the HTML5 canvas so that it can render larger datasets, however it doesn't support frequent updates that are needed to perform animations very well. One possible solution is to make use of the custom HTML pushpin layer sample: https://bingmapsv8samples.azurewebsites.net/#Html%20Pushpin%20Layer Animating an HTML element will animate much smoother.

    Alternatively, if you are early in your development and open to using other mapping platforms, Azure Maps uses WebGL for rendering and has good support for animations. Here is some samples: https://azuremapscodesamples.azurewebsites.net There is an animation library for Azure Maps available here: https://github.com/Azure-Samples/azure-maps-animations

    1 person found this answer helpful.
    0 comments No comments