none
PushpinOptions' icon URL, V7 RRS feed

  • Question

  • I can't get to add a custom icon to a Pushpin. I tried

    shape = new MM.Pushpin(new MM.Location(jsStoreData.stores[i].Latitude, jsStoreData.stores[i].Longitude), { text: jsStoreData.stores[i].StoreName, icon: 'http://server/PublishingImages/image.png' });

    and

    shape = new MM.Pushpin(new MM.Location(jsStoreData.stores[i].Latitude, jsStoreData.stores[i].Longitude), { text: jsStoreData.stores[i].StoreName, icon: '/PublishingImages/image.png' });

    and

    shape = new MM.Pushpin(new MM.Location(jsStoreData.stores[i].Latitude, jsStoreData.stores[i].Longitude), { text: jsStoreData.stores[i].StoreName, icon: '.../PublishingImages/image.png' });

    The documentation isn't specific. Can the icon property refer to a URL? Or just a single file name within the same web server path?
    • Moved by Ricky_Brundritt Friday, March 9, 2012 4:58 PM (From:Bing Maps: Map Control and Web services Development)
    Tuesday, April 5, 2011 8:00 PM

Answers