Actually fix path drawing order
This commit is contained in:
1 parent
92b9ad2c1a
commit
8252fd6ba9
3 files changed
+8
-6
No files matched your search
+2
-2
@@ -221,11 +221,11 @@ export function drawPolyline(ctx, trackWidth){
|
||||
if(i === 0) ctx.moveTo(x, y);
|
||||
else ctx.lineTo(x, y);
|
||||
}
|
||||
ctx.strokeStyle = '#0b1220cc';
|
||||
ctx.strokeStyle = '#0b122088';
|
||||
ctx.lineWidth = outline;
|
||||
ctx.stroke();
|
||||
|
||||
ctx.strokeStyle = '#4fa3ff';
|
||||
ctx.strokeStyle = '#4fa3ffdd';
|
||||
ctx.lineWidth = width;
|
||||
ctx.stroke();
|
||||
ctx.restore();
|
||||
|
||||
+4
-1
@@ -308,7 +308,10 @@ export function addPoi(poiData, level = 0){
|
||||
newPoi.radius = poiData.radius;
|
||||
break;
|
||||
default:
|
||||
if(poiData.type.startsWith('dummy_')) break;
|
||||
if(poiData.type.startsWith('dummy_')){
|
||||
newPoi.ignoreCulling = true;
|
||||
break;
|
||||
}
|
||||
newPoi.tooltip = `<h1>${newPoi.name}</h1>${poiData.description ? '<hr>'+poiData.description : ''}`;
|
||||
newPoi.minZoom = 0.07;
|
||||
break;
|
||||
|
||||
Reference in new issue
Block a user