Skip to content
This repository was archived by the owner on Apr 27, 2024. It is now read-only.
This repository was archived by the owner on Apr 27, 2024. It is now read-only.

LabelLayer breaks rendering #154

Open

Description

@MarsVard

I have a map with 5 layers on it.

    mMap.layers().add(pathLayer);
    mMap.layers().add(new BuildingLayer(mMap, baseLayerOffline));
    mMap.layers().add(labelLayer);
    mMap.layers().add(userLocationLayer);
    mMap.layers().add(poiLayer);
    mMap.layers().add(eventLayer);

when I call startActivtyForResult() from inside the fragment where the map is, and then return to the fragment of the map. the labels layer is totally broken and messes up rendering of the map.

I tried removing the labels layer and that fixed it, I tried removing other layers and it was still broken.

I also tried removing the labels layer and then adding it back to the map, and it was still broken again.

screen shot 2015-05-14 at 12 32 22

is this a known issue? is there a way to bypass this problem?

Activity

  1. hjanetzek commented on May 14, 2015

    @hjanetzek
    Member

    Thanks for reporting. I haven't seen this issue yet. Could you provide a simple example for testing?

  2. MarsVard commented on May 19, 2015

    @MarsVard
    Author

    Hey @hjanetzek Here's a project that experiences the issue, it's a simple mock project with 2 activities.
    https://github.com/MarsVard/BrokenMaps/tree/master

    Hope you are able to provide more info or a way to fix this. and thank you for this awesome project.

  3. hjanetzek commented on May 19, 2015

    @hjanetzek
    Member

    thank you. sorry, this week is kind of super busy - I'll get to it sometime next week

  4. hjanetzek commented on May 19, 2015

    @hjanetzek
    Member

    hmm - works for me with the latest vtm. I've changed vtm-0.5.9 to 0.6

  5. MarsVard commented on May 20, 2015

    @MarsVard
    Author

    I just updated to 0.6.0 and it's still happening but for some reason the first time I openend the first activity and went back it was still OK, then the 2nd time and after that the labels and map were broken.

    all in the repository I posted earlier... and I also noticed this in logs:

    27892-27928/com.marsvard.brokenmaps W/Adreno-ES20﹕ <__load_uniform_matrix:1091>: GL_INVALID_OPERATION
    

    Is there a way to force map to reload? maybe if I force the map to reload when the activity resumes that will fix it ?

  6. 0nko commented on Jun 15, 2015

    @0nko

    @MarsVard I found that it's caused by a texture used in the themes:
    < style-area id="tex1" src="textures/rough.png" / >

    When I removed it I got rid of the error.

  7. MarsVard commented on Jun 17, 2015

    @MarsVard
    Author

    @0nko do you mean the GL_INVALID_OPERATION or the rendering being broken?

  8. 0nko commented on Jun 18, 2015

    @0nko

    @MarsVard yeah, GL_INVALID_OPERATION

  9. hjanetzek commented on Jun 18, 2015

    @hjanetzek
    Member

    @MarsVard, 0nko the texture issue should have been resolved by the latest commit

  10. 0nko commented on Jun 20, 2015

    @0nko

    @hjanetzek you're right, it works. thanks!

  11. added a commit that references this issue on Nov 18, 2018
    33b68fd
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions