...不支持google maps Javascript API。使用其他浏览器 [英] ... google maps Javascript API not supported. Use another Browser

查看:187
本文介绍了...不支持google maps Javascript API。使用其他浏览器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用两个显然使用Google Maps Javascript API的第三方程序(不同的公司)。当他们加载地图时,会显示世界地图,但会显示一条错误消息: Der von Ihnen verwendete浏览器与Google Maps Javascript API兼容。VerwendenSie einen anderen Browser。 (翻译:Google Maps Javascript API不支持您使用的浏览器。请使用其他浏览器)。我正在使用Windows 7和Internet Explorer 11.0.48。 2017年初,程序运行正常。我使用chrome提供的选项将默认浏览器更改为Chrome,但是仍然出现错误。
用户端是否有解决方法?
关于
Peter



其中一个程序可从


I am using two different third party programs (different companies) that apparently use the Google Maps Javascript API. When they load the map, the world map is shown, but an Error message is displayed: "Der von Ihnen verwendete Browser wird von Google Maps Javascript API nicht unterstützt. Verwenden Sie einen anderen Browser". (Translation: The browser you are using is not supported by Google Maps Javascript API. Use another browser). I am using Windows 7 and Internet Explorer 11.0.48. Early 2017 the programs were working correctly. I changed the default browser to Chrome using the option provided by chrome, but the error still appears. Is there a workaround on the user side? Regards Peter

One of the programs is downloadable from http://www.codres.de/google-map-saver (GMS.NET), the other one came with a GPS logger from Canmore GPS on CD ROM and dates from 2013. Both show the same behaviour, GMS.NET after clicking the button "Go to location", GPS Photo Tagger right after start up. The english error message is "You are using a browser that is not supported by the Google Maps JavaScript API. Consider changing your browser. Learn More, Dismiss". When I click "Learn more" I am told that IE 11 is my current browser. When I click an internet link in an e-mail Google Chrome is used (as default browser). It seems to me that the JavaScript API does not recognise Chrome as the default browser. IE11 is not run in compatibility mode. The Notebook I am using runs Windows 7 64bits.

I clicked the link in geocodezip's response. This sample works correctly calling Chrome (even when I copy the code into MS Word). When I open the link in IE11 it also works correctly. Is it possible to define the InternetExplorer as default browser in the Javascript API? This might be the reason for the different behaviour of the geocodezip sample and my programs. In this case the programs would have to be mended.

解决方案

Look here https://developers.google.com/maps/documentation/javascript/versions

<script async defer src="https://maps.googleapis.com/maps/api/js?v=3.31&key=YOUR_API_KEY&callback=initMap">

see v=3.31 latest is now 3.32 and if is not specified it will use the latest

And here https://console.developers.google.com/apis/credentials/key/ check all api restrictions

这篇关于...不支持google maps Javascript API。使用其他浏览器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