Skip to content

Conversation

@nnngrach
Copy link
Contributor

@nnngrach nnngrach commented Feb 3, 2025

Issue

cpp pull request

Before: Poi from custom American plugin maps are not clickable by short touch. Only for long touch.

Because their poi.type == nil.
unknownLokations = true if long touch.

Screenshot 2025-02-01 at 14 30 20

Synced this code, loading and parsing on loading app all obf files for their poi categories and types:
https://github.com/osmandapp/Osmand/blob/3fb9e17e23ca33b6f3755357c6487deab38c85fd/OsmAnd/src/net/osmand/plus/resources/ResourceManager.java#L691

Screenshot 2025-02-03 at 13 41 04

After: Poi are clickable by short touch.

Screen.Recording.2025-02-03.at.13.38.46.mov

test point: 40.02942 -105.31002
need The US maps Plugin - https://osmand.net/uploads/plugins/us.maps/2/


TODO:

Android don't parse all obf files every app load. It read/writes parsed result to database. Need to implement.

https://github.com/osmandapp/OsmAnd/blob/master/OsmAnd/src/net/osmand/plus/resources/AmenityIndexRepositoryBinary.java#L54

Screenshot 2025-02-03 at 13 43 54

https://github.com/osmandapp/Osmand/blob/1873992309cd40ba8f866437113632624b81069c/OsmAnd/src/net/osmand/plus/poi/PoiFilterDbHelper.java#L364

Screenshot 2025-02-03 at 13 44 15

@RZR-UA
Copy link
Contributor

RZR-UA commented Jul 21, 2025

This request should consider Android Java code updates:

https://github.com/osmandapp/OsmAnd/pull/23025/files
https://github.com/osmandapp/OsmAnd/pull/23026/files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants