Hi, in my web i have two divs inside a hidden one. In one of them i
have the GMap view and in the other one i have the StreetView.
The GMap view stays hidden because its inside the hidden div, but the
StreetView's div its always on top. How can i hide this div?? It seems
that the call to GStreetviewPanorama function always shows the div on
top.
<div class="tab-body" >
<table>
<td>
<div align="center" name="pano" id="pano" style="width: 670px;
height: 254px"></div>
</td>
<tr>
<td>
<div align="center" name="panostreet" id="panostreet" style="width:
670px; height: 254px"></div>
</td>
</table>
</div>
function showStreet(address) {
geocoder = new GClientGeocoder();
if (geocoder) {
geocoder.getLatLng(
address,
function(point) {
if (point) {
panoramaOptions = { latlng:point };
myPano = new GStreetviewPanorama(document.getElementById
("panostreet"), panoramaOptions);
GEvent.addListener(myPano, "error", handleNoFlash);
}
}
);
}
}
function showAddress(address) {
geocoder = new GClientGeocoder();
if (geocoder) {
geocoder.getLatLng(
address,
function(point) {
if (point) {
map = new GMap2(document.getElementById("pano"));
map.setCenter(point, 16);
var marker = new GMarker(point);
map.addOverlay(marker);
//marker.openInfoWindowHtml(address);
var customUI = map.getDefaultUI();
// Remove MapType.G_HYBRID_MAP
customUI.maptypes.hybrid = false;
map.setUI(customUI);
}
}
);
}
}
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---