Comments (5)
So far I've seen how to set it up, but not how to interact with it. E.g.: add markers, draw paths, etc.
@SpeedFire0
I have my first try on mbtiles protocol yesterday, and it works fine.
Here is my related code (maybe it is not clear):
https://github.com/typebrook/mapstew-android/blob/3c6190b401/app/src/main/java/io/typebrook/mapstew/map/MaplibreFragment.kt#L125
Anyway, the format for each mbtiles source should be looks like:
{
"id": "mbtilesSource",
"tiles": [
"mbtiles://{PATH_TO_YOUR_MBTILES}"
]
}
In my case, I put mbtiles in my app's interal storage for database. So PATH_TO_YOUR_MBTILES
is context.getDatabasePath("test.mbtiles")
from maplibre-native.
Am I right to understand that this is for shipping tiles with an apk. This is not about downloading tiles in-app and using later when offline as in this sample?
from maplibre-native.
Support for other protocols besides https
are in the code, but I agree it could use some upgrades in the documentation. Pull requests for documentation and test samples are welcome.
Protocols asset://
, file://
, and mbtiles://
are listed in the MapLibre code. mbtiles://
is new to MapLibre since its donation by MapTiler. The asset and file protocols were in Mapbox GL native.
Here is a list of published apps which mention using MapLibre. A future Wiki should list the published apps that make use MapLibre.
- roblabs/openmaptiles-ios-demo
- roblabs/osm2vectortiles-android
- by Klokan Technologies GmbH
from maplibre-native.
Thanks for the info @roblabs I'd definitely give it a try!
from maplibre-native.
So far I've seen how to set it up, but not how to interact with it. E.g.: add markers, draw paths, etc.
Hi, can you please share how you were able to set it up? Is there any documentation?
from maplibre-native.
Related Issues (20)
- Adding a single `MLNAnnotationView` to an `MLNMapView` results in laggy map rendering HOT 5
- Qt workflow failing: 404 Not Found HOT 2
- PIXEL: ioctl err: 1 on non-emulated Pixel hardware HOT 18
- Metal readme update
- Objective-C: don't use assign property attribute
- [iOS - Metal - v6.1.0] - lineDashPattern with steps disappears HOT 2
- Fix coverage generation HOT 2
- [iOS] MLNUserTrackingModeFollowWithHeading causing issue with MLNUserLocationAnnotationView location update HOT 2
- Allow setting padding when camera is tracking
- Annotations in Android 11.0.0-pre0 HOT 1
- Use a Gradle Version Catalog defining dependencies in Gradle
- iOS - 'mbgl/style/layer.hpp' file not found HOT 4
- Who is using MapLibre Native?
- iOS release process improvements
- Render Test Data (`data.zip`) not being regenerated on change
- Replace `std::regex` when filtering (render) tests HOT 1
- Don't draw halo pixels "underneath" text pixels
- Remove or update outdated Markdown files in repository
- icon halo does not work HOT 16
- No `Feature`s in android-v11.0.0-pre0 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from maplibre-native.