Comments (8)
@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 #4 (comment)
<Mapbox.MapView
zoomLevel={8}
centerCoordinate={[-111.8678, 40.2866]}
style={styles.map}
showUserLocation={true}
...
<Mapbox.MapView>
is now
<Mapbox.MapView
style={styles.map}
>
<Mapbox.Camera
zoomLevel={8}
centerCoordinate={[-111.8678, 40.2866]}
/>
<Mapbox.UserLocation
showUserLocation={true}
/>
...
</Mapbox.MapVIew>
```
from maps.
@mfazekas Thank you! I'll work on some doc updates to reflect these changes as well.
from maps.
@mfazekas getting an issue with RCTMGLCamera after installing react-native-mapbox/maps on another machine and running the app. Is this related to the above changes?
Adding additional details from xcode:
from maps.
RCTMGLCamera should be in the project, generated by cocoapods. Are you using the workspace to build?
from maps.
RCTMGLCamera should be in the project, generated by cocoapods. Are you using the workspace to build?
@mfazekas I have tried running it with react-native run-ios in the terminal as well as in xcode by building and running it there. If I misunderstood your question let me know.
Both of those approaches result in a failed build:
info Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_RCTMGLCamera", referenced from:
info objc-class-ref in libRCTMGL.a(RCTMGLMapView.o)
info ld: symbol(s) not found for architecture x86_64
info clang: error: linker command failed with exit code 1 (use -v to see invocation)
I'v attempted to clear out node_modules and do a clean npm install but the same error results still.
from maps.
@systemlevel sorry i thought you're using cocapods, but it appears you're not.
Does your RCTMGL.xcodeproj contains the RCTMLCamera?
It did for a project i've started with
react-native init
npm install react-native-mapbox/maps --save
react-native link
# add Mapbox.framework to the project
it builds/run fine, it's also in the github project, so not sure how your version has it missing.
from maps.
@mfazekas Yes I see that as well. So strange... I ended up deleting my project and then pulling a fresh copy down from my git repository and everything started working. I wish I knew what the exact issue was but I couldn't determine why that happened.
Things are working now after installing everything again from a clean clone of our repo.
Thanks again for your help.
from maps.
All issues have been addressed and updated docs to follow. Closing this out for now...
from maps.
Related Issues (20)
- [Bug]: Ornament position differs on Android and iOS
- Could not find com.mapbox.maps:android:10.16.4. HOT 6
- [Bug]: PointAnnotation draggable props not working on ios
- [Bug]: Crash on Android with dynamic shape source (Ios works fine), Fatal signal 11 (SIGSEGV), code 2 (SEGV_ACCERR) HOT 8
- > Task :rnmapbox_maps:compileReleaseKotlin FAILED when building apk HOT 2
- [Bug]: Camera.zoomTo not working HOT 5
- [Bug]: `LocationPuck` bearing not visible on Android HOT 1
- [Upstream Bug]: Camera centers incorrectly around bounds with padding HOT 3
- Expo Prebuild Secret Key HOT 4
- Android: When user pitches the map (two finger swipe gesture), isGestureActive becomes false when pitch starts to change
- [Bug]: RNMBXModels.models.getter not implemented (Expo Project) HOT 6
- [Bug]: FillLayer not rendered on IOS HOT 2
- Cannot upload app to app store on iOS HOT 2
- [Bug]: Flyto not working on Android HOT 1
- 'addEventEmitters' overrides nothing HOT 2
- [Bug]: Crash when changing Annotations source state HOT 1
- [Bug]: iOS: Can only change pitch or heading via setCamera when centerCoordinate is specified
- [Bug]: Task :app:checkDebugDuplicateClasses FAILED HOT 4
- [Bug]: Crash when changing Annotations source state in iOS
- [Bug]: Map is not usable in a (horizontal) ScrollView on Android 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 maps.