openlayers.default_openlayers_interactions.inc 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. <?php
  2. /**
  3. * @file
  4. * Provide default interactions.
  5. */
  6. /**
  7. * Implements hook_default_openlayers_interactions().
  8. */
  9. function openlayers_default_openlayers_interactions() {
  10. $export = array();
  11. $ol_interaction = new stdClass();
  12. $ol_interaction->api_version = 1;
  13. $ol_interaction->machine_name = 'openlayers_interaction_doubleclickzoom';
  14. $ol_interaction->name = 'DoubleClickZoom';
  15. $ol_interaction->description = 'DoubleClickZoom interaction description';
  16. $ol_interaction->factory_service = 'openlayers.Interaction:DoubleClickZoom';
  17. $ol_interaction->options = array();
  18. $export['openlayers_interaction_doubleclickzoom'] = $ol_interaction;
  19. $ol_interaction = new stdClass();
  20. $ol_interaction->api_version = 1;
  21. $ol_interaction->machine_name = 'openlayers_interaction_draganddrop';
  22. $ol_interaction->name = 'DragAndDrop';
  23. $ol_interaction->description = 'DragAndDrop interaction description';
  24. $ol_interaction->factory_service = 'openlayers.Interaction:DragAndDrop';
  25. $ol_interaction->options = array();
  26. $export['openlayers_interaction_draganddrop'] = $ol_interaction;
  27. $ol_interaction = new stdClass();
  28. $ol_interaction->api_version = 1;
  29. $ol_interaction->machine_name = 'openlayers_interaction_dragbox';
  30. $ol_interaction->name = 'DragBox';
  31. $ol_interaction->description = 'DragBox interaction description';
  32. $ol_interaction->factory_service = 'openlayers.Interaction:DragBox';
  33. $ol_interaction->options = array();
  34. $export['openlayers_interaction_dragbox'] = $ol_interaction;
  35. $ol_interaction = new stdClass();
  36. $ol_interaction->api_version = 1;
  37. $ol_interaction->machine_name = 'openlayers_interaction_dragpan';
  38. $ol_interaction->name = 'DragPan';
  39. $ol_interaction->description = 'DragPan interaction description';
  40. $ol_interaction->factory_service = 'openlayers.Interaction:DragPan';
  41. $ol_interaction->options = array(
  42. 'decay' => -0.005,
  43. 'minVelocity' => 0.05,
  44. 'delay' => 100,
  45. );
  46. $export['openlayers_interaction_dragpan'] = $ol_interaction;
  47. $ol_interaction = new stdClass();
  48. $ol_interaction->api_version = 1;
  49. $ol_interaction->machine_name = 'openlayers_interaction_dragrotate';
  50. $ol_interaction->name = 'DragRotate';
  51. $ol_interaction->description = 'DragRotate interaction description';
  52. $ol_interaction->factory_service = 'openlayers.Interaction:DragRotate';
  53. $ol_interaction->options = array();
  54. $export['openlayers_interaction_dragrotate'] = $ol_interaction;
  55. $ol_interaction = new stdClass();
  56. $ol_interaction->api_version = 1;
  57. $ol_interaction->machine_name = 'openlayers_interaction_dragrotateandzoom';
  58. $ol_interaction->name = 'DragRotateAndZoom';
  59. $ol_interaction->description = 'DragRotateAndZoom interaction description';
  60. $ol_interaction->factory_service = 'openlayers.Interaction:DragRotateAndZoom';
  61. $ol_interaction->options = array();
  62. $export['openlayers_interaction_dragrotateandzoom'] = $ol_interaction;
  63. $ol_interaction = new stdClass();
  64. $ol_interaction->api_version = 1;
  65. $ol_interaction->machine_name = 'openlayers_interaction_dragzoom';
  66. $ol_interaction->name = 'DragZoom';
  67. $ol_interaction->description = 'DragZoom interaction description';
  68. $ol_interaction->factory_service = 'openlayers.Interaction:DragZoom';
  69. $ol_interaction->options = array();
  70. $export['openlayers_interaction_dragzoom'] = $ol_interaction;
  71. $ol_interaction = new stdClass();
  72. $ol_interaction->api_version = 1;
  73. $ol_interaction->machine_name = 'openlayers_interaction_draw';
  74. $ol_interaction->name = 'Draw';
  75. $ol_interaction->description = 'Draw interaction description';
  76. $ol_interaction->factory_service = 'openlayers.Interaction:Draw';
  77. $ol_interaction->options = array();
  78. $export['openlayers_interaction_draw'] = $ol_interaction;
  79. $ol_interaction = new stdClass();
  80. $ol_interaction->api_version = 1;
  81. $ol_interaction->machine_name = 'openlayers_interaction_keyboardpan';
  82. $ol_interaction->name = 'KeyboardPan';
  83. $ol_interaction->description = 'KeyboardPan interaction description';
  84. $ol_interaction->factory_service = 'openlayers.Interaction:KeyboardPan';
  85. $ol_interaction->options = array();
  86. $export['openlayers_interaction_keyboardpan'] = $ol_interaction;
  87. $ol_interaction = new stdClass();
  88. $ol_interaction->api_version = 1;
  89. $ol_interaction->machine_name = 'openlayers_interaction_keyboardzoom';
  90. $ol_interaction->name = 'KeyboardZoom';
  91. $ol_interaction->description = 'KeyboardZoom interaction description';
  92. $ol_interaction->factory_service = 'openlayers.Interaction:KeyboardZoom';
  93. $ol_interaction->options = array();
  94. $export['openlayers_interaction_keyboardzoom'] = $ol_interaction;
  95. $ol_interaction = new stdClass();
  96. $ol_interaction->api_version = 1;
  97. $ol_interaction->machine_name = 'openlayers_interaction_modify';
  98. $ol_interaction->name = 'Modify';
  99. $ol_interaction->description = 'Modify interaction description';
  100. $ol_interaction->factory_service = 'openlayers.Interaction:Modify';
  101. $ol_interaction->options = array();
  102. $export['openlayers_interaction_modify'] = $ol_interaction;
  103. $ol_interaction = new stdClass();
  104. $ol_interaction->api_version = 1;
  105. $ol_interaction->machine_name = 'openlayers_interaction_mousewheelzoom';
  106. $ol_interaction->name = 'MouseWheelZoom';
  107. $ol_interaction->description = 'MouseWheelZoom interaction description';
  108. $ol_interaction->factory_service = 'openlayers.Interaction:MouseWheelZoom';
  109. $ol_interaction->options = array();
  110. $export['openlayers_interaction_mousewheelzoom'] = $ol_interaction;
  111. $ol_interaction = new stdClass();
  112. $ol_interaction->api_version = 1;
  113. $ol_interaction->machine_name = 'openlayers_interaction_pinchrotate';
  114. $ol_interaction->name = 'PinchRotate';
  115. $ol_interaction->description = 'PinchRotate interaction description';
  116. $ol_interaction->factory_service = 'openlayers.Interaction:PinchRotate';
  117. $ol_interaction->options = array();
  118. $export['openlayers_interaction_pinchrotate'] = $ol_interaction;
  119. $ol_interaction = new stdClass();
  120. $ol_interaction->api_version = 1;
  121. $ol_interaction->machine_name = 'openlayers_interaction_pinchzoom';
  122. $ol_interaction->name = 'PinchZoom';
  123. $ol_interaction->description = 'PinchZoom interaction description';
  124. $ol_interaction->factory_service = 'openlayers.Interaction:PinchZoom';
  125. $ol_interaction->options = array();
  126. $export['openlayers_interaction_pinchzoom'] = $ol_interaction;
  127. $ol_interaction = new stdClass();
  128. $ol_interaction->api_version = 1;
  129. $ol_interaction->machine_name = 'openlayers_interaction_pointer';
  130. $ol_interaction->name = 'Pointer';
  131. $ol_interaction->description = 'Pointer interaction description';
  132. $ol_interaction->factory_service = 'openlayers.Interaction:Pointer';
  133. $ol_interaction->options = array();
  134. $export['openlayers_interaction_pointer'] = $ol_interaction;
  135. $ol_interaction = new stdClass();
  136. $ol_interaction->api_version = 1;
  137. $ol_interaction->machine_name = 'openlayers_interaction_select';
  138. $ol_interaction->name = 'Select';
  139. $ol_interaction->description = 'Select interaction description';
  140. $ol_interaction->factory_service = 'openlayers.Interaction:Select';
  141. $ol_interaction->options = array(
  142. 'style' => 'openlayers_style_select',
  143. );
  144. $export['openlayers_interaction_select'] = $ol_interaction;
  145. $ol_interaction = new stdClass();
  146. $ol_interaction->api_version = 1;
  147. $ol_interaction->machine_name = 'openlayers_interaction_snap';
  148. $ol_interaction->name = 'Snap';
  149. $ol_interaction->description = 'Snap interaction description';
  150. $ol_interaction->factory_service = 'openlayers.Interaction:Snap';
  151. $ol_interaction->options = array();
  152. $export['openlayers_interaction_snap'] = $ol_interaction;
  153. $ol_interaction = new stdClass();
  154. $ol_interaction->disabled = FALSE;
  155. $ol_interaction->api_version = 1;
  156. $ol_interaction->machine_name = 'openlayers_interaction_translate';
  157. $ol_interaction->name = 'Translate';
  158. $ol_interaction->description = 'Translate interaction description';
  159. $ol_interaction->factory_service = 'openlayers.Interaction:Translate';
  160. $ol_interaction->options = array();
  161. $export['openlayers_interaction_translate'] = $ol_interaction;
  162. return $export;
  163. }