From f3e11f7e27b3a9fff10abfb13e0bb8c5156a7045 Mon Sep 17 00:00:00 2001 From: thinkinggis Date: Wed, 3 Jul 2019 10:58:58 +0800 Subject: [PATCH] =?UTF-8?q?feat(layer):=20style=20=E5=A2=9E=E5=8A=A0blendi?= =?UTF-8?q?ng=20=E9=85=8D=E7=BD=AE=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- demos/01_animatePoint.html | 3 +-- demos/01_point_distribute.html | 3 ++- demos/hz.html | 2 +- src/core/layer.js | 3 ++- src/geom/material/material.js | 8 ++++++++ src/layer/render/line/drawMeshLine.js | 2 +- src/layer/render/point/drawCircle.js | 1 + src/layer/render/point/drawFill.js | 1 + src/layer/render/point/drawNormal.js | 4 +++- 9 files changed, 20 insertions(+), 7 deletions(-) diff --git a/demos/01_animatePoint.html b/demos/01_animatePoint.html index 65c681a953..f1f7e61013 100644 --- a/demos/01_animatePoint.html +++ b/demos/01_animatePoint.html @@ -43,7 +43,6 @@ return { ] } } -console.log(pointOnCircle(10)) const scene = new L7.Scene({ id: 'map', mapStyle: 'light', // 样式URL @@ -76,7 +75,7 @@ scene.on('loaded', () => { circleLayer.setData(pointOnCircle(timestamp / 1000)); requestAnimationFrame(animateMarker); } - //animateMarker(0); + animateMarker(0); /** const layerText = scene.PointLayer({ diff --git a/demos/01_point_distribute.html b/demos/01_point_distribute.html index a3d1bd8f73..2d5267344c 100644 --- a/demos/01_point_distribute.html +++ b/demos/01_point_distribute.html @@ -45,7 +45,8 @@ scene.on('loaded', () => { .style({ stroke: 'rgb(255,255,255)', strokeWidth: 0, - opacity: 1.0 + opacity: 1.0, + bending:'additive' }) .render(); }); diff --git a/demos/hz.html b/demos/hz.html index 28a9d9cf41..fe2058e2a1 100644 --- a/demos/hz.html +++ b/demos/hz.html @@ -18,7 +18,7 @@ - +