i have a map control and charge the googlemap with GoogleOverlay class in http is ok but in https the map control is empty dont show nothing
the code is the next:
GoogleOverlay googl = new GoogleOverlay(“Google Map”);
googl.GoogleMapType = GoogleMapType.Normal;
googl.GoogleStreetView = new GoogleStreetView(new PointShape(-109.930076, 27.489188), 600, 200);
googl.TrafficEnabled = true;
googl.Name = lays;
googl.IsBaseOverlay = true;
googl.GoogleStreetView.Enabled = false;
googl.CenterOnStreetView = true;
googl.JavaScriptLibraryUri = new Uri(ConfigurationManager.AppSettings[“GoogleUriV3”]);
mapView.CustomOverlays.Add(googl);
Problem to show google map in https
Hi Omar,
I want to make sure where you are using https, does your web application switch from http to https or you change Google Uri to https?
Regards,
Don
ok the problem was the uri
thank you
Hi Omar,
Do you meant you have found your problem is in Uri and fixed it?
Regards,
Don
yes, solve it by adding https in the uri
<add key="GoogleUriV3" value="https://maps.google.com/maps/api/js?sensor=false" />
Hi Omar,
That’s good it is solved.
Any question please let us know.
Regards,
Don