Skip to content

Commit

Permalink
Remove trailing whitespace (#3637)
Browse files Browse the repository at this point in the history
  • Loading branch information
matthijsmelissen authored and matkoniecz committed Jan 15, 2019
1 parent e62b414 commit 6684f0a
Show file tree
Hide file tree
Showing 11 changed files with 68 additions and 68 deletions.
22 changes: 11 additions & 11 deletions CARTOGRAPHY.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@

# Design goals and guidelines for this style

This is an attempt to outline the goals of this style and the principles under
which the maintainers make decisions. These rules are not set in stone, they
can change and they may not be followed in all cases but contributors should
This is an attempt to outline the goals of this style and the principles under
which the maintainers make decisions. These rules are not set in stone, they
can change and they may not be followed in all cases but contributors should
be able to expect that they are generally the guiding principles design wise.

It does not make much sense to try following these principles blindly as a
contributor without understanding them, they are meant to guide you to develop
an intuition and understanding how to make design decisions to fit into the
It does not make much sense to try following these principles blindly as a
contributor without understanding them, they are meant to guide you to develop
an intuition and understanding how to make design decisions to fit into the
overall concept of this style.

## General purpose
Expand All @@ -20,15 +20,15 @@ This style has multiple purposes:
* It's used in many map applications as a general purpose map.
* It's an exemplar stylesheet for rendering OSM data.

There is no ranking of these purposes. To allow serving all of them and to
avoid satisfying only some at the cost of the others the following main goals
There is no ranking of these purposes. To allow serving all of them and to
avoid satisfying only some at the cost of the others the following main goals
have been identified.

## Main goals

The following goals need to be balanced against each other to serve the purposes
above. There is no fixed order of priorities. Apart from these goals there are
of course also technical constraints and requirements that need to be taken into
The following goals need to be balanced against each other to serve the purposes
above. There is no fixed order of priorities. Apart from these goals there are
of course also technical constraints and requirements that need to be taken into
account.

* **Legibility and clarity** - The map should be intuitively readable by users with some general experience using maps without a map key, preferrably with relatively little effort. A map key or more extensive experience using this map style can be required for clearly identifying minor differences or the exact meaning of certain features but in broad strokes orientation and identification of map elements should be possible on an intuitive level. We also aim for the map appearance to be esthetically pleasing.
Expand Down
20 changes: 10 additions & 10 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
- Changing landuse=allotments color and pattern
- Adding rendering for natural=cape
- Rendering leisure=ice_rink
- Adding rendering for man_made=crane
- Adding rendering for man_made=crane
- Adding icons for shop=fabric and shop=carpet
- Updating icons for amenity=arts_centre, leisure=slipway, amenity=restaurant/amenity=food_court and man_made=storage_tank/man_made=silo
- Using dedicated icon for artwork_type=bust
Expand Down Expand Up @@ -100,13 +100,13 @@
- Increased shield distances on roads
- Added icon for shop=ticket
- Added icon for shop=houseware
- Added icon for shop=charity
- Added icon for shop=charity
- Added icon for shop=second_hand
- Added icon for shop=interior_decoration
- Added icon for amenity=bureau_de_change
- Added icon for amenity=casino
- Added icon for amenity=boat_rental
- Updated shop=department_store icon
- Updated shop=department_store icon
- Small documentation and code fixes

## [v4.12.1](https://github.com/gravitystorm/openstreetmap-carto/compare/v4.12.0...v4.12.1) - 2018-06-29
Expand All @@ -119,7 +119,7 @@

### Changes
- Added rendering “surface” tag on roads with a pattern
- More vertical objects rendering and tuning (man_made=tower types, man_made=chimney, man_made=communications_tower)
- More vertical objects rendering and tuning (man_made=tower types, man_made=chimney, man_made=communications_tower)
- tourism=information types rendering and tuning (information=audioguide, board, guidepost, map, office, tactile_map, tactile_model and terminal)
- Added rendering for place=quarter
- Added rendering of historic=city_gate
Expand Down Expand Up @@ -225,7 +225,7 @@
### Changes
- Change sports_centre and stadium color to light green
- Change shades of green for landuse/leisure=recreation_ground and garden
- Do not render glaciers and icesheets on z6 and z7
- Do not render glaciers and icesheets on z6 and z7
- Do not render very small water areas on low zoom
- Do not render small national parks and nature reserves
- Do not render ferries on z7
Expand All @@ -243,9 +243,9 @@
- Changing parking color from yellow to gray

### Changes
- Unified rendering of leisure=fitness_station and leisure=fitness_centre
- Unified rendering of leisure=fitness_station and leisure=fitness_centre
- Rendering of military=bunker
- Rendering all station buildings as major buildings
- Rendering all station buildings as major buildings
- Text wrapping for station labels
- Changing windmill color from amenity brown to man_made gray
- Some other documentation and code changes
Expand All @@ -257,12 +257,12 @@

### Changes
- Rendering of amenity=marketplace
- Rendering of landuse=religious
- Rendering of landuse=religious
- Rendering shop=pastry like shop=confectionery
- Rendering of addr:unit
- Rendering natural=bare_rock earlier
- Rendering elevation also on polygon alpine_hut and shelter
- Introducing Noto Sans Arabic
- Introducing Noto Sans Arabic
- Rendering icon for slipway ways
- Better minimal distance between housenumbers
- Moving aeroways to their own layer
Expand Down Expand Up @@ -298,7 +298,7 @@
- Plaque rendering is now different and moved to z19
- Rendering railway labels
- Smaller line spaces in labels
- Junction names on areas
- Junction names on areas
- Area color for railway=station is the same as for railways
- Database perfomance tuning available for Docker
- Different patterns and all remaining icons moved to SVG
Expand Down
8 changes: 4 additions & 4 deletions DOCKER.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Once you have that file put it into the openstreetmap-carto directory and run `d
This starts the PostgreSQL container (downloads it if it not exists) and starts a container that runs [osm2pgsql](https://github.com/openstreetmap/osm2pgsql) to import the data. The container is built the first time you run that command if it not exists.
At startup of the container the script `scripts/docker-startup.sh` is invoked which prepares the database and itself starts osm2pgsql for importing the data.

osm2pgsql has a few [command line options](https://manpages.debian.org/testing/osm2pgsql/osm2pgsql.1.en.html) and the import by default uses a RAM cache of 512 MB, 1 worker and expects the import file to be named `data.osm.pbf`. If you want to customize any of these parameters you have to set the environment variables `OSM2PGSQL_CACHE` (e.g. `export OSM2PGSQL_CACHE=1024` on Linux to set the cache to 1 GB) for the RAM cache (the value depends on the amount of RAM you have available, the more you can use here the faster the import may be), `OSM2PGSQL_NUMPROC` for the number of workers (this depends on the number of processors you have and whether your harddisk is fast enough e.g. is a SSD), or `OSM2PGSQL_DATAFILE` if your file has a different name.
osm2pgsql has a few [command line options](https://manpages.debian.org/testing/osm2pgsql/osm2pgsql.1.en.html) and the import by default uses a RAM cache of 512 MB, 1 worker and expects the import file to be named `data.osm.pbf`. If you want to customize any of these parameters you have to set the environment variables `OSM2PGSQL_CACHE` (e.g. `export OSM2PGSQL_CACHE=1024` on Linux to set the cache to 1 GB) for the RAM cache (the value depends on the amount of RAM you have available, the more you can use here the faster the import may be), `OSM2PGSQL_NUMPROC` for the number of workers (this depends on the number of processors you have and whether your harddisk is fast enough e.g. is a SSD), or `OSM2PGSQL_DATAFILE` if your file has a different name.

You can also [tune the PostgreSQL](https://wiki.postgresql.org/wiki/Tuning_Your_PostgreSQL_Server) during the import phases, with `PG_WORK_MEM` (default to 16MB) and `PG_MAINTENANCE_WORK_MEM` (default to 256MB), which will eventually write `work_mem` and `maintenance_work_mem` to the `postgresql.auto.conf` once, making them applied each time the database started. Note that unlike osm2pgsql variables, once thay are set, you can only change them by running `ALTER SYSTEM` on your own, changing `postgresql.auto.conf` or remove the database volume by `docker-compose down -v && docker-compose rm -v` and import again.

Expand All @@ -50,7 +50,7 @@ If you want to customize and remember the values, supply it during your first im
PG_WORK_MEM=128MB PG_MAINTENANCE_WORK_MEM=2GB \
OSM2PGSQL_CACHE=2048 OSM2PGSQL_NUMPROC=4 \
OSM2PGSQL_DATAFILE=taiwan.osm.pbf \
docker-compose up import
docker-compose up import
```

Variables will be remembered in `.env` if you don't have that file, and values in the file will be applied unless you manually assign them.
Expand All @@ -71,8 +71,8 @@ After startup is complete you can browse to [http://localhost:6789](http://local

Importing the data needs a substantial amount of RAM in the virtual machine. If you find the import process (Reading in file: data.osm.pbf, Processing) being _killed_ by the Docker demon, exiting with error code 137, increase the Memory assigned to Docker (e.g. macOS: Docker Preferences / Windows: Docker Settings > Advanced > Adjust the computing resources).

Docker copies log files from the virtual machine into the host system, their [location depends on the host OS](https://stackoverflow.com/questions/30969435/where-is-the-docker-daemon-log). E.g. the 'console-ring' appears to be a ringbuffer of the console log, which can help to find reasons for killings.
Docker copies log files from the virtual machine into the host system, their [location depends on the host OS](https://stackoverflow.com/questions/30969435/where-is-the-docker-daemon-log). E.g. the 'console-ring' appears to be a ringbuffer of the console log, which can help to find reasons for killings.

While installing software in the containers and populating the database, the disk image of the virtual machine grows in size, by Docker allocating more clusters. When the disk on the host system is full (only a few MB remaining), Docker can appear stuck. Watch the system log files of your host system for failed allocations.

Docker stores its disk image by default in the home directories of the user. If you don't have enough space here, you can move it elsewhere. (E.g. macOS: Docker > Preferences > Disk).
Docker stores its disk image by default in the home directories of the user. If you don't have enough space here, you can move it elsewhere. (E.g. macOS: Docker > Preferences > Disk).
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ RUN apt-get update && apt-get install --no-install-recommends -y \
# npm prefix to /usr/local, which breaks the install
RUN npm set prefix /usr && npm install -g kosmtik

WORKDIR /usr/lib/node_modules/kosmtik/
WORKDIR /usr/lib/node_modules/kosmtik/
RUN kosmtik plugins --install kosmtik-overpass-layer \
--install kosmtik-fetch-remote \
--install kosmtik-overlay \
--install kosmtik-open-in-josm \
--install kosmtik-map-compare \
--install kosmtik-map-compare \
--install kosmtik-osm-data-overlay \
--install kosmtik-mapnik-reference \
--install kosmtik-geojson-overlay \
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ are updated from each point release. They supersede the previous [XML-based styl

# Installation

You need a PostGIS database populated with OpenStreetMap data along with auxillary shapefiles.
You need a PostGIS database populated with OpenStreetMap data along with auxillary shapefiles.
See [INSTALL.md](INSTALL.md).

# Contributing
Expand Down Expand Up @@ -66,7 +66,7 @@ these often make it easier to customise, experience has shown that over-cleverne
## Database schema change (v4.x)

The v4.x series includes [osm2pgsql lua transforms](https://github.com/openstreetmap/osm2pgsql/blob/master/docs/lua.md)
and a hstore column with all other tags, allowing use of more OpenStreetMap data. Users need
and a hstore column with all other tags, allowing use of more OpenStreetMap data. Users need
to reload their databases, v3.x compatibility is not maintained.

There are over [300 open requests][issues], some that have been open for years.
Expand Down
10 changes: 5 additions & 5 deletions RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,16 @@ Decide among the maintainers if a new release is due.
Dear all,
Today, $NEW_VERSION of the OpenStreetMap Carto stylesheet (the default
stylesheet on the OSM website) has been released. Once changes are deployed
on the openstreetmap.org it will take couple of days before all tiles
stylesheet on the OSM website) has been released. Once changes are deployed
on the openstreetmap.org it will take couple of days before all tiles
show the new rendering.
If the tile server admins have rolled out the new version, change it to:
Today, $NEW_VERSION of the OpenStreetMap Carto stylesheet (the default
stylesheet on the OSM website) has been released and rolled out
to the openstreetmap.org servers. It might take a couple of days
before all tiles show the new rendering.
stylesheet on the OSM website) has been released and rolled out
to the openstreetmap.org servers. It might take a couple of days
before all tiles show the new rendering.
Changes include
*A list of changes*
Expand Down
36 changes: 18 additions & 18 deletions amenity-points.mss
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@
marker-file: url('symbols/tourism/information.svg');
[information = 'audioguide'] {
marker-file: url('symbols/tourism/audioguide.svg');
}
}
[information = 'board'] {
marker-file: url('symbols/tourism/board.svg');
}
Expand Down Expand Up @@ -498,7 +498,7 @@
marker-clip: false;
["tower:type" = 'lighting'] {
marker-file: url('symbols/man_made/mast_lighting.svg');
}
}
["tower:type" = 'communication'] {
marker-file: url('symbols/man_made/mast_communications.svg');
}
Expand All @@ -523,7 +523,7 @@
}
["tower:type" = 'observation'],
["tower:type" = 'watchtower'] {
marker-file: url('symbols/man_made/tower_observation.svg');
marker-file: url('symbols/man_made/tower_observation.svg');
}
["tower:type" = 'bell_tower'] {
marker-file: url('symbols/man_made/bell_tower.svg');
Expand Down Expand Up @@ -557,7 +557,7 @@
["tower:construction" = 'lattice'] {
marker-file: url('symbols/man_made/tower_lattice_lighting.svg');
}
}
}
}
}

