diff options
author | Jogi Hofmüller <jogi@mur.at> | 2011-08-10 07:44:31 +0000 |
---|---|---|
committer | Jogi Hofmüller <jogi@mur.at> | 2011-08-10 07:44:31 +0000 |
commit | 7c238129db9e8aece079e1223ac70bd265513b75 (patch) | |
tree | d9b928d427d0a307c22a94dfec59dfd1febdb69c /tools | |
parent | - changed rcol to width 512px (diff) |
- set map zoom to 1 manually
git-svn-id: https://svn.spreadspace.org/mur.sat@114 7de4ea59-55d0-425e-a1af-a3118ea81d4c
Diffstat (limited to 'tools')
-rw-r--r-- | tools/mmd/MmdWidgets.py | 3 | ||||
-rw-r--r-- | tools/mmd/testmap.html | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/tools/mmd/MmdWidgets.py b/tools/mmd/MmdWidgets.py index b9d20db..6884d78 100644 --- a/tools/mmd/MmdWidgets.py +++ b/tools/mmd/MmdWidgets.py @@ -258,7 +258,8 @@ def osmWidget (satellite, user): // center the map // map.setCenter (sat_position, 1); - map.zoomToMaxExtent (); + // map.zoomToMaxExtent (); + map.zoomTo (1); </script> '''.format (longitude, latitude, user_location.longitude, user_location.latitude, java) diff --git a/tools/mmd/testmap.html b/tools/mmd/testmap.html index 9f60f4d..ed90a50 100644 --- a/tools/mmd/testmap.html +++ b/tools/mmd/testmap.html @@ -60,9 +60,7 @@ ); var points = new Array (new OpenLayers.Geometry.Point (sat_position.lon, sat_position.lat)); for (var i = 0; i < trajectory.length; i++) - { points.push (new OpenLayers.Geometry.Point (trajectory[i].lon, trajectory[i].lat)); - } var polygon = new OpenLayers.Geometry.LineString (points); var lineStyle = {strokeColor: '#00ff00', strokeOpacity: 1, strokeWidth: 2}; var lineFeature = new OpenLayers.Feature.Vector (polygon, null, lineStyle); |