map.js 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. /*
  2. * Licensed to the Apache Software Foundation (ASF) under one
  3. * or more contributor license agreements. See the NOTICE file
  4. * distributed with this work for additional information
  5. * regarding copyright ownership. The ASF licenses this file
  6. * to you under the Apache License, Version 2.0 (the
  7. * "License"); you may not use this file except in compliance
  8. * with the License. You may obtain a copy of the License at
  9. *
  10. * http://www.apache.org/licenses/LICENSE-2.0
  11. *
  12. * Unless required by applicable law or agreed to in writing,
  13. * software distributed under the License is distributed on an
  14. * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  15. * KIND, either express or implied. See the License for the
  16. * specific language governing permissions and limitations
  17. * under the License.
  18. */
  19. var echarts = require("../echarts");
  20. require("./map/MapSeries");
  21. require("./map/MapView");
  22. require("../action/geoRoam");
  23. require("../coord/geo/geoCreator");
  24. var mapSymbolLayout = require("./map/mapSymbolLayout");
  25. var mapVisual = require("./map/mapVisual");
  26. var mapDataStatistic = require("./map/mapDataStatistic");
  27. var backwardCompat = require("./map/backwardCompat");
  28. var createDataSelectAction = require("../action/createDataSelectAction");
  29. /*
  30. * Licensed to the Apache Software Foundation (ASF) under one
  31. * or more contributor license agreements. See the NOTICE file
  32. * distributed with this work for additional information
  33. * regarding copyright ownership. The ASF licenses this file
  34. * to you under the Apache License, Version 2.0 (the
  35. * "License"); you may not use this file except in compliance
  36. * with the License. You may obtain a copy of the License at
  37. *
  38. * http://www.apache.org/licenses/LICENSE-2.0
  39. *
  40. * Unless required by applicable law or agreed to in writing,
  41. * software distributed under the License is distributed on an
  42. * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  43. * KIND, either express or implied. See the License for the
  44. * specific language governing permissions and limitations
  45. * under the License.
  46. */
  47. echarts.registerLayout(mapSymbolLayout);
  48. echarts.registerVisual(mapVisual);
  49. echarts.registerProcessor(echarts.PRIORITY.PROCESSOR.STATISTIC, mapDataStatistic);
  50. echarts.registerPreprocessor(backwardCompat);
  51. createDataSelectAction('map', [{
  52. type: 'mapToggleSelect',
  53. event: 'mapselectchanged',
  54. method: 'toggleSelected'
  55. }, {
  56. type: 'mapSelect',
  57. event: 'mapselected',
  58. method: 'select'
  59. }, {
  60. type: 'mapUnSelect',
  61. event: 'mapunselected',
  62. method: 'unSelect'
  63. }]);