feat: gray optionality text

This commit is contained in:
ccmdi 2025-11-22 17:43:10 -05:00
parent c73c7dd9ca
commit 1b4c587980
No known key found for this signature in database
3 changed files with 9 additions and 2 deletions

View file

@ -413,7 +413,6 @@ export function createMapRenderer(config: MapRendererOptions): Deck<MapViewType[
const markerColor = options.markerColor || 'var(--color-accent)';
const tileLayer = options.tileLayer || 'https://{s}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}.png';
// Detect if tileLayer is a local file (no protocol) or URL
const isLocalImage = !tileLayer.startsWith('http://') && !tileLayer.startsWith('https://');
containerEl.empty();

View file

@ -653,7 +653,7 @@ export class MapBasesView extends BasesView {
placeholder: 'https://{s}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}.png',
},
{
displayName: 'Image bounds (for local images)',
displayName: 'Image bounds',
type: 'text',
key: 'imageBounds',
placeholder: '[[minLat, minLng], [maxLat, maxLng]]',

View file

@ -558,4 +558,12 @@
bottom: auto;
right: auto;
}
}
/* should be specific enough */
.input-row:has(input[placeholder="[[minLat, minLng], [maxLat, maxLng]]"]) .input-row-label::after {
content: " (local images only)";
color: var(--text-muted);
font-style: italic;
font-size: 0.9em;
}