Bing map - APNG as marker?

Ram SH 1 Reputation point
2021-01-12T09:41:30.073+00:00

Hello,

our project uses Google maps and we have decided to migrate to Bing maps, we are using all sorts of animation markers on the map, for example:

55549-blue-map-marker-static.png

however, when we tried to show them on the Bing map it doesn't show the image at all, is it possible that Bing map doesn't support APNG format?
Thank you all in advance,
Ram

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

1 answer

Sort by: Most helpful
  1. rbrundritt 16,456 Reputation points Microsoft Employee
    2021-01-13T01:03:29.95+00:00

    Bing Maps renders all shapes on an HTML 5 canvas which ends up flattening images and disables any animation they might have built in. In this case its likely only rendering the first frame of your animated image which may be the reason why it can't be seen. There is a way to add support for HTML based markers in Bing Maps which would be able to render these images as shown here: https://bingmapsv8samples.azurewebsites.net/#Html%20Pushpin%20Layer but requires a decent amount of external code to be added to your project.

    Another option, if you are still early in your development is to consider Azure Maps. Azure Maps supports HTML based markers natively, so using your animated image would be fairly easy. Here are a couple of examples:

    https://azuremapscodesamples.azurewebsites.net/?sample=Draggable%20HTML%20Marker

    https://azuremapscodesamples.azurewebsites.net/?sample=CSS%20Styled%20HTML%20Marker