allow for editing s/w/n/e/ values manually
This commit is contained in:
parent
df27e28c5e
commit
66c8347a2a
4 changed files with 11 additions and 4 deletions
|
@ -566,7 +566,11 @@ Ox.Input = function(options, self) {
|
|||
Ox.UI.$document.unbind('keydown', keydown);
|
||||
//Ox.UI.$document.unbind('keypress', keypress);
|
||||
}
|
||||
that.triggerEvent('blur');
|
||||
// fixme: for some reason, if options.type is set, no change event fires
|
||||
// as a workaround, blur sends a value. remove later...
|
||||
that.triggerEvent('blur', {
|
||||
value: self.options.value
|
||||
});
|
||||
}
|
||||
|
||||
function cancel() {
|
||||
|
|
|
@ -458,7 +458,7 @@ Ox.ListMap = function(options, self) {
|
|||
max = ['Latitude', 'South', 'North'].indexOf(v) > -1 ? Ox.MAX_LATITUDE : 180;
|
||||
return Ox.Input({
|
||||
decimals: 8,
|
||||
//disabled: true, // ['Latitude', 'Longitude'].indexOf(v) > -1,
|
||||
disabled: ['lat', 'lng'].indexOf(id) > -1,
|
||||
id: id,
|
||||
label: v,
|
||||
labelWidth: 80,
|
||||
|
@ -468,7 +468,7 @@ Ox.ListMap = function(options, self) {
|
|||
width: 240
|
||||
})
|
||||
.bindEvent({
|
||||
change: function(data) {
|
||||
blur: function(data) {
|
||||
///*
|
||||
var isResult = self.selectedPlace[0] == '_';
|
||||
if (!self.isAsync) {
|
||||
|
@ -476,7 +476,7 @@ Ox.ListMap = function(options, self) {
|
|||
} else {
|
||||
!isResult && editPlace([v])
|
||||
}
|
||||
self.$map.value(self.selectedPlace, v, data.value);
|
||||
self.$map.value(self.selectedPlace, id, data.value);
|
||||
//*/
|
||||
}
|
||||
});
|
||||
|
|
|
@ -83,6 +83,7 @@ Ox.MapPlace = function(options) {
|
|||
place: that
|
||||
});
|
||||
} else if (updateMarker) {
|
||||
Ox.print('UPDATING marker and rectangle ... llswne', that.lat, that.lng, that.south, that.west, that.north, that.east)
|
||||
that.marker.update();
|
||||
that.rectangle.update();
|
||||
}
|
||||
|
@ -155,6 +156,7 @@ Ox.MapPlace = function(options) {
|
|||
options = Ox.makeObject(arguments);
|
||||
Ox.forEach(options, function(value, key) {
|
||||
that[key] = value;
|
||||
Ox.print('that.' + key, '=', value, '......')
|
||||
});
|
||||
update(true);
|
||||
};
|
||||
|
|
|
@ -109,6 +109,7 @@ Ox.MapRectangle = function(options, self) {
|
|||
update <f> udpate
|
||||
@*/
|
||||
that.update = function() {
|
||||
Ox.print('UPDATE...')
|
||||
that.rectangle.setOptions({
|
||||
bounds: that.place.bounds
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue