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

Add / update "Copy Extent" to context menu in layer context and map context menus #323

Open
prushforth opened this issue Feb 25, 2021 · 2 comments

Comments

@prushforth
Copy link
Member

prushforth commented Feb 25, 2021

The objective of this idea is to feed the use of the mapml-viewer by users, by making it easier for them to create correct markup, by copying markup from the current map / layer.

Currently the layer control allows the user to copy the extent of the current layer via Copy Extent menu item.

We could add sub-menu items which would allow copying the extent in different coordinate systems and formats, eg. as a <meta> element, as a GeoJSON object etc. The structure of that would likely require the coordinate systems to be the leaf node in the menu i.e. once you select a format, you then select the coordinate system you want the coordinates in i.e.

Copy Extent > Format (HTML/MapML, GeoJSON, CSV ...) > Coordinate System ( tcrs, pcrs, gcrs, map, tilematrix, tile)

We could also allow the user to copy the current extent displayed i.e. not the layer's extent, but the extent of the current viewport. To achieve that, I think it might also be worthwhile to change the (current) Copy Coordinates menu item to be Copy > and then have sub-menus for Coordinates and Extent. Within each of those (Extent certainly but perhaps also Coordinates??) we could have the Format menu item mentioned above, which would have the different formats supported, with the coordinate systems once again being leaf nodes in the menu.

This is low priority, for discussion / idle time.

@ahmadayubi
Copy link
Member

That's an interesting idea but I think having that level of nesting in a context menu will turn away a lot of beginner level users (if they ever decide to use this). But I could be wrong or maybe that user level isn't as important of stakeholders as I think.

@prushforth
Copy link
Member Author

prushforth commented Feb 25, 2021

that level of nesting in a context menu will turn away a lot of beginner level users

Yeah that's a challenge, for sure. And that is exactly the level of user this would target.

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

No branches or pull requests

2 participants