update place flag on define (fixes #561)
This commit is contained in:
parent
7019a7994b
commit
8300e402cf
1 changed files with 4 additions and 0 deletions
|
@ -995,6 +995,10 @@ Ox.ListMap = function(options, self) {
|
||||||
place.name = self.$list.value(self.options.selected, 'name');
|
place.name = self.$list.value(self.options.selected, 'name');
|
||||||
place.id = self.options.selected;
|
place.id = self.options.selected;
|
||||||
self.$map.addPlace(place);
|
self.$map.addPlace(place);
|
||||||
|
self.$findPlaceButton.hide();
|
||||||
|
self.$placeFlag.attr({
|
||||||
|
src: Ox.getFlagByGeoname(place.geoname || '', 16)
|
||||||
|
}).show();
|
||||||
self.$placeForm.values(place).show();
|
self.$placeForm.values(place).show();
|
||||||
self.$areaKmInput.value(Ox.formatArea(place.area)).show();
|
self.$areaKmInput.value(Ox.formatArea(place.area)).show();
|
||||||
editPlace([
|
editPlace([
|
||||||
|
|
Loading…
Reference in a new issue