OpenStreetMap Forum

The Free Wiki World Map

You are not logged in.

#1 2018-06-05 10:14:01

WorldWide2018
Member
Registered: 2018-01-23
Posts: 26

Need someone to explain

Hey Guys,

a quick question. I've developed an App, which uses osmdroid to draw overlays with the boundries of the city you are currently in.
A Overlay has several thousands points and it is not nessecary to draw all those points if the zoomlevel is smaller than 12

I have some questions about the functions over overlay draw and optimization the algorithm. Do some of you have a little time. I need someone who can developed android and uses osm. To be clear, i don't need someone to develop anything. Just wanna ask you guys someting about osm in android. My current solution will cause problems in the future.

Best regards

Last edited by WorldWide2018 (2018-06-08 11:16:13)

Offline

#2 2018-11-01 11:45:21

Президент Ирака
Member
Registered: 2013-02-14
Posts: 61

Re: Need someone to explain

UPD: sorry for necroposting, missed date

Hi, I'm not a developer, I could suggest you to peek in osmand code, or ask contributors
https://github.com/osmandapp/Osmand
I guess everyone who use osm data for apps decide which nodes should be simplified at each zoom during conversion. B/c you could use more sophisticated logic there.
Sure nobody display every node at low zooms.
Unfortunately osmand is a poor example of optimization, but you could also check how map files for other programs are made. And there is many converters exists, so format of files should be known

Last edited by Президент Ирака (2018-11-01 11:46:46)

Offline

Board footer

Powered by FluxBB