Project

General

Profile

« Previous | Next » 

Revision af81ae55

IDaf81ae55ca2045b230e84ed68169810cd4900dfa
Parent 5c5b7504
Child 598caaec

Added by Jocelyn Delande about 9 years ago

Can now Load the pano.js in the view_cap.php

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences

Changesets

js/pano.js
829 829

  
830 830
}
831 831

  
832
window.onload = function() {
833
    localisation = document.getElementById("locadraw");
832

  
833
function load_pano() {
834
	localisation = document.getElementById("locadraw");
834 835
    adding = document.getElementById("adding");
835 836
    canvas = document.getElementById("mon-canvas");
836 837
    cntext = canvas.getContext("2d");
js/utils_osm.js
1 1

  
2 2
/** Draws the map for the "view this cap" feature
3 3
 */
4
function draw_cap_map() {
4
function draw_cap_map(zoom) {
5 5

  
6 6
    var zcontrol;
7 7
    if (typeof zoom_control != 'undefined') {
panorama.php
44 44
  ?>
45 45
  </script>
46 46
  <script src="js/pano.js"></script>
47
  <script>window.onload = load_pano</script>
47 48
  <script>
48 49
  <?php
49 50
     $zoom_array = $pt->get_magnifications();
show_capline.php
26 26
  echo <<< EOS
27 27
<script src="http://maps.google.com/maps/api/js?v=3&amp;sensor=false"></script>
28 28
<script src="http://openlayers.org/api/OpenLayers.js"></script>
29
    <script>
30
    zoom = 12;
29
<script>
31 30
  var get_lon_lat = false;
32 31
  var scale_line = true;
33 32

  
......
82 81
</script>
83 82
<script src="js/utils_osm.js">
84 83
</script>
84
<script src="js/pano.js">
85
</script>
86

  
85 87
EOS;
86 88
}
87 89
?>
88 90
<script>
89 91
window.onload = function() {
90
  var map = draw_cap_map();
92
  var map = draw_cap_map(12);//zoom
91 93
  all_refpoints = mk_all_refpoints_layer()
92 94
  map.addLayer(all_refpoints);
93 95
  add_refpoint_control(all_refpoints, map);