Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using custom property instead default location does not work #251

Closed
AndreasSachs opened this issue Jul 3, 2024 · 1 comment
Closed

Comments

@AndreasSachs
Copy link

Thanks for the plugin!
I wanted to use "coordinates" as a property for lat and long, because I was already using the "location" property for a different purpose. I've adjusted the settings, but the map didn't show any locations.
In the function getFrontMatterLocation(file, app, settings) the line const location = new leafletSrc.LatLng(frontMatter.location[0], frontMatter.location[1]); seems to still use the location property instead of the custom one.
Changing it to const location = new leafletSrc.LatLng(frontMatterLocation[0], frontMatterLocation[1]); seems to work

@esm7
Copy link
Owner

esm7 commented Jul 9, 2024

Sorry about that. Will add the fix to the next release.

@esm7 esm7 closed this as completed Aug 11, 2024
esm7 added a commit that referenced this issue Aug 11, 2024
version bump
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants