Skip to content

OSM Layers and Sub layers

jorgenevil edited this page Jan 16, 2015 · 21 revisions

Landusages:

Table: osm_landusages
CartoCSS ID: #landusages

#####[type]:

pedestrian
footway
playground
park
forest
cemetery
farmyard
farm
farmland
wood
meadow
grass
wetland
village_green
recreation_ground
garden
sports_centre
pitch
common
allotments
golf_course
university
school
college
library
baracks
fuel
parking
nature_reserve
cinema
theatre
place_of_worship
hospital
scrub
orchard
vineyard
zoo
quarry
residential
retail
commercial
industrial
railway
heath
island
land

Buildings:

Table: osm_buildings
CartoCSS ID: #buildings

#####[type]:

house
castle
residential
university
school
hospital
public
hall
office
garage
stadium
commercial
barn
church
wall
construction
industrial
greenhouse
apartments
roof
station
supermarket
retail
cabin
manufacture
museum
club_house
mall
silo
hangar
factory
parking
hotel
detached
dormitory
terrace
houseboat
static_caravan
warehouse
cathedral
chapel
mosque
temple
synagogue
shrine
civic
train_station
transportation
bridge
bunker
cowshed
farm_auxiliary
garages
hut
shed
stable
sty
transformer_tower
yes

Places:

Table: osm_places
CartoCSS ID: #places

#####[type]:

country
state
region
county
city
town
village
hamlet
suburb
locality

Transport Areas:

Table: osm_transport_areas
CartoCSS ID: #transport_areas

#####[type]:

station
platform
aerodrome
apron
helipad
terminal

Admin:

Table: osm_admin
CartoCSS ID: #admin

#####[type]: administrative (all entries are of this type, so does not apply.)

#####[admin_level]: only from 1-10 (see reference here)

Norway: 
4 = fylker    
7 = kommuner
9 = bydeler i Oslo

Aeroways:

Table: osm_aeroways
CartoCSS ID: #aeroways

#####[type]:

runway
taxiway

Waterways:

Table: osm_waterways
CartoCSS ID: #waterways

#####[type]:

stream
river
canal
drain
ditch  

Barrierways:

Table: osm_barrierways
CartoCSS ID: #barrierways

#####[type]:

 city_wall
 fence
 hedge
 retaining_wall
 wall
 bollard
 gate
 spikes
 lift_gate
 kissing_gate
 embankment
 yes
 wire_fence

Transport Points:

Table: osm_transport_points
CartoCSS ID: #transport_points

#####[type]:

station
halt
tram_stop
crossing
level_crossing
subway_entranc
aeroway
aerodrome
terminal
helipad
gate
highway
motorway_junction
turning_circle
bus_stop

Amenities:

Table: osm_amenities
CartoCSS ID: #amenities

#####[type]:

university
school
library
fuel
hospital
fire_station
police
townhall

Barrier Points:

Table: osm_barrierpoints
CartoCSS ID: #barrierpoints

#####[type]:

block
bollard
cattle_grid
chain
cycle_barrier
entrance
horse_stile
gate
spikes
lift_gate
kissing_gate
fence
yes
wire_fence
toll_booth
stile

Housenumbers interpolated:

Table: osm_housenumbers_interpolated
CartoCSS ID: #housenumbers_interpolated

#####[type]:

odd/even

#####[text]:

addr:street
addr:postcode
addr:city
addr:inclusion  

Housenumbers:

Table: osm_housenumbers
CartoCSS ID: #housenumbers

#####[type]:
type = housenumber

#####[text]: addr:street addr:postcode addr:city

Roads:

Table: osm_roads
CartoCSS ID: #roads

#####[type]:

motorway
motorway_link
trunk
trunk_link
primary
primary_link
secondary
secondary_link
tertiary
tertiary_link
road
path
track
service
footway
bridleway
cycleway
steps
pedestrian
living_street
unclassified
residential
raceway

Waterareas:

Table: osm_waterareas CartoCSS ID: #waterareas

#####[type]: riverbank reservoir water swimming_pool

#Blank stylesheet

// ╔═╗╦ ╦╔═╗╔╦╗╔═╗╔╦╗╔═╗╔═╗╦╔═╗  ╔═╗╔═╗╔╦╗
// ╚═╗╚╦╝╚═╗ ║ ║╣ ║║║╠═╣╠═╝║║    ║ ║╚═╗║║║
// ╚═╝ ╩ ╚═╝ ╩ ╚═╝╩ ╩╩ ╩╩  ╩╚═╝  ╚═╝╚═╝╩ ╩

