You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
OMS.NET/README.md

68 lines
1.7 KiB
Markdown

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# OMS.NET
OMS.NET为标准名称使用.NET 6开发语言使用C#。
一个跨平台的OME服务端的.NET实现。
## 先决条件
### 确保.NET开发环境已安装
- [.NET SDK](https://dotnet.microsoft.com/download)
### 创建server.yaml
模板如下按情况修改user、pas、port
需准备默认的map_img.png
```yaml
#连接字符串和默认监听端口
ConnectionString: server=localhost;port=3306;user=user;password=pas
DataBaseName: map_test1
ListenPort: port
#匿名登录
AnonymousLogin: false
#服务器基础信息
#ServerConfigImg: ./map_img.png
#ServerConfigKey: k0
#ServerConfigUrl: ws://0.0.0.0:1080
#ServerConfigName: 地图名称
#ServerConfigMaxUser: 20
#以下四个常量规定了地图在什么区域内进行绘制
#ServerConfigMaxHeight: 10000
#ServerConfigMinHeight: -10000
#ServerConfigMaxWidth: 10000
#ServerConfigMinWidth: -10000
#以下两个常量决定了区域内横轴和纵轴的最小层级下layer0每像素移动量单位
#ServerConfigUnit1Y: 1
#ServerConfigUnit1X: 1
#打开地图时的默认中心点
#ServerConfigP0X: 0
#ServerConfigP0Y: 0
#层级为地图数据的缩放层级,可限制用户在高层级编辑地图导致严重误差
#ServerConfigMaxLayer: 5
#ServerConfigMinLayer: 0
#ServerConfigDefaultLayer: 0
#ServerConfigZoomAdd: 1
#底图配置
#缩放比为带有底图瓦图服务器的地图服务,可限制用户对底图缩放
#ServerConfigEnableBase: false
#ServerConfigDefaultX: 0
#ServerConfigDefaultY: 0
#ServerConfigResolutionX: 1920
#ServerConfigResolutionY: 980
#ServerConfigMaxZoom: 0
#ServerConfigMinZoom: 0
#ServerConfigDefaultZoom: 0
#ServerConfigBaseMapUrl: empty
```
## 快速开始
```bash
git clone https://xxx.git
cd OMS.NET
dotnet restore
dotnet build
dotnet run
```