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

set some defaults from the querystring #3

Open
ghost opened this issue Apr 1, 2020 · 0 comments
Open

set some defaults from the querystring #3

ghost opened this issue Apr 1, 2020 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@ghost
Copy link

ghost commented Apr 1, 2020

It would be helpful to be able to embed the map with some default parameters, and provide those parameters through the querystring.

  • We could set the initial community source filters, eg. ?sources=facebook,whatsapp
  • We could set the default centre and zoom for the map, eg. ?centre=nn.nnnn,nn.nnnn&zoom=n

We should fall back on the defaults we already have if the querystring parameters aren't provided.

NB. our current default centre is set to: lat: 55.3781, lng: -3.436 and default zoom is 6.

@ghost ghost added enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed labels Apr 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

0 participants