mirror of
https://github.com/ccmdi/obsidian-map-plus.git
synced 2026-07-22 06:43:14 +00:00
feat: gray optionality text
This commit is contained in:
parent
c73c7dd9ca
commit
1b4c587980
3 changed files with 9 additions and 2 deletions
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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]]',
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
Loading…
Reference in a new issue