Skip to content

Consider moving the map style parameters to the StyleState #374

@sargunv

Description

@sargunv

The map snapshotter (#266) introduces an additional use case for map style. Conceptually, it makes sense that:

  1. a snapshotter should be able to have the same style as an interactive map
  2. a snapshotter's style should be configurable the same as an interactive map

So, perhaps it would make sense for the StyleState, instead of the MapLibreMap, to own the base style URI and the style composition, and the StyleState to be passed as parameter to the snapshotter?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions