All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
6.0.5 (2024-03-31)
6.0.4 (2024-03-27)
- Fixes another instance where image markers might not resize properly (f75836a)
6.0.3 (2024-03-27)
- Fixes some instances where custom marker images were not resized (505e3b2)
6.0.2 (2024-01-26)
- Update plugin name per Obsidian developer guidelines (56bdbfc)
6.0.1 (2023-12-01)
- Marker tooltips should hide when a layer is changed (19d5765)
6.0.0 (2023-10-31)
- Switched map tile provider (close #424)
5.8.0 (2023-10-08)
- can now specify layer for code block markers (ebcec59)
5.7.3 (2023-08-29)
- invalidate map size to prevent incorrect starting positions in some situations (a9ac194)
5.7.2 (2023-07-23)
- Displays GPX tracks on load (fe79ca0)
5.7.1 (2023-07-03)
- fixes issue preventing map view from opening (3b2ecee)
5.7.0 (2023-06-29)
5.6.1 (2023-05-07)
5.6.0 (2023-05-04)
- clean up settings (#381) (4df1590)
- default to infinite recursion for geojson (close #366) (ad2b37a)
- display geojson causing error in notice (174b80d)
- fixes longitude i10n message (97adff3)
5.5.8 (2023-04-30)
- update Chinese translation (thank you @Wanxp) (d0e19c6)
5.5.7 (2023-04-29)
5.5.6 (2023-04-28)
5.5.5 (2023-04-25)
5.5.4 (2023-04-21)
5.5.3 (2023-04-20)
3.5.5 (2023-04-20)
- setup for npm release (f00409a)
5.5.2 (2023-04-11)
5.5.0 (2023-04-08)
- Can now measure in segments by continuing to mod-click (fbdf5f0)
5.4.0 (2023-04-07)
- can alt-click to measure polylines from drawing (6bc541f)
- fixes incorrect use of Set (b3f5c47)
5.3.0 (2023-04-06)
- Adds support for Chinese internalization (@Wanxp) #358
- Adds ability to save drawings as GeoJSON (close #337) (@preslavnpetrov) #360
- Improves GeoJSON file resolving (@SpocWeb) #350
- fixes incorrect use of Set (b3f5c47)
5.2.7 (2023-03-29)
5.2.6 (2023-02-28)
- fixes hover popover decoration (734dd67)
5.2.5 (2023-02-28)
- fixes source issue for hover-link (4e60236)
5.2.4 (2023-02-28)
- decorate leaflet sourced hover-popovers (617d69f)
5.2.3 (2023-02-28)
5.2.2 (2023-02-14)
- fixes copy on shift-click (f623074)
5.2.1 (2023-02-14)
- adds copy coordinates to mobile context menu (400894f)
5.2.0 (2023-02-14)
- Mobile measuring added to map long-press menu (525ae2d)
5.1.2 (2023-01-30)
- lock state persists (d6436b1)
5.1.1 (2022-11-13)
- version (7f3f66b)
5.0.5 (2022-11-13)
5.0.4 (2022-09-12)
- fixes appearance of native context menus (a70a041)
5.0.3 (2022-04-02)
- Fixes issue where marker types deleted in settings would crash the plugin (bacc370)
5.0.2 (2022-03-30)
5.0.1 (2022-03-15)
5.0.0 (2022-03-14)
- OpenStreetMap has restricted use of its tile server in Obsidian. The default tile server for Obsidian Leaflet has been changed to Stamen Terrain. Please see #286 for more information. (close #286)
- OpenStreetMap has restricted use of its tile server in Obsidian. The default tile server for Obsidian Leaflet has been changed to Stamen Terrain. Please see #286 for more information. (close #286) (3b33092)
4.14.0 (2022-02-28)
- Adds description field + reorganizes Edit Marker modal (b1a648f)
- Adds support for markdown links in addition to wikilinks (close #280) (c903209)
- Marker double-clicks now open the edit marker modal (1c01511)
- Fixed issue where setting a marker description could also set the link (138d59b)
- Marker descriptions now displayed in tooltip even if there is a link (bd9a200)
4.13.0 (2022-01-26)
- adds ability to force map to recenter when dragged (057f9c6)
- adds noScrollZoom block parameter (a8b607f)
4.12.1 (2022-01-25)
4.12.0 (2022-01-25)
- can now link geojson to notes (9eb6b2a)
- maps can now be locked to prevent editing (25befa7)
- tile layers can now default on with the
|on
flag (f5a4e56)
- fixes control order when just using tileoverlays (8bbce58)
4.11.0 (2022-01-24)
- much improved image loading (08c80ed)
4.10.0 (2022-01-23)
- now show current zoom level on Reset Zoom control (e53ace5)
- Update release notes message (8d8ec5c)
4.9.0 (2022-01-11)
- add settings to change default tile servers (043e248)
4.8.0 (2021-12-16)
4.7.4 (2021-12-11)
- fixed issue with tile overlay (22da6cc)
4.7.2 (2021-12-10)
- update release message (b27bfa8)
4.7.1 (2021-12-10)
- fix release version (a3b4c44)
4.7.0 (2021-12-10)
- testing changelog for claire (a7d6464)
4.6.2 (2021-12-10)
- index bug (e11f663)
4.6.1 (2021-12-10)
- bug with naming of new tileoverlays (7398e5d)
4.6.0 (2021-12-10)
- added
tileOverlay
map option to specify tile servers as map overlays (eec6368)
4.5.0 (2021-12-06)
- added noUI parameter (452dbc2)
4.4.0 (2021-12-06)
4.3.7 (2021-12-06)
4.3.6 (2021-12-06)
- fixed issue where drag and drop was not linking note to marker (f9261e3)
Highlights:
- The entire plugin has been rewritten, resulting in a much faster and smoother experience.
- Images are loaded in a background process and no longer block Obsidian from responding.
- You can now view detailed health data on the map, including elevation, pace, cadence and more!
- There is a brand-new Leaflet Map View. You can save parameters for your in-note maps to the view to open an exact copy, or create your own, custom view.
- You can now draw and edit shapes directly on maps!
- For those of you using Obsidian to run TTRPGs, Leaflet now integrates directly with the Initiative Tracker, giving you the ability to use it as a full-on battlemap.
- You can now specify alternate map serves other than OpenStreetMap, and real-world maps can now have multiple layers.
- The plugin now has full localization support (but currently only supports English).
Several bug fixes.
- Added support for GeoJSON styling using the MapBox SimpleStyle specification
- GeoJSON now displays a tooltip if the features have a
title
,description
orname
specified - The default GeoJSON color can be set with the new
geojsonColor
parameter - Fixed issue where maps would not load if a non-markdown file was present in the immutable file list
- Added support for GeoJSON files
- Added support for
mapmarkers
frontmatter tag - Backend updates
- Added file watchers to automatically update immutable markers and overlays when note frontmatter changes
- Fixed issue where
zoomDelta
was not respected when using scroll wheel - Fixes issue where markerFiles, markerFolders and markerTags were not rendered
- Added
linksTo
andlinksFrom
parameters - Map overlays from note frontmatter will filter with the
mapmarker
type - Add new
coordinates
andzoomTag
parametercoordinates
can be used in lieu oflat
andlong
parameters- If the
coordinates
is a note file wikilink, it will read the note file'slocation
frontmatter tag and use that for initial starting coordinates - If
zoomTag
is specified, it will read the tag from the frontmatter of the same file specified incoordinates
. Ifcoordinates
is not a file,zoomTag
does nothing. - It will use the tag (formatted the same asoverlayTag
-<distance> <unit>
) to calculate the default zoom level to display
- Close #74 - Added
bounds
parameter to set custom image map coordinates - Greatly improved error reporting
- Fixed an issue where maps were defaulting to dark mode
- Fixed issue where canceling drawing an overlay could cause an error on the next click
- Added overlay descriptions
- Changed overlay syntax to
[<color>, <location>, <radius> <unit>, <description>]
- Changed overlay syntax to
- Added
overlayTag
andoverlayColor
map block parameters - Fixed issue where immutable markers would still launch the context modal
- Fixed issue where transparent images were not uploading correctly
- Fixed issue where a map with overlays but no markers would not save
- Fixed issue where overlays drawn directly on image maps would not re-render correctly
- Fixed issue where overlays defined with a non-hex color would display black in the color-picker
- Fixed issue where edited parameters in the overlay context menu were not correctly applied
- Overlay radiuses in the context menu now correctly display the radius in the correct unit
- Improved visual appearance of a loading map
- Improved documentation
- Added ability to upload images to use as marker icons
- Images will be resized to 24px wide maximum
- Markers with image icons cannot be layered
- If the default marker is set to an image, additional marker types cannot be layered
- Improved behavior of Filter Marker control box
- File upload buttons now respect theme CSS
- Fixed some bugs related to removing/adding marker types when maps are open
- Large codebase re-organization
- Maps are now generated by a Markdown render child generator
- Maps now handle their own escape scopes
- Image maps now load the first image then load remaining images in the background
- Improved image rendering speed
- Added ability to define
image
,marker
,commandMarker
,markerFile
,markerFolder
, andmarkerTag
parameters using YAML syntax instead of multiple parameter tagsmarkerTag
instances cannot be defined using # in YAML - # denotes a comment- YAML-style syntax cannot be combined with original syntax
- Added basic circle map overlays
- Can be created on the map by Shift-right clicking on a point to begin drawing
- Can be defined in source block using new
overlay
parameter - Can be created from note frontmatter (found using existing
markerFile
,markerFolder
andmarkerTag
parameters) usingmapoverlay
- Please see the ReadME section for syntax
- Fixed several issues related to marker filter control box
- Fixed issue where the
Layer Marker
setting of a Marker Type was not being respected
- Changed coordinate copy-to-clipboard from
[lat, lng]
tolat, lng
- Added "Show All Markers" and "Reset View" control buttons
- Added Filter Markers button that allows filtering by marker type (more filters to come, possibly)
- Moved Bulk Edit Markers to Top Right
- Top Left -> View Controls
- Top Right -> Layer controls (incl. markers)
- Bottom Left -> Distance controls
- In an effort to reduce notice spam, copying map/marker coordinates now must be done by Ctrl + Shift/Alt-clicking
- Added
darkMode
parameter to invert map colors - Added "Bulk Edit Markers" button to maps underneath the fullscreen control
- Adds a simple way to change the type, location, and link of all mutable markers defined on the map.
- Improved code structure
- removed Notice of distance calculation
- added control box in bottom-left corner that displays previously measured distance
- hovering the control box displays the previous distance line
- clicking the control box pans the map to fit the line
- reduced number of decimals for distance display to 1
- moved distance line tooltip to mouse cursor position
- distance line tooltip is now always on top (no longer bounces around)
- Added fullscreen map button
- Distance line now correctly snaps to markers
- Fixed some issues related to escaping from the distance line
- Removed some unnecessary map events
- Removed requirement for
scale
parameter on real world maps. Supplying a unit will try to auto-convert. - Added
distanceMultiplier
parameter that will display an additional, multiplied distance value when calculating distance - Fixed issue where clicking on the map without a modifier key was displaying click coordinates
- added distance line display to map, from original click -> mouse cursor, with real-time distance tooltip
- distances are now displayed according to user's locale
- distance lines can be aborted by pressing Escape
- Marker tooltips are now fully interactable (copy/paste, click)
- Added ability to shift/alt click on map to display coordinates
- Added setting toggle to copy location to clipboard on shift/alt click
- Added ability to Shift-click to display marker coordinates along with existing Alt-click functionality
- Changed distance feature to use Shift or Alt instead of Ctrl
- Added ability to calculate distances using markers
- Added explicit
commandMarker
and Command Marker toggles- These are required if the marker is to execute a command
- Marker links may now be Obsidian commands
- Added Alt-click on marker to reveal coordinates
- Changed from
marker
tomapmarker
for frontmatter tagmarker
will continue to work for a few releases- Added change notice warning
- Added
markerTag
parameter- requires Dataview plugin
- Map IDs are now required.
- A map that does not have an id will not render
- The plugin will try to load previously defined marker data once an id has been given to the map.
- This means marker definitions are no longer tied to maps - giving a map on a different note the same ID will load the same marker data
- Marker data that is not associated with a file will now be deleted after 7 days to prevent data accumulation
- Map data is now only saved if the map has defined markers
- Image files can now be linked using an Obsidian wikilink (e.g., [[Image Name.jpg]])
- New
markerFile
andmarkerFolder
parameters in mapsmarkerFile
will read a note file's frontmatter and create a marker based on themarker
andlocation
tagsmarker
should be a defined marker type (will default todefault
if not provided)location
should be a array of [latitude, longitude]. If not provided, the marker will not be created- The marker link target will be set to the file
markerFolder
will read all of the files in the folder, and try to parse the frontmatter as above.
- Made display of marker link in tooltip consistent with Obsidian's display style
- Added data attributes to marker HTML element
- data-type: marker type
- data-link: marker link target, if any
- data-mutable: whether marker data can be edited
- data-type: marker type name (such as default)
- Switched from uuid to 6 digit nanoid
- Rendering improvements
- Fixed issue where a new marker type's Layer Icon setting was not respecting the default layer marker setting
- Fixed issue where clicking a marker could open the context menu
- Fixed issue where clicking a marker without a link could cause an error
- Fixed issue with opening a marker link defined with alt-text
- Fixed issue where resizing the leaf containing a map caused it to calculate marker positions incorrectly
- Fixed issue where having the same map open in multiple windows was not adding markers correctly
- Fixed issue where dragging a marker created on a map open in multiple views would not drag correctly on other maps
- Fixed issue where turning the plugin off would leave map tiles in random locations on open notes
- Fixed issue where showing the note preview of a note with a map that is already open in the workspace would cause the map to be disassociated
- Added marker parameter in code block
- Fixed issue where importing a CSV file that changed a marker on an open map failed to update the marker information
- Added ability to export marker data to a CSV file
- Added ability to import marker data from a CSV file
- Added Obsidian-like file chooser to marker link path
- Removed requirement for file path in marker target
- Added ability to target blocks in marker target
- Add rudimentary distance calculation between two points on the map
- Fixed issue where opening the same map in multiple leaves could cause one map to de-render
- Maps now recalculate their sizing when the window is resized
- Switch to proper semantic versioning
- Added Note Preview setting
- This setting displays the Obsidian page preview when you hover over a linked marker
- Map height can now be in provided as a percentage
- Added image map layers
- It is now possible to have an arbitrary number of image maps layered on top of each other by supplying multiple images to the code block
- Markers created on a specific layer are only displayed when that layer is active
- Navigation between layers is done using the layer control box in the top right
- Added real-world maps
- Added latitude and longitude options
- Added zoom delta option
- Added tooltip display on markers that link to notes
- Bug fixes