export default { mapDefaultOptions: { crs: L.CRS.EPSG3857, // 坐标参考系统 center: null, // 地图的初始地理中心坐标 zoom: 16, // 初始地图缩放级别 minZoom: 14, maxZoom: 18, 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: '#ff00ff', weight: 2, fill: false, interactive: true }, focus: { radius: 15, color: '#ff00ff', 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: '#ff00ff', // 描边颜色 weight: 3, // 描边宽度 px opacity: 0.6, // 描边不透明度 fill: false, // 是否填充 interactive: true }, focus: { stroke: true, // 是否描边 color: '#ff00ff', // 描边颜色 weight: 3, // 描边宽度 px opacity: 1.0, // 描边不透明度 fill: false, // 是否填充 interactive: true } }, }, playerColorList: [ "#D112B7", "#5312D1", "#1272D1", "#21AEAE", "#612D61", "#F6DE00", "#FF7904", "#FF8E97", "#003C71", "#850000" ], trailTime: 90000, // 轨迹持续时间 毫秒 }