From fd0ec4e75f496e4ed211bb6d61e997e03c0e46ed Mon Sep 17 00:00:00 2001
From: yangdelong <828900aaa>
Date: 星期三, 07 四月 2021 10:22:49 +0800
Subject: [PATCH] 修改地图样式里面的 size 值
---
src/conf/Styles.js | 37 +++++++++++++++++--------------------
1 files changed, 17 insertions(+), 20 deletions(-)
diff --git a/src/conf/Styles.js b/src/conf/Styles.js
index 42416e5..9f6457d 100644
--- a/src/conf/Styles.js
+++ b/src/conf/Styles.js
@@ -1,24 +1,21 @@
-export const LineStyles = {
+const defaultLineStyle = {
+ fill: true,
+ weight: 3,
+ fillColor: '#73b2ff',
+ color: '#73b2ff',
+ fillOpacity: 0.2,
+ opacity: 1,
+ dashArray: '4,4',
+ dashSpeed: -5,
+ size: [20, 20]
+}
+
+const customStyles = {
pipeline: {
- fill: true,
- weight: 2,
- fillColor: '#06cccc',
- color: '#06cccc',
- fillOpacity: 0.2,
- opacity: 0.8,
- dashArray: '10,4',
- dashSpeed: -10
}
}
-export const PointStyles = {
- pipeline: {
- fill: true,
- weight: 2,
- fillColor: '#06cccc',
- color: '#06cccc',
- fillOpacity: 0.2,
- opacity: 0.8,
- dashArray: '10,4',
- dashSpeed: -10
- }
+
+export default {
+ defaultLineStyle,
+ customStyles
}
--
Gitblit v1.8.0