Changes between Version 4 and Version 5 of ZooWebSite/Demo/GdalProfileJs
- Timestamp:
- Dec 1, 2010, 11:37:14 AM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ZooWebSite/Demo/GdalProfileJs
v4 v5 4 4 <script type="text/javascript" src="/openlayers/lib/OpenLayers.js"></script> 5 5 <script type="text/javascript" src="/js/highcharts.js"></script> 6 <script type="text/javascript" src="/js/jquery-ui-1.8.custom.min.js"></script> 7 <script type="text/javascript" src="/js/query.qtip-1.0.0-rc3.min.js"></script> 6 8 <script type="text/javascript"> 7 9 <![CDATA[ … … 64 66 map.addLayers([layer, layerLS, lineLayer, pointLayer, select, hover, multi]); 65 67 68 66 69 control = new OpenLayers.Control.GetFeature({ 67 70 //box: true, … … 87 90 88 91 map.zoomToExtent(new OpenLayers.Bounds( -2.0041701, 41.9958302, 8.0041698, 52.0041701)); 92 93 mapControls = { 94 pan: new OpenLayers.Control.Pan({title:"Pan"}), 95 zoomin: new OpenLayers.Control.ZoomBox({title:"Zoom in box", out: false}), 96 zoomout: new OpenLayers.Control.ZoomBox({title:"Zoom out box", out: true}) 97 }; 98 99 for(var key in mapControls) { 100 control = mapControls[key]; 101 map.addControl(control); 102 } 103 89 104 } 105 106 function toggleControl(element) { 107 for(key in mapControls) { 108 var control = mapControls[key]; 109 //alert ($(element).is('.ui-state-active')); 110 if(element.name == key && $(element).is('.ui-state-active')) { 111 control.activate(); 112 } else { 113 control.deactivate(); 114 } 115 } 116 } 117 118 $(function(){ 119 $(".fg-button:not(.ui-state-disabled)") 120 .hover( 121 function(){ 122 $(this).addClass("ui-state-hover"); 123 }, 124 function(){ 125 $(this).removeClass("ui-state-hover"); 126 } 127 ) 128 .mousedown(function(){ 129 $(this).parents('.fg-buttonset-single:first').find(".fg-button.ui-state-active").removeClass("ui-state-active"); 130 if( $(this).is('.ui-state-active.fg-button-toggleable, .fg-buttonset-multi .ui-state-active') ){ $(this).removeClass("ui-state-active"); } 131 else { $(this).addClass("ui-state-active"); } 132 }) 133 .mouseup(function(){ 134 if(! $(this).is('.fg-button-toggleable, .fg-buttonset-single .fg-button, .fg-buttonset-multi .fg-button') ){ 135 $(this).removeClass("ui-state-active"); 136 } 137 }); 138 }); 139 140 $(document).ready(function(){ 141 142 $('#btnPrev[title], #btnNext[title], a[title]').qtip({ 143 style: { 144 name: 'dark', 145 tip: true, 146 border:{width:2,color:'#fe8701',radius:3}, 147 width:{min:120} 148 } 149 }); 150 }); 151 152 153 90 154 function simpleProcessing1(aProcess) { 91 155 if(lineLayer.features.length == 0)