GeoJSON feature properties supported by Obsidian Leaflet #124
Moonbase59
started this conversation in
Show and tell
Replies: 2 comments
-
|
very nice! |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Is there a way to set things like "stroke-width" and "stroke-opacity" on a general level in a JSON-file? (may be a noob question). I have all US counties in a file and it seems like much work to set these for every county vs just setting it as a general value for the whole file. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Here’s a table of GeoJSON feature properties that Obsidian Leaflet currently supports. Valid as of 2021-06-20, version 3.18.14.
nametitleproperty found.titledescriptionmarker-symbolstrokestroke-opacitystroke-widthfillfill-opacityA "Feature" (within a "FeatureCollection") in GeoJSON can look like this (example):
{ "type": "Feature", "properties": { "title": "Jackson Road Extension", "description": "Extension of US 66 in 1937, upon completion of land reclamation for 1937 Chicago World's Fair", "stroke": "#ff0000", "stroke-width": 3 }, "geometry": { "type": "LineString", "coordinates": [ [ -87.617232, 41.8784146, 0 ], [ -87.6243238, 41.8783107, 0 ] ] } }Beta Was this translation helpful? Give feedback.
All reactions