Lightbox

Home

Lightbox, including lightbox in my blog, and lightbox talk in Folkestone.

Venues:

Lightbox :: [comment] :: [delete]

Rate Lightbox

Blog / forum etc:

Google Maps API + Thickbox

Jan8
Recommended / related

Had some trouble for a while at work with getting our google maps working with this thickbox, and I put it off for ages (telling people not to put a map in a lightbox), but today I got to the bottom of it. Don't load your map until the lightbox has loaded, by setting a timeout, like:

setTimeout( function() {
var map = new GMap2( $('#map' ));
map.setCenter( new GLatLng( 0, 0 ), 0 );
var bounds = new GLatLngBounds();
.
.
.
}, 0.1 );


It's not exactly been bugging me for ages, but it was bugging me ages ago, and then I forgot about it. Now it's fixed! Bit of a dirty hack really.

Where'd everybody go?

:: Comment / reply

RE: Google Maps API + Thickbox

Pictures

There are a couple of ways, either put it within function load():

function load() {
if (GBrowserIsCompatible()) {
setTimeout( function() {
map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(40.967715,-76.887817), 7);
map.addControl(new GLargeMapControl());
......
}, 0.1 );
}
}


or wrap it around the place where you call function load()

24 Oct :: :: Comment / reply

Also there's an xml feed of lightbox, a JSON feed, and a KML feed of lightbox , search my lightbox venue info.

Hope you found what you're looking for, if not please leave a message about "lightbox".

Add lightbox as a venue here, help me out, and the next person.

Google the site here

Google
Web this site