guptahanu / google-ajax-apis

Automatically exported from code.google.com/p/google-ajax-apis
0 stars 1 forks source link

google.load('maps','3') throws sensor error, providing {sensor:true|false} makes no difference #422

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Load jsapi loader
2. call google.load('maps','3') or google.load('maps','3',{sensor:false})

What is the expected output? What do you see instead?
GMaps API v3 should load, but instead, an alert displays explaining that the 
sensor parameter 
must be provided.

What version of the product are you using? On what operating system?
jsapi v1
GMaps API v3
FF 3.6.3
osx 10.6.3

Please provide any additional information below.
Hey, guys! Noticed this the other day. Looked in the jsapi and found that there 
is no mention of 
the sensor param. Confirmed that the sensor param is not passed in the GMaps v3 
src url. 
Probably should default to "false," but allow people to specify {sensor:"true"} 
in options arg.

Original issue reported on code.google.com by jrgeer...@gmail.com on 7 Apr 2010 at 4:39

GoogleCodeExporter commented 8 years ago
Quick and dirty demo of the issue.

http://www.e-topo.com/jETPI/jETPI2/jsapiGmaps3sensorIssueDemo.html

Original comment by jrgeer...@gmail.com on 7 Apr 2010 at 4:48

GoogleCodeExporter commented 8 years ago
Confirmed, i have same problem here.
jsapi v1
GMaps API v3

tested on FF 3.6.2, IE 7, IE 8, Chrome 4.1.249.1045

Original comment by grafik.h...@gmail.com on 20 Apr 2010 at 8:29

GoogleCodeExporter commented 8 years ago
Digging deep to forums brings a solution!

google.load("maps", "3", {other_params: "sensor=false"});

Works great.

Original comment by grafik.h...@gmail.com on 20 Apr 2010 at 8:34

GoogleCodeExporter commented 8 years ago
Boy, don't know how I missed that. Thanks for the workaround, but the fact 
remains
that sensor is a required param and should probably be recognized as a 
standalone
option. Changing this to a suggestion, just for kicks.

Original comment by jrgeer...@gmail.com on 21 Apr 2010 at 2:40

GoogleCodeExporter commented 8 years ago
Don't know how you missed that? It's nowhere to be found in the documentation. 
Very annoying!

Original comment by alper.cugun on 25 May 2010 at 9:09

GoogleCodeExporter commented 8 years ago
lol, it still isnt! even in their 'Hello World' version (which should work out 
of the box) doesnt have it, 'cos they is clever like that!!!!!

Original comment by leeingra...@gmail.com on 14 Sep 2011 at 2:42

GoogleCodeExporter commented 8 years ago
Google Maps API is great for lots of things, but it has unexplainable missings 
like that!

Original comment by xerr...@googlemail.com on 13 Jul 2012 at 1:41

GoogleCodeExporter commented 8 years ago
Shame on google.load().

Original comment by goj...@gmail.com on 6 Oct 2012 at 5:52

GoogleCodeExporter commented 8 years ago
Probably its fixed.

http://stackoverflow.com/questions/5296115/can-you-load-google-maps-api-v3-via-g
oogle-ajax-api-loader

Original comment by rbawas...@gmail.com on 4 Feb 2013 at 10:58