JavaScript and client side scripting.
Moderator: General Moderators
php3ch0
Forum Contributor
Posts: 212 Joined: Sun Nov 13, 2005 7:35 am
Location: Folkestone, Kent, UK
Post
by php3ch0 » Sun Feb 26, 2006 1:43 pm
Hi
I have used google maps api to do maps to locations on my business directory. Why when I use the google controls to zoom in and out it add extra markers to my map? If I use my controls to zoom in and out there is always only 1 marker.
http://www.ashfordlocal.co.uk/directory ... 4&#mapview
Please help
darryladie
Forum Commoner
Posts: 62 Joined: Thu Mar 02, 2006 6:14 pm
Location: East Sussex, UK
Post
by darryladie » Fri Mar 03, 2006 7:55 am
I hate to tell you this but I cant see anything in the map area in Firefox.
Roja
Tutorials Group
Posts: 2692 Joined: Sun Jan 04, 2004 10:30 pm
Post
by Roja » Fri Mar 03, 2006 8:00 am
darryladie wrote: I hate to tell you this but I cant see anything in the map area in Firefox.
Same here, and in fact, it doesn't show in IE either.
darryladie
Forum Commoner
Posts: 62 Joined: Thu Mar 02, 2006 6:14 pm
Location: East Sussex, UK
Post
by darryladie » Fri Mar 03, 2006 8:28 am
*phew* glad it's not just me
php3ch0
Forum Contributor
Posts: 212 Joined: Sun Nov 13, 2005 7:35 am
Location: Folkestone, Kent, UK
Post
by php3ch0 » Fri Mar 03, 2006 8:36 am
Sorry people my fault. Forgot to include stuff in the body tag.
I'll fix it and let you know when it is online.
php3ch0
Forum Contributor
Posts: 212 Joined: Sun Nov 13, 2005 7:35 am
Location: Folkestone, Kent, UK
Post
by php3ch0 » Sun Mar 05, 2006 1:41 am
Sorry forgot to include the onLoad() function in body tag. Try it now it should work
darryladie
Forum Commoner
Posts: 62 Joined: Thu Mar 02, 2006 6:14 pm
Location: East Sussex, UK
Post
by darryladie » Mon Mar 06, 2006 12:56 pm
I think it adds extra markers because it's Google's API and they get paid for advertising on the other businesses that advertise on Google Earth. Your best bet is to see if there is a Developer forum for Google Developers, I am sure there is one in Google Groups.