javalent / obsidian-leaflet

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

🐞 Custom Marker Icon does not scale properly #435

Open yobowl opened 7 months ago

yobowl commented 7 months ago

Check for existing bug reports before submitting.

Expected Behavior

When uploading an image larger than the default scaled size, the image should be scaled properly for the marker icon.

Current behaviour

The custom image becomes clipped. However, by first choosing a Font Awesome Icon, then uploading an image, the image scales properly. image image

Reproduction

  1. Create an additional map marker.
  2. Upload an image larger than the default unscaled size.

Correct behavior is observed with the following procedure:

  1. Create an additional map marker
  2. Select a Font Awesome icon
  3. Upload an image larger than the default unscaled size.

image used: Farm

Which Operating Systems are you using?

Obsidian Version Check

1.5.3

Plugin Version

6.0.2

Confirmation

Possible solution

No response

zjuhyf commented 7 months ago

same problem