diff --git a/demos/patternline.html b/demos/patternline.html
index 09119de91e..823a47b3b7 100644
--- a/demos/patternline.html
+++ b/demos/patternline.html
@@ -57,12 +57,12 @@
"geometry": {
"type": "LineString",
"coordinates": [
- [120.294931, 30.224459],
- [120.194847, 30.224384],
+ [120.294931, 30.224459],[120.294931, 30.224459],
+ [120.194847, 30.224384],[120.194847, 30.224384],[120.194847, 30.224384],
[120.294847, 30.274384],
[120.344847, 30.34384],
[120.364847, 30.374384],
- [120.364847, 30.074384],
+ [120.364847, 30.074384],[120.364847, 30.074384],[120.364847, 30.074384],
]
}
}, {
@@ -73,7 +73,9 @@
"coordinates": [
[120.394931, 30.324459],
[120.494847, 30.324384],
- [120.494847, 30.374384],
+ [120.494847, 30.324384],[120.494847, 30.324384],
+ [120.45, 30.324384],
+ [120.45, 30.374384],
]
}
}]
@@ -92,7 +94,19 @@
patternSpacing: 20
})
.render();
-
+ $.get('https://gw.alipayobjects.com/os/basement_prod/3ed18d7c-bce4-48ca-8716-5248b584481d.json', data => {
+ const linelayer = scene.LineLayer({
+ zIndex: 2
+ }).shape('line')
+ .size([10, 0])
+ .source(data)
+ .color('#fff')
+ .pattern('right')
+ .style({
+ patternSpacing: 20
+ })
+ .render();
+ })
})