2.0.9 • Published 6 months ago

heregisvue v2.0.9

Weekly downloads
13
License
-
Repository
-
Last release
6 months ago

heregisvue

安装

npm install heregisvue

定义事件总线

import Vue from 'vue'
global.$EventBus = new Vue()

引用

import {
    ArcGis, 
    esriModules,
    wktUtils,
    LatLon,
    Widgets,
    Editors,
    BaseMapToggle
} from 'heregisvue'

初始化

export default {
  mounted(){
    this.init()
  },
  methods:{
    async init() {
      // 加载默认需要的js
      await esriModules.loadModules();
      const arcgis = new ArcGis();
      arcgis.init({
        // arcgis js api 配置,可选, 默认值如下
        settings: {
          url: 'https://arcgis.ynyc.com/arcgis_js_api/library/4.15/dojo/dojo.js',
          css: 'https://arcgis.ynyc.com/arcgis_js_api/library/4.15/esri/themes/light/main.css'
        },
        // 字体地址,可选, 默认值如下
        fontsUrl: 'https://arcgis.ynyc.com/arcgis_js_api/library/4.15/esri/themes/base/icons/fonts',
        // 除默认模块外,需要加载的模块,可选
        modules: [],
        // 视图配置, 可选, 默认值如下
        viewOptions: [{
          // 视图容器id
          container: this.mapId,
          views: [
            {
              viewId: '2d',
              viewType: 'MapView',
              zoom: 7,
              center: [101.9464253310309, 24.913562152358953],
            }, {
              viewId: '3d',
              viewType: 'SceneView',
              camera: {
                position: [102.7, 25.04]
              },
              zoom: 17
            }
          ]
        }]
      });
    }
  }
}

使用文档

查看

更新日志

查看

2.0.9

6 months ago

3.2.6

8 months ago

3.2.5

8 months ago

3.2.4

8 months ago

2.0.3

9 months ago

2.0.5

9 months ago

2.0.4

9 months ago

2.0.7

9 months ago

2.0.6

9 months ago

2.0.8

9 months ago

3.2.3

9 months ago

3.1.11

10 months ago

3.2.2

10 months ago

3.2.1

10 months ago

3.2.0

10 months ago

3.1.10

10 months ago

3.1.9

10 months ago

3.1.8

11 months ago

3.1.7

11 months ago

3.1.6

1 year ago

3.1.5

1 year ago

2.0.2

1 year ago

2.0.1

1 year ago

2.0.0

1 year ago

3.1.4

2 years ago

3.1.3

2 years ago

3.1.2

2 years ago

3.1.1

2 years ago

3.1.0

2 years ago

3.0.17

2 years ago

3.0.20

2 years ago

3.0.18

2 years ago

3.0.19

2 years ago

3.0.16

2 years ago

1.3.25

2 years ago

1.3.28

2 years ago

1.3.26

2 years ago

1.3.27

2 years ago

1.3.24

2 years ago

1.3.23

2 years ago

1.3.22

3 years ago

1.2.35

3 years ago

3.0.9

3 years ago

3.0.12

3 years ago

3.0.13

3 years ago

3.0.10

3 years ago

3.0.11

3 years ago

3.0.8

3 years ago

3.0.7

3 years ago

3.0.14

3 years ago

3.0.6

3 years ago

3.0.15

3 years ago

3.0.5

3 years ago

1.3.17

3 years ago

1.3.18

3 years ago

3.0.4

3 years ago

3.0.3

3 years ago

3.0.2

3 years ago

1.3.19

3 years ago

3.0.1

3 years ago

3.0.0

3 years ago

1.3.20

3 years ago

1.3.21

3 years ago

1.3.7

3 years ago

1.3.6

3 years ago

1.3.5

3 years ago

1.3.4

3 years ago

1.3.1-0.1

3 years ago

1.3.10

3 years ago

1.3.13

3 years ago

1.3.14

3 years ago

1.3.11

3 years ago

1.3.12

3 years ago

1.3.15

3 years ago

1.3.16

3 years ago

1.3.9

3 years ago

1.3.8

3 years ago

1.3.3

3 years ago

1.3.2

3 years ago

1.3.1

3 years ago

1.3.0

3 years ago

1.2.34

3 years ago

1.2.33

3 years ago

1.0.28

4 years ago

1.0.26

4 years ago

1.0.19

4 years ago

0.0.2

4 years ago