Questions tagged [jmapviewer]

JMapViewer is an open-source OpenStreetMap viewer for Java applications.

JMapViewer is an open-source OpenStreetMap viewer for Java applications.

57 questions
1
vote
1 answer

Scrolling JMapViewer map programmatically

I have a JMapViewer as a panel on a JFrame and a Button. If i press the Button, I want the JMapViewer to show a scrolled map excerpt. I've trying to set another display position by lat/lon but I dont know how to obtain the old mapcentered lat/lon…
MojioMS
  • 1,583
  • 4
  • 17
  • 42
1
vote
0 answers

adding JTextArea to JMapViewer?

Can we add JTextArea to JMapViewer? Something like JMapViewer map() = new JMapViewer(); map.add(new JTextArea(10,10)); Another workaround can be adding it to GridBagLayout within JFrame/JInternalFrame, but I want to know that is possible to show…
Kamran
  • 152
  • 2
  • 13
1
vote
1 answer

How to add lat/lon grid lines to JMapViewer

When using JMapViewer, is there any way to automatically display lat/lon grid lines? The JMapViewer.setTileGridVisible method is unfortunately not the same thing. I know it's possible to do it manually, but then I have to figure out when to…
user1236508
0
votes
1 answer

How to install JMapViewer

I am having an issue using JMapViewer. import org.openstreetmap.gui.jmapviewer.interfaces.TileLoader; ^ Demo.java:20: error: package org.openstreetmap.gui.jmapviewer.interfaces does not exist How…
0
votes
0 answers

Search locations by String and retrieving coordinates in JOSM

I've loaded the OSM map in Java GUI using JMapViewer class and added a searchbox and a button. How do I search locations using string input on ButtonClick? This is what I've done so far, please tell me what I'm doing wrong or what should I…
0
votes
0 answers

JMapViewer, load raster to a position

I would like to load and display a raster file over the map in the JMapViewer. The raster file: should be loaded at a specific position, size dynamically changes using the zoom operations, I hope these operations are supported by JMapViewer.…
justik
  • 4,145
  • 6
  • 32
  • 53
0
votes
2 answers

JMapViewer, draw to OSM and avoid double call of MouseClick event

Suppose Map3 to be the following class: import java.awt.BorderLayout; import java.awt.Color; import java.awt.Graphics; import java.awt.event.MouseEvent; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import…
justik
  • 4,145
  • 6
  • 32
  • 53
0
votes
1 answer

Not able to see DataSources in OBIEE 11g for MapViewer

I am trying to use mapviewer feature of OBIEE 11g. I have tried the following steps suggested in most of the blogs Downloaded the mvdemo database for sample spatial data Changed the configuration file in to include the mapviewer url. Uncommented…
pavan
  • 1
  • 1
0
votes
0 answers

How to make nearly 1,70,000 marker dots on JMapViewer?

I have real-time (or nearer real time) data of flight. I want to make dots based on lat-long basis. But there are too many dots to represent and my map stuck while reading: Queues: Rather than painting whole screen tiles I want to repainting only…
Krunal
  • 1
  • 3
0
votes
1 answer

How can I update JPanel continuously?

I've got a slight problem, I'm writing a gps tracking app to track several objects at once. The data comes in over a serial interface, this is coming in fine from what I can tell. The issue is that I need to continually update the JPanel where the…
David E
  • 3
  • 2
0
votes
1 answer

Openstreetmap how to increase zoom granularity using Java

I basically manipulated this code http://svn.openstreetmap.org/applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/Demo.java to view an openstreetmap using java swing. I'm having problems with the zoom functionality. Zoom can only be…
MTA
  • 739
  • 2
  • 9
  • 29
0
votes
0 answers

How to zoom into a city using JMapViewer without multiple calls to `setZoom()`

I'm using OpenStreetMap with JMapViewer and trying to zoom my map onto a street level view of central London, but I can't zoom in my map. I have tried using code like this: map().setCenter(new Point(900,…
MTA
  • 739
  • 2
  • 9
  • 29
0
votes
0 answers

Scaling and loading of map tiles on a JPanel

I am loading map tiles on a JPanel based on the appropriate zoom level. Everytime I load the tiles for the next or previous zoom levels, I'm trying to create an effect similar to Google Maps where the current map tiles zoom in (or zoom out) and then…
0
votes
1 answer

Loading JMapViewer from a specified zoom level

I am trying to load JMapViewer from a specified zoom level for my offline use. I have been able to load the tiles from my local machine from zoom levels 1 to 18 and render it well. The JMapViewer works well only when minimum zoom level is 0 , 1, 2…
0
votes
2 answers

Add mouse event to JMapViewer mapMarker

How can I add mouseListener to a MapMarker (MepMarkerDot or MapMarkerCircle) that makes it like button? I tried this soloution but it makes whole map clickable (mouse Event works on all the map).
s_puria
  • 397
  • 1
  • 8
  • 19