NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

Hey Guys

I hope I got the right forum and all!

I want to program a small application for my motorcycle. The goal is to have a mapview which displays the current position. It shall run on linux on a raspberry pi, but this goal is far away;) In a further step, it would be nice to have routing and tracking functionalities, but for the start I am stuck with displaying a map.

I do not have problems with java programming and am somewhat experienced, I only have problems with the map-stuff.

I started with trying to get mapsforge running in a java project but figured out, that it is just too complicated, because it is intended for use with android.

Unfortunately I have to admit that the whole project is not particularly well documented. Many of the related libraries and projects do not have nice getting started sites or things like that. so it is really hard to orientate and know where to start...

So, my easy question: When I want to display an (interactive) map in java. And later I want to add routing functionalities (so it would be nescesary to colour the active street and such things), what would be a good starting point for a library for use with java?

Regards Me

asked 19 Mar '15, 22:43

itsmeagain's gravatar image

itsmeagain
11112
accept rate: 0%

edited 19 Mar '15, 23:20

aseerel4c26's gravatar image

aseerel4c26 ♦
32.6k18248554


Have a look at Atlas ... it is written in Java for desktop PC and is based on mapsforge.

Unfortunately it is closed source by user emux (see github about mapsforge, he is one of the core developers of mapsforge)

But maybe he can give you the right entry point in the mapsforge mailing list how to get started more easily with mapsforge in Java / PC. Read the mailing list before, maybe there has been already a similar question.

permanent link

answered 23 Mar '15, 15:57

stephan75's gravatar image

stephan75
12.6k556210
accept rate: 6%

JMapViewer might be a starting point. Unlike Mapsforge though, this is based on bitmap tiles, i.e. you can't download a large map for offline use, instead it loads individual map tiles (PNGs) from the server as needed. Also JMapViewer has limited options of displaying vector data on top of the map, AFAIK it only supports markers (not highlighted streets etc) but that is something that you could probably add given some Java knowledge.

permanent link

answered 20 Mar '15, 07:26

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

Does any of you know how is possible to download a bigger area? Always when i am trying to do this it says that the data includes too many information.

(02 Jul '15, 11:14) madalina_ias...

@madalina_iasmina It is not clear what you mean. Try asking a new question with more words explaining what you are trying to do. You can ask in whatever language you want

(guessing)

Nu este clar ce vrei să spui. Încercați pune o nouă întrebare cu mai multe cuvinte explica ceea ce încercăm să facem. Puteți solicita în orice limbă doriți

(02 Jul '15, 11:18) SomeoneElse ♦

As vrea sa pot incarca intregul oras in Java OpenSteetMap, dar de fiecare data cand incerc sa fac asta imi spune ca suprafata este prea mare si trebuie sa reduc din ea. In momentul in care aleg o suprafata mai mica functioneaza, dar as preafera sa pot avea tot orasul .

(02 Jul '15, 15:54) madalina_ias...

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×113
×76

question asked: 19 Mar '15, 22:43

question was seen: 7,439 times

last updated: 02 Jul '15, 15:54

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum