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 |
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. answered 01 Jun '12, 07:51 frabron |
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. answered 01 Jun '12, 10:09 Frederik Ramm ♦ |