NOTICE: help.openstreetmap.org 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??

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 ♦
32.6k18248554


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 ♦
82.5k927201273
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

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:

×223
×65
×14
×11

question asked: 15 May '13, 11:42

question was seen: 4,153 times

last updated: 15 May '13, 16:26

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