From bc174c49dd52d4cb5a8f2879bfa924fbca4160cc Mon Sep 17 00:00:00 2001 From: j Date: Wed, 6 Aug 2025 23:01:31 +0200 Subject: [PATCH] support updating MapEditor places --- source/UI/js/Map/MapEditor.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/source/UI/js/Map/MapEditor.js b/source/UI/js/Map/MapEditor.js index 64b36988..54b0cd59 100644 --- a/source/UI/js/Map/MapEditor.js +++ b/source/UI/js/Map/MapEditor.js @@ -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',