TransWikia.com

Combining Mapbox GL JS plugin with another SQLite-based plugin (Cordova)

Geographic Information Systems Asked by Hollul on July 20, 2021

I’m creating an App with Cordova. For this I want to use Mapbox GL JS for using offline maps and a SpatiaLite database for storing additional spatial data.

The mapbox-gl-cordova-offline plugin requires the cordova-sqlite-ext plugin to work properly. To access the SpatiaLite database I want to use the plugin cordova-spatialite-storage. I cannot use cordova-sqlite-ext for this because it only supports standard SQLite functions and not spatial functions, which my app also requires. However, apparently, I cannot use two separate SQLite plugins as the app can only recognize one (see here).

How do I go about combining the Mapbox GL JS plugin with another SQLite-based plugin? Alternatively, is it somehow possible to use SpatiaLite functions in a standard SQLite database?

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP