- Timestamp:
- 04/21/09 13:32:12 (17 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
tools/routingservice/branches/wrs-2.0/data/templates/route/route_openlayers.st
r299 r300 26 26 27 27 vector.addFeatures([feature]); 28 map.zoomToExtent(feature.geometry.getBounds()); 28 29 if(feature.geometry) 30 map.zoomToExtent(feature.geometry.getBounds()); 31 else 32 map.setCenter(new OpenLayers.LonLat(0, 0), 5); 29 33 } 30 34 </script> … … 32 36 <style type="text/css"> 33 37 body { 34 margin: 5 ;38 margin: 5px; 35 39 } 36 40 #map { 37 width: 800px;38 height: 600px;41 width: 600px; 42 height: 400px; 39 43 border: 1px solid #ccc; 40 44 }
