Thanks for taking your time to look at this and helping a newbie :)
The initLightbox() is there to prevent a conflict with <body
onload="initialize();"> as far as I understand. It comes from this FAQ on
the Lightbox2 site:
*It doesn't work at all. The image opens up in a new page. What's wrong?*
This is commonly caused by a conflict between scripts. Check your body tag
and look for an onload attribute. Example:
<body onload="MM_preloadImages(‘/images/menu_on.gif’)…;">
A quick fix to this problem is to append the initLightbox() to the onload
attribute as so:
<body onload="MM_preloadImages(‘/images/menu_on.gif’)…;initLightbox()">
How do I definte initLightbox() in the script?
Thanks for pointing out the markers problem!
I changed the instances of
var one = new InfoBox(railwayBridgeInfobox);
one.open(theMap, marker);
var two = new InfoBox(camdenSuperstoreInfobox);
two.open(theMap, marker);
to var one = new InfoBox(railwayBridgeInfobox);
one.open(theMap, railwayBridgeMarker);
var two = new InfoBox(camdenSuperstoreInfobox);
two.open(theMap, camdenSuperstoreMarker);
etc. Aand similarly
var railwayBridgeMarker= new google.maps.Marker
etc.
But unfortunately some infoboxes and some markers are still missing. Can you
see what else I might have done wrong? As far as I can tell they are all now
correctly defined.
Missing infoboxes: redhouseInfobox, thecorporationInfobox, passageInfobox,
prisonInfobox, noparkingInfobox, rubbishMarker
Missing markers: noparkingMarker, rubbishMarker
--
You received this message because you are subscribed to the Google Groups
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.