TransWikia.com

Using Geopackage JS and Openlayers in Angular

Geographic Information Systems Asked by Quimi Font on August 7, 2021

I need to prepare a web app which is going to load a geopackage file and show the layers in OpenLayers.
First of all I was checking the current libs and also some demo information and found a minimal viewer for OpenLayers and GeopackageJS at the next URL:

https://github.com/ahocevar/openlayers-geopackage-demo

I did follow the instructions, cloning the project, installing the devs and executing via:

npm start

It seems to work until trying to open a geopackage file, which shows the next error in the console:

SQL.js
client:52 [WDS] Live Reloading enabled.
geopackage.js:18 Uncaught (in promise) TypeError: Cannot read property 'getTileTables' of undefined
    at geopackage.js:18
    at api.js:78

It’s something realted the global geoPackage object, I was trying to get more insight in the JavaScript library looking at the code, but spending the hole day without result.

How can I make it work before trying to implementate something similar with Angular?

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