[OSM-dev] OSM-Carto style, ported to vector tiles!

Daniel Koć daniel at xn--ko-wla.pl
Mon Jul 25 16:33:15 UTC 2016


W dniu 25.07.2016 16:50, Daniel Koć napisał(a):

> So, I don't understand npm issues, but can work around them, but still
> there are some other problems, including fonts issues, which I don't
> understand. Maybe it has something to do with Ubuntu version (mine is
> 16.04 64-bit)?

Report after some more research:

I have removed fonts which caused the error messages and my style.mss 
file looks like this now:

***

Map {
   background-color: @water-color;
}

@book-fonts:    "DejaVu Sans Book", "Padauk Regular", "Khmer OS Metal 
Chrieng Regular",
                 "TSCu_Paranar Regular", "Tibetan Machine Uni Regular";
@bold-fonts:    "DejaVu Sans Bold", "Padauk Bold", "TSCu_Paranar Bold",
                 "DejaVu Sans Book", "Padauk Regular", "Khmer OS Metal 
Chrieng Regular",
                 "TSCu_Paranar Regular", "Tibetan Machine Uni Regular";

@oblique-fonts: "DejaVu Sans Oblique", "TSCu_Paranar Italic",
                 "DejaVu Sans Book", "Padauk Regular", "Khmer OS Metal 
Chrieng Regular",
                 "TSCu_Paranar Regular", "Tibetan Machine Uni Regular";

@water-color: #b5d0d0;
@land-color: #f2efe9;

***

Now when I visit http://localhost:8080/tiles/ it works - for example URL 
and console messages look like this:

http://localhost:8080/tiles/#5/50.008/18.875

GET /tiles/5/15/11.png 304 6.375 ms - -
GET /tiles/5/20/11.png 304 6.987 ms - -
GET /tiles/5/21/9.png 200 202.547 ms - 857
GET /tiles/5/15/8.png 304 3.789 ms - -
GET /tiles/5/20/8.png 304 5.073 ms - -
GET /tiles/5/15/12.png 304 4.106 ms - -
GET /tiles/5/20/12.png 304 1.947 ms - -
GET /tiles/5/14/8.png 304 1.745 ms - -
GET /tiles/5/14/12.png 304 3.728 ms - -
GET /pbfs/live/5/21/8.pbf 200 195.421 ms - 73
GET /tiles/5/21/8.png 200 205.010 ms - 857
GET /pbfs/live/5/21/10.pbf 200 247.592 ms - 73
GET /tiles/5/21/10.png 200 257.135 ms - 857
GET /pbfs/live/5/21/11.pbf 200 232.449 ms - 73
GET /tiles/5/21/11.png 200 239.943 ms - 857
GET /pbfs/live/5/21/12.pbf 200 292.635 ms - 73
GET /tiles/5/21/12.png 200 301.565 ms - 857

It takes some time before the result is visible, but then it works quite 
fast (comparable to viewing standard map on-line) and is quite accurate 
(only some small circles look distorted).

***

However when visiting http://localhost:8080/pbfs/live/ the URL changes 
to http://localhost:8080/pbfs/live/#4/0/0 and I still get no tiles, 
console messages look like this:

GET /pngs/live/_/5/19/16.pbf 404 0.212 ms - 36

and file http://localhost:8080/pbfs/live/index.json also has real JSON 
with the option:

"tiles":["http://localhost:8080/pbfs/live/{z}/{x}/{y}.pbf"]

-- 
"Low, low, low..." [M. Kempa]



More information about the dev mailing list