// CartoCSS reference guide:
// https://bit.ly/1z5OvXT

// ┬ ┬┌┐┌┬┬  ┬┌─┐┬─┐┌─┐┌─┐┬  ┌─┐
// │ │││││└┐┌┘├┤ ├┬┘└─┐├─┤│  └─┐
// └─┘┘└┘┴ └┘ └─┘┴└─└─┘┴ ┴┴─┘└─┘

@land:              #f1f4ca;
@waterLight:        #549ab3;
@waterDark:         #3b596a;
@motorway:          #fc8;
@main:              #fea;
@street:            #fff;
@street_limited:    #f3f3f3;
@buildingColor:     #aeadad;
@wood:              #00921e;
@ice:               #07b3c3;


// ┌┐ ┌─┐┌─┐┌─┐┬─┐┌─┐┬ ┬┌┐┌┌┬┐
// ├┴┐├─┤│  │ ┬├┬┘│ ││ ││││ ││
// └─┘┴ ┴└─┘└─┘┴└─└─┘└─┘┘└┘─┴┘

Map {}

// ┬  ┌─┐┌┐┌┌┬┐
// │  ├─┤│││ ││
// ┴─┘┴ ┴┘└┘─┴┘

#land-low[zoom>=0][zoom<10],
#land-high[zoom>=10] {
}


// ┌─┐┬  ┌─┐┌─┐┬┌─┐┬─┐┌─┐
// │ ┬│  ├─┤│  │├┤ ├┬┘└─┐
// └─┘┴─┘┴ ┴└─┘┴└─┘┴└─└─┘

#glaciers {}


// ┌┐ ┌─┐┌┬┐┬ ┬┬ ┬┌┬┐┌─┐┌┬┐┬─┐┬ ┬
// ├┴┐├─┤ │ ├─┤└┬┘│││├┤  │ ├┬┘└┬┘
// └─┘┴ ┴ ┴ ┴ ┴ ┴ ┴ ┴└─┘ ┴ ┴└─ ┴ 

#bathymetry {}


// ┬  ┌─┐┌┐┌┌┬┐┬ ┬┌─┐┌─┐
// │  ├─┤│││ │││ │└─┐├┤ 
// ┴─┘┴ ┴┘└┘─┴┘└─┘└─┘└─┘

#landusages {

	[type="pedestrian"] {}
	[type="footway"] {}
	[type="playground"] {}
	[type="park"] {}
	[type="forest"] {}
	[type="cemetery"] {}
	[type="farmyard"] {}
	[type="farm"] {}
	[type="farmland"] {}
	[type="wood"] {}
	[type="meadow"] {}
	[type="grass"] {}
	[type="wetland"] {}
	[type="village_green"] {}
	[type="recreation_ground"] {}
	[type="garden"] {}
	[type="sports_centre"] {}
	[type="pitch"] {}
	[type="common"] {}
	[type="allotments"] {}
	[type="golf_course"] {}
	[type="university"] {}
	[type="school"] {}
	[type="college"] {}
	[type="library"] {}
	[type="baracks"] {}
	[type="fuel"] {}
	[type="parking"] {}
	[type="nature_reserve"] {}
	[type="cinema"] {}
	[type="theatre"] {}
	[type="place_of_worship"] {}
	[type="hospital"] {}
	[type="scrub"] {}
	[type="orchard"] {}
	[type="vineyard"] {}
	[type="zoo"] {}
	[type="quarry"] {}
	[type="residential"] {}
	[type="retail"] {}
	[type="commercial"] {}
	[type="industrial"] {}
	[type="railway"] {}
	[type="heath"] {}
	[type="island"] {}
	[type="land"] {}
}


// ┌┐ ┬ ┬┬┬  ┌┬┐┬┌┐┌┌─┐┌─┐
// ├┴┐│ │││   │││││││ ┬└─┐
// └─┘└─┘┴┴─┘─┴┘┴┘└┘└─┘└─┘

