1.1.0 • Published 7 years ago

ezdev-gis v1.1.0

Weekly downloads
-
License
ISC
Repository
-
Last release
7 years ago

Ezdev GIS工具

实现切片,矢量地图展示,点、线、面的增删改查及空间查询,以及常用的GIS地图工具

1. 准备工作

引入ezdev-gis

npm instll ezdev-gis --save

引入webpack与css,file,style加载器

npm install webpack --save-dev
npm install css-loader --save-dev
npm install file-loader --save-dev
npm install style-loader --save-dev

配置webpack.config.js

    ....
    
    module: {

        rules: [
        
        ....
        
        {
            test: /\.css$/,
            use: [
                {loader: 'style-loader'},
                {loader: 'css-loader'}
            ]
        },
            {
                test: /\.(png|svg|jpg|gif)$/,
                use: [
                    'file-loader'
                ]
            }]
    }
    
    ....
    

初始化elasticsearch

PUT /gis
{
  "mappings": {
    "feature": {
      "properties": {
        "category": {
          "type": "string"
        },
        "code": {
          "type": "string"
        },
        "icon": {
          "type": "string"
        },
        "location": {
          "type": "geo_shape"
        }
      }
    },
    "category": {
      "properties": {
        "code": {
          "type": "string"
        },
        "name": {
          "type": "string"
        }
      }
    }
  }
}

2. 快速开始

开发示例

1.1.0

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago