Comments (7)
@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.
@astojilj, thanks for the quick response.
- 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?
-
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.
-
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.
@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.
@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.
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.
@astojilj using maxzoom=4
(or even 0) fixed the issue for now. Thanks a lot for the help!
from mapbox-maps-ios.
@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)
- Support for transition for data-driven properties HOT 1
- SwiftuI HOT 1
- Crash in mapbox::common::platform::taskScope() -> EXC_BAD_ACCESS 0x0000000000000009 #250
- Stop using custom wrappers for existing iOS features. HOT 1
- How to Load Custom Fonts Locally HOT 1
- Local font Chinese does not take effect
- Jerky Movement of ViewAnnotation HOT 4
- Adding system UIImages to map gives `mismatched image size` HOT 1
- MapboxMap and Snapshotter camera(for:padding:bearing:pitch:) methods don't set padding HOT 3
- Pure SwiftUI Map Snapshot Capabilities HOT 3
- Mapbox Maps SDK crashes with Symbol layer! HOT 1
- Crash when loading glb model files via addStyleModel HOT 5
- App freezes when clicking the attributionButton on iOS 17.4.1 HOT 1
- iOS: camera.zoom calculates smaller zoom for camera(for:) initially HOT 4
- FollowPuckViewportState suffers a visual delay when target zoom level is equal to the current zoom level of the map HOT 1
- SDK Crash : DefaultLocationProvider.swift - Attempted to read an unowned reference but object was already deallocated HOT 2
- MTLTextureDescriptorInternal validateWithDevice: crash HOT 1
- Crash in mapbox::common::CleanupManager::cleanup() HOT 1
- Polyline "Cannot assign value of type 'String.UnicodeScalarView.SubSequence'" HOT 6
- Model Position Incorrectly Changed from Centre for some Coordinates HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mapbox-maps-ios.