OpenLayers OpenLayers

Changeset 4

Show
Ignore:
Timestamp:
05/12/06 15:59:51 (4 years ago)
Author:
crschmidt
Message:

Removing an unused function from Tile -- should be in the subclassed WFS tile, but not here.
Cleaning up example.html problems -- commenting out closing comment in <script> tag

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/openlayers/example.html

    r2 r4  
    1010        } 
    1111    </style> 
    12 <!-- 
    13     <script src="js/3rd/prototype.js" ></script> 
    14     <script src="js/3rd/logger.js" ></script>  
    15     <script src="http://maps.google.com/maps?file=api&amp;v=1&amp;key=ABQIAAAAmQ3udCHPQVB_9T_edFZ7YRTcPsh3Vei3pvv-O2gjJ-8oYrRtdhQUNNh-FlqSqbWQTvBoeGLmUYa5EQ" type="text/javascript"></script> 
    16 --> 
    1712    <script src="js/OpenLayers.js"></script> 
    1813    <script type="text/javascript"> 
    19       <!-- 
     14        <!-- 
    2015        var lat = 40; 
    2116        var lon = 5; 
    22    var zoom = 5; 
     17        var zoom = 5; 
    2318        var map, layer; 
    2419 
     
    3227            map.setCenter(new OpenLayers.LatLon(lat, lon), zoom); 
    3328        } 
    34       --> 
     29        // --> 
    3530    </script> 
    3631  </head> 
  • trunk/openlayers/js/OpenLayers/Tile.js

    r2 r4  
    3333    }, 
    3434 
    35     /** get the full request string from the ds and the tile params  
    36     *     and call the AJAX loadURL().  
    37     * 
    38     *     input are function pointers for what to do on success and failure. 
    39     *  
    40     * @param {function} success 
    41     * @param {function} failure 
    42     */ 
    43     loadFeaturesForRegion:function(success, failure) { 
    44  
    45         if (!this.loaded) { 
    46          
    47             var server = this.ds.serverPath; 
    48              
    49             if (server != "") { 
    50          
    51                 var queryString = this.getFullRequestString(); 
    52                 // TODO: Hmmm, this stops multiple loads of the data when a  
    53                 //       result isn't immediately retrieved, but it's hacky.  
    54                 //       Do it better. 
    55                 this.loaded = true;  
    56                 OpenLayers.Application.loadURL(queryString, null, this,  
    57                                        success, failure); 
    58             } 
    59         } 
    60     }, 
    61  
    62  
    6335    /** 
    6436    */