none
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' });
                
                 map.entities.push(pushpin);
                 $('.customPushpinLabel div').css({color: 'blue' });

    Please suggest.

    Thank you


    saroj



    Tuesday, February 5, 2013 3:33 PM

Answers

  • 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.

    http://rbrundritt.wordpress.com

    Tuesday, February 5, 2013 4:34 PM