From f528456ddf6604cdf2f0a3dbef2aa610a3128420 Mon Sep 17 00:00:00 2001 From: songyumeng Date: Wed, 10 Jul 2024 15:36:06 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90fix=E3=80=91=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E4=BE=8B=E5=AD=90=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/mapboxgl/l7_heading_chart.html | 9 +-------- examples/maplibregl/l7_heading_chart.html | 10 +--------- 2 files changed, 2 insertions(+), 17 deletions(-) diff --git a/examples/mapboxgl/l7_heading_chart.html b/examples/mapboxgl/l7_heading_chart.html index bd886ff14..c30d3205a 100644 --- a/examples/mapboxgl/l7_heading_chart.html +++ b/examples/mapboxgl/l7_heading_chart.html @@ -70,10 +70,9 @@ scene.addImage('plane', '../img/0ca1668e-38c2-4010-8568-b57cb33839b9.svg'); }); Promise.all([ - fetch('https://iclient.supermap.io/web/data/L7/2960e1fc-b543-480f-a65e-d14c229dd777.json').then((d) => d.json()), fetch('https://iclient.supermap.io/web/data/L7/4472780b-fea1-4fc2-9e4b-3ca716933dc7.json').then((d) => d.text()), fetch('https://iclient.supermap.io/web/data/L7/a5ac7bce-181b-40d1-8a16-271356264ad8.json').then((d) => d.text()) - ]).then(function onLoad([world, dot, flyline]) { + ]).then(function onLoad([dot, flyline]) { const dotData = eval(dot); const flydata = eval(flyline).map((item) => { const latlng1 = item.from.split(',').map((e) => { @@ -84,12 +83,6 @@ }); return { coord: [latlng1, latlng2] }; }); - var worldLine = new mapboxgl.supermap.L7Layer({ type: 'LineLayer' }); - var l7Layer = worldLine.getL7Layer(); - l7Layer.source(world).color('#41fc9d').size(0.5).style({ - opacity: 0.4 - }); - map.addLayer(worldLine); var dotPoint = new mapboxgl.supermap.L7Layer({ type: 'PointLayer' }); dotPoint diff --git a/examples/maplibregl/l7_heading_chart.html b/examples/maplibregl/l7_heading_chart.html index f1ab00f7c..23b000f25 100644 --- a/examples/maplibregl/l7_heading_chart.html +++ b/examples/maplibregl/l7_heading_chart.html @@ -70,10 +70,9 @@ scene.addImage('plane', '../img/0ca1668e-38c2-4010-8568-b57cb33839b9.svg'); }); Promise.all([ - fetch('https://iclient.supermap.io/web/data/L7/2960e1fc-b543-480f-a65e-d14c229dd777.json').then((d) => d.json()), fetch('https://iclient.supermap.io/web/data/L7/4472780b-fea1-4fc2-9e4b-3ca716933dc7.json').then((d) => d.text()), fetch('https://iclient.supermap.io/web/data/L7/a5ac7bce-181b-40d1-8a16-271356264ad8.json').then((d) => d.text()) - ]).then(function onLoad([world, dot, flyline]) { + ]).then(function onLoad([dot, flyline]) { const dotData = eval(dot); const flydata = eval(flyline).map((item) => { const latlng1 = item.from.split(',').map((e) => { @@ -84,13 +83,6 @@ }); return { coord: [latlng1, latlng2] }; }); - var worldLine = new maplibregl.supermap.L7Layer({ type: 'LineLayer' }); - var l7Layer = worldLine.getL7Layer(); - l7Layer.source(world).color('#41fc9d').size(0.5).style({ - opacity: 0.4 - }); - map.addLayer(worldLine); - var dotPoint = new maplibregl.supermap.L7Layer({ type: 'PointLayer' }); dotPoint .getL7Layer()