Labels ayudas: quitar sombra y reducir fuente 10px→9px
Elimina el stroke negro (rgba(0,0,0,0.55) width:2) que actuaba como sombra opaca en los textos de nombre/característica de luz de las ayudas a la navegación. La sombra cubría símbolos adyacentes (ej. balizas rojas en Miami). Fuente pasa de 10px 600w a 9px 500w — más pequeña pero legible. Aplica también al label de enfilaciones sobre las líneas. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
+2
-4
@@ -1491,9 +1491,8 @@ function _ldlineStyle(feature) {
|
||||
geometry: new ol.geom.Point(mid),
|
||||
text: new ol.style.Text({
|
||||
text: lbl,
|
||||
font: 'bold 10px "Inter", "Segoe UI", sans-serif',
|
||||
font: '500 9px "Inter", "Segoe UI", sans-serif',
|
||||
fill: new ol.style.Fill({ color: '#fff' }),
|
||||
stroke: new ol.style.Stroke({ color: 'rgba(0,0,0,0.50)', width: 2 }),
|
||||
offsetY: -12,
|
||||
overflow: true,
|
||||
}),
|
||||
@@ -1661,9 +1660,8 @@ function encStyle(feature, resolution) {
|
||||
text: label ? new ol.style.Text({
|
||||
text: label,
|
||||
offsetY: 10,
|
||||
font: '600 10px "Inter", "Segoe UI", sans-serif',
|
||||
font: '500 9px "Inter", "Segoe UI", sans-serif',
|
||||
fill: new ol.style.Fill({ color: '#e8f4fd' }),
|
||||
stroke: new ol.style.Stroke({ color: 'rgba(0,0,0,0.55)', width: 2 }),
|
||||
overflow: true,
|
||||
}) : undefined,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user