Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Android runtime styling changes not updated when changing existing layer's filter #6063

Closed

Description

@mkv123

Platform: Android
Mapbox SDK version: Nightly

Steps to trigger behavior

  1. Load up a style url
  2. Set a timer to change one of the existing layers' filter periodically.
    (our case is highlighting different areas)

Expected behavior

Styles update according to a specified filter

Actual behavior

The initial render actually looks about right, but consecutive changes to the filter aren't visible on screen. Zooming in or out a full level seems to cause the current correct style to be rendered (and cached) on that zoom level, but again once all zoom levels are populated updates seem pretty erratic. Also sometimes it seems that things are only updated to a tile border.

I've tried invalidate() on MapView, MapboxMap, and individual layers, as workaround, but doesn't help.

Apologies for the lack of code to demonstrate the issue, I just wanted to give you a heads up as quickly as possible about this issue.

Activity

  1. added
    Android
    Core
    on Aug 18, 2016
  2. ivovandongen commented on Aug 18, 2016

    @ivovandongen
    Contributor

    @mkv123 Thanks for the report. I'll try to reproduce this myself. To be clear; have you tried the same on layers you added through the runtime style api?

  3. mkv123 commented on Aug 18, 2016

    @mkv123
    Author

    No I have not. I've only tried it by modifying the filters of layers coming from through the style url.

  4. incanus commented on Aug 18, 2016

    @incanus
    Contributor

    @mkv123 Would #6040 properly capture the scope of your problem, i.e. is it a dupe? Seems like it is.

  5. incanus commented on Aug 18, 2016

    @incanus
    Contributor

    Dupe of #6040, which is actually #5701 at the root.

  6. mkv123 commented on Aug 18, 2016

    @mkv123
    Author

    Updating just to confirm: Initially was sceptical about being a dupe of #6040 as I was changing more than just integer params. Looking at the screen capture in #6040 it does look very similar to what I was seeing and #5701 explains what I was seeing and is not integer value specific.

  7. added this to the android-v4.2.0 milestone on Aug 23, 2016
  8. ivovandongen commented on Aug 23, 2016

    @ivovandongen
    Contributor

    Re-opened as we still need to track and test this for the 4.2.0 release.

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

Metadata

Metadata

Assignees

Labels

AndroidCorebugruntime styling

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions