Hi, I am trying to make a bing map background for my app. I found the sample only for google. The sample sometimes returns 403 error (why is that?), so I decided to try bing maps but I dont get any map at all. Where could be the problem?
//On form load winformsMap1.MapUnit = GeographyUnit.Meter; winformsMap1.BackgroundOverlay.BackgroundBrush = new GeoSolidBrush(GeoColor.FromArgb(255, 198, 255, 255)); BingMapsOverlay bingOverlay = new BingMapsOverlay(); bingOverlay.MapType = BingMapsMapType.Birdseye; winformsMap1.Overlays.Add(bingOverlay); winformsMap1.ZoomLevelSet = new BingMapsZoomLevelSet(); winformsMap1.Refresh();
For the google problem, I also need ask do you have a valid application id for that, otherwise, it will have a 1000 limited every day, if you have the id, could you please debug your web browser and see what's the request and response when the 403 error happen?
I have tested your code in Desktop Edition, looks like everything is right, your pointshape shows in the right position, what's the problem have you met?
Strange, I copied and pasted (added ID) that code too and this is what I get:
Maybe I use old version of map suite? but I started using it before one month, so it shouldnt be old I guess. Runtime version v2.0.50727 Version 5.5.0.0.
You can ge the latest version from helpdesk.thinkgeo.com —> My Product Downloads—> Daily Development Builds, and you can get 5.5.157.0 or later to test.
If you still meet problem after refer the new dlls, could you please provide your sample to me?
Thanks Gary, 5.5.157.0 fixed both my problems. But here is a new that I discovered. I have last zoom problem when I zoom out to much and bing map disappear. It happens on last zoom out when I zoom out with mouse scroll wheel. Maybe I can just remove one last zoom point?
I'm glad the pointshape is working now, for your second question, one customer mentioned this before, his problem is when he zoom in too far map become blank, your problem is when you zoom out too far, map become blank.
Please check this post, we can't recreate his problem, could you please have a look at and point me if this is the same situation and how to recreate it?
Thanks for your sample, I can see the problem you mentioned, and I compare with the post I mentioned, I think it's different situation, we still can't recreate his problem.
We will do some more deep research on this, for now, you can ignore the zoomlevel01 as workaround, please see the code below, we can't delete or remove the default zoomlevelset, so we need use customzoomlevels to ignore the original one.