Replies: 2 comments
-
I think it would be good to have an additional Switch or Drowpdown in the Configuration to limit the recursion Depth of the File Search. I think it should be rather simple to get the Path to the current File and concatenate that with the relative Path/URL entered. |
Beta Was this translation helpful? Give feedback.
-
I have created a Pull-Request with these 2 Features:
Hope you will consider merging this into this repository, because leaflet becomes very slow with increasing number of Geometries and recursing arbitarily deep can easily freeze the whole Application! |
Beta Was this translation helpful? Give feedback.
-
Hi, I love the geojsonFolder Feature.
But it seems to search all *.geojson Files based on the Path to the Obsidian Vault Directory, not the Path to the actual Markdown File.
I think this would be a good feature, since most geographical Features are stored in a hierarchical order by Continent, Country, State, City etc.
To illustrate this:
I have a File named Aland.md and a Folder named Aland next to it (in the same Super-Folder)
In the Aland.md I have the following Section:
```leaflet
id: Åland
zoomFeatures: true
geojsonFolder: ./Åland
```
But when opening the File in Obsidian, the leaflet Plugin takes a long time and displays ALL *.geojson Files I have in my Vault (several Thousands)
I would like to pick up only those in the relative Subfolder of the *.md File.
I'm new to JavaScript/TypeScript development but if You are too busy, would you accept a Pull Request to change this behavior?
Best Regards...
Beta Was this translation helpful? Give feedback.
All reactions