44 {% include mapnik.meta %}
55 < title > Mapnik.org - the core of geospatial visualization & processing</ title >
66 </ head >
7-
87 < body >
9-
108 <!-- header -->
11- < div class =' splash ' >
12- < div class =' gradient ' >
13- < div class =' col12 clearfix prose ' >
14- < div id =' logo ' class =' col5 margin2 pad4y fl ' > < h1 class =' fancy dark ' > mapnik</ h1 > </ div >
15- < div id =' tagline ' class =' col5 space-top4 dark pad4y prose fr ' > the core of geospatial visualization & processing</ div >
9+ < div class =" splash " >
10+ < div class =" gradient " >
11+ < div class =" col12 clearfix prose " >
12+ < div id =" logo " class =" col5 margin2 pad4y fl " > < h1 class =" fancy dark " > mapnik</ h1 > </ div >
13+ < div id =" tagline " class =" col5 space-top4 dark pad4y prose fr " > the core of geospatial visualization & processing</ div >
1614 </ div >
17- < div id =' intro1 ' class =' col9 margin2 pad2y dark big ' > mapnik combines pixel-perfect image output with lightning-fast cartographic algorithms, and exposes interfaces in C++, Python, and Node.</ div >
18- < div id =' intro2 ' class =' col9 margin2 pad2y dark big ' >
19- < a href =' {{site.baseurl}}/pages/downloads.html ' class =' button stroke white col5 ' > Download mapnik</ a >
15+ < div id =" intro1 " class =" col9 margin2 pad2y dark big " > mapnik combines pixel-perfect image output with lightning-fast cartographic algorithms, and exposes interfaces in C++, Python, and Node.</ div >
16+ < div id =" intro2 " class =" col9 margin2 pad2y dark big " >
17+ < a href =" {{site.baseurl}}/pages/downloads.html " class =" button stroke white col5 " > Download mapnik</ a >
2018 </ div >
21- < div id =' intro3 ' class =' col9 margin2 pad2y ' >
19+ < div id =" intro3 " class =" col9 margin2 pad2y " >
2220 < a class ="github-button " href ="https://github.com/mapnik/mapnik/fork " data-style ="mega " data-count-href ="/mapnik/mapnik/network " data-count-api ="/repos/mapnik/mapnik#forks_count " data-count-aria-label ="# forks on GitHub " aria-label ="Fork mapnik/mapnik on GitHub "> Fork</ a >
2321 < script async defer id ="github-bjs " src ="https://buttons.github.io/buttons.js "> </ script >
2422 </ div >
2523
2624 </ div >
2725 <!-- map design -->
28- < div class =' module pad8y ' > </ div >
26+ < div class =" module pad8y " > </ div >
2927 </ div >
3028
31- < div class =' full-content ' >
32- <!-- mapnik latest news --> < a id =' latest-news ' > </ a >
33- < div class =' content prose col12 clearfix fill-white ' >
34- < div class =' col10 margin2 pad2y big ' > latest news</ div >
35- {% for post in site.categories.Mapnik limit:4 %}{% if post.type != ' install' %}
29+ < div class =" full-content " >
30+ <!-- mapnik latest news --> < a id =" latest-news " > </ a >
31+ < div class =" content prose col12 clearfix fill-white " >
32+ < div class =" col10 margin2 pad2y big " > latest news</ div >
33+ {% for post in site.categories.Mapnik limit:4 %}{% if post.type != " install" %}
3634 {% capture modulo %}{{ forloop.index0 | mod:4 }}{% endcapture %}
3735 {% assign author = site.data.author[post.author] %}
38- {% if modulo == '0' or forloop.first %}
36+ {% if modulo == "0" or forloop.first %}
3937 {% assign post1-author = post.author %}{% assign post1-title = post.title %}{% assign post1-date = post.date %}
4038 {% assign post1-url = post.url %}{% assign post1-img = author[0].image %}{% assign post1-excerpt = post.excerpt %}
4139 {% assign post1-github = author[0].github %}
4240 {% endif %}
43- {% if modulo == '1' %}
41+ {% if modulo == "1" %}
4442 {% assign post2-author = post.author %}{% assign post2-title = post.title %}{% assign post2-date = post.date %}
4543 {% assign post2-url = post.url %}{% assign post2-img = author[0].image %}{% assign post2-excerpt = post.excerpt %}
4644 {% assign post2-github = author[0].github %}
4745 {% endif %}
48- {% if modulo == '2' %}
46+ {% if modulo == "2" %}
4947 {% assign post3-author = post.author %}{% assign post3-title = post.title %}{% assign post3-date = post.date %}
5048 {% assign post3-url = post.url %}{% assign post3-img = author[0].image %}{% assign post3-excerpt = post.excerpt %}
5149 {% assign post3-github = author[0].github %}
5250 {% endif %}
53- {% if modulo == '3' or forloop.last %}
51+ {% if modulo == "3" or forloop.last %}
5452 {% assign post4-author = post.author %}{% assign post4-title = post.title %}{% assign post4-date = post.date %}
5553 {% assign post4-url = post.url %}{% assign post4-img = author[0].image %}{% assign post4-excerpt = post.excerpt %}
5654 {% assign post4-github = author[0].github %}
5755 {% endif %}
5856 {% endif %}{% endfor %}
5957
60- < div class =' col6 margin2 pad1y space-bottom4 ' >
61- < div class =' col3 ' >
62- < h2 class =' med-news ' > < a href ="{{site.baseurl}}{{ post1-url }} "> {{ post1-title }}</ a > </ h2 >
63- < div class =' col12 ' >
64- < div class =' col12 ' > < span class =' date ' > {{ post1-date | date: "%b %d, %Y" }}</ span > </ div >
65- < div class =' col2 space-top1 ' > < img class =' dot fl ' alt ="dot fl " src =' {{ post1-img }} ' width =' 30 ' > </ div >
66- < div class =' col9 space-top1 ' > < span class =' date pad1x ' >
58+ < div class =" col6 margin2 pad1y space-bottom4 " >
59+ < div class =" col3 " >
60+ < h2 class =" med-news " > < a href ="{{site.baseurl}}{{ post1-url }} "> {{ post1-title }}</ a > </ h2 >
61+ < div class =" col12 " >
62+ < div class =" col12 " > < span class =" date " > {{ post1-date | date: "%b %d, %Y" }}</ span > </ div >
63+ < div class =" col2 space-top1 " > < img class =" dot fl " alt ="dot fl " src =" {{ post1-img }} " width =" 30 " > </ div >
64+ < div class =" col9 space-top1 " > < span class =" date pad1x " >
6765 {% if post1-github != null %}
68- < a href =' {{ post1-github }} ' > {{ post1-author }}</ a >
66+ < a href =" {{ post1-github }} " > {{ post1-author }}</ a >
6967 {% else %}
7068 {{ post1-author }}
7169 {% endif %}
7270 </ span > </ div >
7371 </ div >
7472 </ div >
75- < div class =' col9 ' >
76- < div class =' col1 ' > < img class =' fl ' alt ="fl " src =' images/quote-L.png ' width =' 30 ' > </ div >
77- < div class =' col11 pad1x ' > {{ post1-excerpt }} < a class =' news ' href ="{{site.baseurl}}{{ post1-url }} "> read more > > </ a > </ div >
73+ < div class =" col9 " >
74+ < div class =" col1 " > < img class =" fl " alt ="fl " src =" images/quote-L.png " width =" 30 " > </ div >
75+ < div class =" col11 pad1x " > {{ post1-excerpt }} < a class =" news " href ="{{site.baseurl}}{{ post1-url }} "> read more > > </ a > </ div >
7876 </ div >
7977 </ div >
80- < div class =' col4 pad4x space-top1 ' >
81- < div class =' col12 space-bottom2 ' >
78+ < div class =" col4 pad4x space-top1 " >
79+ < div class =" col12 space-bottom2 " >
8280 < a href ="{{site.baseurl}}{{ post2-url }} "> {{ post2-title }}</ a > < br >
83- < span class =' date ' > {{ post2-date | date: "%b %d, %Y" }} | {% if post2-github != null %}< a href =' {{ post2-github }} ' > {{ post2-author }}</ a > {% else %}{{ post2-author }}{% endif %}</ span >
81+ < span class =" date " > {{ post2-date | date: "%b %d, %Y" }} | {% if post2-github != null %}< a href =" {{ post2-github }} " > {{ post2-author }}</ a > {% else %}{{ post2-author }}{% endif %}</ span >
8482 </ div >
85- < div class =' col12 space-bottom2 ' >
83+ < div class =" col12 space-bottom2 " >
8684 < a href ="{{site.baseurl}}{{ post3-url }} "> {{ post3-title }}</ a > < br >
87- < span class =' date ' > {{ post3-date | date: "%b %d, %Y" }} | {% if post3-github != null %}< a href =' {{ post3-github }} ' > {{ post3-author }}</ a > {% else %}{{ post3-author }}{% endif %}</ span >
85+ < span class =" date " > {{ post3-date | date: "%b %d, %Y" }} | {% if post3-github != null %}< a href =" {{ post3-github }} " > {{ post3-author }}</ a > {% else %}{{ post3-author }}{% endif %}</ span >
8886 </ div >
89- < div class =' col12 ' >
90- < a class =' news ' href ="{{site.baseurl}}/news/archive.html "> read news archive > > </ a >
87+ < div class =" col12 " >
88+ < a class =" news " href ="{{site.baseurl}}/news/archive.html "> read news archive > > </ a >
9189 </ div >
9290 </ div >
9391 </ div >
9492
9593
9694 <!-- code bindings -->
9795 < a id ="code "> </ a >
98- < div class =' content col12 clearfix fill-gray ' >
99- < div class =' col3 margin2 pad8y prose ' >
100- < div class =' big ' > code in your language</ div >
101- < p class =' space-top1 ' > mapnik's high-quality bindings let's you choose from Node.js, Python, and C++.</ p >
102- < div class =' col12 pill ' >
103- < a href =' http://mapnik.org/node-mapnik/documentation/ ' class =' button stroke light short col6 ' > Node.js</ a >
104- < a href =' http://mapnik.org/docs/v2.2.0/api/python/index.html ' class =' button light stroke short col6 ' > Python</ a >
96+ < div class =" content col12 clearfix fill-gray " >
97+ < div class =" col3 margin2 pad8y prose " >
98+ < div class =" big " > code in your language</ div >
99+ < p class =" space-top1 " > mapnik's high-quality bindings let's you choose from Node.js, Python, and C++.</ p >
100+ < div class =" col12 pill " >
101+ < a href =" http://mapnik.org/node-mapnik/documentation/ " class =" button stroke light short col6 " > Node.js</ a >
102+ < a href =" http://mapnik.org/docs/v2.2.0/api/python/index.html " class =" button light stroke short col6 " > Python</ a >
105103 </ div >
106104 </ div >
107105
108- < div class =' col7 space-top2 pad4x clearfix ' >
109- < div class =' col12 pad8y clearfix ' >
106+ < div class =" col7 space-top2 pad4x clearfix " >
107+ < div class =" col12 pad8y clearfix " >
110108
111109 < div class ="container ">
112- < ul class =' tabs ' >
113- < li class =' tab-link current ' data-tab =' tab-1 ' > Python</ li >
114- < li class =' tab-link ' data-tab =' tab-2 ' > Node</ li >
115- < li class =' tab-link ' data-tab =' tab-3 ' > C++</ li >
110+ < ul class =" tabs " >
111+ < li class =" tab-link current " data-tab =" tab-1 " > Python</ li >
112+ < li class =" tab-link " data-tab =" tab-2 " > Node</ li >
113+ < li class =" tab-link " data-tab =" tab-3 " > C++</ li >
116114 </ ul >
117115 < div id ="tab-1 " class ="tab-content current ">
118116{% highlight python %}
119117import mapnik
120118m = mapnik.Map(256,256)
121- mapnik.load_map(m, ' path/to/file.xml' )
119+ mapnik.load_map(m, " path/to/file.xml" )
122120m.zoom_all()
123- mapnik.render_to_file(m, ' the_image.png' )
121+ mapnik.render_to_file(m, " the_image.png" )
124122{% endhighlight %}
125123 </ div >
126124 < div id ="tab-2 " class ="tab-content ">
127125{% highlight js %}
128- var mapnik = require(' mapnik' );
129- var fs = require('fs' );
126+ var mapnik = require(" mapnik" );
127+ var fs = require("fs" );
130128// register fonts and datasource plugins
131129mapnik.register_default_fonts();
132130mapnik.register_default_input_plugins();
133131var map = new mapnik.Map(256, 256);
134- map.load(' ./test/stylesheet.xml' , function(err,map) {
132+ map.load(" ./test/stylesheet.xml" , function(err,map) {
135133 if (err) throw err;
136134 map.zoomAll();
137135 var im = new mapnik.Image(256, 256);
138136 map.render(im, function(err,im) {
139137 if (err) throw err;
140- im.encode(' png' , function(err,buffer) {
138+ im.encode(" png" , function(err,buffer) {
141139 if (err) throw err;
142- fs.writeFile(' map.png' ,buffer, function(err) {
140+ fs.writeFile(" map.png" ,buffer, function(err) {
143141 if (err) throw err;
144- console.log(' saved map image to map.png' );
142+ console.log(" saved map image to map.png" );
145143 });
146144 });
147145 });
@@ -175,14 +173,14 @@ <h2 class='med-news'><a href="{{site.baseurl}}{{ post1-url }}"> {{ post1-title }
175173
176174 <!-- xml stylesheets -->
177175 < a id ="xml "> </ a >
178- < div class =' content col12 clearfix fill-gray ' >
179- < div class =' col3 margin2 pad2y ' >
180- < h2 class =' big ' > style with a stylesheet</ h2 >
181- < div class =' col10 pad2y ' > Only a single XML stylesheet for your map, regardless of the code binding.</ div >
182- < a href =' https://github.com/mapnik/mapnik/wiki/XMLConfigReference ' class =' space-top1 button stroke light short col8 ' > XML Configuration</ a >
176+ < div class =" content col12 clearfix fill-gray " >
177+ < div class =" col3 margin2 pad2y " >
178+ < h2 class =" big " > style with a stylesheet</ h2 >
179+ < div class =" col10 pad2y " > Only a single XML stylesheet for your map, regardless of the code binding.</ div >
180+ < a href =" https://github.com/mapnik/mapnik/wiki/XMLConfigReference " class =" space-top1 button stroke light short col8 " > XML Configuration</ a >
183181 </ div >
184- < div class =' col7 pad4x space-bottom4 ' >
185- < div class =' fill-white ' >
182+ < div class =" col7 pad4x space-bottom4 " >
183+ < div class =" fill-white " >
186184{% highlight xml%}
187185< Map background-color ="blue " srs ="+init=epsg:4326 ">
188186 < Style name ="My Style ">
@@ -204,8 +202,8 @@ <h2 class='big'>style with a stylesheet</h2>
204202 </ div >
205203 </ div >
206204 <!-- blog -->
207- < div class =' fill-gray content col12 clearfix pad1y ' >
208- < div class =' big quote center pad4y ' > above all else, beautiful maps</ div >
205+ < div class =" fill-gray content col12 clearfix pad1y " >
206+ < div class =" big quote center pad4y " > above all else, beautiful maps</ div >
209207 </ div >
210208 {% include stacks.html %}
211209 {% include footer.html %}
0 commit comments