Skip to content

[Feature]: Changing one layer redraws every layer, including the basemap #1051

Closed

Description

@arielsrossi

Before you start

What problem does this solve?

I was testing the latest version of RustGIS and encountered what appears to be a rendering issue.
I added an ESRI base map, followed by a shapefile containing several polygons.
I then experimented with different transparency levels.
I noticed that every time I adjusted the transparency, RustGIS would re-render the background image.
This reminded me of the processing behavior in ArcGIS, which reprocesses all layers whenever an action is performed on any single layer.
I’m not sure how best to describe this, but ideally, RustGIS shouldn't have to re-render every layer whenever a change is made to one of them.
Rendering consumes computational power; depending on the number or size of the layers, this can cause the system to slow down—even during simple tasks, such as toggling a layer on or off.

Demonstration.zip

Proposed solution

My proposal is that the processing engine should not re-run the entire processing for all layers whenever a layer is toggled on/off or its render color is changed.

Estimated scope

Small: a minor tweak, small UI change, or text adjustment

Alternatives considered

No response

Activity

  1. added
    enhancement
    on Oct 28, 2026
  2. changed the title [-][Feature]:[/-] [+][Feature]: Changing one layer redraws every layer, including the basemap[/+] on Oct 28, 2026
  3. Mavrick-F commented on Oct 28, 2026

    @Mavrick-F
    Member

    Thanks, this is real: the map view redraws everything when any layer changes, so a transparency change redraws the basemap too. A fix would cache each layer's picture, and transparency would just re-blend it.

    @giswqs, should this go into #635 or stay separate?

  4. giswqs commented on Oct 28, 2026

    @giswqs
    Member

    @Mavrick-F I just filed a tracking issue in #1057, separate from #635.

  5. giswqs commented on Oct 28, 2026

    @giswqs
    Member

    The flicker in the video is fixed in #1059, merged into main. Over a tile basemap, a change that leaves the same layers shown (a layer's colour, transparency, symbology or labels) now keeps the sharp map on screen until the new frame is ready, for at most 300 ms, instead of showing a blurry preview of the whole map. Redrawing only the layer that changed, rather than every layer, is the second step of #1057. This issue stays open until that lands.

  6. Mavrick-F commented on Nov 22, 2026

    @Mavrick-F
    Member

    Fixed through #1057.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions