Page 1 of 1

Google Maps

Posted: Sun May 28, 2017 12:04 pm
by kappy1
Google maps are working ok but I get the follow error message when checking console
https://developers.google.com/maps/docu ... ed-version

Re: Google Maps

Posted: Fri Jun 09, 2017 12:23 am
by agw
It's only a warning, it's not an error, you can ignore it. VRS requests a particular version of Google Maps when it loads the maps but eventually Google will retire that version of maps and serve a later version instead. VRS's release cycle is longer than Google Maps' so eventually you're going to get that message in the console.

It's possible that a new version of Google Maps could break the release build of VRS, but when that happens I just put out an interim version of VRS that fixes the issue. I can only remember it happening once before, years ago. Google have been pretty good with maintaining backwards compatibility for Maps.

Re: Google Maps

Posted: Wed Aug 16, 2017 4:02 am
by paradiselost
Bundle errors, when site is displayed map temporarily displays then immediately get the opps screen.

Does the same on latest version of Chrome and Firefox. Uninstalling the beta and reinstalling doesn't help.

The URL http://122.52.129.228:8080/virtualradar displays the map problem. On the site VRS server page lists the private IP for the internet address rather than the WAN IP. Server site has changed ISPs. Using the private IP selection displays map normally as well as the 127.0.0.1 selection.

Shakey

Re: Google Maps

Posted: Sun Aug 20, 2017 9:25 pm
by agw
That message is coming out of Google. Google now requires an API key for public sites displaying maps:

http://www.virtualradarserver.co.uk/Documentation/WebServer/GoogleMapsAPIKey.aspx

Re: Google Maps

Posted: Wed Aug 23, 2017 6:42 pm
by paradiselost
I got the APIkeys for all my sites and added it to VRS.

It got rid of the ooops error but didn't display the map in its place.

There was an instruction to add <script async defer
src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&callback=initMap">
</script>

I couldn't find where to place this code in VRS. Do I add it to the header of desktop.html and mobile.html?

Two of my sites display correctly after just entering the APIkey for that site in VRS but not this one I received the ooops error on. Adding the key in its VRS program without adding the script doesn't display the map.

Re: Google Maps

Posted: Tue Sep 05, 2017 10:23 pm
by paradiselost
I am still having no map display on desktop.html when accessed from the internet on one of my sites. Map displays properly when mobile.html is accessed from the internet. Desktop page inspection reveals the version of maps requested is expired.

I am running the beta version on all three of my sites and two installations work ok.

You said that you had a fix in June for the maps out of date problem but have been unable to locate it with a June file date in the preview section.

The site with the missing desktop map works fine if the 127.0.0.1 or the local IP version is selected from the main VRS screen. The internet address is erroneously showing the local IP rather that the WAN IP.

shakey