1
0
Fork 0
forked from 0x2620/oxjs

update map

This commit is contained in:
rolux 2011-06-01 15:51:35 +02:00
commit a369d0170d
3 changed files with 11 additions and 4 deletions

View file

@ -1297,8 +1297,14 @@ Ox.Map = function(options, self) {
that.value = function(id, key, value) {
// fixme: should be like the corresponding List/TextList/etc value function
Ox.print('Map.value', id, key, value)
getPlaceById(id)[key] = value;
var place = getPlaceById(id);
place[key] = value;
Ox.print('...', getPlaceById(id))
if ([
'type', 'lat', 'lng', 'south', 'west', 'north', 'east'
].indexOf(key) > -1) {
place.marker.options(key, value);
}
}
that.zoomToPlace = function() {