Questions tagged [jxmapviewer]

23 questions
3
votes
2 answers

Using JxMaps in JavaFX project

I am developing a Desktop application in Java using JavaFX for the GUI. A vital part of the program consists of a map for which I've decided to use JxMaps since it being a powerful framework with a very good documentation made it the best…
IOS_DEV
  • 949
  • 3
  • 12
  • 33
3
votes
1 answer

JXMapViewer change orientation to Heading Up

I am trying to use JXMapViewer (from swingx-ws) with Open Street Maps. I was wondering if it would be possible to display the map tiles in the JXMapViewer based on heading up, rather than on North up. For example, the normal car GPS navigation…
Charlie
  • 31
  • 2
3
votes
2 answers

how can i use JXMapViewer in my applet?

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…
sirvan
  • 321
  • 1
  • 8
  • 21
2
votes
3 answers

Displaying location on a world map

I am working on a Java desktop application. In this project I want to highlight some location on a world map. These locations are stored in a database. I have found a link to Building Maps into Your Swing Application with the JXMapViewer, but I'm…
anjana
  • 41
  • 2
  • 3
1
vote
1 answer

How to save geoposition location in java

I am getting the coordinates from a map when a user clicks on the map. Now I want to save this and pass the coordinates to another class. If anyone knows the answer please guide. Thanks public class Corndinates extends MapClickListener{ /** …
Suleman Jamil
  • 43
  • 1
  • 7
1
vote
0 answers

Getting map coordinate using mouse click

I am new to Java programming. I want to get the coordinates of map in Java when the user click on map. How I can get these coordinates in Java? package com.example.java; import org.jxmapviewer.JXMapViewer; import…
1
vote
1 answer

Adding mouseClicked event listeners to waypoints on JXMapViewer

Im adding functionality to some sample code from Github on JXMapViewers' by creating mouseClicked events for each the waypoints. Eventually, each waypoint will display unique information such as it's coordinates. With my current implementation…
newToJava
  • 173
  • 1
  • 15
0
votes
1 answer

JXMapViewer Mashup example

Im working on an application and was trying things from http://today.java.net/pub/a/today/2007/11/13/mapping-mashups-with-jxmapviewer.html but while trying as in Fig 8 i got stuck as WikiWaypoint class is not in my jar files... Please help. Please…
Shashank Degloorkar
  • 3,151
  • 4
  • 32
  • 50
0
votes
0 answers

Is it possible to store JXMapKit map (without GUI) in BufferedImage?

I would like to store map created in JXMapKit in BufferedImage, but without creating GUI. I tried following code, but, althought I get image with correct size, tiles are with clock symbol. That means that tiles form OSM server aren't ready. So I…
karas
  • 1
  • 1
0
votes
0 answers

how I can view pre-render OSM map by jxmapviewer library?

JAVA/SWING /jxmapviewer I want to render map without internet ,I use jxmapviewer library but can't read osm file . i see they use OSMTileFactoryInfo to load zip osm but i don't know how or what the type of zip file must i have. public static void…
Hamdah_Tr
  • 140
  • 1
  • 6
0
votes
0 answers

how to load offline OSM map by jxmapviewer library?

JAVA/SWING /jxmapviewer I want to render map without internet ,I use jxmapviewer library but can't read osm file . i see they use OSMTileFactoryInfo to load zip osm but i don't know how or what the type of zip file must i have. public static…
hani bani
  • 1
  • 3
0
votes
0 answers

How to display route and waypoint without losing the previous painted data?

I'm using jxmapviewer to make satellite tracking tracking system. I draw the path first and then pointing the satellite over it using waypointer. The code for the above is - public class MapJPanel extends JPanel implements Runnable { private…
0
votes
0 answers

JXMapViewer (openstreetmap) Drow Directions between 2 point

I have this Class That Draws a line between specified points or locations in the map And it works ! import java.awt.BasicStroke; import java.awt.Color; import java.awt.Graphics2D; import java.awt.Rectangle; import java.awt.RenderingHints; import…
Adeeb Mark
  • 67
  • 7
0
votes
1 answer

JavaFX: Add MapView to VBox

I want to add a MapView from JXMaps to the VBox in JavaFX, i tried to add the MapView to the border panel and then added to the VBox, but i can´t find any solution to this, i hope you can help me, this is my code: public class ControlerMap { …
Danny
  • 47
  • 11
0
votes
1 answer

Add mapView to JPanel in java

I want to add a map view in a JPanel, i am using jxMaps from teamdev. I try this code, but i doesn't work. Map sample = new Map(); JFrame frame = new JFrame("Map"); frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); …
Danny
  • 47
  • 11
1
2