Skip to content

Commit

Permalink
Better detection of MVT layers from URL
Browse files Browse the repository at this point in the history
  • Loading branch information
simonpoole committed Nov 22, 2024
1 parent ec847dd commit 451157a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/de/blau/android/resources/TileLayerDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,9 @@ boolean save() {
configureFromRemote(tileUrl);
return false;
}
if (tileUrl.endsWith("." + FileExtensions.PBF) || tileUrl.endsWith("." + FileExtensions.MVT)) {
metadataMap.put(TILE_TYPE, TileType.MVT);
}

layerId = layerExists ? layer.getId() : TileLayerSource.nameToId(name);
isOverlay = overlayCheck.isChecked();
Expand Down

0 comments on commit 451157a

Please sign in to comment.