My target is to have the whole planet to be available in the map client[leaflet.js/openlayers.js] but only a specific country loaded with roads etc.
I have followed the steps below to setup my Geoserver (2.7.1) with OpenStreetMaps:
- Downloaded the shape files for a country [e.g. http://download.geofabrik.de/europe/czech-republic-latest.shp.zip] and uploaded them to Geoserver.
- Downloaded the land polygons [http://data.openstreetmapdata.com/land-polygons-split-4326.zip] and uploaded them to GeoServer.
- Downloaded the mapnik styles[http://svn.openstreetmap.org/applications/rendering/mapnik], converted them with mapnik2geotools and uploaded them with it using the rest services option.
When visiting the Layer Preview and select the land-polygons layer it displays fine with zooming going all the way. When I assign the world style to this layer the zooming is not quite going all the way down and after some zooming point the map is blank.
On top of that, when I add the road layer and assign the mapnik converted road style as its default nothing gets rendered. The layer and the whole map is just blank. The documentation says that this is most probably because there are semantic errors in the styles.
What am I doing wrong? Can anyone let me know of any current OSM Geoserver ready styles I could use? Which one of the two (Mercado or 4326) projections would you recommend? Should I just go for another map server which is straight away compatible with OpenStreeMap data and mapnik styles?