Mappoint Web Service Upgrade - Custom Icons RRS feed

  • Question

  • I have an application currently using the Mappoint Web Service that uses custom icons for the pushpins.  This application generates static maps which I want to continue (therefore, Silverlight and Ajax controls are not viable).  My application makes use of the Pushpin.IconDataSource to point to the pre-uploaded icons.  Is there a way to reference the custom icon data source in the Bing Maps REST or SOAP APIs?  For instance, with the iconStyle parameter in REST or is there a way to point to an external source icon?  This is important to the proper map rendering that takes place in these static maps.
    Sunday, April 17, 2011 1:20 PM


  • I don't believe that you can render external custom pushpin icons on a map requested from the Bing Maps imagery service. You can, however, change the pushpin style used to one of 37 inbuilt styles, as shown at : http://msdn.microsoft.com/en-us/library/ff701719.aspx (This is for REST, but the same list is available for SOAP - http://msdn.microsoft.com/en-us/library/cc980903.aspx)

    If you want to render custom pushpins on the map image, you could do so using some server-side  processing on the image tile received from Bing Maps before sending it back to the client (using one of the .NET graphics classes, or the PHP GD image library, for example)

    twitter: @alastaira blog: http://alastaira.wordpress.com/
    • Marked as answer by Pete Loveall Sunday, May 22, 2011 11:40 PM
    Sunday, April 17, 2011 2:13 PM