vendor/mod/odyssey.js
/*
   * there are special propertues like pos, marker and so 
   * on that should become actions
   */
there are special propertues like pos, marker and so
on that should become actions
there are special propertues like pos marker and so on that should become actions
function propertiesToActions() {
    for (var k in properties) {
      var prop = properties[k];
      switch (k) {
        case 'center':
          var pos = prop.value;
          if (properties.zoom === undefined) {
            actions.push({
              order: prop.order,
              cmd: 'S.map.actions.panTo([' + pos[0] + ',' + pos[1] + '])'
            });
          } else {
            actions.push({
              order: prop.order,
              cmd: 'S.map.actions.setView([' + pos[0] + ',' + pos[1] + '], ' + properties.zoom.value + ')'
            });
          }
        case 'zoom':
          if (!properties.center) {
            actions.push({
              order: prop.order,
              cmd: 'S.map.actions.setZoom(' + properties.zoom.value+ ')'
            });
          }
      }
    }
  }
function propertiesToActions ( ) { for ( var k in properties ) { var prop = properties [ k ] ; switch ( k ) { case 'center' : var pos = prop . value ; if ( properties . zoom === undefined ) { actions . push ( { order : prop . order , cmd : 'S.map.actions.panTo([' + pos [ 0 ] + ',' + pos [ 1 ] + '])' } ) ; } else { actions . push ( { order : prop . order , cmd : 'S.map.actions.setView([' + pos [ 0 ] + ',' + pos [ 1 ] + '], ' + properties . zoom . value + ')' } ) ; } case 'zoom' : if ( ! properties . center ) { actions . push ( { order : prop . order , cmd : 'S.map.actions.setZoom(' + properties . zoom . value + ')' } ) ; } } } }
there are special propertues like pos, marker and so
 on that should become actions
there are special propertues like pos marker and so on that should become actions