mirror of
https://github.com/openstreetmap/mod_tile.git
synced 2025-08-01 07:43:30 +00:00
Improved configuration files
This commit is contained in:
24
utils/example-map/index.html
Normal file
24
utils/example-map/index.html
Normal file
@ -0,0 +1,24 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>renderd example map</title>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="icon" href="data:;base64,iVBORw0KGgo=">
|
||||
<link rel="stylesheet" href="leaflet/leaflet.css" />
|
||||
<script src="leaflet/leaflet.min.js"></script>
|
||||
</head>
|
||||
|
||||
<body style="margin: 0;">
|
||||
<div id="map" style="position: absolute; width: 100%; height: 100%;"></div>
|
||||
|
||||
<script>
|
||||
var map = L.map('map').setView([0, 0], 4);
|
||||
L.tileLayer('/renderd-example/tiles/{z}/{x}/{y}.png', {
|
||||
maxZoom: 12,
|
||||
attribution: 'Map data © <a href="https://www.openstreetmap.org/">OpenStreetMap</a> contributors.',
|
||||
}).addTo(map);
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
27
utils/example-map/mapnik.xml
Normal file
27
utils/example-map/mapnik.xml
Normal file
@ -0,0 +1,27 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE Map[]>
|
||||
<Map background-color="#afc6e9" srs="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over">
|
||||
<Parameters>
|
||||
<Parameter name="name"><![CDATA[It's a simple world]]></Parameter>
|
||||
<Parameter name="description"><![CDATA[Simplest CartoCSS style showing land cover of the world.]]></Parameter>
|
||||
<Parameter name="bounds">-180,-85.05112877980659,180,85.05112877980659</Parameter>
|
||||
<Parameter name="center">0,0,4</Parameter>
|
||||
<Parameter name="format"><![CDATA[png]]></Parameter>
|
||||
<Parameter name="minzoom">0</Parameter>
|
||||
<Parameter name="maxzoom">18</Parameter>
|
||||
</Parameters>
|
||||
<Style filter-mode="first" name="world">
|
||||
<Rule>
|
||||
<PolygonSymbolizer fill="#ffffff" fill-opacity="0.75" />
|
||||
<LineSymbolizer stroke="#dddddd" stroke-width="0.3" />
|
||||
</Rule>
|
||||
</Style>
|
||||
<Layer name="world" srs="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over">
|
||||
<StyleName><![CDATA[world]]></StyleName>
|
||||
<Datasource>
|
||||
<Parameter name="file"><![CDATA[very_simplified_land_polygons.shp]]></Parameter>
|
||||
<Parameter name="type"><![CDATA[shape]]></Parameter>
|
||||
</Datasource>
|
||||
</Layer>
|
||||
</Map>
|
||||
|
1
utils/example-map/very_simplified_land_polygons.cpg
Normal file
1
utils/example-map/very_simplified_land_polygons.cpg
Normal file
@ -0,0 +1 @@
|
||||
UTF-8
|
BIN
utils/example-map/very_simplified_land_polygons.dbf
Normal file
BIN
utils/example-map/very_simplified_land_polygons.dbf
Normal file
Binary file not shown.
1
utils/example-map/very_simplified_land_polygons.prj
Normal file
1
utils/example-map/very_simplified_land_polygons.prj
Normal file
@ -0,0 +1 @@
|
||||
PROJCS["WGS_1984_Web_Mercator_Auxiliary_Sphere",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator_Auxiliary_Sphere"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",0.0],PARAMETER["Standard_Parallel_1",0.0],PARAMETER["Auxiliary_Sphere_Type",0.0],UNIT["Meter",1.0]]
|
BIN
utils/example-map/very_simplified_land_polygons.shp
Normal file
BIN
utils/example-map/very_simplified_land_polygons.shp
Normal file
Binary file not shown.
BIN
utils/example-map/very_simplified_land_polygons.shx
Normal file
BIN
utils/example-map/very_simplified_land_polygons.shx
Normal file
Binary file not shown.
Reference in New Issue
Block a user