Giter VIP home page Giter VIP logo

Comments (6)

mfazekas avatar mfazekas commented on May 29, 2024

I'm sorry this is not a component that I can copy&paste to try out. Pls fix that

from maps.

mfazekas avatar mfazekas commented on May 29, 2024
          <MapboxGL.ModelLayer
            existing
            id="model-layer-id"
            style={{
              modelId: 'car',
              modelScale: [5, 5, 5],
            }}
          />

the existing attribute means that the layer is expected to be in the style already. Which is don't think the case here.

from maps.

rodrigo4635 avatar rodrigo4635 commented on May 29, 2024

Hi @mfazekas, I did the change #3406 in my project and removed the existing property, but after testing the model still don't load in my expo project, only in a CLI RN project, can you check?

from maps.

mfazekas avatar mfazekas commented on May 29, 2024

@rodrigo4635 so it works in an RN project, but not in an expo project?

from maps.

rodrigo4635 avatar rodrigo4635 commented on May 29, 2024

@mfazekas Exactly, I copied the code from this issue and placed it in an Expo project and a CLI project, with the same libraries and tokens, running on a real iOS device (iPhone 12).

from maps.

rodrigo4635 avatar rodrigo4635 commented on May 29, 2024

@mfazekas Hello, any news about this issue? Also, I noticed that ShapeSource's onPress event does not fire when you click on a ModelLayer. Using the same component as this example, if I add an onPress to the ShapeSource it doesn't fire when I click on a model layer, but it does if I use any other type (SymbolLayer for example)

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.