Expand All @@ -567,7 +567,7 @@
marker-placement: interior;
marker-clip: false;
}

[feature = 'man_made_chimney'] {
[zoom >= 16][height > 50],
[zoom >= 17][height > 30],
Expand Down Expand Up @@ -787,7 +787,7 @@
marker-placement: interior;
marker-clip: false;
}

[feature = 'historic_wayside_shrine'][zoom >= 17] {
marker-file: url('symbols/historic/shrine.svg');
marker-fill: @man-made-icon;
Expand Down Expand Up @@ -1069,7 +1069,7 @@
[shop = 'bookmaker'][zoom >= 18] {
marker-file: url('symbols/shop/bookmaker.svg');
}

[shop = 'books'][zoom >= 18] {
marker-file: url('symbols/amenity/library.svg');
}
Expand Down Expand Up @@ -1183,7 +1183,7 @@
[shop = 'hifi'][zoom >= 18] {
marker-file: url('symbols/shop/hifi.svg');
}

[shop = 'houseware'][zoom >= 18] {
marker-file: url('symbols/shop/houseware.svg');
}
Expand Down Expand Up @@ -1268,7 +1268,7 @@
marker-file: url('symbols/shop/massage.svg');
marker-fill: @leisure-green;
}

[shop = 'medical_supply'][zoom >= 18]{
marker-file: url('symbols/shop/medical_supply.svg');
}
Expand Down Expand Up @@ -1334,15 +1334,15 @@
[shop = 'ticket'][zoom >= 18] {
marker-file: url('symbols/shop/ticket.svg');
}

