Skip to content

[Discussion]: ViewTypeType - naming and using deck.gl classes? #2672

Description

@rubenthoms

I find the naming of the type of the ViewportType property viewType a bit odd. Why not just calling it ViewType instead of ViewTypeType? Also, isn't it weird that it requires a deck.gl class as value? I would prefer a decoupling - make it a union of string literals. There is not even the flexibility to use any view type deck.gl provides, it is a fixed union of pre-selected class types - I only see disadvantages with this pattern. Open for discussion as the title suggests 😃

Metadata

Metadata

Assignees

No one assigned

    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