Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

pop up window for OSM

 
partha phukan
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi everyone....! sorry to say but i need some help from you. If you guide me then i will be very helpful to you. Actually i am stuck at the point of displaying pop up window for open street map. I have been searching in the google but in vain.i am trying for more than a week. Still trying. If you can give me some useful link or suggestion then i would be very grateful to you. I am using java swing and i displayed open street map in a JPanel by going through the links and taking help....

http://today.java.net/pub/a/today/2007/11/13/mapping-mashups-with-jxmapviewer.html

http://today.java.net/pub/a/today/2007/10/30/building-maps-into-swing-app-with-jxmapviewer.html

Now i need to use pop up window. Any help from you will highly be appreciated...... Thanks in advance....

 
Darryl Burke
Bartender
Posts: 5126
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to be more specific about your requirement. From the API, JKMapViewer inherits from Component, so the procedure for showing a popup should be the same as for any Component. Read the API for PopupFactory and Popup for more information.
 
partha phukan
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for your reply. Actually i need to show some popup window in some particular locations of the map based according to latitude and longitude and in that popup window i need to show some weather parameters like temperature, rainfall. Please guide me i could not able to find any way to proceed further.
 
Darryl Burke
Bartender
Posts: 5126
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For that you can use a JWindow owned by the JFrame, with a JLabel or two added to it -- or maybe you want a JToolTip? I think you need to experiment with these approaches (and any other that come to mind) and get back when you have a more specific question.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic