10

I want to visualise the geographic map in the swing application. I found only swingx map api.

Do you know other open-source map api?

ibrahimyilmaz
  • 18,331
  • 13
  • 61
  • 80

4 Answers4

6

Try Geotools, it has a good API and tools for geospatial data.

Paŭlo Ebermann
  • 73,284
  • 20
  • 146
  • 210
Feras Odeh
  • 9,136
  • 20
  • 77
  • 121
  • sure, if you have .shp files you can display them – Feras Odeh Mar 07 '11 at 15:25
  • Feras, do you know this map api provide us to generate our own .shp file with specific area forexample: Greece Map. and do you have any example about adding graphic item to this map view? – ibrahimyilmaz Mar 21 '11 at 09:46
4

You could use this mappanel in Swing:

http://mappanel.sourceforge.net/

This is completely open source.

together with openstreetmap.org maps.

Chris
  • 7,675
  • 8
  • 51
  • 101
  • Hi Chris, Thx for your reply, could you give me any information about whether this library can work offline? – ibrahimyilmaz Mar 07 '11 at 10:04
  • I dont think that you can use this offline as it is. But OpenStreetmap uses a tileserver which is used by this library. So i'm sure you could (with not too much afford) implement some kind of offline TileServer class or something like that. – Chris Mar 07 '11 at 10:33
2

A little late, but here is a solution:

Slippy maps for Java Swing GUIs: SwingX-WS

Community
  • 1
  • 1
Unai Vivi
  • 3,073
  • 3
  • 30
  • 46
1

hey have a look at SVG Batik of Apache at http://xmlgraphics.apache.org/batik/ . I built an interactive game with svg file for country location on an african map.

Hope this helps.

Jacques
  • 11
  • 1