Can objects (nodes or ways) be clickable on the map?
69 views
Skip to first unread message
Mario Pavlic
unread,
Apr 24, 2021, 11:23:10 AM4/24/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Mapsforge & VTM
I have an .osm file containing data about bunch of nodes and ways and each of these nodes and ways has some specific tags. I used Osmosis to convert this .osm file to a .map file and I have successfully displayed the .map file in my Android app.
Now, is there a way to make these nodes and ways from .map file clickable on the map, as I would like to display some extra info about every one of them (like values from their tags)?
Note: I know how custom tag mapping and render theme rules work.
Thanks in advance!
Emux
unread,
Apr 24, 2021, 11:30:07 AM4/24/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mapsfo...@googlegroups.com
Mapsforge maps were designed (and store
tags) for fast map rendering, not for database searching.
The best you can get is reverse geocoding (see the example)
and only for the stored displayed tags.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Mapsforge & VTM
Yes, I tried removing the entire filter, but the problem occurs before filtering, because none of the Ways are read at all. Do Ways appear in MapReadResult even if none of their latLongs are in the Tile that is being read? Lets say the way's starting latLong is in Tile1 and way's ending latLong is in Tile3. If I read labels from Tile2 (which doesnt contain way's latLongs, but way's line crosses the Tile2) will the Way be added?
Emux
unread,
Apr 26, 2021, 11:58:40 AM4/26/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mapsfo...@googlegroups.com
(you can study the code for the
details)
The tiles are expected to contain the map data that can be
rendered inside those tiles.