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.

Doesn't support negative zoom levels (Cluster icons don't show up/disappears)

See original GitHub issue

Hi,

I am using an imageOverlay map for my indoor floorplan project with bounds set to the image exact resolution. In the example below it is 2003px*1203px, but it can be higher. I encountered following issues:

  1. The cluster icon doesn’t show up when the map is loaded.
  2. The cluster icon and the non-clustered marker icon can disappear and show up after zooming (mostly on low zoom levels).
  3. The icon’s positioning on the map is not correct at some zoom levels (mostly low zoom).
  4. After “playing” with zoom for some time a second cluster icon can appear so you can see 2 clusters for the same markers. Though this happens very rarely and i couldn’t reproduce this issue intentionally.

If i change the bounds from var bounds = [[0,0], [1203, 2003]] to smaller values like var bounds = [[0,0], [120.3, 200.3]] all seem to be working correctly. But i would like to keep the big bounds for my project…

Please take a look at the example: https://jsfiddle.net/8voh7rLs/ For this example i used Leaflet 1.0.0-beta.2 and Markercluster 1.0.0-rc.1.0

Thanks!

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:15 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
danzelcommented, Jan 25, 2017

This should be fixed now. Please try the latest git, or grab a built version from below and report back https://gist.github.com/danzel/986636912dd3cde1e4f3c6ecf6908c7e

If this works then I’ll do a new build.

0reactions
trisys3commented, Jan 31, 2017

It seems to work. Thanks.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Mapbox GL JS some symbols missing on different zoom ...
But I noticed that on certain zoom levels, some of the symbols in a layer would disappear and it will then reappear again...
Read more >
Solved: Collector feature disappearing when zoomed
There are two settings: the zoom level for them to show up and the zoom level for them to disappear. It is the...
Read more >
Controls | Maps JavaScript API
The Zoom control displays "+" and "-" buttons for changing the zoom level of the map. This control appears by default in the...
Read more >
Layers | Style Specification | Mapbox GL JS
At zoom levels equal to or greater than the maxzoom, the layer will be hidden. ... of the map view that does not...
Read more >
Control the Appearance of Marks in the View - Tableau
All marks have a default color, even when there are no fields on Color on the ... uses custom shapes that you don't...
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