Skip to content

Use map projection attribute as fallback projection for a layer if the layer does not specify a projection #677

Closed
@prushforth

Description

@prushforth

A layer can have a single or a few feature(s) in it, and sometimes it would be developer-friendly to not have to specify the projection via a map-meta element, or even as is sometimes seen (MapServer?) via the text/mapml MIME type projection parameter. It would be developer friendly to allow that layer to just assume that the projection is compatible with the <mapml-viewer projection="value"...> and try that. If it renders, that's good, otherwise it might become a disabled (inert) layer until DOM changes occur that make it not disabled.

Edit: it might not work, but it's worth a try.

Metadata

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