Changes between Version 27 and Version 28 of ZooWebSite/Demo/GdalProfileJs
- Timestamp:
- Dec 1, 2010, 3:38:41 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ZooWebSite/Demo/GdalProfileJs
v27 v28 65 65 <![CDATA[ 66 66 var map, layer, lineLayer, pointLayer, select, hover, multi, control; 67 var drawControls,points ;67 var drawControls,points,mapControls; 68 68 69 69 function initMap(){ … … 129 129 130 130 control = new OpenLayers.Control.GetFeature({ 131 //box: true,132 //hover: true,133 //multipleKey: "shiftKey",134 //toggleKey: "ctrlKey",135 131 protocol: OpenLayers.Protocol.WFS.fromWMSLayer(layer) 136 132 }); … … 152 148 map.zoomToExtent(new OpenLayers.Bounds( -2.0041701, 41.9958302, 8.0041698, 52.0041701)); 153 149 154 line.events.register('featureadded', line, 155 lineFeaturAadded); 150 mapControls.line.events.register('featureadded', mapControls.line,lineFeaturAadded); 151 152 153 } 156 154 157 155 function lineFeaturAadded(feature) { 158 156 alert(feature); 159 157 } 160 161 }162 163 164 158 165 159 function toggleControl(element) {