Disable continuous world
See original GitHub issueDescribe the bug The javascriptSDK seems to allow to disable world wrapping: https://docs.mapbox.com/mapbox.js/example/v1.0.0/disable-world-wrapping/
But it doesn’t seem possible with this SDK, I’ve scoured around the docs, tried to set a camera with bounds:
<Mapbox.MapView
style={{ flex: 1 }}
styleURL={`file://${RNFS.DocumentDirectoryPath}/style.json`}
logoEnabled={false}
>
<Mapbox.Camera
bounds={{
ne: [80, 170],
sw: [-80, -170],
}}
animationDuration={300}
maxZoom={19}
pitch={60}
/>
</Mapbox.MapView>
But I can still scroll infinitely within the mapview
Expected behavior Being able to turn of world wrapping
Screenshots
Versions: Platfrom: Android, iOS Device: iPhone6 OS: 12 SDK Version 7.0.1 React Native Version 0.59.9
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (1 by maintainers)
Top Results From Across the Web
Disable continuous world · Issue #372 · rnmapbox/maps
The javascriptSDK seems to allow to disable world wrapping: https://docs.mapbox.com/mapbox.js/example/v1.0.0/disable-world-wrapping/.
Read more >Disable horizontal repeating of world map with mapbox
See the docs: Disable World Wrapping <script> var map = L.mapbox.map('map','cartogrph.hbem5mod', { // these options apply to the tile layer ...
Read more >Disable PIWorld - OSIsoft Documentation
You can disable the PIWorld identity. This improves your control over access to the PI Data Archive server. All users get only the...
Read more >Disable Automatic Page Breaks in Word? - Microsoft Community
Does anyone know if it is possible to turn off page breaks in Word? ... will behave as if it consists of one...
Read more >How do I enable/disable continuous play/autoplay? (Android)
To enable the continuous play, please tap the playback mode icon (on the mini player bar or in the now playing page) as...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
So, I ended up implementing a very simple bound checking algorithm, it kinda works, but it definitely not smooth and sometimes you can still escape the bounding limits (because the tileset is covering the entire map).
Here is the code:
I would still prefer a proper solution though
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.