Hi,
Thanks Mike, I've tried that and am still getting an error that ELabel
is not defined .. code included for reference, and linked to your
website so it's easy for anyone to try.
<html>
<head>
<script language="javascript">
var map;
function initLoader() {
var script = document.createElement("script");
script.src = "http://www.google.com/jsapi?
key=ABCDEFG&callback=loadMaps";
script.type = "text/javascript";
document.getElementsByTagName("head")[0].appendChild(script);
}
function loadMaps() {
google.load("maps", "2", { "callback": mapsLoaded });
}
function mapsLoaded() {
GScript("http://econym.googlepages.com/elabel.js");
var center = new google.maps.LatLng(-33.866799, 151.209109);
map = new google.maps.Map2(document.getElementById("map"));
map.setCenter(center, 19);
map.addOverlay(new ELabel(center, "test"));
}
</script>
</head>
<body onload="initLoader();">
<div id="map" name="map" style="width:700px; height:80%"></
div>
</body>
</html>
Cheers,
RodgerWilko!
On Feb 19, 3:32 pm, Mike Williams <[email protected]> wrote:
> Load ELabels after the Maps API has finished loading.
>
> function initialize() {
> GScript("elabels.js")
> var map = ...
> }
> google.setOnLoadCallback(initialize);
>
> --http://econym.org.uk/gmap
> The Blackpool Community Church Javascript Team
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---