Giter Site home page Giter Site logo

Comments (8)

mfazekas avatar mfazekas commented on May 8, 2024 3

@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.

systemlevel avatar systemlevel commented on May 8, 2024

@mfazekas Thank you! I'll work on some doc updates to reflect these changes as well.

from maps.

systemlevel avatar systemlevel commented on May 8, 2024

@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?

Screen Shot 2019-04-30 at 10 25 03 PM

Adding additional details from xcode:

Screen Shot 2019-04-30 at 10 47 15 PM

Screen Shot 2019-04-30 at 10 47 26 PM

from maps.

mfazekas avatar mfazekas commented on May 8, 2024

RCTMGLCamera should be in the project, generated by cocoapods. Are you using the workspace to build?

kép

from maps.

systemlevel avatar systemlevel commented on May 8, 2024

RCTMGLCamera should be in the project, generated by cocoapods. Are you using the workspace to build?

kép

@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.

mfazekas avatar mfazekas commented on May 8, 2024

@systemlevel sorry i thought you're using cocapods, but it appears you're not.
Does your RCTMGL.xcodeproj contains the RCTMLCamera?
kép

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.

https://github.com/react-native-mapbox/maps/blob/3c24cbb76ce81c1972dbd7727c44d5ab0b47bd8c/ios/RCTMGL.xcodeproj/project.pbxproj#L27-L28

from maps.

systemlevel avatar systemlevel commented on May 8, 2024

@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.

systemlevel avatar systemlevel commented on May 8, 2024

All issues have been addressed and updated docs to follow. Closing this out for now...

from maps.

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.