i want to write an applet that must render my map images with zoom/pan tools, i find out JXMapViewer can help me, how i can use it? where i can find related docs which help me to write an applet that request on my image server to provide tiles to render? what about image server and .... !!!!??? help me on : image server structure, tileprovider, tilefactory,... that JXMapViewer need.
As AeonFlux linked you, Joshua Marinacci's blog is the best resource to get started. There are six articles he wrote that I have used to get up to speed with JXMapViewer. In order of publication:
- Getting started with the Aerith Mapping Component
- NASA Maps in your Swing App
- A Mapping Christmas Present
- Tricked out maps and a new tile provider
- Building Maps into Your Swing Application with the JXMapViewer
- Mapping Mashups with the JXMapViewer
In addition, here are some other resources I have found useful:
- SwingLabs forums, where you can ask questions about JXMapViewer
- SwingX-WS Continuous Build (Hudson), where you can download the latest version of SwingX-WS
The best combination of functionality I have found uses the latest continuous build of SwingX-WS, which is that JAR built on April 16, 2008 (direct link). However, some things have changed in SwingX-1.0 and that latest SwingX-WS JAR won't work with SwingX-1.0. So I had to download SwingX 0.9.7 (direct link to the JAR). You'll need both the swingx-0.9.7.jar file as well as the swingx-beaninfo-0.9.7.jar.
来源:https://stackoverflow.com/questions/1260481/how-can-i-use-jxmapviewer-in-my-applet