Changeset 4
- Timestamp:
- 05/12/06 15:59:51 (4 years ago)
- Files:
-
- trunk/openlayers/example.html (modified) (2 diffs)
- trunk/openlayers/js/OpenLayers/Tile.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/openlayers/example.html
r2 r4 10 10 } 11 11 </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&v=1&key=ABQIAAAAmQ3udCHPQVB_9T_edFZ7YRTcPsh3Vei3pvv-O2gjJ-8oYrRtdhQUNNh-FlqSqbWQTvBoeGLmUYa5EQ" type="text/javascript"></script>16 -->17 12 <script src="js/OpenLayers.js"></script> 18 13 <script type="text/javascript"> 19 <!--14 <!-- 20 15 var lat = 40; 21 16 var lon = 5; 22 var zoom = 5;17 var zoom = 5; 23 18 var map, layer; 24 19 … … 32 27 map.setCenter(new OpenLayers.LatLon(lat, lon), zoom); 33 28 } 34 -->29 // --> 35 30 </script> 36 31 </head> trunk/openlayers/js/OpenLayers/Tile.js
r2 r4 33 33 }, 34 34 35 /** get the full request string from the ds and the tile params36 * and call the AJAX loadURL().37 *38 * input are function pointers for what to do on success and failure.39 *40 * @param {function} success41 * @param {function} failure42 */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 a53 // 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 63 35 /** 64 36 */
