Skip to content

Commit f5aba5a

Browse files
author
Dane Springmeyer
committed
Merge branch 'master' of github.com:mapnik/mapnik.github.com
2 parents d5a2642 + 2b94c4e commit f5aba5a

6 files changed

Lines changed: 48 additions & 28 deletions

File tree

Gemfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
source 'https://rubygems.org'
22

33
gem 'jekyll', '2.1.1'
4-
gem 'nokogiri', '1.6.7.2'
54
gem 'rdiscount', '2.1.8'

_layouts/01_splash.html

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -125,22 +125,15 @@ <h2 class="med-news"><a href="{{site.baseurl}}{{ post1-url }}"> {{ post1-title }
125125
{% highlight js %}
126126
var mapnik = require("mapnik");
127127
var fs = require("fs");
128-
// register fonts and datasource plugins
129128
mapnik.register_default_fonts();
130129
mapnik.register_default_input_plugins();
131130
var map = new mapnik.Map(256, 256);
132-
map.load("./test/stylesheet.xml", function(err,map) {
133-
if (err) throw err;
131+
map.load("./test/stylesheet.xml", function(err, map) {
134132
map.zoomAll();
135133
var im = new mapnik.Image(256, 256);
136-
map.render(im, function(err,im) {
137-
if (err) throw err;
138-
im.encode("png", function(err,buffer) {
139-
if (err) throw err;
140-
fs.writeFile("map.png",buffer, function(err) {
141-
if (err) throw err;
142-
console.log("saved map image to map.png");
143-
});
134+
map.render(im, function(err, im) {
135+
im.encode("png", function(err, buffer) {
136+
fs.writeFile("map.png", buffer);
144137
});
145138
});
146139
});

_posts/blog/2015-07-11-3.0-cartographer.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,17 @@ For PostGIS datasources with polygons that follow the left-hand rule instead, if
4242

4343
The existing `line-offset` in the stylesheet will need to be inverted.
4444

45-
### Text offsetting from lines
45+
### Offsetting from lines
46+
Direction of all offsets from lines is inverted. These properties have to be changed to achieve compatibility between 2.2 and 3.0:
4647

47-
Handling of text offset from lines has changed. To get consistent behavior between 2.2 and 3.0, use `vertical-alignment: middle`. This may require adjustments to the `text-dy` value.
48+
* `TextSymbolizer` with line placement
49+
* swap `top` and `bottom` values in `vertical-alignment`
50+
* multiple `dy` by -1
51+
* Take care of `vertical-alignment` and `dy` in `Layout` and `Placement` nodes.
52+
* `LineSymbolizer`, `LinePatternSymbolizer`, `MarkersSymbolizer` with line placement
53+
* multiple `offset` by -1
54+
55+
Special attention should be taken to `TextSymbolizer` when `dy` is not zero and `vertical-alignment` is not set. In such situation `vertical-alignment="middle"` needs to be set to get consistent behavior between 2.2 and 3.0.
4856

4957
### Harfbuzz support
5058

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
layout: 01_post
3+
title: "Mapnik 3.0.12 Release"
4+
author: Artem Pavlenko
5+
category: Mapnik
6+
---
7+
8+
![image](/images/la_save.jpg)
9+
10+
After a long summer of coding and bug fixing, the Mapnik team is excited to announce the latest release in 3.0.x series - [v3.0.12](https://github.com/mapnik/mapnik/releases/tag/v3.0.12) ([La Save](https://fr.wikipedia.org/wiki/Save_(Garonne))).
11+
12+
Everyone is encouraged to upgrade as this new release offers improved [stability and features](https://github.com/mapnik/mapnik/compare/v3.0.11...v3.0.12).
13+
14+
Here is a detailed list of changes: [CHANGELOG](https://github.com/mapnik/mapnik/blob/master/CHANGELOG.md#3012). Big thank you to everyone involved!
15+
## Download
16+
17+
Follow the links to [download the official source](https://github.com/mapnik/mapnik/releases/download/v3.0.12/mapnik-v3.0.12.tar.bz2) directly or grab it from our [downloads page](/pages/downloads.html).
18+
19+
Mapnik team

images/la_save.jpg

159 KB
Loading

pages/downloads.md

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,30 +5,31 @@ title: Downloads
55

66
## Latest Release
77

8-
The latest release is Mapnik v3.0.10.
8+
The latest release is Mapnik v3.0.12.
99

10-
## Mapnik 3.0.10
10+
## Mapnik 3.0.12
1111

12-
Release Date: 26 February 2016
12+
Release Date: 8 September 2016
1313

1414
### Prebuilt Binaries
1515

16-
We plan on providing prebuilt binaries soon for Mapnik 3.0.10.
16+
We plan on providing prebuilt binaries soon for Mapnik 3.0.12.
1717

1818
### Source Installation
1919

20-
To build Mapnik v3.0.10 from source either download the [v3.0.10 tarball](https://mapnik.s3.amazonaws.com/dist/v3.0.10/mapnik-v3.0.10.tar.bz2) or pull directly from github:
20+
To build Mapnik v3.0.12 from source either download the [v3.0.12 tarball](https://github.com/mapnik/mapnik/releases/download/v3.0.12/mapnik-v3.0.12.tar.bz2) or pull directly from github:
2121

22-
git clone https://github.com/mapnik/mapnik.git
23-
git checkout v3.0.10
24-
git submodule update --init
25-
./configure && make && make test
22+
git clone https://github.com/mapnik/mapnik.git
23+
cd mapnik
24+
git checkout v3.0.12
25+
git submodule update --init
26+
./configure && make && make test
2627

27-
For source install help see the [Install docs](https://github.com/mapnik/mapnik/blob/v3.0.10/INSTALL.md)
28+
For source install help see the [Install docs](https://github.com/mapnik/mapnik/blob/v3.0.12/INSTALL.md)
2829

2930
You can also use git to fetch the latest code (will default to `master` branch):
3031

31-
git clone https://github.com/mapnik/mapnik.git
32+
git clone https://github.com/mapnik/mapnik.git
3233

3334
Browse the code at [github](https://github.com/mapnik/mapnik).
3435

@@ -45,7 +46,7 @@ Release Date: June 3rd, 2013
4546

4647
The recommend install method on OS X is `homebrew`. If you are running `homebrew` simply do:
4748

48-
brew update && brew install mapnik
49+
brew update && brew install mapnik
4950

5051
We also provide a pre-built [OS X 64 bit package](http://mapnik.s3.amazonaws.com/dist/v2.2.0/mapnik-osx-v2.2.0.dmg) that will install into the same place (`/usr/local`) as homebrew.
5152

@@ -68,8 +69,8 @@ We also provide a pre-built [OS X 64 bit package](http://mapnik.s3.amazonaws.com
6869

6970
To build Mapnik v2.2.0 from source either download the [v2.2.0 tarball](http://mapnik.s3.amazonaws.com/dist/v2.2.0/mapnik-v2.2.0.tar.bz2) or pull directly from github:
7071

71-
git clone https://github.com/mapnik/mapnik.git
72-
git checkout v2.2.0
72+
git clone https://github.com/mapnik/mapnik.git
73+
git checkout v2.2.0
7374

7475
For source install help see the [Install docs](https://github.com/mapnik/mapnik/blob/v2.2.0/INSTALL.md)
7576

0 commit comments

Comments
 (0)