My maps created with Google Maps JS API v2 stopped working few days ago. In JS console I get:
Uncaught ReferenceError: GLatLng is not defined
The reason is that according to https://developers.google.com/maps/documentation/javascript/v2/controls "Version 2 of the JavaScript API has been turned down".
Warning: Version 2 of the Google Maps JavaScript API is no longer available. Please follow the guide to migrate your code to version 3 of the Google Maps JavaScript API. As of November 19, 2013, all applications requesting v2 are served a special, wrapped version of the v3 API instead. We expect this wrapped version of the API to work for most simple maps, but we strongly encourage you to migrate to the v3 API immediately.
Related
I'm attempting to get a clear view of the current state of the REST API in a deployed Artifactory Server in v6.x, primarily to auto-generate a javascript SDK.
Previously the REST API had a WADL file hosted at http://:/artifactory/api/application.wadl but it appears this has been removed as of v6 (v5 documentation shows it https://www.jfrog.com/confluence/display/RTF5X/Artifactory+REST+API) but this is missing as of the v6 documentation.
Does anyone know if the specification for the API is available anywhere?
Unfortunately, the WADL file is no longer available to be downloaded through JFrog Artifactory. The complete documentation for the REST API is available in the documentation though.
What is the signification of "https://maps.googleapis.com/maps/api/js?v=3" in term of the used Google Map API version?
In the Google Map documentation, it defines v=n.mm with by examples v=3.34 or v=3.35.
But nothing explains when you use v=3.
What does it mean please?
That used to be how google suggested requesting the "release" version of the API (before the weekly/quarterly versions were added).
from an old version of the documentation on archive.org:
For regular applications
We recommend specifying v=3 in your bootstrap request. This means that you always get the current release version of the Google Maps JavaScript API that has already been subjected to a large volume of traffic and had necessary bug fixes applied. In most cases you should expect that no action is necessary when a version rolls over.
I am using V3 API for Google maps and every time I run my application in Chrome (application works in Firefox and IE9/10)
I get an error in the console - Cannot read property 'ROADMAP' of undefined.
On inspection of google.maps object in debugger I noticed that MapTypeId is not defined in the object google.maps. Also my fellow developers can run the same application in Chrome on their machines.
I was wondering if anybody had the same problem or can recommend a solution.
I have been having trouble with the Google Maps API for one week now and I'm unable to resolve it :(
I have a site that has been using the Google Maps v3 for several weeks now without any issues. But suddenly, it starts complaining that: Google has deactivated the use of the Google Maps API for this application, because the offered key is not a valid Google-API-Key or the use of Google Maps v3 is not allowed for this site.
I double checked everything, including: trying a new key; checking domain restrictions and activation in the API-console - Everything is alright.
I'm using simple authentication. Every help would be highly appreciated :)
The Version Handling Has Changed. This Code Is No Longer Valid (see the code below in the update):
One thing you can do immediately to bypass such problems: explicitly set the version of the API you are using to 3.6:
<script type="text/javascript"
src="http://maps.googleapis.com/maps/api/js?v=3.6&sensor=false">
</script>
Keys were introduced in 3.7, so you do not get any warnings if you set your version to: 3.6.
Important Update That Makes the JavaScript Code Above Invalid:
Setting the version to 3.6 will no longer function as a work-around for this, because you are no longer able to request version 3.6. You should not use the code above, but should use the following code to load the Google Maps JavaScript 3.8 library:
<script type="text/javascript"
src="http://maps.googleapis.com/maps/api/js?v=3.8&sensor=false">
</script>
Google recently announced a version update; here is the content of the Google announcement email:
We recently released a new minor version of the Google Maps API. This
means that the versions are now:
3.9: Development/Nightly
3.8: Feature Stable
3.7: Frozen
3.6 has been removed: if you request it you will receive 3.7.
In this latest release of 3.9, we've added:
* Country restriction for Autocomplete (AutocompleteOptions?.componentRestrictions)
* Regions and Cities type filters
You will also get all the features of 3.8 (now Feature Stable),
including:
WeatherLayer and CloudLayer
Click-to-go/Click-to-zoom in Street View
orderBy, limit and offset for FusionTablesLayer
utc_offset and opening_hours in PlaceResult
google.maps.geometry.poly.containsLocation() and isLocationOnEdge()
DemographicsLayer (Maps for Business only)
I'm trying to enable Code Assist for Google Maps API v3 in Aptana3.
It does not seem to work.
I followed the instructions from this page:
Drop the VSDoc files into your Web Project.
V3 Maps API: gmapvsdoc.codeplex.com
As instructed, I got the zip file from Google Maps API 3 Visual Studio Intellisense Helper
I extracted google-maps-3-vs-1-0.js and google-maps-3-vs-1-0-vsdoc.js in a scripts folder in my project (a PHP project).
This is how I included the API in my html file:
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?sensor=false"></script>
<script type="text/javascript" src="scripts/google-maps-3-vs-1-0.js"></script>
The API works fine. I can access all its features.
Yet, when I type 'map.' (after initializing the variable with var map = new google.maps.Map(...)) Aptana has no proposals to assist me with.
Is Aptana3 not compatible with Google Maps API v3?
Have I done something wrong?
Could it be because I'm also using the JQuery Code Assist?