Skip to content

Using existing base layers list #7

@pedjas

Description

@pedjas

To use fullHash I have to create list of layers that are used for url hash.

I already have suchlist, it is list of base layers used for Layers control. This base layer list is not usable because index of the list is text that is used in visual interface for layers naming, so it may contain spaces or other characters not suitable for url hash.

So, I have to create another list just to change index text to suitable for hash. That means if I change layers I have to update both lists.

However, each layer in base layer list has an ID which is suitable for url hash.

I would propose that fullHash should be able to use base layer list optionally. Instead of list index it would use ID of each layer in list.

Scenario could be: if fullHash receives list on initialization, it uses that list. If list is not provided it simply uses base layer list from the map and it's IDs as hash values.

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