dataLoader = $.ajax({
url: url,
- success: function (xml) {
+ dataType: "json",
+ success: function (data) {
dataLayer.clearLayers();
- var features = dataLayer.buildFeatures(xml);
+ var features = dataLayer.buildFeatures(data);
function addFeatures() {
$("#browse_status").empty();
var map = this;
this._objectLoader = $.ajax({
url: OSM.apiUrl(object),
- dataType: "xml",
- success: function (xml) {
+ dataType: "json",
+ success: function (data) {
map._object = object;
map._objectLayer = new L.OSM.DataLayer(null, {
}
};
- map._objectLayer.addData(xml);
+ map._objectLayer.addData(data);
map._objectLayer.addTo(map);
if (callback) callback(map._objectLayer.getBounds());