Commit 8fdfda69 authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

models index.html

parent 401fc593
<html lang="en">
<meta charset="utf-8"/>
<title>x3d models index</title>
<script type='text/javascript' src='js/jquery/jquery-3.1.1.js'></script>
<script type='text/javascript' src='js/index.js'></script>
<link rel='stylesheet' type='text/css' href='js/index.css'></link>
<table id='model_table'>
$base = "models";
$models = selective_scandir($base);
$res = "";
foreach($models as $model){
$model_path = "$base/$model";
$res .= "<model name='$model'>\n";
//$res .= "\t<name>$model</name>\n";
$versions = selective_scandir($model_path);
foreach($versions as $version){
$res .= "\t\t<version name='$version'></version>";
$res .= "</model>\n";
function selective_scandir($path){
$results = Array();
$contents = scandir($path);
foreach($contents as $item){
if ($item!='.'&&$item!='..'&&is_dir("$path/$item")){
return $results;
function return_xml($str){
$str = "<?xml version='1.0' standalone='yes'?>\n<Document>\n$str</Document>";
header("Content-Type: text/xml");
header("Content-Length: ".strlen($str)."\n");
header("Pragma: no-cache\n");
......@@ -14,7 +14,7 @@
......@@ -4,7 +4,7 @@
<meta charset="utf-8"/>
<script type='text/javascript' src='js/jquery/jquery-3.1.1.js'></script>
<script type='text/javascript' src='js/jquery/jquery-3.1.1.js'></script>
<script type='text/javascript' src='js/leaflet/leaflet-src.js'></script>
<script type='text/javascript' src='js/leaflet/L.extra.js'></script>
......@@ -27,7 +27,7 @@
<link rel='stylesheet' type='text/css' href='js/leaflet/leaflet.css'></link>
<link rel='stylesheet' type='text/css' href='js/x3dom/x3dom.css'></link>
<link rel='stylesheet' type='text/css' href='js/index.css'></link>
<link rel='stylesheet' type='text/css' href='js/ui.css'></link>
......@@ -36,12 +36,9 @@
<navigationInfo id="navInfo" type='"examine"' speed='0.01'></navigationInfo>
<Viewpoint fieldOfView='1' position='0 0 0' orientation='0 0 1 0'></Viewpoint>
<inline name="mymodel" namespacename="mymodel" url="x3d/1487451413_967079.x3d"/>
<inline name="back" namespacename="back" url="x3d/background.x3d"/>
<!-- <group>
<inline name="back" namespacename="back" url="models/m1/v1/background.x3d"/>
......@@ -101,7 +98,7 @@
<div id='help-content'>
<h2>3D Scene + Map</h2>
<h3 style='color:rgba(200,200,255,1);'>Comparing 3D model and Map (satellite imagery) measurements</h3>
<h3 style='color:rgba(200,200,255,1);'>Comparing 3D model and Map (satellite imagery) measurements</h3
<li>Place a marker in the 3D scene near the feature of interest. Drag the marker closer if needed.<br/>This will set the 3D model distance.</li>
<li>Drag the corresponding marker over the map to what looks like the feature of interest to set the map distance.<br/>If the <b>show marker info</b> is enabled the distances and the difference will be displayed.</li>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment