FSN#37093 -- Google maps wel beschikbaar bij gebouw maar niet bij locatie

svn path=/Website/branches/v2016.1/; revision=29980
This commit is contained in:
Arthur Egberink
2016-07-07 12:58:16 +00:00
parent d4ea2f1d63
commit f10030d1c3

View File

@@ -83,12 +83,27 @@ oRs.Close();
"json"); "json");
} }
} }
<% if (S("alg_fg_remote_maps") != "" && loc_x && loc_y) { %>
function openMaps(locKey)
{
fwnd = window.open('../cad/ShowGoogleMap.asp?loc_key=' + locKey, 'FGShow',
"width=640, height=480, directories=no, location=no, menubar=no,"
+ "resizable=yes, status=no, titlebar=yes, toolbar=no");
fwnd.focus()
return;
}
<% } %>
</script> </script>
</head> </head>
<body id="showbody"> <body id="showbody">
<% var buttons = []; <% var buttons = [];
buttons.push({title: L("lcl_photos"), icon: "camera.png", action: "alg_showphotos()"}); buttons.push({title: L("lcl_photos"), icon: "camera.png", action: "alg_showphotos()"});
if (S("alg_fg_remote_maps") != "" && loc_x && loc_y) {
buttons.push({title: L("lcl_maps"), action:"openMaps("+loc_key+")", icon: "map.png" });
}
if (!loc_deleted) if (!loc_deleted)
{ {
if (this_alg.writeman || this_alg.writeuse) if (this_alg.writeman || this_alg.writeuse)