Bing Maps Bug - Pushpin colors stopped working recently.

John Anastasio 25 Reputation points
2023-12-13T18:32:35.3533333+00:00

The bing maps api pushpin colors stopped working recently. Doesn't matter how you try to set it. Quick example below.

Thanks,

John

var pushpin = new Microsoft.Maps.Pushpin(map.getCenter(), { color: "red" });     
map.entities.push(pushpin);

https://www.bingmapsportal.com/

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

Accepted answer
  1. LeelaRajeshSayana-MSFT 17,771 Reputation points Moderator
    2023-12-13T21:49:11.3566667+00:00

    Hi @John Anastasio I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to accept the answer .

    Issue:

    The bing maps api pushpin colors stopped working

    Solution:

    The older version of the JavaScript no longer works and paths/reference were changed and or removed. You will need to download the latest if you are hosting the source locally because of the lack of integrity tags with the CDN.

    If I missed anything please let me know and I'd be happy to add it to my answer, or feel free to comment below with any additional information.

    I hope this helps!

    If you have any other questions, please let me know. Thank you again for your time and patience throughout this issue.

    1 person found this answer helpful.
    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. John Anastasio 25 Reputation points
    2023-12-13T21:22:39.53+00:00

    Looks like the older version of this javascript no longer works and paths/reference were changed and or removed. For other folks, you will need to download the latest if you are hosting the source locally because of the lack of integrity tags with the cdn.

    https://www.bing.com/maps/sdk/mapcontrol?callback=GetMap

    Thanks,

    John

    1 person found this answer helpful.
    0 comments No comments

  2. rbrundritt 20,931 Reputation points Microsoft Employee Moderator
    2023-12-13T18:48:00.4033333+00:00

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.