javalent / obsidian-leaflet

Adds interactive maps to Obsidian.md using Leaflet.js
486 stars 30 forks source link

Custom geojsonColor is always black #292

Closed arakis closed 2 years ago

arakis commented 2 years ago

geojsonColor will always use "black" color, regardless of it's value.

id: possible-world-routes
lat: 30
long: 50
defaultZoom: 4
lock: true
geojson: Documents/world.geo.json
geojsonColor: #ff0000

will be rendered to: image Without the geojsonColor it looks like (thats correct): image

valentine195 commented 2 years ago

You need to put quotes around it. # starts a YAML comment, so you’re providing a null color (which is black).