New answers tagged mapnik
I fix the same issue on CentOS machine by installing proj-epsg package.
Just edit the renderd.conf and add a section for your second style (make sure the "URI" entry points to a different path than that of your default style). For example, my renderd.conf contains the sections [default] XML=/etc/mapnik-osm-carto-data/osm.xml URI=/osm/ DESCRIPTION=This is the standard osm mapnik style HOST=host.my CORS=* MINZOOM=0 MAXZOOM=20 ...
Thanks for the solution. I was thinking of manipulating OSM.XML file to change the projection information and get a reprojected map on-the-fly. For example, I followed this tutorial but could not get the result. Just wondering if you have any experience in this regard. UPDATE: To have a map with a custom projection (rather than OSM default EPSG:3857), you ...
Not sure what your stylefile looks like, but for Openstreetmap tiles rendered with Mapnik, the background is blue by default Map bgcolor="#b5d0d0" and the coastline polygons introduce the white background for land areas. EDIT For missing tiles (with no data to be rendered), Openlayers uses: OpenLayers.Util.OSM.MISSING_TILE_URL = ...
I wouldn't recommend to alter the projection already at the DB level, as a lot of tools rely on the default projection for OSM: Instead try to use e.g. Mapproxy to reproject the output tiles.
I suggest to use different png symbols for different zoom levels, as it is done with bus stop symbols: <Rule> &maxscale_zoom16; &minscale_zoom16; <Filter>[amenity]='bus_stop' or [highway]='bus_stop'</Filter> <PointSymbolizer file="&symbols;/bus_stop_small.png" placement="interior"/> </Rule> <Rule> ...
Here is a sample code for putting up background with CSS : /* CSS by GenerateCSS.com */ background-color: #dfdff2; background-image:url(""); background-repeat: no-repeat; background-attachment: fixed; background-position: center center; I used a CSS generator with this one: http://www.generatecss.com/css/background/
First, do you really need to draw squares with these exact dimensions? Or just draw small points? If it's the latter, use MarkerSymbolizer with given fill, width and height. PointSymbolizer can only display icons, it doesn't look at width/height properties. If you need a circle at each point with given radius, you can alter the query to return those: ...
If I understand question correctly you should use Carto-CSS 'text-halo' operator: text-halo-radius: text-halo-fill: If you need background as a rectangular behind the text, you should use 'shield' operators.
This was a bug but it's now fixed thanks to Zverik- the developer of the script.
Top 50 recent answers are included