KFNS#40809 Streetview bij gebouw via google maps
svn path=/Website/branches/v2017.1/; revision=34142
This commit is contained in:
@@ -90,7 +90,7 @@ oRs.Close();
|
||||
function openMaps(bldKey)
|
||||
{
|
||||
fwnd = window.open('../cad/ShowGoogleMap.asp?bld_key=' + bldKey, 'FGShow',
|
||||
"width=640, height=480, directories=no, location=no, menubar=no,"
|
||||
"width=800, height=600, directories=no, location=no, menubar=no,"
|
||||
+ "resizable=yes, status=no, titlebar=yes, toolbar=no");
|
||||
fwnd.focus()
|
||||
return;
|
||||
|
||||
@@ -69,13 +69,12 @@
|
||||
}
|
||||
|
||||
__Log("rdX=" + rdX + " rdY=" + rdY);
|
||||
|
||||
%>
|
||||
<html>
|
||||
<head>
|
||||
<style type="text/css">
|
||||
html, body { height: 100%; margin: 0; padding: 0; }
|
||||
geenhekjeaanbeginregel,#map { height: 100%; }
|
||||
html, body { height: 100%; margin: 0; padding: 0;}
|
||||
geenhekjeaanbeginregel, #map, #pano { float: left; height: 100%; width: 50%; }
|
||||
</style>
|
||||
<script type="text/javascript" async defer
|
||||
src='//maps.googleapis.com/maps/api/js?key=<%=safe.htmlattr(fg_remote_maps)%>&callback=initMap'>
|
||||
@@ -99,6 +98,15 @@
|
||||
var infowindow = new google.maps.InfoWindow({
|
||||
content: "<%=safe.jsstring(oms)%>"
|
||||
});
|
||||
var panorama = new google.maps.StreetViewPanorama(
|
||||
document.getElementById('pano'), {
|
||||
position: coord,
|
||||
pov: {
|
||||
heading: 34,
|
||||
pitch: 10
|
||||
}
|
||||
});
|
||||
map.setStreetView(panorama);
|
||||
var marker = new google.maps.Marker({
|
||||
position: coord,
|
||||
map: map,
|
||||
@@ -123,7 +131,8 @@
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body style="margin:0">
|
||||
<body id="googleMap" style="margin:0">
|
||||
<div id="map"></div>
|
||||
<div id="pano"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user