----------written by shenwenkai-------------
打开http://localhost/osm/slippymap.html就可以看到样例图;但是如果不出意外,中文会出现方框,无法正常显示。
下面说明解决方法:
1)安装unifont字体
sudo apt-get install unifont
2)修改/etc/mapnik-osm-data/inc/fontset-settings.xml.inc的内容为:
修改/etc/renderd.conf的内容为:
[renderd]
stats_file=/var/run/renderd/renderd.stats
socketname=/var/run/renderd/renderd.sock
num_threads=4
tile_dir=/var/lib/mod_tile ; DOES NOT WORK YET
[mapnik]
plugins_dir=/usr/lib/mapnik/2.0/input
font_dir=/usr/share/fonts/truetype/unifont
font_dir_recurse=true
[default]
URI=/osm/
XML=/etc/mapnik-osm-data/osm.xml
DESCRIPTION=This is the standard osm mapnik style
;ATTRIBUTION=©