0.9.0 • Published 6 years ago
react-map-esri v0.9.0
react-map-esri
基于 react 的地图组件
安装
npm i react-map-esri -D
使用
import { View, Map, Layer } from 'react-map-esri';
const { MapView } = View;
const { TileLayer } = Layer;
const api = 'http://192.168.8.130:8085';
class App extends React.Component{
render(){
return (
<div style={{width: '100%', height: '400px'}}>
<MapView api={api}>
<Map>
<TileLayer url="https://services.arcgisonline.com/arcgis/rest/services/World_Terrain_Base/MapServer" />
</Map>
</MapView>
</div>
)
}
}
ReactDOM.render(<App />, document.getElementId('app'));
模块划分说明
├── Map
├── Graphic
├── Layer
| ├── TileLayer -- 瓦片图层
| ├── VectorLayer -- 矢量图层
| └── GraphicsLayer -- 图案图层
├── Geometry
| ├── Point -- 点
| ├── Polyline -- 线
| ├── Polygon -- 面
| └── Text -- 文字
├── MapSymbol
| ├── SimpleFillSymbol -- 填充样式
| ├── SimpleLineSymbol -- 线样式
| ├── SimpleMarkerSymbol -- 几何样式
| └── TextSymbol -- 文字样式
├── Popup -- 弹框
└── Sketch -- 绘制
0.9.0
6 years ago
0.8.1
6 years ago
0.8.0
6 years ago
0.7.1
6 years ago
0.7.0
6 years ago
0.6.1
6 years ago
0.6.0
6 years ago
0.5.3
6 years ago
0.5.2
6 years ago
0.5.1
6 years ago
0.5.0
6 years ago
0.4.0
6 years ago
0.3.0-bate1
6 years ago
0.2.0
6 years ago
0.1.2
6 years ago
0.1.1
6 years ago
0.1.0
6 years ago
0.0.3
6 years ago
0.0.2
6 years ago
0.0.1
6 years ago