This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

OSM in a Java Web Application ?

0

I'd like to use OSM in a webapp (java) to a) let the user draw a network topology on a map and record it b) show the topology when requested by the user (i.e. use the recorded coordinates)

Here is an example with GoogleMaps: http://docs.zkoss.org/wiki/Construct_A_Telecom_Network_Graph_On_Google_Maps

I'd like to understand what is possible with current API's, and I can contribute to OSM by developing a ZK-component that uses OSM in stead of gM

Thanks for any useful hints and pointers!

asked 21 Sep '10, 09:20

mhogendoorn's gravatar image

mhogendoorn
1111
accept rate: 0%


One Answer:

0

Generally, such questions should better be asked on the OSM developer mailing list where they will reach a wider technical audience.

It seems to me that the quick answer to your question is that you'll need OSM tiles (freely available), the OpenLayers JavaScript library (to display tiles and allow the user to draw stuff - requires some Javascript coding on your part to make things happen) plus some server-side component that stores whatever you have drawn (e.g. FeatureServer). Or you might be able to use a complete framework like MapFish. I don't know what "zk" is or in how far this might already have some of the components you need. All of this has, however, little to do with OSM as the only thing you'll use from OSM are the map tiles; all the other "API" stuff you'll be using is not OSM.

answered 21 Sep '10, 11:15

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

Source code available on GitHub .