mapbox / mapbox/mapbox-maps-android

Features are not visible for zoom <16 despite minzoom is not set

Open
#2,505 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

auto-triaged bug :beetle:
Dominant language
Kotlin
Stars
578
Forks
161
PR merge metrics
No merged PRs in 30d

Description

## Environment

- Android OS version: 14
- Devices affected: Samsung xcover 6 pro
- Maps SDK Version: 11.7.0

## Observed behavior and steps to reproduce

Certain small polygon features are not rendered on the map when the zoom level is below 16. When zoomed in to a level greater than 16, these features appear as expected. This issue persists despite setting minZoom to a smaller value than 16, and it affects both Android and iOS platforms. Larger polygons render correctly at all zoom levels, so the problem appears specific to smaller polygon features.

## Expected behavior

Features should always be visible if no min zoom is specified.

## Additional links and references

[style.json](https://github.com/user-attachments/files/17577024/style.json)

test.geojson:
`{
"type": "FeatureCollection",
"name": "SELECT",
"crs": {
"type": "name",
"properties": {
"name": "urn:ogc:def:crs:OGC:1.3:CRS84"
}
},
"features": [
{
"type": "Feature",
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
5.575164506428824,
52.139790310429383
],
[
5.57516908237175,
52.139793820961138
],
[
5.575243809714596,
52.139760741820922
],
[
5.575238650165777,
52.139757489628344
],
[
5.575164506428824,
52.139790310429383
]
]
]
}
}
]
}
`

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue with the provided style.json and test.geojson on Maps SDK 11.7.0, checking visibility at zoom levels below and above 16. Compare the behavior of the small polygon with the larger polygons and confirm that it renders below zoom 16 when no minZoom is specified.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.