You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.js 1.0KB

12345678910111213141516171819202122232425262728293031323334
  1. /**
  2. * @Author:Caven
  3. * @Date:2020-03-05 21:53:35
  4. */
  5. import Attribution from './type/Attribution'
  6. import ContextMenu from './type/ContextMenu'
  7. import LocationBar from './type/LocationBar'
  8. import MapSplit from './type/MapSplit'
  9. import MapSwitch from './type/MapSwitch'
  10. import Popup from './type/Popup'
  11. import Tooltip from './type/Tooltip'
  12. import HawkeyeMap from './type/HawkeyeMap'
  13. import Compass from './type/Compass'
  14. import DistanceLegend from './type/DistanceLegend'
  15. import ZoomController from './type/ZoomController'
  16. import LoadingMask from './type/LoadingMask'
  17. export default function createWidgets() {
  18. return {
  19. attribution: new Attribution(),
  20. popup: new Popup(),
  21. contextMenu: new ContextMenu(),
  22. tooltip: new Tooltip(),
  23. mapSwitch: new MapSwitch(),
  24. mapSplit: new MapSplit(),
  25. locationBar: new LocationBar(),
  26. hawkeyeMap: new HawkeyeMap(),
  27. compass: new Compass(),
  28. distanceLegend: new DistanceLegend(),
  29. zoomController: new ZoomController(),
  30. loadingMask: new LoadingMask()
  31. }
  32. }