Giter Club home page Giter Club logo

Comments (9)

tylergaw avatar tylergaw commented on May 11, 2024

This isn't a new 7.x thing, but I noticed today that telemetry methods added in nitaliano/react-native-mapbox-gl#1096 aren't documented.

There are:

  • MapboxGL.isTelemetryEnabled = () => Promise<boolean>
  • MapboxGL.setTelemetryEnabled = (enabled: Boolean) => void

Started to open a PR, but I wasn't sure the best place to put them since they're not on a component, but the base object.

Happy to add them in a PR if someone can point me to the best place to put 'em

from maps.

kristfal avatar kristfal commented on May 11, 2024

from maps.

karlguillotte avatar karlguillotte commented on May 11, 2024

<Mapbox.Images images={[]}>

from maps.

luisfuertes avatar luisfuertes commented on May 11, 2024

I have an offline map downloaded. Does anyone know how I can load it? I get it with the "getPack" but it will not be added to the MapView.

const offlinePack = await MapboxGL.offlineManager.getPack(OFFLINE_ZONE_NAME)
Captura de pantalla 2019-07-08 a las 12 18 50

I'm sorry if this should go on stackoverflow but I do not know if the API is specific to this component.

Thanks!

from maps.

AbdullahADhaim avatar AbdullahADhaim commented on May 11, 2024

I have an offline map downloaded. Does anyone know how I can load it? I get it with the "getPack" but it will not be added to the MapView.

const offlinePack = await MapboxGL.offlineManager.getPack(OFFLINE_ZONE_NAME)
Captura de pantalla 2019-07-08 a las 12 18 50

I'm sorry if this should go on stackoverflow but I do not know if the API is specific to this component.

Thanks!

I'm also curious how to load the offline pack in the MapView, I have my pack downloaded 100% but the mapview turns black when I'm in offline mode.
PS: in the deprecated version of RNMapBox it should work automatically when you're offline but doesn't seem to work in this verison.

from maps.

luisfuertes avatar luisfuertes commented on May 11, 2024

Thanks for clarification @AbdullahADhaim

we will wait for @EricPKerr 's answer

from maps.

AbdullahADhaim avatar AbdullahADhaim commented on May 11, 2024

@luisfuertes
Finally it worked for me,currently maps is automatically working in offline mode, I was using a corrupted custom styleUrl and that's why the offline map wasn't working. I used MapBox's styleUrl and it's working now.

from maps.

stale avatar stale commented on May 11, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from maps.

luisfuertes avatar luisfuertes commented on May 11, 2024

It worked for me removing styleUrl too. Close it please

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.