Skip to content

Using custom property instead default location does not work #251

@AndreasSachs

Description

@AndreasSachs

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions