Skip to content

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

Open
@prushforth

Description

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.

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions