Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $items = array();
- $openlayers_maps = new stdClass;
- $openlayers_maps->disabled = FALSE; /* Edit this to true to make a default openlayers_maps disabled initially */
- $openlayers_maps->api_version = 1;
- $openlayers_maps->name = 'geofield_widget_map_modified';
- $openlayers_maps->title = 'Geofield Widget Map Modified';
- $openlayers_maps->description = 'A Map Used for Geofield Input';
- $openlayers_maps->data = array(
- 'width' => '600px',
- 'height' => '400px',
- 'image_path' => 'sites/all/modules/openlayers/themes/default_dark/img/',
- 'css_path' => 'sites/all/modules/openlayers/themes/default_dark/style.css',
- 'proxy_host' => '',
- 'hide_empty_map' => 0,
- 'center' => array(
- 'initial' => array(
- 'centerpoint' => '19.064707670821, 46.849415746092',
- 'zoom' => '7',
- ),
- 'restrict' => array(
- 'restrictextent' => 1,
- 'restrictedExtent' => '1407512.118648,5332031.043682,2992510.336949,6579483.345122',
- ),
- ),
- 'behaviors' => array(
- 'openlayers_behavior_geofield' => array(
- 'feature_types' => array(
- 'point' => 'point',
- 'path' => 'path',
- 'polygon' => 'polygon',
- ),
- 'allow_edit' => 1,
- ),
- 'openlayers_behavior_keyboarddefaults' => array(),
- 'openlayers_behavior_navigation' => array(
- 'zoomWheelEnabled' => 0,
- 'zoomBoxEnabled' => 1,
- 'documentDrag' => 0,
- ),
- 'openlayers_behavior_panzoombar' => array(
- 'zoomWorldIcon' => 0,
- 'panIcons' => 1,
- ),
- ),
- 'default_layer' => 'mapquest_osm',
- 'layers' => array(
- 'mapquest_osm' => 'mapquest_osm',
- 'geofield_formatter' => 'geofield_formatter',
- 'map_engine_openlayers_1' => 'map_engine_openlayers_1',
- 'map_engine_openlayers_2' => 'map_engine_openlayers_2',
- ),
- 'layer_weight' => array(
- 'geofield_formatter' => '0',
- 'map_engine_openlayers_1' => '0',
- 'map_engine_openlayers_2' => '0',
- 'openlayers_geojson_picture_this' => '0',
- ),
- 'layer_styles' => array(
- 'openlayers_geojson_picture_this' => '0',
- 'map_engine_openlayers_2' => '0',
- 'map_engine_openlayers_1' => '0',
- 'geofield_formatter' => '0',
- ),
- 'layer_styles_select' => array(
- 'openlayers_geojson_picture_this' => '0',
- 'map_engine_openlayers_2' => '0',
- 'map_engine_openlayers_1' => '0',
- 'geofield_formatter' => '0',
- ),
- 'layer_activated' => array(
- 'map_engine_openlayers_2' => 'map_engine_openlayers_2',
- 'map_engine_openlayers_1' => 'map_engine_openlayers_1',
- 'geofield_formatter' => 0,
- 'openlayers_geojson_picture_this' => 0,
- ),
- 'layer_switcher' => array(
- 'map_engine_openlayers_2' => 'map_engine_openlayers_2',
- 'map_engine_openlayers_1' => 'map_engine_openlayers_1',
- 'geofield_formatter' => 0,
- 'openlayers_geojson_picture_this' => 0,
- ),
- 'projection' => '900913',
- 'displayProjection' => '4326',
- 'styles' => array(
- 'default' => 'default',
- 'select' => 'default',
- 'temporary' => 'default',
- ),
- 'map_name' => 'geofield_widget_map_modified',
- );
- $items["geofield_widget_map_modified"] = $openlayers_maps;
- return $items;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement