Friday, July 22, 2011 7:53 PM
We currently are using the MapPoint Web Service to retrieve a static map that we include in a user-generated report. I have to upgrade our web application from using that MapPoint Web Service due to it being depricated. I have found, however, that the new REST service does not support more than 18 pushpins when retrieving a static map. The MP web service supported up to 100! I have tried researching the other APIs to see how I might get around this, but I am not having any luck.
In our application, the user searches our data, selects 1-200 locations, and then runs a report. How we use the map is to download the image, with the pushpins, for use in the report (PDF). The current system allowed them to map the first 100.
We have too much data to upload to the datasources (at least we did when it was using the Customer Data Service) and it is added to on a daily basis, so I don't believe we can do that now and then query using the Spatial Data Services...
The SOAP API only allows 10 pushpins to be uploaded, so that is even worse than the REST api...
So as far as I can tell, the only other alternative might be with the AJAX control. After looking through the MSDN pages for this, and reading some blogs, it does appear that I could show as many pushpins as I needed (100 max is fine), but I do not know if there is a way to download that map image to our server for future reference? I just need a simple jpg with more than 10 or 18 pushpins.....
I am going to continue to research and try things with the AJAX api, but if anyone else has any ideas or perhaps has run into this already and has a solution, I would be very grateful for the help!
Monday, July 25, 2011 4:47 PMModeratorAs I'm sure you know the REST service basically consists of creating a URL which makes a request. URL's have limitations on how big they can be. This is a web standards limitation, not a Bing Maps limitation. As such certain restricts had to be made with the REST service to reduce the chance of exceeding this limit, thus the 18 pushpin limitation. I wrote an article a while back based on the SOAP services and how to add an unlimited number of pushpins to the map. The same approach can be used with the rest services. You can find the article here: http://rbrundritt.wordpress.com/2008/10/25/ve-imagery-service-and-custom-icons/
Windows Live Developer MVP - http://rbrundritt.wordpress.com | http://inknowledge.co.uk
- Marked As Answer by Richard_BrundrittMicrosoft Employee, Moderator Tuesday, July 26, 2011 3:26 PM