Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Google map

Status
Not open for further replies.

73pixieGirl

Programmer
Oct 3, 2006
65
US
Hello,
I've registered and got the script for google maps, and now I'm trying to click on an image that will call a function on my html page, to open a window showing the full size google map. This can't be that hard, but I'm stuck.

Here's what I have:
a button with the following AS
on (release) {
getURL("javascript:eek:penWindow()", "_blank");
}

then I copied and pasted the google api script and put this in my .html file.
<script src=" type="text/javascript"></script>
<script type="text/javascript">
//<![CDATA[
function openWindow() {
if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(37.4419, -122.1419), 13);
}
}
//]]>
</script>

When I click on the button, nothing happens. What am I doing wrong?
TIA!
 
Nevermind...I took a little nap and with a clearer head I figured it out...and boy do I feel stupid! (-:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top