mark the OpenLayers.loadURL method as deprecated (replaced by OpenLayers.Request.GET). r=erilem,rdewit,ahocevar (closes #3443)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12206 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -12,10 +12,13 @@ function init() {
|
||||
));
|
||||
map.addControl(new OpenLayers.Control.LayerSwitcher());
|
||||
|
||||
OpenLayers.loadURL("tasmania/sld-tasmania.xml", null, null, complete);
|
||||
OpenLayers.Request.GET({
|
||||
url: "tasmania/sld-tasmania.xml",
|
||||
success: complete
|
||||
});
|
||||
}
|
||||
|
||||
// handler for the loadURL function in the init method
|
||||
// handler for the OpenLayers.Request.GET function in the init method
|
||||
function complete(req) {
|
||||
sld = format.read(req.responseXML || req.responseText);
|
||||
buildStyleChooser();
|
||||
|
||||
Reference in New Issue
Block a user