#buildings {

	[type="house"] {}
	[type="castle"] {}
	[type="residential"] {}
	[type="university"] {}
	[type="school"] {}
	[type="hospital"] {}
	[type="public"] {}
	[type="hall"] {}
	[type="office"] {}
	[type="garage"] {}
	[type="stadium"] {}
	[type="commercial"] {}
	[type="barn"] {}
	[type="church"] {}
	[type="wall"] {}
	[type="construction"] {}
	[type="industrial"] {}
	[type="greenhouse"] {}
	[type="apartments"] {}
	[type="roof"] {}
	[type="station"] {}
	[type="supermarket"] {}
	[type="retail"] {}
	[type="cabin"] {}
	[type="manufacture"] {}
	[type="museum"] {}
	[type="club_house"] {}
	[type="mall"] {}
	[type="silo"] {}
	[type="hangar"] {}
	[type="factory"] {}
	[type="parking"] {}
	[type="hotel"] {}
	[type="detached"] {}
	[type="dormitory"] {}
	[type="terrace"] {}
	[type="houseboat"] {}
	[type="static_caravan"] {}
	[type="warehouse"] {}
	[type="cathedral"] {}
	[type="chapel"] {}
	[type="mosque"] {}
	[type="temple"] {}
	[type="synagogue"] {}
	[type="shrine"] {}
	[type="civic"] {}
	[type="train_station"] {}
	[type="transportation"] {}
	[type="bridge"] {}
	[type="bunker"] {}
	[type="cowshed"] {}
	[type="farm_auxiliary"] {}
	[type="garages"] {}
	[type="hut"] {}
	[type="shed"] {}
	[type="stable"] {}
	[type="sty"] {}
	[type="transformer_tower"] {}
	[type="yes"] {}

}


// ┬─┐┌─┐┌─┐┌┬┐┌─┐
// ├┬┘│ │├─┤ ││└─┐
// ┴└─└─┘┴ ┴─┴┘└─┘

#roads {

	[type="motorway"] {}
	[type="motorway_link"] {}
	[type="trunk"]	{}
	[type="trunk_link"] {}
	[type="primary"] {}
	[type="primary_link"] {}
	[type="secondary"] {}
	[type="secondary_link"] {}
	[type="tertiary"] {}
	[type="tertiary_link"] {}
	[type="road"] {}
	[type="path"] {}
	[type="track"] {}
	[type="service"] {}
	[type="footway"] {}
	[type="bridleway"] {}
	[type="cycleway"] {}
	[type="steps"] {}
	[type="pedestrian"] {}
	[type="living_street"] {}
	[type="unclassified"] {}
	[type="residential"] {}
	[type="raceway"] {}

}


// ┌┐ ┌─┐┬─┐┬─┐┬┌─┐┬─┐┬ ┬┌─┐┬ ┬┌─┐
// ├┴┐├─┤├┬┘├┬┘│├┤ ├┬┘│││├─┤└┬┘└─┐
// └─┘┴ ┴┴└─┴└─┴└─┘┴└─└┴┘┴ ┴ ┴ └─┘

#barrierways {
	[type="city_wall"] {}
	[type="fence"] {}
	[type="hedge"] {}
	[type="retaining_wall"] {}
	[type="wall"] {}
	[type="bollard"] {}
	[type="gate"] {}
	[type="spikes"] {}
	[type="lift_gate"] {}
	[type="kissing_gate"] {}
	[type="embankment"] {}
	[type="yes"] {}
	[type="wire_fence"] {}
}


// ┌┐ ┌─┐┬─┐┬─┐┬┌─┐┬─┐┌─┐┌─┐┬┌┐┌┌┬┐┌─┐
// ├┴┐├─┤├┬┘├┬┘│├┤ ├┬┘├─┘│ │││││ │ └─┐
// └─┘┴ ┴┴└─┴└─┴└─┘┴└─┴  └─┘┴┘└┘ ┴ └─┘

#barrierpoints {

	[type="block"] {}
	[type="bollard"] {}
	[type="cattle_grid"] {}
	[type="chain"] {}
	[type="cycle_barrier"] {}
	[type="entrance"] {}
	[type="horse_stile"] {}
	[type="gate"] {}
	[type="spikes"] {}
	[type="lift_gate"] {}
	[type="kissing_gate"] {}
	[type="fence"] {}
	[type="yes"] {}
	[type="wire_fence"] {}
	[type="toll_booth"] {}
	[type="stile"] {}

}


// ┌┬┐┬─┐┌─┐┌┐┌┌─┐┌─┐┌─┐┬─┐┌┬┐  ┌─┐┌─┐┬┌┐┌┌┬┐┌─┐
//  │ ├┬┘├─┤│││└─┐├─┘│ │├┬┘ │   ├─┘│ │││││ │ └─┐
//  ┴ ┴└─┴ ┴┘└┘└─┘┴  └─┘┴└─ ┴   ┴  └─┘┴┘└┘ ┴ └─┘

