looks to me like you are including the API twice, once with the
library once without:
<script type="text/javascript" src="http://maps.googleapis.com/maps/
api/js?sensor=false"></script>
<script type="text/javascript" src="http://maps.googleapis.com/maps/
api/js?libraries=geometry&sensor=false"></script>
-- Larry
Also, when removing one of both, it still doesnt work... :(
Any suggestions?
Your demo page is still loading the API twice
http://code.google.com/apis/maps/documentation/javascript/basics.html#Libraries
once will do
On Dec 15, 3:49 am, Rossko <ros...@culzean.clara.co.uk> wrote:
> > Also, when removing one of both, it still doesnt work... :(
>
> Your demo page is still loading the API twicehttp://code.google.com/apis/maps/documentation/javascript/basics.html...
> once will do
The documentation isn't great.
You only need one line which looks generally like this:
<script type="text/javascript"
src="http://maps.googleapis.com/maps/api/js?sensor=true"></script>
The part before the ? loads the API. Everything after the ? (apart
from sensor=something) is optional and varies the behaviour of the
API: you can include libraries, specify a particular version, specify
two kinds of localisation and a callback function for asynchronous
loading.
To include more than one library you use a comma-separated list. So
something like this is possible, which should be all together on one
line. This loads the API with all the specified options.
<script type="text/javascript"
src="http://maps.googleapis.com/maps/api/js?sensor=false&v=3.5&libraries=geometry,places®ion=GB&language=ja"></script>
When you're ready, show us the page with that problem. There's no
point in us looking at a page that is something like the one you are
having trouble with, and which has some other already identified but
unfixed problem.
> And when I include the geometry library, does it automatically also
> include the rest?
Yes, the keyword is 'include'. One call to the maps API will load the
core API plus whatever libraries you request in its parameters.
Now, the page with only one left: http://bit.ly/umutPV
Your included script
jquery.topzindex.min.js
is not accessible on your server
You have
<div id="map_canvas" style="width: 100%; height: 100%; ...
but the parent of this div (the <body>) has no specified size. 100%
of undefined is undefined.