forked from 0x2620/oxjs
updating listmap
This commit is contained in:
parent
0c88632437
commit
60d6c2a166
3 changed files with 28 additions and 6 deletions
|
|
@ -1019,6 +1019,7 @@ Ox.Map = function(options, self) {
|
|||
}, results.data.items[0])).add();
|
||||
self.places.push(place);
|
||||
select();
|
||||
that.panToPlace();
|
||||
});
|
||||
}
|
||||
} else {
|
||||
|
|
@ -1207,12 +1208,20 @@ Ox.Map = function(options, self) {
|
|||
key = 'meta'
|
||||
}
|
||||
return key;
|
||||
}
|
||||
};
|
||||
|
||||
/*
|
||||
that.editPlace = function() {
|
||||
getPlaceById(self.options.selected).edit();
|
||||
return that;
|
||||
}
|
||||
};
|
||||
*/
|
||||
|
||||
that.editPlace = function(data) {
|
||||
var place = getPlaceById(self.options.selected);
|
||||
place.$marker.options(data);
|
||||
return that;
|
||||
};
|
||||
|
||||
that.findPlace = function(name, callback) {
|
||||
getPlaceByName(name, function(place) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue