Is this your first time here? SwingWiki is a Java Swing Developer community site with an big archive of Swing-related usenet groups and mailing lists, but also tips, tricks and articles and book reviews written by your colleagues from around the world. If you came here through a search engine and did not find what you were looking for, make sure to check the wiki table of contents.

Re: JXMapViewer: is it possible to put components on top of it?

From:Joshua Marinacci [joshua@masked-domain]
Sent on:Tue, 29 Apr 2008 19:19:43 -0700
In reply to:JXMapViewer: is it possible to put components on top of it? sent on Tue, 29 Apr 2008 19:25:34 PDT by [jdnc-interest@masked-domain]
Yep. Read the section called "Waypoint Rollovers" in this article.
http://today.java.net/pub/a/today/2007/11/13/mapping-mashups-with-jxmapviewer.html

It puts a JLabel over a waypoint. You can use the same technique.

- Josh

On Apr 29, 2008, at 7:25 PM, [jdnc-interest@masked-domain] wrote:

> Instead of using WayPoints and painters, I need to put Components
> (JPanels) at given longitudes/latitudes. Is there a way this can be
> done with JXMapViewer?
>
> I was thinking that perhaps I could use a JLayeredPane and add the
> JXMapViewer at a lower layer and my JPanels at a higher layer. The
> only problem that would need to be solved is how to transform
> longitude/latitude into pixel positions. I was hoping that I could
> use JXMapViewer.convertGeoPositionToPoint() since the two layers
> will be identical in size....but that method returns a Point2D -
> will this be the pixel coords?
>
> Any info/suggestions would be appreciated.
> Tom
> [Message sent by forum member 'tjwolf' (tjwolf)]
>
> http://forums.java.net/jive/thread.jspa?messageID=272151
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [jdnc-unsubscribe@masked-domain]
> For additional commands, e-mail: [jdnc-help@masked-domain]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [jdnc-unsubscribe@masked-domain]
For additional commands, e-mail: [jdnc-help@masked-domain]
Found what you were looking for? If not - continue at Wiki Index

Other messages in this topic

SenderDate sentSubject
[jdnc-interest@masked-domain]Tue, 06 May 2008 14:00:47 PDTRe: JXMapViewer: is it possible to put components on top of it?
[jdnc-interest@masked-domain]Wed, 30 Apr 2008 10:22:58 PDTRe: JXMapViewer: is it possible to put components on top of it?
[jdnc-interest@masked-domain]Wed, 30 Apr 2008 10:03:21 PDTRe: JXMapViewer: is it possible to put components on top of it?
[jdnc-interest@masked-domain]Tue, 29 Apr 2008 19:25:34 PDTJXMapViewer: is it possible to put components on top of it?

 
Recent changes | RSS changes | Table of contents | News Archive | Terms And Conditions | Register | The Quest For Software++| Ruby Resources
FitNesse Resources