JMapViewer | OpenStreetMap JMapViewer with offline map support | Map library
kandi X-RAY | JMapViewer Summary
kandi X-RAY | JMapViewer Summary
This is a fork of JMapViewer of OpenStreetMap with support added for offline maps. Original JMapViewer can be found here: Useful for systems that are not connected to the internet. This code is licensed under GPL.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Performs the actual painting
- Tries to load a placeholder from the cache
- Gets a tile from the cache
- Paint the attribution logo
- Creates a job to load a tile at the specified tile
- Sets a metadata value
- Load a tile from Osm
- Adds capture - date metadata to the tile connection
- Sets the display space to be displayed
- Sets the display area to fit the map pane and zoom level
- Initializes the zoom slider
- Sets the tile source
- Gets the default cache directory
- Compares this tile with another object
- The mouse button is pressed
- Handle mouse moved event
- Paints the given point
- Main demo
- Adds the specified tile to the cache
- Get the tile for the given source
JMapViewer Key Features
JMapViewer Examples and Code Snippets
Community Discussions
Trending Discussions on JMapViewer
QUESTION
I get the following error when trying to run my code.
...ANSWER
Answered 2017-Dec-12 at 14:55It looks like you need the Apache httpcore library
This is available here :
https://mvnrepository.com/artifact/org.apache.httpcomponents/httpcore/4.4.8
As an aside, SLF4J requires a logging implementation jar for log output. Examples for that are available here:
http://saltnlight5.blogspot.co.uk/2013/08/how-to-configure-slf4j-with-different.html
QUESTION
I am trying to change the mouse button to pan the map view from the right button to left.
There is a simple code changing the button after the left mouse button has been clicked:
...ANSWER
Answered 2017-Mar-29 at 10:19The results seen are not unexpected, but they may be a little counter-intuitive: Your example alters the internal state of the DefaultMapController
in your implementation of mousePressed()
. Instead, save a reference to the custom controller so that you can change the preferred button as desired:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install JMapViewer
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page