I have a vb.net application with a ThinkGeo (Version 8.0.0.3) map. The user has the ability to toggle the Google Map layer on/off. It works fine for me, but one user is getting an exception. I wonder if something has been fixed for this recently. Is there a list anywhere of the fixes that are included in the daily builds? I can find the daily builds, but not a list of fixes.
Here is some of the text from the exception.
System.AggregateException: One or more errors occurred …
at System.Net.HttpWebRequest.GetResponse()
at ThinkGeo.MapSuite.Core.GoogleMapsLayer.SendWebRequest
the remote server returned an error: (403) Forbidden.
Here is the code where I add the layer to the map:
Dim googleLayer As GoogleMapsLayer
googleLayer = New GoogleMapsLayer()
googleLayer.Name = "ATISGoogle"
googleLayer.IsVisible = False
googleLayer.ClientId = gGoogleClientId
googleLayer.MapType = GoogleMapsMapType.Satellite
googleLayer.ProjectedTileCache = Nothing
staticOverlay.Layers.Add("ATISGoogle", googleLayer)
Thanks,
Serena Lucy
GoogleMapsLayer exception
Hi Serena,
Your error should because the url for Google server forbidden by their server.
I am not sure whether that’s because the customer’s google ID met limitaion. For make sure that, you should want to use googleMapsLayer.SentWebRequest event to capture the sent url and make sure what’s the reason.
And we don’t have a list for DailyBuild because the change is in development version and it won’t be a steady list. Each time when we release a version, we will have a list for which changes included in new release, you can view our wiki to read them.
Regards,
Don
Thank you for the response.
I have looked at the wiki examples and done some reading on using the Google map as a background. Which do you recommend, the GoogleMapsOverlay or the GoogleMapsLayer?
Hi Serena,
For desktop edition, the GoogleMapsOverlay and GoogleMapsLayer implemented by the same way, you can just choose anyone which have the API you want.
For some other edition like Web or MVC edition, GoogleMapsOverlay and GoogleMapsLayer is different, so we just need adjust choose one of them follow requirement.
Regards,
Don