Skip to content

Refreshing symbols #959

@oyvindi

Description

@oyvindi

I got a case where the style document has 3 different sources, hence multiple layers are created.

The application has two different pages, using the same tiles but with different styles. When creating a new Map(), then using apply() for the vector tiles, the new instance of the map renders tiles with the same style as the previous instance. That is, until I zoom to somewhere else outside the "home-extent", when it starts to display correct colors (and of course, when I refresh the entire page)

Seems like the symbols are being cached somewhere, but can't figure a way to clear this.

I'm using the most recent versions of ol-mapbox-style and OpenLayers.

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