Has anybody integrated offline mapping into an offline Ionic app?

#1

Just wondering if anyone had managed to get offline mapping working on an Ionic app?

I need to have osm map downloads per country so leaflet tile downloads won’t cut it.

Mapbox maybe?

1 Like
#2

I need to have osm map downloads per country so leaflet tile downloads won’t cut it.

Are you trying to embed entire regions for offline use? Looks like mapbox provides this functionality, although I haven’t personally used it.

The @ionic-native/google-maps plugin will provide offline functionality for areas that the user has already cached, which was sufficient for my project (but may not be for apps that allow the user to explore beyond their locality while offline).

#3

Is it possible fully offline app with google-maps-plugin? because when I made a app with the plugin, the plugin requires internet connection to get a Google Maps Javascript API v3. the error is like below.

CordovaGoogleMaps.js:57 GET https://maps.googleapis.com/maps/api/js net::ERR_INTERNET_DISCONNECTED
document.addEventListener.once @ CordovaGoogleMaps.js:57
CordovaGoogleMaps.js:45 Can not load the Google Maps JavaScript API v3
CordovaGoogleMaps.js:46 Event {isTrusted: true, type: “error”, target: script, currentTarget: script, eventPhase: 2, …}

#4

The cordova google maps plugin plugin provided by @wf9a5m75 at [https://github.com/mapsplugin/cordova-plugin-googlemaps] works just fine when offline.

Again, if the user does not have imagery for their locality cached - you won’t be able to see details on the map. This isn’t a solvable problem according to google tos (item 4.4):

https://enterprise.google.com/maps/terms/us/maps_purchase_agreement.html

1 Like