Révision 73fd5477
Ajouté par Marc Souviron il y a plus de 11 ans
show_capline.php | ||
---|---|---|
2 | 2 |
<title>Visualisation axe horizontal sur OSM</title> |
3 | 3 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
4 | 4 |
<link type="image/x-icon" rel="shortcut icon" href="images/tsf.png"/> |
5 |
<link rel="stylesheet" type="text/css" href="map.css" />
|
|
5 |
<link rel="stylesheet" type="text/css" href="css/layers.css" />
|
|
6 | 6 |
<?php |
7 | 7 |
if (isset($_REQUEST['cap']) && isset($_REQUEST['org_lat']) && isset($_REQUEST['org_lon'])) { |
8 | 8 |
$cap = $_REQUEST['cap']; |
... | ... | |
28 | 28 |
<script src="http://openlayers.org/api/OpenLayers.js"></script> |
29 | 29 |
<script> |
30 | 30 |
zoom = 12; |
31 |
var get_lon_lat = true;
|
|
31 |
var get_lon_lat = false;
|
|
32 | 32 |
var scale_line = true; |
33 | 33 |
|
34 | 34 |
var def_points_style = { |
... | ... | |
67 | 67 |
{type: google.maps.MapTypeId.SATELLITE, numZoomLevels: 22} |
68 | 68 |
), |
69 | 69 |
new OpenLayers.Layer.Google( |
70 |
"Google Physical",
|
|
70 |
"Google Relief",
|
|
71 | 71 |
{type: google.maps.MapTypeId.TERRAIN, visibility: false} |
72 | 72 |
), |
73 | 73 |
new OpenLayers.Layer.Google( |
74 |
"Google Streets",
|
|
74 |
"Google plan",
|
|
75 | 75 |
{numZoomLevels: 20, visibility: false} |
76 | 76 |
), |
77 | 77 |
new OpenLayers.Layer.Google( |
... | ... | |
89 | 89 |
<?php |
90 | 90 |
if ($complete) { |
91 | 91 |
echo '<div id="map"></div>'."\n"; |
92 |
echo '<div id="panel"></div>'."\n"; |
|
93 |
echo '<div id="position"></div>'."\n"; |
|
94 |
echo '<div id="extra">'."\n"; |
|
95 |
echo '<p>Autres contrôles'."\n"; |
|
96 |
echo '<label><input type="checkbox" id="tilt" checked="checked"/>vision à 45°</label>'."\n"; |
|
97 |
echo '<label><input type="checkbox" id="clic_pos"/>Position afichée sur clic</label>'."\n"; |
|
98 |
echo '</div>'."\n"; |
|
92 | 99 |
} else { |
93 | 100 |
echo "<h1>Il faut indiquer des coordonnées.</h1>\n"; |
94 | 101 |
} |
Formats disponibles : Unified diff
Amélioration du style de la page de tracé de cap
insertion de la distance du curseur au point de référence cur cette même page.