Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

238
Vistas
React Native Map WMSTile Offline not working

I try to use my map on offline. On google layers, react-native-maps does it on its own. I also use a tile server for marine map. The server works with the WMS format and the library offers a WMSTile component (Unfortunately no specific example of use... ).

This component accepts a setting offlinemode and tileCachePath, I am not sure of the implementation and it does not work for offline.

<WMSTile
urlTemplate={MY_URL_TEMPLATE}
shouldReplaceMapContent={false}
tileCachePath={`${RNFS.CachesDirectoryPath}/tiles`}
offlineMode={true}
tileSize={256}
/>

MapScreen.tsx

useEffect(() => {
exists(`${RNFS.CachesDirectoryPath}/tiles`)
.then(exist => {
if (!exist){
mkdir(`${RNFS.CachesDirectoryPath}/tiles`)
}
})
})

App.tsx

When launching the application, check if a tiles folder exists because it is the one I specify to my WMSTile component but prioritizes it is not the right way.

For system files, I use react-native-fs

Thank you for your help

about 4 years ago · Santiago Gelvez
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda