Google has disabled use of the Maps API for this application
2012-12-10 13:31
525 查看
用google地图时提示如下错误:
Google has disabled use of the Maps API for this application. The provided key is not a valid Google API Key, or it is not authorized for the Google Maps Javascript API v2 on this site. If you are the owner of this application, you can learn about obtaining a valid key here: http://code.google.com/apis/maps/documentation/javascript/v2/introduction.html#Obtaining_Key
目前google maps javascript api 最新版本是v3,v3 把 api 引用改为v3的就可以了,SET_TO_TRUE_OR_FALSE 值为true 或false 全小写
<!DOCTYPE html>
<html>
<head>
<metaname="viewport"content="initial-scale=1.0, user-scalable=no"/>
<styletype="text/css">
html {height:100%}
body {height:100%;margin:0;padding:0}
#map_canvas {height:100%}
</style>
<scripttype="text/javascript"
src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&sensor=SET_TO_TRUE_OR_FALSE">
</script>
<scripttype="text/javascript">
function initialize(){
var mapOptions ={
center:new google.maps.LatLng(-34.397,150.644),
zoom:8,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
var map =new google.maps.Map(document.getElementById("map_canvas"),
mapOptions);
}
</script>
</head>
<bodyonload="initialize()">
<divid="map_canvas"style="width:100%;height:100%"></div>
</body>
</html>
具体解决如下:https://developers.google.com/maps/documentation/javascript/tutorial
Google has disabled use of the Maps API for this application. The provided key is not a valid Google API Key, or it is not authorized for the Google Maps Javascript API v2 on this site. If you are the owner of this application, you can learn about obtaining a valid key here: http://code.google.com/apis/maps/documentation/javascript/v2/introduction.html#Obtaining_Key
目前google maps javascript api 最新版本是v3,v3 把 api 引用改为v3的就可以了,SET_TO_TRUE_OR_FALSE 值为true 或false 全小写
<!DOCTYPE html>
<html>
<head>
<metaname="viewport"content="initial-scale=1.0, user-scalable=no"/>
<styletype="text/css">
html {height:100%}
body {height:100%;margin:0;padding:0}
#map_canvas {height:100%}
</style>
<scripttype="text/javascript"
src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&sensor=SET_TO_TRUE_OR_FALSE">
</script>
<scripttype="text/javascript">
function initialize(){
var mapOptions ={
center:new google.maps.LatLng(-34.397,150.644),
zoom:8,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
var map =new google.maps.Map(document.getElementById("map_canvas"),
mapOptions);
}
</script>
</head>
<bodyonload="initialize()">
<divid="map_canvas"style="width:100%;height:100%"></div>
</body>
</html>
具体解决如下:https://developers.google.com/maps/documentation/javascript/tutorial
相关文章推荐
- the application is not licensed to create or modify schema for this type of data
- 22.You need to create a table for a banking application. One of the columns in the table has the fol
- ArcGIS Engine中初始化许可常见问题归纳,the application is not licensed to create or modify schema for this type of data
- 【ask】Recursive process.nextTick detected. This will break in the next version of node. Please use setImmediate for recursive deferral.
- ArcGIS Extension for the Google Maps API(翻译)
- 警告: The web application [ROOT] appears to have started a thread named [Thread-48] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
- com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: This application is out of date, please click the refresh but
- The application is not licensed to modify or create schema for this type of data 解决办法
- PowerShell: 如何解决File **.ps1 cannot be loaded because the execution of scripts is disabled on this system. Please see "get- help about_sig" for more de
- A .NET API for the Google Maps Geocoder
- This function has none of Deterministic,no sql,or reads sql data in its declaration and binary logging is enabled(you *might* want to use the less safe log_bin_trust_function_creators variable
- Version 1.3.1_01 of the JVM is not suitable for this product
- System.Security.Cryptography.CryptographicException: The data to be decrypted exceeds the maximum for this modulus of 128 bytes. (RSACryptoServiceProv
- the use of Latex for paper writing
- Springboot应用静态资源不能访问,报“This application has no explicit mapping for /error”
- DEPRECATED: Use of this script to execute hdfs command is deprecated. Instead use the hdfs command
- The call to LoadLibrary(YourExtensionName) failed, Win32 error 0n14001, “This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.”
- This application’s application-identifier entitlement does not match that of the installed applicati
- How to Use the Keras Functional API for Deep Learning
- The proplem of Prepare for Upload for App store upload Application