Skip to content

Commit a27fbba

Browse files
authored
Prepare MapLibre Android 11.8.0 release (#3129)
1 parent c1f76cf commit a27fbba

File tree

4 files changed

+29
-2
lines changed

4 files changed

+29
-2
lines changed

platform/android/CHANGELOG.md

+12
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# Changelog MapLibre Native for Android
22

3+
## 11.8.0
4+
5+
> [!NOTE]
6+
> We are now releasing OpenGL ES and Vulkan variants of MapLibre Android. See the [11.7.0 release notes](https://github.com/maplibre/maplibre-native/releases/tag/android-v11.7.0) for details.
7+
8+
### ✨ Features and improvements
9+
10+
- Add PMTiles support ([#2882](https://github.com/maplibre/maplibre-native/pull/2882)).
11+
- Consolidate UBOs ([#3089](https://github.com/maplibre/maplibre-native/pull/3089)).
12+
13+
We have a new feature in the C++ Core to constrain the screen (instead of the center of the camera) to some bounds ([#2475](https://github.com/maplibre/maplibre-native/pull/2475)). This functionality still has to be exposed to Android. If you are interested in implementing this, see [this issue](https://github.com/maplibre/maplibre-native/issues/3128).
14+
315
## 11.7.1
416

517
> [!NOTE]

platform/android/MapLibreAndroid/gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION_NAME=11.7.1
1+
VERSION_NAME=11.8.0
22

33
# Only build native dependencies for the current ABI
44
# See https://code.google.com/p/android/issues/detail?id=221098#c20

platform/android/MapLibreAndroid/src/cpp/http_file_source.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ void HTTPRequest::onResponse(jni::JNIEnv& env,
161161
response.expires = util::parseTimestamp(jni::Make<std::string>(env, expires).c_str());
162162
}
163163

164-
if (code == 200) {
164+
if (code == 200 || code == 206) {
165165
if (body) {
166166
auto data = std::make_shared<std::string>(body.Length(env), char());
167167
jni::GetArrayRegion(env, *body, 0, data->size(), reinterpret_cast<jbyte*>(&(*data)[0]));

platform/android/docs/data/PMTiles.md

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# PMTiles
2+
3+
Starting MapLibre Android 11.7.0, using [PMTiles](https://docs.protomaps.com/pmtiles/) as a data source is supported. You can prefix your vector tile source with `pmtiles://` to load a PMTiles file. The rest of the URL continue with be `https://` to load a remote PMTiles file, `asset://` to load an asset or `file://` to load a local PMTiles file.
4+
5+
Oliver Wipfli has made a style available that combines a [Protomaps]() basemap togehter with Foursquare's POI dataset. It is available in the [wipfli/foursquare-os-places-pmtiles](https://github.com/wipfli/foursquare-os-places-pmtiles) repository on GitHub. The style to use is
6+
7+
```
8+
https://raw.githubusercontent.com/wipfli/foursquare-os-places-pmtiles/refs/heads/main/style.json
9+
```
10+
11+
The neat thing about this style is that it only uses PMTiles vector sources. PMTiles can be hosted with a relatively simple file server (or file hosting service) instead of a more complex specialized tile server.
12+
13+
<figure markdown="span">
14+
![Screenshot of PMTiles based style using Protomaps basemap with Foursquare POIs]({{ s3_url("pmtiles-demo.png") }}){ width="300" }
15+
</figure>

0 commit comments

Comments
 (0)