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

0
1

Hello,

I have a slippy map over which I want to display a overlay with some highways. I have a PHP script that is getting filtered data from my local Overpass API server, send that data to OpenLayers and then visualise it in a Vector layer with a basic styling (red, yellow or green line color, based on the smoothness tag of the highway). It works, but it doesn't scale well when there is a lot of data to be displayed. I'm talking for about 2600 ways composed of 83000 nodes. The SVG render is struggling even on comparatively new computers.

I don't need any fancy interactive features, the goal is just to display that data.

I'm thinking of a way to render transparent tiles with these ways and then just load these tiles as overlay in OpenLayers (maybe with TMS layer?). Maybe Mapnik is going to be useful here?

What will be the best way to display such a load?

asked 01 Jun '12, 07:07

ivanatora's gravatar image

ivanatora
2.7k355568
accept rate: 7%


As you've already figured out, this is too much vector data for a browser. So your best bet is definetely to convert the vector data to something raster, and mapnik is a good way to do so. I don't know what kind of data your Overpass API can generate, but if you've got the data in a Postgis database, UMN Mapserver would also be a possibility to deliver the data as a WMS layer for OpenLayers.

permanent link

answered 01 Jun '12, 07:51

frabron's gravatar image

frabron
3611411
accept rate: 16%

The duplicate nodes map is an example of a map where a lot of vector data is first rendered onto transparent tiles and then sent to the browser.

permanent link

answered 01 Jun '12, 10:09

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

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:

×122
×28

question asked: 01 Jun '12, 07:07

question was seen: 6,664 times

last updated: 01 Jun '12, 10:09

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