From 12a1258797600675a4b37950f9acab8b77cc0b0c Mon Sep 17 00:00:00 2001 From: Eric Fischer Date: Fri, 3 Nov 2017 16:59:45 -0700 Subject: [PATCH] Also remove the point styling script since CartoCSS is long deprecated --- README.md | 27 --------------------------- man/tippecanoe.1 | 29 ----------------------------- 2 files changed, 56 deletions(-) diff --git a/README.md b/README.md index 813feea2..27467dfa 100644 --- a/README.md +++ b/README.md @@ -356,33 +356,6 @@ the filename or name specified using `--layer`, like this: } ``` -Point styling -------------- - -To provide a consistent density gradient as you zoom, the Mapbox Studio style needs to be -coordinated with the base zoom level and dot-dropping rate. You can use this shell script to -calculate the appropriate marker-width at high zoom levels to match the fraction of dots -that were dropped at low zoom levels. - -If you used `-B` or `-z` to change the base zoom level or `-r` to change the -dot-dropping rate, replace them in the `basezoom` and `rate` below. - - awk 'BEGIN { - dotsize = 2; # up to you to decide - basezoom = 14; # tippecanoe -z 14 - rate = 2.5; # tippecanoe -r 2.5 - - print " marker-line-width: 0;"; - print " marker-ignore-placement: true;"; - print " marker-allow-overlap: true;"; - print " marker-width: " dotsize ";"; - for (i = basezoom + 1; i <= 22; i++) { - print " [zoom >= " i "] { marker-width: " (dotsize * exp(log(sqrt(rate)) * (i - basezoom))) "; }"; - } - - exit(0); - }' - Geometric simplifications ------------------------- diff --git a/man/tippecanoe.1 b/man/tippecanoe.1 index be3d804b..3a035184 100644 --- a/man/tippecanoe.1 +++ b/man/tippecanoe.1 @@ -427,35 +427,6 @@ the filename or name specified using \fB\fC\-\-layer\fR, like this: } .fi .RE -.SH Point styling -.PP -To provide a consistent density gradient as you zoom, the Mapbox Studio style needs to be -coordinated with the base zoom level and dot\-dropping rate. You can use this shell script to -calculate the appropriate marker\-width at high zoom levels to match the fraction of dots -that were dropped at low zoom levels. -.PP -If you used \fB\fC\-B\fR or \fB\fC\-z\fR to change the base zoom level or \fB\fC\-r\fR to change the -dot\-dropping rate, replace them in the \fB\fCbasezoom\fR and \fB\fCrate\fR below. -.PP -.RS -.nf -awk 'BEGIN { - dotsize = 2; # up to you to decide - basezoom = 14; # tippecanoe \-z 14 - rate = 2.5; # tippecanoe \-r 2.5 - - print " marker\-line\-width: 0;"; - print " marker\-ignore\-placement: true;"; - print " marker\-allow\-overlap: true;"; - print " marker\-width: " dotsize ";"; - for (i = basezoom + 1; i <= 22; i++) { - print " [zoom >= " i "] { marker\-width: " (dotsize * exp(log(sqrt(rate)) * (i \- basezoom))) "; }"; - } - - exit(0); -}' -.fi -.RE .SH Geometric simplifications .PP At every zoom level, line and polygon features are subjected to Douglas\-Peucker