Skip to content

Commit 24f5140

Browse files
committed
Update tile server example Leaflet version, map colors.
1 parent 7ec0cd2 commit 24f5140

File tree

3 files changed

+17
-11
lines changed

3 files changed

+17
-11
lines changed

example/example.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
<Map background-color="steelblue">
1+
<Map background-color="slateblue">
22
<Style name="world_style">
33
<Rule>
4-
<PolygonSymbolizer fill="ghostwhite" />
5-
<LineSymbolizer stroke="rgb(50%,50%,50%)" stroke-width="0.1" />
4+
<PolygonSymbolizer fill="darkslateblue" />
5+
<LineSymbolizer stroke="mediumslateblue" stroke-width="0.5" />
66
</Rule>
77
</Style>
88

@@ -13,4 +13,4 @@
1313
<Parameter name="file">ne_110m_admin_0_countries.shp</Parameter>
1414
</Datasource>
1515
</Layer>
16-
</Map>
16+
</Map>

example/index.html

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
<html>
22
<head>
33
<title>PHP7 Mapnik - Tile Server Example</title>
4-
<link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.7/leaflet.css">
5-
<script src="//cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.7/leaflet.js" type="text/javascript"></script>
4+
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css"
5+
integrity="sha512-puBpdR0798OZvTTbP4A8Ix/l+A4dHDD0DGqYW6RQ+9jxkRFclaxxQb/SJAWZfWAkuyeQUytO7+7N4QKrDh+drA=="
6+
crossorigin=""/>
7+
<script src="https://unpkg.com/[email protected]/dist/leaflet.js"
8+
integrity="sha512-QVftwZFqvtRNi0ZyCtsznlKSWOStnDORoefr1enyq5mVL4tmKB3S/EnC3rRJcxCPavG10IcrVGSmPh6Qw5lwrg=="
9+
crossorigin=""></script>
610
<style type="text/css">
711
body {
812
margin: 0;
@@ -21,12 +25,14 @@
2125
<script type="text/javascript">
2226
var map = L.map('map', {
2327
center: [35.47, -97.52],
24-
zoom: 4
28+
zoom: 4,
29+
minZoom: 3,
30+
maxZoom: 8
2531
});
2632

2733
L.tileLayer('//localhost:8000/tile-server.php?x={x}&y={y}&z={z}', {
2834
attribution: 'Made with <a href="http://www.naturalearthdata.com/">Natural Earth</a>'
2935
}).addTo(map);
3036
</script>
3137
</body>
32-
</html>
38+
</html>

tests/data/world.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
<Map background-color="darkslateblue" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
1+
<Map background-color="slateblue" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
22
<Style name="world_style">
33
<Rule>
4-
<PolygonSymbolizer fill="slateblue" />
5-
<LineSymbolizer stroke="rgba(255,255,255,0.5)" stroke-width="0.2" />
4+
<PolygonSymbolizer fill="darkslateblue" />
5+
<LineSymbolizer stroke="mediumslateblue" stroke-width="0.2" />
66
</Rule>
77
</Style>
88

0 commit comments

Comments
 (0)