Im creating project with Google Maps API V3. Everything worked good but today, witchout changing code, maps crashed and wont run. Google changed something in their maps? I dont see anything. Console says nothing.
Make sure that you specify a version in your URL for loading the google maps v3 script. If you do not, you will always be given the latest version (v3.9 now), and any code you have written against a previous version could break (but they're usually pretty good about backwards compatibility).
See this page for more about using particular versions with Google Maps v3.
Related
I have a site that contains kml. The kml is shown as a layer in Google Maps. The maps are on the same site. Until recently (may 12th), this worked fine, but now it stopped working. The kml itself is OK, it can be used in Google Earth. When I copy the kml to another site I can load it in Google Maps without any problem.
Is it possible that my site is on a "blacklist" for some reason? Traffic is low. I did not use an API key. I do now but that did not solve the problem.
You can see the difference here:
1 - with kml from my site
2 - with kml placed elsewhere
The first one fails, the second one works. The kml placed elsewhere is an exact copy of the kml from my site. The kml from my site is served with media-type application/vnd.google-earth.kml+xml. It is dynamically generated.
In my case i got FETCH_ERROR on kml status-
Because my site allow only tls 1.2 secure connection.
When i put the files on another server- it's work.
Update 1-
It happend again after sometime, this time use the same domain helped.
from the Google Maps documentation
From February 2015, maps created in the classic Google Maps — https://maps.google.com/ — will no longer load KML/KMZ files from external websites. However, we know that KML files are a really useful way to work with geographic data, so we’ve added KML to Google My Maps, and continue to support this format with other Google Maps APIs. We hope that one of these options will meet your needs.
Both are valid, the one that doesn't works returns a KmlStatus of FETCH_ERROR. As a guess, I would say that the dynamic generation is taking too long. But there might be some security on your server that is preventing Google's server from fetching it.
from the documentation
FETCH_ERROR The document could not be fetched.
from your site
doesn't work with Google Map KmlLayer
Returns KmlStatus: FETCH_ERROR
Works through a proxy with the third party parser geoxml3
placed elsewhere
works with Google Maps KmlLayer
The problem automagically solved itself by waiting a few days. We can only guess what caused it, maybe a temporary glitch on our server which caused Google to stay away for a while and/or sploil it's cache. Anyhow, thanks for the reactions, at least I learned something about testing my kml.
I am using Wikitude SDK for augmented reality. It works ok.
Google Maps SDK for iOS work fine.
Problem is when I turn on Wikitude SDK and then I try using Google Maps SKD.
On Console I receive information:
"Did not clear context upon block exist"
On second try Google Maps doesn't render a map.
What should I do to fix this problem. Mapkit doesn't have this problem but my boss wants to use Google Maps SDK. I don't want to write a app with single ViewController.
I searched Google for phrase "Did not clear context upon block exist" but I didn't find anything.
Edit:
I am using iOS 7 SDK with Xcode 5. Wikitude draw point on camera. On Google Maps SDK I just insert markers on map. Nothing special. Everything works fine just one thing trigger something another as programmer I know I am in deep trouble. I don't know what is happening inside this SDKs.
I am also using container views to separate map and my view with buttons .
Google Maps iOS API version 6.1 resolved that bug.
I should thank Google developers for fix and Wikitude developers for help on forum.
Wikitude forum
I need Google Maps API v3 calls in my GWT Project, more specifically an Autocomplete-Feature for Places like in Google-Maps and the DirectionServices.
We already tried 2 approaches to get v3 access, but none was satisfying:
Using the GWT SuggestionBox Widget + Geocoder suggestions. This solution is very slow and even worser, the constraints you can put on the suggested Places is just country codes (e.g. "uk") and, even worse, it seems to be not working.
Google Maps API v3 Wrapper for GWT done by branflake2267. There seems to be a conflict between the wrapper and the already existing (older) GWT Google Maps API lib. When one tries to remove the Google GWT-maps-api from the project, severe changes would have to be made, since the structure of the API seems different (some Classes are not within the Wrapper).
Does somebody maybe had a similar problem and a solution for this? How can I get the Google Maps V3 API working in my GWT project?
Thank you very much guys for any help on this!
There is an official port of Maps v3 supported by Google which can be found here, but it is still in pre-release.
For more info, look at the comments of this bug.
Be very careful with Maps v3 it has some serious issues when used with the latest GWTversions. It does not appear to use Overlays and uses ArrayHelper all of which cause problems on GWT 2.1 and up..
I've had good luck with the branflake API on GWT 2.8. However, it hasn't been updated in years and still uses API version 3.10. Unfortunately I'm going to have to either for it and take on maintaining my own version of it or find an alternative at some point.
For now, tho, it's still very much a usable solution.
https://mvnrepository.com/artifact/com.github.branflake2267/gwt-maps-api
I am getting confused about Google Map.
I am writing a CMS website using Ektron CMS.
That CMS has a map function which in turn used google map.
Till last year, I can get an API key for the map and everything was fine.
But When I created a new website yesterday, I cannot find the page to get the key anymore.
After searching a while, I found out that I need to sign in and add the services to get the key.
Then I found out the charging scheme as it is in this question
Then I also found out that Google Map V2 is deprecated.
Does it mean we can no longer use V2 ?
Can I just change v=2 to v=3 and everything will work fine?
What about charging scheme? If google really charges, will it be a lot?
switch from V2 to V3:
You cannot use V2-code with the V3-library, you have to update your code, it's completely different.
charging:
usually the use of v3 is free of charge, as long as you didn't exceed the limits and the map is accessible for everyone without any costs.
According to Google, API for Maps, Version 2 has been officially deprecated as of May 19, 2010 and they would be supporting it for 3 yrs which means your API key should be working fine unless you would have got a notice regarding the same.
This link shows Google's terms of service discontinuation. I guess you'll want to upgrade to v3 asap to keep your software up and running. :)
I just discovered that the google map on my site is no longer working correctly because all the functions which refer to the deprecated V2 don't work. My source for the google maps api javascript is
"http://maps.google.com/maps?file=api&v=2&sensor=false&key=....."
which, because it says v=2, I assumed would reference V2. Apparently it doesn't, because the V2 functions are throwing errors. Is there any way to keep my javascript working without updating it all to be V3 compliant?
You can specify a version number if you need to stay on that version (i.e. v=2.242) per the documentation. Their "official changelog" (mentioned at http://code.google.com/apis/maps/documentation/javascript/v2/basics.html#API_Updates) doesn't appear to be up-to-date, so I'm not sure of the best way to get the version number that you want, other than trial and error.