File tree Expand file tree Collapse file tree 2 files changed +2
-17
lines changed Expand file tree Collapse file tree 2 files changed +2
-17
lines changed Original file line number Diff line number Diff line change 70
70
scene . addImage ( 'plane' , '../img/0ca1668e-38c2-4010-8568-b57cb33839b9.svg' ) ;
71
71
} ) ;
72
72
Promise . all ( [
73
- fetch ( 'https://iclient.supermap.io/web/data/L7/2960e1fc-b543-480f-a65e-d14c229dd777.json' ) . then ( ( d ) => d . json ( ) ) ,
74
73
fetch ( 'https://iclient.supermap.io/web/data/L7/4472780b-fea1-4fc2-9e4b-3ca716933dc7.json' ) . then ( ( d ) => d . text ( ) ) ,
75
74
fetch ( 'https://iclient.supermap.io/web/data/L7/a5ac7bce-181b-40d1-8a16-271356264ad8.json' ) . then ( ( d ) => d . text ( ) )
76
- ] ) . then ( function onLoad ( [ world , dot , flyline ] ) {
75
+ ] ) . then ( function onLoad ( [ dot , flyline ] ) {
77
76
const dotData = eval ( dot ) ;
78
77
const flydata = eval ( flyline ) . map ( ( item ) => {
79
78
const latlng1 = item . from . split ( ',' ) . map ( ( e ) => {
84
83
} ) ;
85
84
return { coord : [ latlng1 , latlng2 ] } ;
86
85
} ) ;
87
- var worldLine = new mapboxgl . supermap . L7Layer ( { type : 'LineLayer' } ) ;
88
- var l7Layer = worldLine . getL7Layer ( ) ;
89
- l7Layer . source ( world ) . color ( '#41fc9d' ) . size ( 0.5 ) . style ( {
90
- opacity : 0.4
91
- } ) ;
92
- map . addLayer ( worldLine ) ;
93
86
94
87
var dotPoint = new mapboxgl . supermap . L7Layer ( { type : 'PointLayer' } ) ;
95
88
dotPoint
Original file line number Diff line number Diff line change 70
70
scene . addImage ( 'plane' , '../img/0ca1668e-38c2-4010-8568-b57cb33839b9.svg' ) ;
71
71
} ) ;
72
72
Promise . all ( [
73
- fetch ( 'https://iclient.supermap.io/web/data/L7/2960e1fc-b543-480f-a65e-d14c229dd777.json' ) . then ( ( d ) => d . json ( ) ) ,
74
73
fetch ( 'https://iclient.supermap.io/web/data/L7/4472780b-fea1-4fc2-9e4b-3ca716933dc7.json' ) . then ( ( d ) => d . text ( ) ) ,
75
74
fetch ( 'https://iclient.supermap.io/web/data/L7/a5ac7bce-181b-40d1-8a16-271356264ad8.json' ) . then ( ( d ) => d . text ( ) )
76
- ] ) . then ( function onLoad ( [ world , dot , flyline ] ) {
75
+ ] ) . then ( function onLoad ( [ dot , flyline ] ) {
77
76
const dotData = eval ( dot ) ;
78
77
const flydata = eval ( flyline ) . map ( ( item ) => {
79
78
const latlng1 = item . from . split ( ',' ) . map ( ( e ) => {
84
83
} ) ;
85
84
return { coord : [ latlng1 , latlng2 ] } ;
86
85
} ) ;
87
- var worldLine = new maplibregl . supermap . L7Layer ( { type : 'LineLayer' } ) ;
88
- var l7Layer = worldLine . getL7Layer ( ) ;
89
- l7Layer . source ( world ) . color ( '#41fc9d' ) . size ( 0.5 ) . style ( {
90
- opacity : 0.4
91
- } ) ;
92
- map . addLayer ( worldLine ) ;
93
-
94
86
var dotPoint = new maplibregl . supermap . L7Layer ( { type : 'PointLayer' } ) ;
95
87
dotPoint
96
88
. getL7Layer ( )
You can’t perform that action at this time.
0 commit comments