support updating MapEditor places

This commit is contained in:
j 2025-08-06 23:01:31 +02:00
commit bc174c49dd

View file

@ -46,12 +46,21 @@ Ox.MapEditor = function(options, self) {
self.$list.size();
self.$map.resizeMap();
},
places: function() {
self.isAsync = Ox.isFunction(self.options.places);
self.$list.options({
items: Ox.clone(self.options.places)
})
self.$map.options({
places: self.options.places
})
}
selected: function() {
self.$list.options({selected: self.options.selected});
},
width: function() {
self.$map.resizeMap();
}
},
})
.css({
width: self.options.width + 'px',