Map API for Java Swing
Asked Answered
B

4

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?

Battleship answered 7/3, 2011 at 7:16 Comment(0)
M
6

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

Molybdenum answered 7/3, 2011 at 7:28 Comment(2)
sure, if you have .shp files you can display themMolybdenum
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?Battleship
A
4

You could use this mappanel in Swing:

http://mappanel.sourceforge.net/

This is completely open source.

together with openstreetmap.org maps.

Aeschylus answered 7/3, 2011 at 7:30 Comment(2)
Hi Chris, Thx for your reply, could you give me any information about whether this library can work offline?Battleship
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.Aeschylus
V
2

A little late, but here is a solution:

Slippy maps for Java Swing GUIs: SwingX-WS

Valeryvalerye answered 3/12, 2013 at 10:47 Comment(0)
S
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.

Shrewish answered 16/5, 2014 at 17:40 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.