Changes between Version 7 and Version 8 of ZooWebSite/Demo/GdalProfileJs


Ignore:
Timestamp:
Dec 1, 2010, 11:51:57 AM (9 years ago)
Author:
nickboz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ZooWebSite/Demo/GdalProfileJs

    v7 v8  
    8787
    8888            map.zoomToExtent(new OpenLayers.Bounds( -2.0041701,  41.9958302, 8.0041698,  52.0041701));
    89 
    90                 var mapControls = {
    91                 pan: new OpenLayers.Control.Pan({title:"Pan"}),
    92                 zoomin: new OpenLayers.Control.ZoomBox({title:"Zoom in box", out: false}),
    93                 zoomout: new OpenLayers.Control.ZoomBox({title:"Zoom out box", out: true})
    94                  };
    95        
    96         for(var key in mapControls) {
    97                         control = mapControls[key];
    98                         map.addControl(control);
    99         }
    100 
    10189        }
    102 
    103 function toggleControl(element) {
    104     for(key in mapControls) {
    105         var control = mapControls[key];
    106         //alert ($(element).is('.ui-state-active'));
    107         if(element.name == key && $(element).is('.ui-state-active')) {
    108             control.activate();
    109         } else {
    110             control.deactivate();
    111         }
    112     }
    113 }
    114 
    115 $(function(){
    116         $(".fg-button:not(.ui-state-disabled)")
    117         .hover(
    118                 function(){
    119                         $(this).addClass("ui-state-hover");
    120                 },
    121                 function(){
    122                         $(this).removeClass("ui-state-hover");
    123                 }
    124         )
    125         .mousedown(function(){
    126                         $(this).parents('.fg-buttonset-single:first').find(".fg-button.ui-state-active").removeClass("ui-state-active");
    127                         if( $(this).is('.ui-state-active.fg-button-toggleable, .fg-buttonset-multi .ui-state-active') ){ $(this).removeClass("ui-state-active"); }
    128                         else { $(this).addClass("ui-state-active"); }   
    129         })
    130         .mouseup(function(){
    131                 if(! $(this).is('.fg-button-toggleable, .fg-buttonset-single .fg-button,  .fg-buttonset-multi .fg-button') ){
    132                         $(this).removeClass("ui-state-active");
    133                 }
    134         });
    135 });     
    136 
    137 $(document).ready(function(){
    138 
    139         $('#btnPrev[title], #btnNext[title], a[title]').qtip({
    140                 style: {
    141                         name: 'dark',
    142                         tip: true,
    143                         border:{width:2,color:'#fe8701',radius:3},
    144                         width:{min:120}
    145                 }
    146         });
    147 });
    148 
    149 
    15090
    15191        function simpleProcessing1(aProcess) {

Search

Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png