At first I want to say: I couldn't find a support forum for this library so I would like to try it here. I hope such questions are allowed here and the link to my page needn't be removed. The link is only for seeing how it works and which parts don't work. Please don't remove it.
Now to the question :)
I want to use the library "MarkerClusterer" (Google Code page) to cluster my markers on Google Maps via the API.
Here's described how it works:
Documentation -> Examples
Unfortunately, it doesn't work on my site and I don't know why. Could you please help me? I can't find the fault in my code:
Link (just as a demo)
Can you find the fault?
I get this error in Firebug:
GOverlay is not defined
ClusterMarker_.prototype = new GOverlay();
Which probably is caused by running your initialize function before Google Maps has finished loading. Try removing the duplicate tag:
<div class="clear"></div>
<body onload="initialize()" onunload="GUnload()">
48<div class="grid_12">
I don't think you're supposed to add each marker to the map when you use MarkerCluser. Try removing this pr marker:
map.addOverlay(markierung1);
Related
On my page http://kizzme.co.uk/contact.html the Google Maps API was viewing fine and then stopped.
Unsure what it could be.. coding isn't my strongest point!
Many thanks in advance!
Kizz
can you see this script
<script src="http://maps.googleapis.com/maps/api/js"></script>
in your code ??
maybe you delete it
I was building a container bound script for google docs, then wanted a solution that would work on all documents, not just one, so I started writing a chrome extension with content scripts that add a menu. This was really hard.
My question is, is there a good way to add a menu to ALL google docs for an account?
Thanks
Thats the only way.
Why was it that hard with content scripts? Ive done it before.
I'm have a conflict with Google Maps v3 API and Mootools. For some reason when the page where the maps is on is loaded it looks fine but about 10 seconds later the map disappears as well as all but 1 pin point.
You can see it here: http://goo.gl/Sr0b2
If I remove mootools.js which loads in my footer, the problem goes away but then some of the javascript on my WordPress theme doesn't work such as the drop down menu in the header so removing mootools is not an option.
Anyone know what may be causing the conflict and how I can fix it?
Any help is appreciated.
I solved the problem by using an iframe for the map, this way the mootools.js on the page doesn't affect the map script. I usually don't use iframes but in this situation it doesn't affect the site's SEO or anything else and it's a perfect solution. So if you have this same issue you can load the map on a page of its own (with nothing but the map) and then insert it anywhere with
I try to manage some changes at the code of Joomla Module file that show a google map to get it working center automatically on user location:
i found on the google documentation this script write in Google maps api V3 for geocode that works great standing alone and seems to be very accurate. See it on this page: http://www.urbanclaim.com/new.php
i already have this problem: (you can see it using the link above)
after a user click on for sharing his location, never changes in the module's map. i try to put an alert in the code ang give me a null value for the local coordinates.. someone of you can help me with a debug in firebug o give me an advice on this?
i SOLVED it..this site is really useless.
In your javascript you are looking for a element with the ID of location but I do not see the element in the DOM nor do I see it being added by your JavaScript, once I added a element with that ID to the DOM via FireBug, your code worked for me.
I'm trying to get Google Maps Directions API working with jQuery, and
I have the following code..
http://pastebin.com/6jcGt706
Where #end is a select list in the HTML.. I'm Using jQuery 1.4.. I'm
not sure as to what is going wrong.. Can you please help me with
this...
Would appreciate if any one could help me fix the problem with this..
Thanks!
Check Firebug or Web Inpector Console for any errors thrown. Chances are you just need to change this line:
var end = $("#end option:selected");
to:
var end = $("#end").val();