-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Markers Disappear #512
Comments
Hi, Well, it turns out that if you keep the default CRS (Web/Spherical Mercator), there is a maximum latitude: What happens is that all markers beyond this limit are ceiled/floored to the limit when projected onto the map. By the way, this behaviour happens at all longitudes, not only at the prime meridian. MCG hides markers which it thinks are outside the visible bounds (plus an extra margin). But if you go far away from the map limit, the view bounds eventually reach the marker actual position. Then MCG adds it to the map, which shows it only at its border, and not on the edge of the view… Obviously this use case is quite limited: the majority of applications would be placed at lower latitudes, where the Web/Spherical Mercator error (as compared to Elliptical Mercator for example) is negligible. Still, is this fixable? But this issue seems to highlight a more fundamental issue in Leaflet itself: bounds padding can give latitude outside [-90; +90]°. Worse, the padded latitude decreases when we go further up from the North limit, maybe because we are on the other side of the arctan function. But I have not seen where the |
Following issue Leaflet#512, if CRS Projection defines a `MAX_LATITUDE`, expand the bounds to Infinity if the padded visible bounds exceeds that limit.
Regarding my last comment, it is actually very simply explained, but very counter-intuitive: at very high latitudes (North or South), the view spans across less degrees. The view upper and lower edges represent closer latitudes, so the difference is less, and the expanding (bounds padding) hence results in a shorter range. |
Should be fixed by #587 |
Using Chrome and Windows 7.
Seems to be an issue with cluster groups at the south pole that are close to the prime meridian. I can place single markers at [-89.00, 0], [-89.00, 1] but if I place other markers in that area and they cluster it messes up.
For example it will show a group of 3, but when you click the group nothing is there-- the markers disappear. If I move the markers to [-81.00, 0] then they display properly. Clustering shouldn't add a limitation that isn't there when placing single markers. Clearly those coordinates are in scope, as you can place single markers there AND even marker cluster acknowledges they are there. It's just when you click the cluster everything disappears.
The text was updated successfully, but these errors were encountered: