Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Offline Search not working — TileStore fails to load tiles (erroredResourceCount = 10), OfflineIndexChangeListener not triggered

未关闭
#369 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
25/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
android, kotlin
领域
mobile, search

调研方向

首先,使用示例多边形坐标复现 TileStore 离线区域的安装,并检查报告的资源数量。验证瓦片是否加载、离线索引是否创建,以及是否触发 OfflineIndexChangeListener.onIndexReady();该 issue 未提供可供检查的源文件或测试。

由索引模型根据 Issue 内容生成。

描述

bug

Environment

  • Search SDK Component:
    • Core Search SDK (SearchEngine)
    • Offline Search SDK (OfflineSearchEngine)
    • Address Autofill SDK
    • Search UI SDK
  • Android OS version: (add here)
  • Devices affected: (add here)
  • Search SDK Version: (add here)
  • Maps SDK/Nav SDK versions (if used): (add here)

Description

I am implementing Offline Search using the Mapbox Search SDK for Android, but the TileStore does not load the tiles for the offline region.

Even when using the sample polygon coordinates from the official SDK documentation, tile loading consistently fails.

As a result:

  • All tiles show erroredResourceCount = 10
  • completedResourceCount = 0
  • The offline index is never created
  • OfflineIndexChangeListener.onIndexReady() does not trigger
  • Offline Search remains non-functional

Expected Behavior

  • Tiles should download successfully
  • Offline index should be built
  • onIndexReady() should be triggered
  • Offline search queries should return results

Actual Behavior

The TileStore load completes with all tiles in error state:

requiredResourceCount: 10
completedResourceCount: 0
erroredResourceCount: 10
completedResourceSize: 0

Since no tiles are downloaded, the offline search index never initializes.


Steps to Reproduce

  1. Create a TileStore instance
  2. Install an offline region using the sample polygon coordinates
  3. Observe the tile loading results (all fail)
  4. Add an OfflineIndexChangeListener
  5. Note that onIndexReady() never triggers

Additional Notes

Please confirm:

  • Whether the sample offline region tiles are still available
  • Whether the polygon area requires updated coordinates
  • Or if this is a regression in TileStore tile loading

This issue blocks offline search implementation in the project.

主要语言
Kotlin
星标
39
派生
10
PR 合并指标
30 天内没有已合并 PR

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

mapbox/mapbox-search-android 的其他 Issue

查看 mapbox/mapbox-search-android 的全部 Issue

相似的 Issue

更多 Kotlin Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。