question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

LIcon with null size within LMarker slot fails to nullify default size

See original GitHub issue

When providing an icon without a size within the default slot the icon property defaults to new Icon.Default() which has an iconSize of [12,12].

Steps to Reproduce

  <l-marker :lat-lng = "[-10, 10]">
    <l-icon :icon-size="null" :class-name="`leaflet-marker-icon`">
      <div :style="`width: 50px; height: 50px; background-color: #03f;`">Icon</div>
    </l-icon>
  </l-marker>

Expected Results

No forced sizing on marker.

Actual Results

The internal div will have the correct size, however…

Using DOM inspection tools, observe .leaflet-marker-icon wrapping this to have a size of 12x12

Browsers Affected

  • Chrome
  • Firefox
  • Edge
  • Safari 9
  • Safari 8
  • IE 11

Versions

  • Leaflet: v1.7.1
  • Vue: v2.6.14
  • Vue2Leaflet: v2.7.1

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
stale[bot]commented, Oct 16, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

0reactions
mryellowcommented, Oct 16, 2022

Please go away stalebot.

Hang-ong wontfix on a “stale” issue, entirely inappropriate.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Visualizing Your Data Using R - Andres Karjus
In this case, the first argument is the data (a vector of length one), and the second is 'main', which specifies the main...
Read more >
Untitled
Manta ray size maldives, The dark knight batsuit price, Suryamukhi ayurved ... Hnb1-m5-dc24v, Upholstery spray paint hobby lobby, Error page in asp net...
Read more >
OEi - River Thames Conditions - Environment Agency - GOV.UK
Nordcore gmbh t-shirt, Ghoshala, Artistic poster ideas, Dimensions of 1 ... Petaluma brian croser, Modwens property, Bh reutte kontakt, Best in slot, ...
Read more >
Lex & Lambda: Slots Being Set Manually Reset to Null
According to the document, I think you have to introduce the slots in the response object: callback(null, { "sessionAttributes": event.
Read more >
Standard Specifications Road and Bridge Construction
These standard specifications are to be used on contract work awarded by the Colorado Department ... For clarity, aggregate sieve sizes appear in....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found