[Feature Request] Use existing web hosted leaflet rather than tileserver as map source
Hello- I am currently using a github pages hosted set of map tiles to use Obsidian Map View with historical or fantastical maps. Map View successfully loads .png map tiles by the URL I provide and allows me to geolocate notes.
I also have a github pages hosted leaflet webmap, exported from QGIS, that provides layers, additional information, and far better labeling clarity than static tiles. The URL is similar to map sources that work in Map View, "https://[username].github.io/[repository-name]/#z/y/x", though it uses a '#' character before the zoom level and uses coordinates rather than pulling .png tiles. I cannot use this URL in Obsidian Map View.
Is it possible to geolocate and query on top of existing leaflet web maps rather than just tile sets? The clarity and flexibility gained would be game changing for my research.
Hi, Can you elaborate more about this extra webmap? What format is it at? Are these png files with tiles or something very different, e.g. vector layers? Is it multiple layers that are expected to be laid out on top of each other or a single map in some format? By "geolocate and query" I'm guessing you are referring to some sort of vector layers, but without understanding a lot better what these are, I can't assess what's required to support them.
Hello- thank you for your response and plugin,
The web map is vector layers made from multiple GeoJSONs. There are no .png files. Each layer is laid out on top of each other through coordinates, providing toggleable displays for routes, borders, and points of interest. The layers were checked to ensure they projected correctly, but then any basemaps were turned off so only the vector layers remained on a colored background.
Manually changing the "/#z/y/x" values in the URL centers the rendered map on the point desired, which is why I thought it might be possible for Obsidian Map View to read it as it reads tile sets. The webmap's URL uses coordinates in the same format as Map View's in-note geolocations, though it cuts off coordinates at three numbers after the decimal (ex: # 7/12.394/-10.234).
By geolocate and query, I meant using Obsidian Map View's marker and search functions on a layered map, treating the layered map supplied by URL as a backdrop to the plugin's functions in the same way tiles are used.
Apologies for the lack of clarity, I think I should go and learn more! This plugin is fantastic and I am thoroughly enjoying all it offers
Thank you for the clarification. Funny enough, GeoJSON support is exactly the thing I'm working on at the moment, so in some way it's good news. However, I can't estimate at the moment when exactly I'll have a version that you can test and what content it can be expected to include -- the free time to work on this isn't something I can easily predict :-/ Also, the format of having a layer with z/y/x values to download GeoJSONs isn't something I was aware of; is there such a server you can share so I can learn more about this and see what's needed to support it?
Hello- sorry for the long delay in responding. The web map leaflet I was using may render in HTML from GeoJSONs rather than downloading GEOJSONs- I honestly do not understand how it works or why it does.
If it is of any help, I have both the github repository and the github pages on which the webmap can be viewed:
Repository: https://github.com/bartstarkiller/test-webgis-d6West
Map: https://bartstarkiller.github.io/test-webgis-d6West/#5/-21.215/24.390 (test map with files I did not create)