Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

241
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!