#transport_points {
	
	[type="station"] {}
	[type="halt"] {}
	[type="tram_stop"] {}
	[type="crossing"] {}
	[type="level_crossing"] {}
	[type="subway_entranc"] {}
	[type="aeroway"] {}
	[type="aerodrome"] {}
	[type="terminal"] {}
	[type="helipad"] {}
	[type="gate"] {}
	[type="highway"] {}
	[type="motorway_junction"] {}
	[type="turning_circle"] {}
	[type="bus_stop	"] {}
}


// ┌─┐┌┬┐┌─┐┌┐┌┬┌┬┐┬┌─┐┌─┐
// ├─┤│││├┤ ││││ │ │├┤ └─┐
// ┴ ┴┴ ┴└─┘┘└┘┴ ┴ ┴└─┘└─┘

#amenities {

	[type="university"] {}
	[type="school"] {}
	[type="library"] {}
	[type="fuel"] {}
	[type="hospital"] {}
	[type="fire_station"] {}
	[type="police"] {}
	[type="townhall	"] {}
}


// ┬ ┬┌─┐┬ ┬┌─┐┌─┐┌┐┌┬ ┬┌┬┐┌┐ ┌─┐┬─┐┌─┐
// ├─┤│ ││ │└─┐├┤ ││││ ││││├┴┐├┤ ├┬┘└─┐
// ┴ ┴└─┘└─┘└─┘└─┘┘└┘└─┘┴ ┴└─┘└─┘┴└─└─┘

#housenumbers {}
#housenumbers_interpolated {}


// ┌─┐┌┬┐┌┬┐┬┌┐┌
// ├─┤ │││││││││
// ┴ ┴─┴┘┴ ┴┴┘└┘

#admin {

	[admin_level>=0] {}
	[admin_level<=10] {}
}


// ┌┬┐┬─┐┌─┐┌┐┌┌─┐┌─┐┌─┐┬─┐┌┬┐  ┌─┐┬─┐┌─┐┌─┐┌─┐
//  │ ├┬┘├─┤│││└─┐├─┘│ │├┬┘ │   ├─┤├┬┘├┤ ├─┤└─┐
//  ┴ ┴└─┴ ┴┘└┘└─┘┴  └─┘┴└─ ┴   ┴ ┴┴└─└─┘┴ ┴└─┘

#transport_areas {
	
	[type="station"] {}
	[type="platform"] {}
	[type="aerodrome"] {}
	[type="apron"] {}
	[type="helipad"] {}
	[type="terminal"] {}

}


// ┌─┐┬  ┌─┐┌─┐┌─┐┌─┐
// ├─┘│  ├─┤│  ├┤ └─┐
// ┴  ┴─┘┴ ┴└─┘└─┘└─┘

#places {

	[type="country"] {}
	[type="state"] {}
	[type="region"] {}
	[type="county"] {}
	[type="city"] {}
	[type="town"] {}
	[type="village"] {}
	[type="hamlet"] {}
	[type="suburb"] {}
	[type="locality	"] {}

}


// ┬ ┬┌─┐┌┬┐┌─┐┬─┐┬ ┬┌─┐┬ ┬┌─┐
// │││├─┤ │ ├┤ ├┬┘│││├─┤└┬┘└─┐
// └┴┘┴ ┴ ┴ └─┘┴└─└┴┘┴ ┴ ┴ └─┘

#waterways {
	
	[type="stream"] {}
	[type="river"] {}
	[type="canal"] {}
	[type="drain"] {}
	[type="ditch"] {}
}


// ┌─┐┌─┐┬─┐┌─┐┬ ┬┌─┐┬ ┬┌─┐
// ├─┤├┤ ├┬┘│ ││││├─┤└┬┘└─┐
// ┴ ┴└─┘┴└─└─┘└┴┘┴ ┴ ┴ └─┘

#aeroways {

	[type="runway"] {}
	[type="taxiway"] {}

}


// ┬ ┬┌─┐┌┬┐┌─┐┬─┐┌─┐┬─┐┌─┐┌─┐┌─┐
// │││├─┤ │ ├┤ ├┬┘├─┤├┬┘├┤ ├─┤└─┐
// └┴┘┴ ┴ ┴ └─┘┴└─┴ ┴┴└─└─┘┴ ┴└─┘

#waterareas {

	[type="riverbank"] {}
	[type="reservoir"] {}
	[type="water"] {}
	[type="swimming_pool"] {}

}

Clone this wiki locally