ezdev-gis
v1.1.0
Published
ezdev地图工具
Downloads
6
Readme
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"
}
}
}
}
}