Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

read poi types from custom maps #4345

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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

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.

1 participant