Skip to content

Latest commit

 

History

History
722 lines (402 loc) · 33.1 KB

CHANGELOG.md

File metadata and controls

722 lines (402 loc) · 33.1 KB

Changelog

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

6.0.5 (2024-03-31)

Bug Fixes

  • Inspect document body for theme instead of vault config (close #440) (fa1a3f4)

6.0.4 (2024-03-27)

Bug Fixes

  • Fixes another instance where image markers might not resize properly (f75836a)

6.0.3 (2024-03-27)

Bug Fixes

  • Fixes some instances where custom marker images were not resized (505e3b2)

6.0.2 (2024-01-26)

Bug Fixes

  • Update plugin name per Obsidian developer guidelines (56bdbfc)

6.0.1 (2023-12-01)

Bug Fixes

  • Marker tooltips should hide when a layer is changed (19d5765)

6.0.0 (2023-10-31)

⚠ BREAKING CHANGES

  • Switched map tile provider (close #424)

Features

5.8.0 (2023-10-08)

Features

  • can now specify layer for code block markers (ebcec59)

5.7.3 (2023-08-29)

Bug Fixes

  • invalidate map size to prevent incorrect starting positions in some situations (a9ac194)

5.7.2 (2023-07-23)

Bug Fixes

  • Displays GPX tracks on load (fe79ca0)

5.7.1 (2023-07-03)

Bug Fixes

  • fixes issue preventing map view from opening (3b2ecee)

5.7.0 (2023-06-29)

Features

  • Define custom marker types in json files (#400) (b9305f5)

Bug Fixes

  • restore removal of custom marker types (#401) (73e1f4b)

5.6.1 (2023-05-07)

Bug Fixes

  • revert to webpack build to avoid collision with Map View (close #384) (8154392)

5.6.0 (2023-05-04)

Features

Bug Fixes

  • 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)

Bug Fixes

  • update Chinese translation (thank you @Wanxp) (d0e19c6)

5.5.7 (2023-04-29)

Bug Fixes

5.5.6 (2023-04-28)

Bug Fixes

  • expand local links for obsidian's hover-preview (closes #361) (#375) (c145fdd)

5.5.5 (2023-04-25)

Bug Fixes

  • latitude and longitude can be 0 (close #362) (deff0a8)

5.5.4 (2023-04-21)

Bug Fixes

  • markers should respect layers when reset now (close #308) (fcf974a)

5.5.3 (2023-04-20)

Bug Fixes

3.5.5 (2023-04-20)

Bug Fixes

5.5.2 (2023-04-11)

Bug Fixes

  • adds small dropshadow to markers (close #363) (8badcaf)

5.5.0 (2023-04-08)

Features

  • Can now measure in segments by continuing to mod-click (fbdf5f0)

5.4.0 (2023-04-07)

Features

  • can alt-click to measure polylines from drawing (6bc541f)

Bug Fixes

  • fixes incorrect use of Set (b3f5c47)

5.3.0 (2023-04-06)

New Features

  • Adds support for Chinese internalization (@Wanxp) #358
  • Adds ability to save drawings as GeoJSON (close #337) (@preslavnpetrov) #360
  • Improves GeoJSON file resolving (@SpocWeb) #350

Bug Fixes

  • fixes incorrect use of Set (b3f5c47)

5.2.7 (2023-03-29)

5.2.6 (2023-02-28)

Bug Fixes

  • fixes hover popover decoration (734dd67)

5.2.5 (2023-02-28)

Bug Fixes

  • fixes source issue for hover-link (4e60236)

5.2.4 (2023-02-28)

Bug Fixes

  • decorate leaflet sourced hover-popovers (617d69f)

5.2.3 (2023-02-28)

Bug Fixes

  • adds plugin as link hover source (ada3e64)
  • map now respects cmd-hover (cd2142e)

5.2.2 (2023-02-14)

Bug Fixes

  • fixes copy on shift-click (f623074)

5.2.1 (2023-02-14)

Bug Fixes

  • adds copy coordinates to mobile context menu (400894f)

5.2.0 (2023-02-14)

Features

  • Mobile measuring added to map long-press menu (525ae2d)

5.1.2 (2023-01-30)

Bug Fixes

5.1.1 (2022-11-13)

Bug Fixes

5.0.5 (2022-11-13)

5.0.4 (2022-09-12)

Bug Fixes

  • fixes appearance of native context menus (a70a041)

5.0.3 (2022-04-02)

Bug Fixes

  • Fixes issue where marker types deleted in settings would crash the plugin (bacc370)

5.0.2 (2022-03-30)

Bug Fixes

  • Fixes icons not rendering due to SVG mask duplication (close #293) (6e95de5)

5.0.1 (2022-03-15)

Bug Fixes

  • Fixes GPX tooltip not inheriting map units (close #288) (8640245)

5.0.0 (2022-03-14)

⚠ BREAKING CHANGES

  • 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)

Features

  • 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)

Features

  • 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)

Bug Fixes

  • 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)

Features

  • adds ability to force map to recenter when dragged (057f9c6)
  • adds noScrollZoom block parameter (a8b607f)

4.12.1 (2022-01-25)

Bug Fixes

  • geojson and gpx now default to the file name #263 (4e9b72b)

4.12.0 (2022-01-25)

Features

  • 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)

Bug Fixes

  • fixes control order when just using tileoverlays (8bbce58)

4.11.0 (2022-01-24)

Features

  • much improved image loading (08c80ed)

4.10.0 (2022-01-23)

Features

  • now show current zoom level on Reset Zoom control (e53ace5)

Bug Fixes

  • Update release notes message (8d8ec5c)

4.9.0 (2022-01-11)

Features

  • add settings to change default tile servers (043e248)

4.8.0 (2021-12-16)

Features

Bug Fixes

  • removed console logs (34feb92)
  • scopes now properly inherit global scopes (0b3b681)

4.7.4 (2021-12-11)

Bug Fixes

  • fixed issue with tile overlay (22da6cc)

4.7.2 (2021-12-10)

Bug Fixes

4.7.1 (2021-12-10)

Bug Fixes

4.7.0 (2021-12-10)

Features

  • testing changelog for claire (a7d6464)

4.6.2 (2021-12-10)

Bug Fixes

4.6.1 (2021-12-10)

Bug Fixes

  • bug with naming of new tileoverlays (7398e5d)

4.6.0 (2021-12-10)

Features

  • added tileOverlay map option to specify tile servers as map overlays (eec6368)

4.5.0 (2021-12-06)

Features

4.4.0 (2021-12-06)

Features

  • added preserveAspect map parameter (close #254) (e507416)

4.3.7 (2021-12-06)

Bug Fixes

  • markers with only descriptions will display their popup (close #253) (ceb8498)

4.3.6 (2021-12-06)

Bug Fixes

  • fixed issue where drag and drop was not linking note to marker (f9261e3)

4.0.0

Highlights:

  1. The entire plugin has been rewritten, resulting in a much faster and smoother experience.
  2. Images are loaded in a background process and no longer block Obsidian from responding.
  3. You can now view detailed health data on the map, including elevation, pace, cadence and more!
  4. 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.
  5. You can now draw and edit shapes directly on maps!
  6. 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.
  7. You can now specify alternate map serves other than OpenStreetMap, and real-world maps can now have multiple layers.
  8. The plugin now has full localization support (but currently only supports English).

Several bug fixes.

3.18.0

  • Added support for GeoJSON styling using the MapBox SimpleStyle specification
  • GeoJSON now displays a tooltip if the features have a title, description or name 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

3.17.0

  • Added support for GeoJSON files
  • Added support for mapmarkers frontmatter tag
  • Backend updates

3.16.0

  • 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

3.15.0

  • Added linksTo and linksFrom parameters
  • Map overlays from note frontmatter will filter with the mapmarker type
  • Add new coordinates and zoomTag parameter
    • coordinates can be used in lieu of lat and long parameters
    • If the coordinates is a note file wikilink, it will read the note file's location 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 in coordinates. If coordinates is not a file, zoomTag does nothing. - It will use the tag (formatted the same as overlayTag - <distance> <unit>) to calculate the default zoom level to display

3.14.0

  • 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

3.13.0

  • Added overlay descriptions
    • Changed overlay syntax to [<color>, <location>, <radius> <unit>, <description>]
  • Added overlayTag and overlayColor 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

3.12.0

  • 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

3.11.0

  • 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, and markerTag parameters using YAML syntax instead of multiple parameter tags
    • markerTag 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 and markerTag parameters) using mapoverlay
    • 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

3.10.0

  • Changed coordinate copy-to-clipboard from [lat, lng] to lat, 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

3.9.2

  • In an effort to reduce notice spam, copying map/marker coordinates now must be done by Ctrl + Shift/Alt-clicking

3.9.0

  • 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.

3.8.3

  • 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)

3.8.0

  • Added fullscreen map button
  • Distance line now correctly snaps to markers
  • Fixed some issues related to escaping from the distance line

3.7.0

  • 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

3.6.0

  • 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

3.5.0

  • 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

3.4.0

  • Added explicit commandMarker and Command Marker toggles
    • These are required if the marker is to execute a command

3.3.0

  • Marker links may now be Obsidian commands

3.2.0

  • Added Alt-click on marker to reveal coordinates

3.1.0

  • Changed from marker to mapmarker for frontmatter tag
    • marker will continue to work for a few releases
    • Added change notice warning
  • Added markerTag parameter
    • requires Dataview plugin

3.0.0

New Features

  • 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 and markerFolder parameters in maps
    • markerFile will read a note file's frontmatter and create a marker based on the marker and location tags
      • marker should be a defined marker type (will default to default 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

Bug Fixes

  • 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

2.1.0

  • 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

2.0.0

  • 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

1.3.0

  • Removed requirement for file path in marker target
  • Added ability to target blocks in marker target

1.2.0

  • 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

1.1.0

  • Maps now recalculate their sizing when the window is resized

1.0.0

  • 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

0.3.1

  • 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

0.2.2

  • Added real-world maps
  • Added latitude and longitude options
  • Added zoom delta option
  • Added tooltip display on markers that link to notes
  • Bug fixes