openlayers.default_openlayers_controls.inc 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <?php
  2. /**
  3. * @file
  4. * Provide default controls.
  5. */
  6. /**
  7. * Implements hook_default_openlayers_controls().
  8. */
  9. function openlayers_default_openlayers_controls() {
  10. $export = array();
  11. $ol_control = new stdClass();
  12. $ol_control->api_version = 1;
  13. $ol_control->machine_name = 'openlayers_control_attribution';
  14. $ol_control->name = 'Attribution';
  15. $ol_control->description = 'Attribution control description';
  16. $ol_control->factory_service = 'openlayers.Control:Attribution';
  17. $ol_control->options = array(
  18. 'collapsible' => 1,
  19. );
  20. $export['openlayers_control_attribution'] = $ol_control;
  21. $ol_control = new stdClass();
  22. $ol_control->api_version = 1;
  23. $ol_control->machine_name = 'openlayers_control_fullscreen';
  24. $ol_control->name = 'Fullscreen';
  25. $ol_control->description = 'Fullscreen control description';
  26. $ol_control->factory_service = 'openlayers.Control:FullScreen';
  27. $ol_control->options = array();
  28. $export['openlayers_control_fullscreen'] = $ol_control;
  29. $ol_control = new stdClass();
  30. $ol_control->api_version = 1;
  31. $ol_control->machine_name = 'openlayers_control_mouseposition';
  32. $ol_control->name = 'Mouse position';
  33. $ol_control->description = 'Mouse position control description';
  34. $ol_control->factory_service = 'openlayers.Control:MousePosition';
  35. $ol_control->options = array();
  36. $export['openlayers_control_mouseposition'] = $ol_control;
  37. $ol_control = new stdClass();
  38. $ol_control->api_version = 1;
  39. $ol_control->machine_name = 'openlayers_control_rotate';
  40. $ol_control->name = 'Rotate';
  41. $ol_control->description = 'Rotate control description';
  42. $ol_control->factory_service = 'openlayers.Control:Rotate';
  43. $ol_control->options = array();
  44. $export['openlayers_control_rotate'] = $ol_control;
  45. $ol_control = new stdClass();
  46. $ol_control->api_version = 1;
  47. $ol_control->machine_name = 'openlayers_control_scaleline';
  48. $ol_control->name = 'Scaleline';
  49. $ol_control->description = 'Scaleline control description';
  50. $ol_control->factory_service = 'openlayers.Control:ScaleLine';
  51. $ol_control->options = array();
  52. $export['openlayers_control_scaleline'] = $ol_control;
  53. $ol_control = new stdClass();
  54. $ol_control->api_version = 1;
  55. $ol_control->machine_name = 'openlayers_control_zoom';
  56. $ol_control->name = 'Zoom';
  57. $ol_control->description = 'Zoom control description';
  58. $ol_control->factory_service = 'openlayers.Control:Zoom';
  59. $ol_control->options = array();
  60. $export['openlayers_control_zoom'] = $ol_control;
  61. $ol_control = new stdClass();
  62. $ol_control->api_version = 1;
  63. $ol_control->machine_name = 'openlayers_control_overviewmap';
  64. $ol_control->name = 'OverviewMap';
  65. $ol_control->description = 'Create a new control with a map acting as an overview map for an other defined map.';
  66. $ol_control->factory_service = 'openlayers.Control:OverviewMap';
  67. $export['openlayers_control_overviewmap'] = $ol_control;
  68. $ol_control = new stdClass();
  69. $ol_control->api_version = 1;
  70. $ol_control->machine_name = 'openlayers_control_zoomslider';
  71. $ol_control->name = 'Zoom slider';
  72. $ol_control->description = 'Zoom slider control description';
  73. $ol_control->factory_service = 'openlayers.Control:ZoomSlider';
  74. $ol_control->options = array();
  75. $export['openlayers_control_zoomslider'] = $ol_control;
  76. $ol_control = new stdClass();
  77. $ol_control->api_version = 1;
  78. $ol_control->machine_name = 'openlayers_control_zoomtoextent';
  79. $ol_control->name = 'Zoom to extent';
  80. $ol_control->description = 'Zoom to extent control description';
  81. $ol_control->factory_service = 'openlayers.Control:ZoomToExtent';
  82. $ol_control->options = array();
  83. $export['openlayers_control_zoomtoextent'] = $ol_control;
  84. return $export;
  85. }