0.1.57 • Published 18 days ago

mapsetting-ts v0.1.57

Weekly downloads
-
License
ISC
Repository
-
Last release
18 days ago

WebmapComponent

介绍

通用化地图组件,用于设备点位信息和矿井地图信息的展示,集成了编辑、展示、地图底图管理功能

项目编号

WMapCOM2302

技术选型

  • 打包工具:vite
  • 框架:react18,react-router,typeScript
  • UI框架:antd
  • 地图组件:mapbox@1.13
  • 地图画布:@mapbox/mapbox-gl-draw
  • Geo计算:@turf/turf
  • 画面工具:mapbox-gl-draw-rectangle-mode
  • css框架:Unocss

更新

  1. 拉取项目:git clone 'ssh'
  2. 下载依赖:npm i
  3. 启动项目:npm run dev
  4. 构建生产版本:npm run build
  5. 发布项目:npm publish(发布之前需要推送项目到远程,需要登录npm, 使用npm login命令)

使用

  1. 项目使用:npm i mapsetting-ts
import { MapEdit, MapShow, MapUpload } from 'mapsetting-ts'
export default function App() {
  return <MapEdit />
}

结构

.
├── MapEdit // 编辑地图
│   ├── components
│   │   ├── CommonTitle.tsx // 公共标题
│   │   ├── FeaturesList.tsx // 详情组件
│   │   ├── FillProps.tsx // 面属性面板
│   │   ├── LayerPanels.tsx // 图层面板
│   │   ├── LineProps.tsx // 线属性面板
│   │   ├── PropsPanels.tsx // 属性面板包装
│   │   ├── Relevance.tsx // 关联设备面板
│   │   └── index.module.less // 组件样式
│   ├── index.module.less // 编辑样式
│   ├── index.tsx // 入口
│   └── map.css // 全局map样式
├── MapShow // 展示地图
│   ├── index.module.less // 样式文件
│   └── index.tsx // 入口
├── MapUpload // 地图管理
│   ├── components
│   │   ├── Dialog.tsx // 编辑弹窗
│   │   └── List.tsx // 列表
│   └── index.tsx // 入口
├── api // 地图接口文件
│   ├── map.ts
│   └── type.ts
├── assets // 地图静态文件
│   ├── image
│   │   ├── screen-show-bg.png
│   │   └── upsIcon.svg
│   └── react.svg
├── components
│   ├── Empty // 全局message
│   │   └── index.tsx
│   └── Icons //ICON文件
│       └── index.tsx
├── entry.ts // 打包入口
├── index.css // 全局样式
├── main.tsx // demo样式
├── mapSetting // 地图核心逻辑
│   ├── InfoBar.tsx // 信息组件
│   ├── Legend.tsx // 图例组件
│   ├── Preview.tsx // 展示组件
│   ├── cacheBaseMap.ts // 地图缓存
│   ├── drawStyle.ts // 画布样式
│   ├── index.css 
│   ├── index.module.less
│   ├── layerOptions.ts // 图层设置
│   ├── shim.d.ts
│   ├── tool.ts // 工具
│   ├── type.ts // 类型定义
│   └── useMap.ts // 地图hook
├── utils
│   ├── index.ts
│   ├── request.ts // 请求
│   └── ups.ts // ups独有接口
└── vite-env.d.ts
0.1.57

18 days ago

0.1.56

22 days ago

0.1.54

24 days ago

0.1.55

23 days ago

0.1.51

1 month ago

0.1.50

2 months ago

0.1.49

2 months ago

0.1.41

2 months ago

0.1.44

2 months ago

0.1.45

2 months ago

0.1.46

2 months ago

0.1.47

2 months ago

0.1.48

2 months ago

0.1.40

2 months ago

0.1.39

2 months ago

0.1.30

2 months ago

0.1.29

3 months ago

0.1.27

8 months ago

0.1.28

8 months ago

0.0.40

12 months ago

0.0.41

12 months ago

0.0.42

12 months ago

0.0.43

12 months ago

0.0.44

11 months ago

0.1.13

9 months ago

0.0.45

11 months ago

0.1.14

9 months ago

0.0.46

11 months ago

0.1.15

9 months ago

0.0.47

11 months ago

0.0.37

12 months ago

0.0.38

12 months ago

0.0.39

12 months ago

0.0.73

11 months ago

0.0.74

11 months ago

0.0.75

10 months ago

0.0.76

10 months ago

0.0.77

9 months ago

0.0.78

9 months ago

0.0.36

12 months ago

0.0.70

11 months ago

0.0.71

11 months ago

0.0.72

11 months ago

0.1.3

9 months ago

0.0.62

11 months ago

0.0.63

11 months ago

0.0.64

11 months ago

0.0.65

11 months ago

0.0.66

11 months ago

0.0.67

11 months ago

0.0.68

11 months ago

0.0.69

11 months ago

0.0.60

11 months ago

0.0.61

11 months ago

0.0.59

11 months ago

0.0.51

11 months ago

0.1.20

8 months ago

0.0.52

11 months ago

0.0.53

11 months ago

0.0.55

11 months ago

0.0.56

11 months ago

0.0.57

11 months ago

0.0.58

11 months ago

0.0.50

11 months ago

0.1.16

9 months ago

0.0.48

11 months ago

0.0.49

11 months ago

0.1.19

9 months ago

0.0.35

12 months ago

0.0.34

12 months ago

0.0.33

12 months ago

0.0.32

12 months ago

0.0.31

12 months ago

0.0.30

12 months ago

0.0.29

12 months ago

0.0.28

12 months ago

0.0.27

12 months ago

0.0.26

12 months ago

0.0.25

12 months ago

0.0.24

12 months ago

0.0.23

1 year ago

0.0.22

1 year ago

0.0.21

1 year ago

0.0.20

1 year ago

0.0.19

1 year ago

0.0.18

1 year ago

0.0.17

1 year ago

0.0.16

1 year ago

0.0.15

1 year ago

0.0.14

1 year ago

0.0.13

1 year ago

0.0.12

1 year ago

0.0.11

1 year ago

0.0.10

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago

0.0.0

1 year ago