Post-Expressions Update: Initial Map Zoom and Coords Not Correct
See original GitHub issueDescribe the bug Initial Map Zoom and Coords Not Correct Reference #4
To Reproduce With newest expression merged on master installed, load map with initial center and coordinates defined:
<Mapbox.MapView
zoomLevel={8}
centerCoordinate={[-111.8678, 40.2866]}
style={styles.map}
showUserLocation={true}
>
Expected behavior Map zoom/center coords should load initially as before.
Screenshots Resulting map regardless of center/coords defined:
Versions (please complete the following information):
- Platfrom: iOS
- Device: Simulator Xr
- React Native Version 0.59
Additional context
A big thank you and shoutout to @mfazekas for the recent expressions updates. The good news is we have the newest custom maps in Mapbox Studio working and displaying:
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (8 by maintainers)
Top Results From Across the Web
Initial zoom level is ignored. Maps open fully-zoomed in.
This issue applies to both a View (displaying a single point), and the Geolocation field map on the Edit form. It does not...
Read more >drift of coordinates after zooming #426 - Leaflet/Leaflet - GitHub
The issue seems to be occurring only when width and/or height of the map's container element is odd. When the map is zoomed...
Read more >Map Projection is not working as expected when zoom level is ...
The problem is first it zooms somewhere over ocean and then immediately in 5 seconds, it zooms on the desired location (top of...
Read more >Elegant ways to express coordinates and zoom level in urls
To make sharing map locations more natural I'm looking at updating a map service to sync the browser url with the current center...
Read more >Controlling Zoom and Pan | Maps JavaScript API
Overview. The usage of a map on a web page may require specific options to control the way users interact with the map...
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
@systemlevel thanks for trying out the new branch.
We need a doc update/rewrite, on how to migrate code for the new mapbox.
As mentioned in https://github.com/react-native-mapbox/maps/pull/4#issue-270304205
is now
All issues have been addressed and updated docs to follow. Closing this out for now…