I am using JMapViewer to load the openstreetmap to display them in a frame.

is there anyway to change the road/lane/street width displayed on the map through adjusting some parameter??

or can i custom the style of the openstreetview using java? and how?

can anyone offer some links related to these issues??

Thx.

asked 15 May '13, 11:42

godoorsun's gravatar image

godoorsun
1111
accept rate: 0%

edited 15 May '13, 16:26

aseerel4c26's gravatar image

aseerel4c26 ♦
31.9k16237548


JMapViewer loads raster tiles that have been produced by the OpenStreetMap server (or another tile server) according to styling rules configured on that server; the tiles cannot be customised on the client.

You can set up your own tile server (see switch2osm.org for good howtos), and then you can configure a different map style on your server. There are also commercial offerings for custom-styled tiles (e.g. Cloudmade, Mapbox).

Alternatively, you can change your client from loading and displaying raster tiles to working with vector data; in that case, the styling happens on the client and you can influence that at will. Check out MapsForge, an open source vector rendering library for Java.

permanent link

answered 15 May '13, 12:45

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
68.9k806261076
accept rate: 24%

Thanks so much. I've tried cloudmade and it works, i can change the width of the road now, but it takes too much time to load tiles. I'll go to try to use the switch2osm and MapsForge now.

(15 May '13, 16:26) godoorsun
Your answer
toggle preview

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:

×178
×52
×14
×5

question asked: 15 May '13, 11:42

question was seen: 2,586 times

last updated: 15 May '13, 16:26

powered by OSQA