Hi! Today I was integrating OSM to an App and it's already working, displaying my location and allowing me to move the map and control zoom by finger taps and pinches. BUT, now I need to add some elements to the map to be displayed, as POIs. Should I use external editors like OpenLayers or can I use OSM maps editors (Potlatch & JOSM) and then display the edited map in the App? I'm developing the App in Unity, for iOS and Android, and accessing the map via: ///string dlUrl = String.Format("http://tile.openstreetmap.org/{0}/{1}/{2}.png", zoomLevel, (int) tileId.x, (int) tileId.y);/// so I guess I could access an edited map using it's URL, but I don't know if OSM give the URL to an edited map. Any help will be welcome, Thanks in advance! asked 09 Jan '13, 21:57 Alchemy3D |
Several points about what you are trying to do:
The best for you is to create an overlay either rendered locally on the mobile or through your own web server and with OSM map in background. answered 10 Jan '13, 13:09 Pieren Thanks Pieren, I found the alternative tile servers you are talking about and I will use a free one for sure. When you say to create an overlay to be rendered on top of a OSM map you are coming back to my question. I don't know how to do it, could you give me a clue? All the documentation I found is about using layers in websites by html, but I need those layers to be displayed inside an App in Android and iOS devices. That's why I was wondering if it could be done with OSM editors. Thanks!
(10 Jan '13, 15:08)
Alchemy3D
That's going to depend on the toolkit that you're using. There's an example on the switch2osm site using Leaflet (a JavaScript-based toolkit). Since you're using Unity, perhaps there are some support forums for that (or a help site somewhere)?
(10 Jan '13, 15:13)
SomeoneElse ♦
|
Just to clarify, when you say "now I need to add some elements to the map to be displayed" do you mean you want to display POIs from some non-OSM source, or do you mean you want to add these POIs to OSM (and then display them)?
Because OpenStreetMap is just one giant lump of data, anything that you add to it needs to (a) really exist in the real world and (b) be licence compatible.
Perhaps if you could give a few more details we'd understand a bit more about what you're trying to do?
Sure! sorry. I'm working in a medical App that will show institutions where professionals can renew their medical certificates. OSM doesn't have those entries and it will be a list of hundreds/thousands of them so I'm not sure it would be useful to add them to OSM, so if only the App can display them I will be more than satisfied.