oscarfonts / mapbox-gl-cordova-offline

Offline vector maps in Cordova using Mapbox GL JS
Other
60 stars 36 forks source link

Not working on Ionic 3 (problem with sqliteplugin) #1

Closed rklerck closed 6 years ago

rklerck commented 6 years ago

Great work on the plugin! I have stil one problem... I can't get it to work with the sqliteplugin. I keep getting the error that de plugin is not found. I installed it through npm because it didn't work with cordova plugin add.

Do I have to do something else to get it to work?

rklerck commented 6 years ago

Fixed it by adding it directly in my index.html

<script src="SQLitePlugin.js"></script>

JeongJun-Lee commented 4 years ago

Hello, I am creating a App with this plugin by Ionic5, but even I installed all required additional 3 cordova plugins("cordova-plugin-device","cordova-plugin-file","cordova-sqlite-ext"), when I executed this at browser, there is a error like below:

Error: cordova-sqlite-ext plugin not available. Please install the pluginand make sure this code is run after onDeviceReady event

Do you have any hint to solve this?

lasterra commented 4 years ago

That plugin doesn't run on the browser. If you want to execute mapbox offline I recommend you to use custom:// tile load method modification on mapbox gl source code

JeongJun-Lee commented 4 years ago

@lasterra To load a local mbtiles file directly is not ready on mapbox gl js yet. It still seems to be on the feature request like https://github.com/mapbox/mapbox-gl-js/issues/4917 from mapbox gl js.