Skip to content
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

map recenters on California when enabling the area picker on browse page #26

Open
jhpoelen opened this issue May 11, 2015 · 0 comments
Open

Comments

@jhpoelen
Copy link
Member

When showing the area picker in http://globalbioticinteractions.org/browse/ page, I find it hard to locate or change the area picker.

use case:

  1. zoom in on Carribean
  2. select area or interest

expected:
When selecting an area of interest a rectangle is shown within the shown map. The position and size of rectangle can then be changed using touch / mouse events.

actual:
When selecting the "show area picker", the map jumps to California. To select some area in the Carribean, the area needs to be dragged from California to the Carribean (see attached first two images).

suggestion:
A leafletjs.org plugin at https://github.com/heyman/leaflet-areaselect/ uses an approach that always centers the area selector in the middle of the map. To change position, the area selector stays fixed, and the map moves underneath it. For an example (within marker clustering) see http://globalbioticinteractions.org/browse/map (see last images).

screen shot 2015-05-11 at 10 55 57 am
screen shot 2015-05-11 at 10 56 04 am
screen shot 2015-05-11 at 11 04 17 am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant