Project

General

Profile

Revision ed5e83c5

Added by Marc Souviron almost 11 years ago

Amélioration du système de navigation assisté par OSM ou google
Correction d'un bug de non-linéarité sur les panoramas rebouclés (360°)
simplification du style

View differences:

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="style.css" />
5
  <link rel="stylesheet" type="text/css" href="map.css" />
6 6
<?php
7 7
if (isset($_REQUEST['cap']) && isset($_REQUEST['org_lat']) && isset($_REQUEST['org_lon'])) {
8 8
  $cap = $_REQUEST['cap'];
......
17 17
} else {
18 18
  $pt_comment = 'Le point de départ';
19 19
}
20
if (isset($_REQUEST['dist'])) {
21
  $dist = $_REQUEST['dist'];
22
} else {
23
  $dist = 120000;
24
}
20 25
if ($complete) {
21 26
  echo <<< EOS
27
<script src="http://maps.google.com/maps/api/js?v=3&amp;sensor=false"></script>
28
<script src="http://openlayers.org/api/OpenLayers.js"></script>
22 29
    <script>
23 30
    zoom = 12;
24
  var get_lon_lat = false;
31
  var get_lon_lat = true;
25 32
  var scale_line = true;
26 33

  
27 34
  var def_points_style = {
......
50 57
 lat1: $org_lat,
51 58
 cap: $cap,
52 59
 width: 2,
53
 length: 120000,
60
 length: $dist,
54 61
 color: '#F00'
55 62
};
63
var base_layers = [
64
		   new OpenLayers.Layer.OSM(),
65
		   new OpenLayers.Layer.Google(
66
					       "Google Satellite",
67
  {type: google.maps.MapTypeId.SATELLITE, numZoomLevels: 22}
68
					       ),
69
		   new OpenLayers.Layer.Google(
70
					       "Google Physical",
71
  {type: google.maps.MapTypeId.TERRAIN, visibility: false}
72
					       ),
73
		   new OpenLayers.Layer.Google(
74
					       "Google Streets",
75
  {numZoomLevels: 20, visibility: false}
76
					       ),
77
		   new OpenLayers.Layer.Google(
78
					       "Google Hybrid",
79
  {type: google.maps.MapTypeId.HYBRID, numZoomLevels: 22, visibility: false}
80
					       )];
81

  
56 82
</script>
57
<script src="http://openlayers.org/api/OpenLayers.js"></script>
58 83
<script src="js/utils_osm.js"></script>
59 84
EOS;
60 85
}

Also available in: Unified diff