Advertisement
Guest User

Drupal openlayers

a guest
Jan 10th, 2012
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.09 KB | None | 0 0
  1. $items = array();
  2. $openlayers_maps = new stdClass;
  3. $openlayers_maps->disabled = FALSE; /* Edit this to true to make a default openlayers_maps disabled initially */
  4. $openlayers_maps->api_version = 1;
  5. $openlayers_maps->name = 'geofield_widget_map_modified';
  6. $openlayers_maps->title = 'Geofield Widget Map Modified';
  7. $openlayers_maps->description = 'A Map Used for Geofield Input';
  8. $openlayers_maps->data = array(
  9. 'width' => '600px',
  10. 'height' => '400px',
  11. 'image_path' => 'sites/all/modules/openlayers/themes/default_dark/img/',
  12. 'css_path' => 'sites/all/modules/openlayers/themes/default_dark/style.css',
  13. 'proxy_host' => '',
  14. 'hide_empty_map' => 0,
  15. 'center' => array(
  16. 'initial' => array(
  17. 'centerpoint' => '19.064707670821, 46.849415746092',
  18. 'zoom' => '7',
  19. ),
  20. 'restrict' => array(
  21. 'restrictextent' => 1,
  22. 'restrictedExtent' => '1407512.118648,5332031.043682,2992510.336949,6579483.345122',
  23. ),
  24. ),
  25. 'behaviors' => array(
  26. 'openlayers_behavior_geofield' => array(
  27. 'feature_types' => array(
  28. 'point' => 'point',
  29. 'path' => 'path',
  30. 'polygon' => 'polygon',
  31. ),
  32. 'allow_edit' => 1,
  33. ),
  34. 'openlayers_behavior_keyboarddefaults' => array(),
  35. 'openlayers_behavior_navigation' => array(
  36. 'zoomWheelEnabled' => 0,
  37. 'zoomBoxEnabled' => 1,
  38. 'documentDrag' => 0,
  39. ),
  40. 'openlayers_behavior_panzoombar' => array(
  41. 'zoomWorldIcon' => 0,
  42. 'panIcons' => 1,
  43. ),
  44. ),
  45. 'default_layer' => 'mapquest_osm',
  46. 'layers' => array(
  47. 'mapquest_osm' => 'mapquest_osm',
  48. 'geofield_formatter' => 'geofield_formatter',
  49. 'map_engine_openlayers_1' => 'map_engine_openlayers_1',
  50. 'map_engine_openlayers_2' => 'map_engine_openlayers_2',
  51. ),
  52. 'layer_weight' => array(
  53. 'geofield_formatter' => '0',
  54. 'map_engine_openlayers_1' => '0',
  55. 'map_engine_openlayers_2' => '0',
  56. 'openlayers_geojson_picture_this' => '0',
  57. ),
  58. 'layer_styles' => array(
  59. 'openlayers_geojson_picture_this' => '0',
  60. 'map_engine_openlayers_2' => '0',
  61. 'map_engine_openlayers_1' => '0',
  62. 'geofield_formatter' => '0',
  63. ),
  64. 'layer_styles_select' => array(
  65. 'openlayers_geojson_picture_this' => '0',
  66. 'map_engine_openlayers_2' => '0',
  67. 'map_engine_openlayers_1' => '0',
  68. 'geofield_formatter' => '0',
  69. ),
  70. 'layer_activated' => array(
  71. 'map_engine_openlayers_2' => 'map_engine_openlayers_2',
  72. 'map_engine_openlayers_1' => 'map_engine_openlayers_1',
  73. 'geofield_formatter' => 0,
  74. 'openlayers_geojson_picture_this' => 0,
  75. ),
  76. 'layer_switcher' => array(
  77. 'map_engine_openlayers_2' => 'map_engine_openlayers_2',
  78. 'map_engine_openlayers_1' => 'map_engine_openlayers_1',
  79. 'geofield_formatter' => 0,
  80. 'openlayers_geojson_picture_this' => 0,
  81. ),
  82. 'projection' => '900913',
  83. 'displayProjection' => '4326',
  84. 'styles' => array(
  85. 'default' => 'default',
  86. 'select' => 'default',
  87. 'temporary' => 'default',
  88. ),
  89. 'map_name' => 'geofield_widget_map_modified',
  90. );
  91. $items["geofield_widget_map_modified"] = $openlayers_maps;
  92. return $items;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement