[OSM-dev] different rendering with mapnik based on area?
Peter Körner
osm-lists at mazdermind.de
Mon Apr 2 14:23:44 BST 2012
Am 31.03.2012 21:12, schrieb Phil! Gold:
> * Sven Geggus<lists at fuchsschwanzdomain.de> [2012-03-31 16:06 +0000]:
>> is it possible to have different rendering rules based on the area
>> where rendring takes place using an ordinary mapnik rendering stack
>> (osm2pgsql+mod_tile+tirex)?
>
> Supposedly yes. MapQuest uses has three different stylesheets that they
> use for their tiles and the appropriate one is selected based on where the
> rendered data is.
It won't work without adapting the source. You can choose which source
you want to adapt:
- The Style: use different layers for the areas whith 'SELECT WHERE
ST_Inside(way, ...)'-style queries - simple but slow
- mapnik: somehow..
- mod_tile: switch between different maps depending on the requested
z/x/y-tile
- The Client (OpenLayers/Leaflet): enable/disable base-layers
depending on the visible area
Choose whichever way fits your needs best - and tell us about.
Peter
More information about the dev
mailing list