I am having the exact same problem and i will provide more information. I ported the RouteMap.cs asp.net sample from the quickstarts in the MapPoint SDK. Everything works find and it uses the web service and returns route information (i can print the list of directions between two points). What happens is the RenderMap() call does in fact return a MapImage[] object (in my case always with one item in the array).
This one item contains everything needed to render the map With the exception of ANY MIME DATA OR a URL (depending on the return type i have selected). I have ran this as well on a desktop and it works, it just seems that the RenderMap function will not return either a Url or an actual image.
I am new to this but am fairly experienced with C# programming and am totally lost. I keep going over my code trying to find some issue with the MapSpecification object im passing, but nothign is wrong.
Here is some information about the object im passing and the object im getting:
please not this is a small portion of the code, the route has already been calculated and the map address is assigned prior to this.
Code:
//Set up the map options
MapOptions myMapOptions = new MapOptions();
myMapOptions.ReturnType = MapReturnType.ReturnImage;
myMapOptions.Format = new ImageFormat();
myMapOptions.Format.Height = 500;
myMapOptions.Format.Width = 500;
//Set up the specification object
ViewByBoundingRectangle[] myMapViews = new ViewByBoundingRectangle[1];
myMapViews[0] = myRoute.Itinerary.View.ByBoundingRectangle;
MapSpecification mapSpec = new MapSpecification();
mapSpec.Views = myMapViews;
mapSpec.Options = myMapOptions;
mapSpec.DataSourceName = "MapPoint.NA";
mapSpec.Pushpins = myPushPins;
mapSpec.Route = myRoute;
That sets up the options and specification object
Here is the only Item in the Map Array that is returned, as you can see there is 3 hotspots, but no MimeData (as there should be because the return type is image):
Any Ideas?!?!?
thanks
System.Object {mcMapper.net.mappoint.MapImage} System.Object
+ HotAreas {Length=3}
- [0] {mcMapper.net.mappoint.HotArea} mcMapper.net.mappoint.HotArea
System.Object {mcMapper.net.mappoint.HotArea} System.Object
IconRectangle <undefined value> mcMapper.net.mappoint.PixelRectangle
LabelRectangle <undefined value> mcMapper.net.mappoint.PixelRectangle
PinID null string
- [1] {mcMapper.net.mappoint.HotArea} mcMapper.net.mappoint.HotArea
System.Object {mcMapper.net.mappoint.HotArea} System.Object
IconRectangle <undefined value> mcMapper.net.mappoint.PixelRectangle
LabelRectangle <undefined value> mcMapper.net.mappoint.PixelRectangle
PinID null string
- [2] {mcMapper.net.mappoint.HotArea} mcMapper.net.mappoint.HotArea
System.Object {mcMapper.net.mappoint.HotArea} System.Object
IconRectangle <undefined value> mcMapper.net.mappoint.PixelRectangle
LabelRectangle <undefined value> mcMapper.net.mappoint.PixelRectangle
PinID null string
mcMapper.net.mappoint.HotArea[]
MimeData <undefined value> mcMapper.net.mappoint.MimeData
Url null string
View <undefined value> mcMapper.net.mappoint.MapViewRepresentations