| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135 |
- export default {
- mapDefaultOptions: {
- crs: L.CRS.EPSG3857, // 坐标参考系统
- center: null, // 地图的初始地理中心坐标
- zoom: 16, // 初始地图缩放级别
- minZoom: 14,
- maxZoom: 20,
- zoomControl: true,
- // zoomSnap: 0.5,
- // zoomDelta: 0.5,
- trackResize: false, // 地图是否自动处理浏览器窗口大小调整以自行更新
- maxBounds: null,
- // maxBounds: [
- // [36.659365, 117.105246],
- // [36.653753, 117.122841]
- // ],
- updateWhenIdle: false,
- updateInterval: 10,
- keepBuffer: 20,
- attributionControl: false
- },
- // 全局样式
- gStyle: {
- // 通用样式
- common: {
- stroke: true, // 是否描边
- color: 'white', // 描边颜色
- },
- // 玩家定位标记点
- marker: {
- default: {
- radius: 8, // 圆的半径 px
- // stroke: true, // 是否描边
- // color: 'white', // 描边颜色
- weight: 1.6, // 描边宽度 px
- opacity: 1.0, // 描边不透明度
- fill: true, // 是否填充
- fillColor: 'blue', // 填充颜色
- fillOpacity: 1.0, // 填充不透明度
- pane: 'markerPane'
- },
- focus: {
- radius: 8,
- // stroke: true, // 是否描边
- // color: 'white', // 描边颜色
- weight: 1.6, // 描边宽度 px
- opacity: 1.0, // 描边不透明度
- fill: true, // 是否填充
- fillColor: 'red', // 填充颜色
- fillOpacity: 1.0, // 填充不透明度
- pane: 'markerPane'
- },
- tooltip: {
- permanent: true,
- offset: [0, -10],
- direction: 'top',
- interactive: true
- }
- },
- // 玩家运动轨迹
- trail: {
- default: {
- smoothFactor: 0.5, // 值越大线条越平滑,值越小线条越精确
- stroke: true, // 是否描边
- color: 'blue', // 描边颜色
- // weight: 8, // 描边宽度 px
- opacity: 1.0, // 描边不透明度
- fill: false, // 是否填充
- // fillColor: 'blue', // 填充颜色
- // fillOpacity: 1.0, // 填充不透明度
- pane: 'markerPane'
- },
- focus: {
- smoothFactor: 0.5, // 值越大线条越平滑,值越小线条越精确
- stroke: true, // 是否描边
- color: 'red', // 描边颜色
- // weight: 8, // 描边宽度 px
- opacity: 1.0, // 描边不透明度
- fill: false, // 是否填充
- // fillColor: 'red', // 填充颜色
- // fillOpacity: 1.0, // 填充不透明度
- pane: 'markerPane'
- }
- },
- // 检查点
- checkPoint: {
- default: {
- radius: 15,
- color: '#ac33c1',
- weight: 2,
- fill: false,
- interactive: true
- },
- focus: {
- radius: 13,
- color: '#ac33c1',
- weight: 2,
- fill: false,
- interactive: true
- },
- tooltip: {
- permanent: true,
- offset: [0, -15],
- direction: 'top',
- interactive: true
- }
- },
- // 检查点组成的路径
- checkPointPath: {
- default: {
- // dashArray: '8 12',
- // dashOffset: '1',
- stroke: true, // 是否描边
- color: '#ac33c1', // 描边颜色
- weight: 2, // 描边宽度 px
- opacity: 1.0, // 描边不透明度
- fill: false, // 是否填充
- interactive: true
- },
- focus: {
- stroke: true, // 是否描边
- color: '#ac33c1', // 描边颜色
- weight: 2, // 描边宽度 px
- opacity: 1.0, // 描边不透明度
- fill: false, // 是否填充
- interactive: true
- }
- },
- },
- playerColorList: [
- "#D112B7", "#5312D1", "#1272D1", "#21AEAE", "#612D61",
- "#F6DE00", "#FF7904", "#FF8E97", "#003C71", "#850000"
- ],
- trailTime: 90000, // 轨迹持续时间 毫秒
- }
|