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

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??


asked 15 May '13, 11:42

godoorsun's gravatar image

accept rate: 0%

edited 15 May '13, 16:26

aseerel4c26's gravatar image

aseerel4c26 ♦

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 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 ♦
accept rate: 23%

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

Follow this question

By Email:

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



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "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:


question asked: 15 May '13, 11:42

question was seen: 4,002 times

last updated: 15 May '13, 16:26

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