? .cvsignore ? .openlayers.module.swp ? BufferRatioSingleTileWMS.patch ? BufferRatioWMS.patch ? ChangeLog ? Cluster.newfiles.tgz ? Cluster.patch ? LayersTypeHeader.patch ? README_LOCAL.txt ? psql water_drupal6 ? singleTileWMS.patch ? includes/.openlayers.render.inc.swp ? includes/.openlayers.styles.inc.swp ? includes/behaviors/.vimrc ? includes/behaviors/ChangeLog ? includes/behaviors/openlayers_behavior_cluster.inc ? includes/behaviors/js/.vimrc ? includes/behaviors/js/openlayers_behavior_cluster.js ? includes/layer_types/.wms.inc.swp ? includes/layer_types/.wms.js.swp ? js/.openlayers.js.swp Index: includes/layer_types/wms.inc =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/openlayers/includes/layer_types/Attic/wms.inc,v retrieving revision 1.1.2.9 diff -r1.1.2.9 wms.inc 60a61,77 > // TODO: validate the field, only positive integers shall be allowed > 'buffer' => array( > '#type' => 'textfield', > '#default_value' => isset($this->data['params']['buffer']) ? > $this->data['params']['buffer'] : 2, > '#title' => t('Buffer'), > '#description' => t('Used only when not in single-tile mode, this specifies umber of extra rows and colums of tiles on each side which will surround the minimum grid tiles to cover the map') > ), > // TODO: validate the field, only positive numbers shall be allowed > // numbers below 1 might also not make much sense > 'ratio' => array( > '#type' => 'textfield', > '#default_value' => isset($this->data['params']['ratio']) ? > $this->data['params']['ratio'] : 1.5, > '#title' => t('Ratio'), > '#description' => t('Used only when in single-tile mode, this specifies the ratio of the size of the single tile to the size of the map') > ) Index: includes/layer_types/wms.js =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/openlayers/includes/layer_types/Attic/wms.js,v retrieving revision 1.1.2.7 diff -r1.1.2.7 wms.js 12a13,21 > > /* TODO: have PHP take care of the casts here, not JS! */ > options.params.buffer = parseInt(options.params.buffer); > options.params.ratio = parseFloat(options.params.ratio); > > console.dir(options.params); > if ( options.params.buffer ) console.log("buffer evaluates to true"); > if ( options.params.ratio ) console.log("ratio evaluates to true"); >