-
Notifications
You must be signed in to change notification settings - Fork 17
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
Objects aren't visible after crossing the date boundary (antimeridian) #90
Comments
#bigmappeopleproblems |
Hi Matt, that should a bit strange to me. Could you share some demo hosts with coordinates, so I could try to reproduce and fix it? |
Test lat,long Another interesting behavior I just noticed |
This is indeed a bug. I will have a look if this is maybe related to the upstream JS map library (leaflet) or is something within my scope I could fix. |
The problems is that markers aren't replicated to the "other" worlds (each world has "neighbours" which are treated as independent instances of a map) For showing all markers in your use case it could help to add 360 to all negative longitudes, but doesn't resolve the missing markers in the "neighbour" worlds See Leaflet/Leaflet#1945 and https://stackoverflow.com/questions/38820724/how-to-display-leaflet-markers-near-the-180-meridian |
A quick fix for the time we haven't found a better solution is ihmo to add 360 to your negative longitudes (only for the hosts nearby australia - not in central europe) |
Thanks for the fast response @nbuchwitz. We will give that a try. |
The quick fix doesn't work if the view is a negative longitude as well. I changed this code in public/js/module.js to try and modify the longitudes on the fly which does work when the map initially loads regardless of which side of the antimeridian the longitudes lay on but moving the map to the other side of the antimeridian causes all points to disappear.
If I console log the date['coordinates'] I can see them changes as the view is moved back and forth without a page reload so it is likely related to the initial problem, something like the zone not changing even though the view default_long does. There may be a better longitude value to use than the url default_long, just need to find it. |
no, that isn't it either Leaflet.RepeatedMarkers plugin is another option |
Expected Behavior
When mapping multiple points that are either side of the 180 degree mark all points map is viewing are visible.
eg:
/map?default_zoom=5&default_lat=-7.885147283424331&default_long=179.999 would show points such as Fiji, Vanuatu, Kiribati, Tonga, Samoa or Niue.
/map?default_zoom=5&default_lat=-7.885147283424331&default_long=-179.999 would show points such as Fiji, Vanuatu, Kiribati, Tonga, Samoa or Niue.
Current Behavior
When mapping multiple points that are either side of the 180 degree mark only points on the side the map is viewing are visible.
eg:
/map?default_zoom=5&default_lat=-7.885147283424331&default_long=179.999 would show points such as Fiji, Vanuatu, Kiribati but not Tonga, Samoa or Niue.
/map?default_zoom=5&default_lat=-7.885147283424331&default_long=-179.999 would show the opposite. Points for Tonga, Samoa or Niue are visible but Fiji, Vanuatu, Kiribati disappear
Possible Solution
Steps to Reproduce (for bugs)
You should see 3 locations only that change depending on the side of 180 degrees the view is.
Context
Your Environment
icinga2 --version
):Platform: Ubuntu
Platform version: 18.04.2 LTS (Bionic Beaver)
icinga2 feature list
):root@icinga:~# icinga2 feature list
Disabled features: compatlog debuglog elasticsearch gelf graphite influxdb livestatus opentsdb perfdata statusdata syslog
Enabled features: api checker command ido-mysql mainlog notification
icinga2 daemon -C
):The text was updated successfully, but these errors were encountered: