Alright. Here is all we had before we got streetview wired to our
business listings >>
http://www.easysavannahlive.com/directory1/directory1/Another-test-listing.html
If you wait for the page to load the google map pops in below the
contact info & an infowindow automatically drops in w/ contact info &
driving directions. The streetview below is just cut & pasted ,
iframed from google codes. It's not connected to the database
listings. It just looked really good. Most streets here just look
nice. So, here was that page's code w/ no streetview (I see the click
listener code now :))
_________________________________________________________________
<script src="http://maps.google.com/maps?
file=api&v=2&key=ABQIAAAA_3kjXEozX7-QWVU9_kl-
pxRyoVdJVpNP8a9Fk6IFT8bAUXgncBTm7cpiYgfxr_DnPhC6zGqRZ6rM1A" type="text/
javascript"></script>
<script type="text/javascript">
var map = null;
var geocoder = null;
function load() {
if (GBrowserIsCompatible()) {
geocoder = new GClientGeocoder();
function showAddress(address) {
if (geocoder) {
geocoder.getLatLng(
address,
function(point) {
if (!point) {
document.getElementById("map").style.display="none";
} else {
map = new
GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(37.4419,
-122.1419), 13);
map.addMapType(G_SATELLITE_3D_MAP);
map.addControl(new GScaleControl());
map.addControl(new
GLargeMapControl());
map.addControl(new GMapTypeControl());
map.enableGoogleBar();
map.addControl(new
GOverviewMapControl(new GSize(100,75)));
map.setCenter(point, 13);
var marker = new GMarker(point);
var infoTabs = [
new
GInfoWindowTab('Address','<b>Another test listing</b><br>621 E.
Gwinnett St. <br>Savannah, Georgia,
31401<br>USA<br>'),
new GInfoWindowTab('Directions',
'Enter your address:<br><form action="http://maps.google.com/maps"
method="get" target="_blank"><input type="text" size="40"
maxlength="60" name="saddr" id="saddr" value=""><br><input
class="button" value="Get Directions" type="submit"><input
type="hidden" name="daddr" value="621 E. Gwinnett St. +Savannah+Georgia
+USA"></form>')];
GEvent.addListener(marker, 'click',
function() {
marker.openInfoWindowTabsHtml(infoTabs);
});
map.addOverlay(marker);
marker.openInfoWindowTabsHtml(infoTabs);
}
}
);
}
}
showAddress("621 E. Gwinnett St. Savannah,
Georgia 31401 USA");
}
}
</script></head>
<body onload="load()" onunload="GUnload()" >
__________________________________________________________________
But now I see we have no code like below:
" GEvent.addListener(marker, 'click',
function() {
marker.openInfoWindowTabsHtml(infoTabs);
});
map.addOverlay(marker);
marker.openInfoWindowTabsHtml(infoTabs);"
How was I missing that. I've got too many things going on. But we have
totally different code now. I'll go back & check it again. I was
checking & comparing the next code we got & then the next. Thanks
guys. I'll be back w/ the answers. Thanks, Gene
On Nov 9, 5:06 pm, Rossko <[EMAIL PROTECTED]> wrote:
> > who has arranged the coding for this has switched to this code here
> > >http://www.tulsaview.com/Johny-Carinos.html. It angles better than
> > the first w/ the default north I think, obviously, but now it kicks
> > the infowindow/bubble out that had contact info & driving directions.
>
> Don't know what you mean by 'kicks out'
> That page has no code at all to do with infowindows, you'll need to
> add a click listener to the marker that opens an infowindow.
>
> cheers, Ross K
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---