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 git-svn-id: http://svn.openlayers.org/trunk/openlayers@4 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
11
example.html
11
example.html
@@ -9,17 +9,12 @@
|
||||
background-color: red;
|
||||
}
|
||||
</style>
|
||||
<!--
|
||||
<script src="js/3rd/prototype.js" ></script>
|
||||
<script src="js/3rd/logger.js" ></script>
|
||||
<script src="http://maps.google.com/maps?file=api&v=1&key=ABQIAAAAmQ3udCHPQVB_9T_edFZ7YRTcPsh3Vei3pvv-O2gjJ-8oYrRtdhQUNNh-FlqSqbWQTvBoeGLmUYa5EQ" type="text/javascript"></script>
|
||||
-->
|
||||
<script src="js/OpenLayers.js"></script>
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
<!--
|
||||
var lat = 40;
|
||||
var lon = 5;
|
||||
var zoom = 5;
|
||||
var zoom = 5;
|
||||
var map, layer;
|
||||
|
||||
function init(){
|
||||
@@ -31,7 +26,7 @@
|
||||
map.addLayer(layer);
|
||||
map.setCenter(new OpenLayers.LatLon(lat, lon), zoom);
|
||||
}
|
||||
-->
|
||||
// -->
|
||||
</script>
|
||||
</head>
|
||||
<body onload="init()">
|
||||
|
||||
@@ -32,34 +32,6 @@ OpenLayers.Tile.prototype = {
|
||||
}
|
||||
},
|
||||
|
||||
/** get the full request string from the ds and the tile params
|
||||
* and call the AJAX loadURL().
|
||||
*
|
||||
* input are function pointers for what to do on success and failure.
|
||||
*
|
||||
* @param {function} success
|
||||
* @param {function} failure
|
||||
*/
|
||||
loadFeaturesForRegion:function(success, failure) {
|
||||
|
||||
if (!this.loaded) {
|
||||
|
||||
var server = this.ds.serverPath;
|
||||
|
||||
if (server != "") {
|
||||
|
||||
var queryString = this.getFullRequestString();
|
||||
// TODO: Hmmm, this stops multiple loads of the data when a
|
||||
// result isn't immediately retrieved, but it's hacky.
|
||||
// Do it better.
|
||||
this.loaded = true;
|
||||
OpenLayers.Application.loadURL(queryString, null, this,
|
||||
success, failure);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
/**
|
||||
*/
|
||||
draw:function() {
|
||||
|
||||
Reference in New Issue
Block a user