[shop = 'trade'][zoom >= 18] {
marker-file: url('symbols/shop/trade.svg');
}
}

[shop = 'wholesale'][zoom >= 18] {
marker-file: url('symbols/shop/trade.svg');
}
}

[shop = 'tyres'][zoom >= 18] {
marker-file: url('symbols/shop/tyres.svg');
}
Expand Down Expand Up @@ -1707,7 +1707,7 @@
marker-file: url('symbols/barrier/stile.svg');
marker-fill: #3f3f3f;
marker-placement: interior;
marker-clip: false;
marker-clip: false;
}

[feature = 'barrier_motorcycle_barrier'][zoom >= 17]::barrier {
Expand Down Expand Up @@ -2611,7 +2611,7 @@
text-placement: interior;
text-face-name: @standard-font;
}

[feature = 'tourism_alpine_hut'][zoom >= 14],
[feature = 'amenity_shelter'][zoom >= 17],
[feature = 'leisure_picnic_table'][zoom >= 17],
Expand Down Expand Up @@ -2855,7 +2855,7 @@
[feature = 'shop_beverages'],
[feature = 'shop_bookmaker'],
[feature = 'shop_books'],
[feature = 'shop_carpet'],
[feature = 'shop_carpet'],
[feature = 'shop_charity'],
[feature = 'shop_clothes'],
[feature = 'shop_coffee'],
Expand Down Expand Up @@ -3329,7 +3329,7 @@
text-repeat-distance: @waterway-text-repeat-distance;
text-dy: 8;
}
}
}
}

[feature = 'attraction_water_slide'] {
Expand Down
4 changes: 2 additions & 2 deletions landcover.mss
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@

[feature = 'leisure_swimming_pool'][zoom >= 14] {
polygon-fill: @water-color;
[zoom >= 17] {
line-width: 0.5;
[zoom >= 17] {
line-width: 0.5;
line-color: saturate(darken(@water-color, 20%), 20%);
}
[way_pixels >= 4] { polygon-gamma: 0.75; }
Expand Down
2 changes: 1 addition & 1 deletion placenames.mss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
@state-labels: desaturate(darken(@admin-boundaries, 5%), 20%);

.country {
[zoom >= 3][zoom < 5][way_pixels > 1000],
[zoom >= 3][zoom < 5][way_pixels > 1000],
[zoom >= 5][way_pixels < 360000] {
text-name: "[name]";
text-size: 10;
Expand Down
Loading

0 comments on commit 6684f0a

Please sign in to comment.