-
Notifications
You must be signed in to change notification settings - Fork 81
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
Dashboard map not centered over points being displayed #213
Comments
So it looks like the UI is restricting which set of continents the user can access by snapping those back into center if they try to drag away from them. Since I import geojson points for the Pekapuran Laut Test Project, I didn't have these same constraints. If people are going to be import geojson we might want to find a way to translate those points. |
I also on the page where you create a new project. I felt from a user perspective that it was too far zoomed out. Maybe only show the bulk of one earth. Thats what you would except to see at least. |
Added js filter that converts points outside of the center map bounds to fit within it. Also converts extents in project view so they're now displayed on the map. This feels like a temporary fix and could cause problems if people then add spatial units in the UI.
added logic into model to check if project extent is within the map bounds
added logic into model to check if project extent is within the map bounds
added logic into model to check if project extent is within the map bounds added bounding box for project_add_extents map
added logic into model to check if project extent is within the map bounds added bounding box for project_add_extents map
Fixes #213: Points are now centered on the map.
added logic into model to check if project extent is within the map bounds added bounding box for project_add_extents map
The project "Chickens Everywhere" managed to be created outside of the center map. @wonderchook : Did you create this project from a really zoomed out state? |
I think this is because the staging environment does not yet contain the out-of-bound geometry check that @linzjax added. |
I tried recreating this issue on the latest master and I can confirm that a project drawn outside of the "center" map gets re-placed within ±180° longitudes. |
The Pekapuran Laut Test Project is not being displayed on the dashboard because the pin is being placed on the Asian on the left-hand side, not the Asian that's centered in the viewport. If you move to the left on the map you can see it.
The text was updated successfully, but these errors were encountered: