Giter VIP home page Giter VIP logo

Comments (7)

astojilj avatar astojilj commented on May 29, 2024

@qandeelabbassi Thanks. This issue is related to tile cover: internally, geojson is split into tiles, and when the underlying tile gets out of the viewport, each of the 3D model objects anchored to the positions on that tile is not rendered.

We will work on resolving this. Meanwhile, as a workaround, would it help to lower layer.maxZoom = 22, to e.g. layer.maxZoom = 5? Larger tiles (occupying larger geometry) would be less likely to get out of the viewport. The workaround would be problematic for a high zoom situations due to precision loss.

from mapbox-maps-ios.

qandeelabbassi avatar qandeelabbassi commented on May 29, 2024

@astojilj, thanks for the quick response.

  1. I forgot to mention that the 2 models in the above video are two different instances, they are not connected in any way, should the tile cover still be an issue?
  2. When the underlying tile gets out of the viewport, each of the 3D model objects anchored to the positions on that tile is not rendered.

But the models never get out of the viewport in the above video. My understanding of the viewport might be incorrect, so I would like to know what viewport you are referring to here.

  1. Meanwhile, as a workaround, would it help to lower layer.maxZoom = 22, to e.g. layer.maxZoom = 5?

According to my understanding, decreasing the maxZoom would cause the model to disappear quickly or when we get closer to the model. Wouldn't this worsen the issue?

from mapbox-maps-ios.

astojilj avatar astojilj commented on May 29, 2024

@qandeelabbassi
My mistake here:

Meanwhile, as a workaround, would it help to lower layer.maxZoom = 22, to e.g. layer.maxZoom = 5?

According to my understanding, decreasing the maxZoom would cause the model to disappear quickly or when we get closer to the model. Wouldn't this worsen the issue?

I meant GeoJSONSource source's maxzoom.

But the models never get out of the viewport in the above video. My understanding of the viewport might be incorrect, so I would like to know what viewport you are referring to here.

Models don't, but the tile on the ground gets out of viewport. This we need to resolve but I hope that the workaround (lower maxzoom for source) would help on this meanwhile.

from mapbox-maps-ios.

qandeelcc avatar qandeelcc commented on May 29, 2024

@astojilj, setting maxzoon on geojson source doesn't solve the issue. If i use 3D puck would it solve the problem?

from mapbox-maps-ios.

astojilj avatar astojilj commented on May 29, 2024

3D puck should solve the issue, and could be used as a workaround until we fix this, since the underlying data is not tiled.

from mapbox-maps-ios.

qandeelabbassi avatar qandeelabbassi commented on May 29, 2024

@astojilj using maxzoom=4 (or even 0) fixed the issue for now. Thanks a lot for the help!

from mapbox-maps-ios.

astojilj avatar astojilj commented on May 29, 2024

@qandeelabbassi thanks, good to know that the workaround helped. We are working on a proper solution for this

from mapbox-maps-ios.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.