0nza1101 / ionic5-leaflet-mbtiles Goto Github PK
View Code? Open in Web Editor NEW🗺️ Ionic 5 sample app using leaflet and Leaflet.TileLayer.MBTiles to load .mbtiles format.
🗺️ Ionic 5 sample app using leaflet and Leaflet.TileLayer.MBTiles to load .mbtiles format.
thank you for your good job.I have a question,can this work with mbtiles in android native filesystem.I mean the mbties is not in the code project ‘assets/XX’
I also want to implement offline map using mbtiles and leaflet.
But when I am trying to implement this in my project I got build issue that says 'mbTiles can not be found', and the line of the error is let mb = L.tileLayer.mbTiles('assets/tiles/countries-raster.mbtiles', {
Any thoughts what am I missing?
pretty explicit question, but their is the details:
I use the plugin to make an app that read mbtiles from app files storage (see issue #11 for how i make it work). But their is my problem:
when I use the demo file it work, but when I use big files (880 Mo and more), my app crash. So that why I ask for "What is the size limit after the plugin stop working?"
Hello, really thank you for your offline map support.
It works well at browser but when I built this source for real Android device and ran on Android 6.0.1.
As soon as the App starts, it'll meet the error and cannot proceed more.
Build Environment like this:
Cordova 7.1.0
Cordova android 6.3.0
I have this configuration
ionic/app-scripts : 3.1.2
Cordova Platforms : android 6.3.0
Ionic Framework : ionic-angular 3.9.2
Node: 6.11.5
Npm: 3.10.10
System: Windows 10
I'm trying to use the npm package on existing project and it works well on the browser, but it doesn't render the map on android devices, i'm missing some step to make it work?
I added
import 'promise-polyfill';
import 'whatwg-fetch';
and installed them with npm
When re-entered to the map page from other page again by navCtrl.push(), the error comes out. How can I avoid this error?
By stackoverflow's recommendation, I tried to remove map object by map.remove() before reloading map. But the map will be shown as blank even though the map is loaded normally.
core.es5.js:1084 ERROR Error: Map container is already initialized.
at NewClass._initContainer (leaflet-src.js:3286)
at NewClass.initialize (leaflet-src.js:2395)
at new NewClass (leaflet-src.js:310)
at Object.L.map (leaflet-src.js:3885)
at HomePage.webpackJsonp.225.HomePage.initMap (home.ts:31)
at HomePage.webpackJsonp.225.HomePage.ionViewDidLoad (home.ts:25)
at ViewController._lifecycle (view-controller.js:566)
at ViewController._didLoad (view-controller.js:439)
at NavControllerBase._didLoad (nav-controller-base.js:950)
at t.invoke (polyfills.js:3
This works with raster images. Have you been able to use vector tiles? Or PBF files?
I
hi,
I installed the library tried to build my ionic 6 app with react, and I got some errors like below:
Module not found: Error: Can't resolve 'crypto' in '/node_modules/sql.js/js'
Module not found: Error: Can't resolve 'fs' in '/node_modules/sql.js/js'
Module not found: Error: Can't resolve 'path' in '/node_modules/sql.js/js'
...
I googled it and tried with several solutions, but there is no one can solve it.
pls help me,
thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.