-
Notifications
You must be signed in to change notification settings - Fork 12
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
Add a library of useful locations and allow user additions #119
Comments
You can currently do this via the config file. The most likely way we'd make that easier to use would be to allow you to specify the config file to use in the URL (#41). Otherwise if you're using this in a project-specific repo you'd want to update the config file to have the locations you want to include. |
Is there a way to bookmark locations for just me? Or does it need to be for the entire project? Is there documentation of where the config file is, and how it works (e.g., can there be subfolders)? FWIW, part of the idea of this issue is that Stamen would curate a larger list of helpful locations and include them in Maperture by default. I can definitely help with that part. |
@kateler you can check how locations are defined here: https://github.com/jsanz/maperture/blob/main/src/make-config.js#L2-L18 Just create in your config a |
If I'm understanding this correctly: In a project implementation (where Maperture is brought in as a package), you have access to the You might set up your project config with multiple gazetteers (some commented out) you can switch out manually?: const gazetteer = {
Reference: [
{ Tokyo: { zoom: 12.5, center: { lng: 139.75779, lat: 35.68472 } } }
];
// @kateler 's gazetteer
// const gazetteer = {
// Reference: [
// { Seattle: { zoom: 11.5, center: { lng: -122.35, lat: 47.595 } } },
// ]
// }; For the record, if we're talking about a list where each selection contains multiple locations, I'm hesitant to have that feature. It would open up a lot of UX questions like:
There is! See
I'm curious how we imagine this since Maperture right now is very customizable. Could this just be documentation within the Maperture repo or were you imagining something more? |
It would be great if Maperture:
The text was updated successfully, but these errors were encountered: