On Jun 2, 10:20 pm, Ruffles <[email protected]> wrote:
> Thank you for the help geocode, this has helped me alot! I just have
> one more question.
>
> I have changed my code and added it to my beta version of my map that
> has some search options. It works great expect for the fact that it
> adds a tab even if there is only one marker at a location. I think I
> have the problem but do not know how to correct it. With in my load
> function I have two extra functions that searches a database and
> creates a xml file from which gmaps creates the markers. I believe
> that having these two functions within the load function is causing
> the problem.
> ... I have tried to move these functions out side of the load
> function, which gives me systnax errors.
That's probably because one of the GMap2 'map' you create is in local
scope.
You have
var map;
in global scope, but in one of your load() you do
var map = new GMap2(...
which creates a new, local 'map' that becomes inaccessible when load()
has finished.
You've got duplicate functions and declarations in your 'main page'
and in your sreach.js
For example, load() and createMarker() in two different versions.
You must tidy that up because different browsers may be actioning
different versions.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---