There are a couple of ways, either put it within function load():
function load() {
if (GBrowserIsCompatible()) {
setTimeout( function() {
[map](/wiki/#map) = new GMap2(document.getElementById("map"));
[map](/wiki/#map).setCenter(new GLatLng(40.967715,-76.887817), 7);
[map](/wiki/#map).addControl(new GLargeMapControl());
......
}, 0.1 );
}
}
or wrap it around the place where you call function load()
💬 RE: Google Maps API + Thickbox - 11685
⬅️ RE: Google Maps API + Thickbox - 11651 :: Obama vs McCain, battle of the t-shirts ➡️
Paul Clarkeʼs weblog - I live in Hythe, Kent. Married to Clare + father to 2, I am a full stack web engineer, and I do mostly javascript / Node, some ruby, python, php etc. I like pubs, parkrun, eating, home automation and other diy jiggery-pokery, history, family tree stuff, TV, squirrels, pirates, lego, + TIME TRAVEL.