forked from 0x2620/oxjs
update video editor (places, events)
This commit is contained in:
parent
8de69b3173
commit
8384fcc913
13 changed files with 346 additions and 144 deletions
|
|
@ -108,9 +108,9 @@ Ox.Map = function(options, self) {
|
|||
showControls: false,
|
||||
showLabels: false,
|
||||
showTypes: false,
|
||||
statusbar: false,
|
||||
toolbar: false,
|
||||
zoombar: false
|
||||
statusbar: false, // FIXME: showStatusbar
|
||||
toolbar: false, // FIXME: showToolbar
|
||||
zoombar: false // FIXME: showZoombar
|
||||
// fixme: width, height
|
||||
})
|
||||
.options(options || {})
|
||||
|
|
@ -1112,6 +1112,7 @@ Ox.Map = function(options, self) {
|
|||
}
|
||||
|
||||
function selectPlace(id, zoom) {
|
||||
Ox.print('SELECT PLACE', id)
|
||||
// id can be null (deselect)
|
||||
var place,
|
||||
selected = getSelectedMarker();
|
||||
|
|
@ -1366,7 +1367,7 @@ Ox.Map = function(options, self) {
|
|||
self.map.fitBounds(mapBounds);
|
||||
});
|
||||
} else if (key == 'selected') {
|
||||
selectPlace(value);
|
||||
selectPlace(value || null);
|
||||
} else if (key == 'type') {
|
||||
|
||||
}
|
||||
|
|
@ -1477,6 +1478,7 @@ Ox.Map = function(options, self) {
|
|||
size: self.options.width
|
||||
});
|
||||
updateFormElements();
|
||||
Ox.print('triggering google maps resize event, height', self.options.height)
|
||||
google.maps.event.trigger(self.map, 'resize');
|
||||
return that;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue