Re: JXMapViewer: is it possible to put components on top of it?
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]
Other messages in this topic