$items = array(); $openlayers_presets = new stdClass; $openlayers_presets->disabled = FALSE; /* Edit this to true to make a default openlayers_presets disabled initially */ $openlayers_presets->api_version = 1; $openlayers_presets->name = 'modified_default'; $openlayers_presets->title = 'Modified Default Map'; $openlayers_presets->description = 'This is the default map preset that comes with the OpenLayers module.'; $openlayers_presets->data = array( 'width' => 'auto', 'height' => '400px', 'image_path' => '', 'css_path' => '', 'proxy_host' => '', 'hide_empty_map' => 0, 'center' => array( 'initial' => array( 'centerpoint' => '0,0', 'zoom' => '2', ), 'restrict' => array( 'restrictextent' => 0, 'restrictedExtent' => '', ), ), 'behaviors' => array( 'openlayers_behavior_attribution' => array(), 'openlayers_behavior_keyboarddefaults' => array(), 'openlayers_behavior_layerswitcher' => array( 'ascending' => 1, ), 'openlayers_behavior_navigation' => array( 'zoomWheelEnabled' => 1, ), 'openlayers_behavior_panzoombar' => array(), 'openlayers_geocoder_zoomtolocation' => array( 'query' => '', ), ), 'default_layer' => 'osm_mapnik', 'layers' => array( 'osm_mapnik' => 'osm_mapnik', ), 'layer_styles' => array(), 'layer_activated' => array(), 'layer_switcher' => array(), 'projection' => '900913', 'displayProjection' => '4326', 'styles' => array( 'default' => 'default', 'select' => 'default', 'temporary' => 'default', ), 'preset_name' => 'modified_default', ); $items["modified_default"] = $openlayers_presets; return $items;