// 1) Rename if title starts with āNewRegionā
let title;
if (tp.file.title.startsWith(āNewRegionā)) {
title = await tp.system.prompt(āEnter Region Nameā);
if (!title) {
new Notice(āNo title entered. Aborting.ā);
return;
}
await tp.file.rename(title);
} else {
title = tp.file.title;
}
// 2) Gather all continent files under 2-World/Continents/
const continentFiles = tp.app.vault.getMarkdownFiles()
.filter(f ā f.path.startsWith(ā2-World/Continents/ā));
if (continentFiles.length === 0) {
new Notice(āNo continent notes found.ā);
return;
}
id: ZalkorsFerry ### Must be unique with no spaces image: [[The Island of Screams.jpg]] ### Link to the map image file. Do not add a ! in front of the image bounds: [[0,0], [5888, 5882]] ### Size of the map in px Height_y, Width_x. Ignore 0,0 height: 500px ### Size of the leaflet embed in px on your screen width: 95% ### Size of the leaflet embed in your note lat: 2944 ### To center the map, make this half of the map height. long: 2941 ### To center the map, make this half of the map width. minZoom: -5 ### Controls how far away from the map you can zoom out. Hover over the target icon to see the current level. maxZoom: 1 ### Controls how far towards the map you can zoom in. Hover over the target icon to see the current level. defaultZoom: -3.5 ### Sets the default zoom level when the map loads. Hover over the target icon to see the current level. zoomDelta: 0.5 ### Adjust how much the zoom changes when you zoom in or out. unit: mi ### The value displayed when measuring so you know what type of unit is being measure. scale: 0.09328358208955223 ### Real units/px (resolution) of your map recenter: false darkmode: false ### marker