Giter Site home page Giter Site logo

Custom GL layers? about maps HOT 8 CLOSED

rnmapbox avatar rnmapbox commented on May 7, 2024 3
Custom GL layers?

from maps.

Comments (8)

mfazekas avatar mfazekas commented on May 7, 2024

I assume you're asking https://docs.mapbox.com/mapbox-gl-js/example/custom-style-layer/

I don't think the android or ios native sdk supports it. Android seems to have a CustomLayer labelled with do not use. There seems to be an example with cpp.

I havent found anything like that for ios docs there is an undocumened MGLOpenGLStyleLayer - see LimeGreenStyleLayer example

I guess limited usecases could be implemented, but full support doesn't seems to be possible. (Or at least would be very very hard to implement)

from maps.

jliebrand avatar jliebrand commented on May 7, 2024

Hmm ok, thanks! we'll need to think of a different solution then

from maps.

mfazekas avatar mfazekas commented on May 7, 2024

@jliebrand what is the usecase?

from maps.

jliebrand avatar jliebrand commented on May 7, 2024

We use it to animate a wind layer:

image

from maps.

kristfal avatar kristfal commented on May 7, 2024

This (syncing a native GL context with the map) requires changes in the core library I believe. It should be requested upstream. Closing for now.

from maps.

mfazekas avatar mfazekas commented on May 7, 2024

Most of RN native callbacks is currently async. This would require sync commands, also this would require C++ on android. Might be easier once Fabric in RN is implemented.

from maps.

mahipalsingh-syt avatar mahipalsingh-syt commented on May 7, 2024

@jliebrand @mfazekas can you help me in this wind animation, i'm searching from last 2 weeks for solution. Any link or sample , please

from maps.

MichaelDanielTom avatar MichaelDanielTom commented on May 7, 2024

Does anyone know if there is a way in the newest version to add a 3d model to the map at a point? It seems somewhat convoluted to do on iOS and is unclear on android based on this example using SceneKit, at least compared to on the web with libraries like threebox. Wondering if there's any way to somehow use expo-three.

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.