1. Function description
- Use a similar way to Google tile maps, integrated mines, factories, airports and other maps, integrated third- party online maps to use in the system
2. Knowledge of Maps
2.1 Tile Map
Tiles: refers to a certain range of maps according to a certain size and format, according to the zoom level or scale, cut into a number of rows and columns of square grid pictures, the square grid picture after slicing is called the image of tiles (Tile)
Document reference: https://www.jianshu.com/p/e9e83b427045
2.2 map coordinate system
Domestic latitude and longitude has three sets of systems:
WGS84 is a geodetic coordinate system and is also the coordinate system used by the currently widely used GPS global satellite positioning system.
GCJ02: also known as the Mars coordinate system, is a geographic information system coordinate system developed by the State Bureau of Surveying and Mapping of China. Coordinate system encrypted by WGS84 coordinate system.
BD09: Baidu coordinate system, in the GCJ02 coordinate system based on the encryption again. Among them, bd09ll indicates the longitude and latitude coordinates of Baidu, and bd09mc indicates the metric coordinates of Baidu Mercator.
Use OpenStreetMap coordinates for WGS84
Use the coordinates of Gaud map and Tencent map as GCJ02
Use Baidu map coordinates for BD09
The Chinese part of Google Maps and Bing Maps uses data from Gaud Maps, so the coordinates are GCJ02.
Original link: https://blog.csdn.net/weixin_42582542/article/details/121080586
3. Operating Instructions
Check "Enable" and customize the map name;

After enabling, return to real- time monitoring, you can see the added custom map at the map switch

Map name: customer- defined map name, such as intranet map, XX wharf, etc.
Plane tile address: 2D plane map interface address
Text Tile Address: Text Map Interface Address
Satellite Tile Address: Satellite Map Interface Address
traffic tile address: traffic interface address
Coordinate system: wgs84, gcj02
If you only use a flat map, you can only configure the flat tile and text tile addresses
4. Example
Map test example:
Key: The key provided by the map provider is replaced with tk of the following URL
Plane tile address:
http://t{s:0,1,2,3,4,5,6,7}.tianditu.gov.cn/vec_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=vec&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&tk={key}
Example of a map:
http://t{s:0,1,2,3,4,5,6,7}.tianditu.gov.cn/vec_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=vec&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&tk=123
Text tile address:
http://t{s:0,1,2,3,4,5,6,7}.tianditu.gov.cn/cva_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=cva&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&tk={key}
Satellite tile address:
http://t{s:0,1,2,3,4,5,6,7}.tianditu.gov.cn/img_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=img&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&tk={key}
Satellite Text Tiles:
https://t{s:0,1,2,3,4,5,6,7}.tianditu.gov.cn/cia_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=cia&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&tk={key}
5. Precautions
The coordinate system cannot be selected incorrectly, otherwise the vehicle map position will be offset. You can use the online map to compare with the custom map.