Skip to content

Should the 'legend' slot live in the Map component or the layout component? #58

@mmnoo

Description

@mmnoo

Currently there is a slot in the map component for a legend (bottom right) and map controls, (top right). Does it make more sense organizationally to have these slots places in the parent layout component and have no notion of a map. One consideration for the bottom right slot is we usually need to leave space in a map for attribution, so if it is the responsibility of a layout component we are mixing map concerns in. It might be reasonable however since for us, we are usually putting a map there. PErhaps a compromise is to have a bottomRight slow and additionally a bottomRightOffset slot that leaves the right amount of room. Perhaps we will find the attribution room varies between projects enough that we just leave this up to style overrides, but thats less convenient.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions