Change Color of the Pushpin RRS feed

  • Question

  • Hello Expert , I am using BingMap Ajax Control  V7.How to change the Color of the default Pushpin. The default PushPin Color is Orange. i want some different color. I am doing as below but it is changing the text of the Pushpin that i dont need.

    var pushpin = new Microsoft.Maps.Pushpin(location, { typeName: 'customPushpinLabel', text: '1' });
                 $('.customPushpinLabel div').css({color: 'blue' });

    Please suggest.

    Thank you


    Tuesday, February 5, 2013 3:33 PM


  • The Bing Maps JavaScript control uses standard HTML and JavaScript. To change the color of the pushpin you need to create a new pushpin image and set that as the icon property of the pushpin.

    Tuesday, February 5, 2013 4:34 PM