mirror of
https://github.com/FoggedLens/iD.git
synced 2026-03-20 18:13:30 +00:00
Fix poi creation
This commit is contained in:
@@ -208,6 +208,12 @@ iD.Connection = function(apiURL) {
|
||||
connection.loadFromAPI = loadFromAPI;
|
||||
connection.loadFromURL = loadFromURL;
|
||||
connection.getObjectsByBbox = getObjectsByBbox;
|
||||
connection.doCreateNode = doCreateNode;
|
||||
connection.doCreateWay = doCreateWay;
|
||||
connection.doCreateRelation = doCreateRelation;
|
||||
connection.registerPOI = registerPOI;
|
||||
connection.unregisterPOI = unregisterPOI;
|
||||
connection.getPOIs = getPOIs;
|
||||
|
||||
return connection;
|
||||
};
|
||||
|
||||
@@ -38,7 +38,6 @@ iD.Util.presets = function(type, callback) {
|
||||
if (typeof console !== 'undefined') console.error(arguments);
|
||||
},
|
||||
success: function(resp) {
|
||||
console.log(resp);
|
||||
iD.Util._presets[type] = resp;
|
||||
return callback(resp);
|
||||
}
|
||||
|
||||
@@ -40,7 +40,6 @@ declare("iD.controller.edit.EditBaseState", [iD.controller.ControllerState], {
|
||||
// Build presets panel
|
||||
iD.Util.presets(entity.entityType, function(presets) {
|
||||
$presets.empty();
|
||||
console.log(presets);
|
||||
_.each(presets, function(pre, category) {
|
||||
$('<h3></h3>')
|
||||
.text(category)
|
||||
|
||||
Reference in New Issue
Block a user