Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
189 lines (187 sloc) 5.28 KB
{
"version": 8,
"name": "natural-earth-countries",
"metadata": {
"mapbox:autocomposite": false,
"mapbox:type": "template",
"maputnik:renderer": "mbgljs"
},
"center": [
8,
38
],
"zoom": 4,
"bearing": 0,
"pitch": 0,
"sources": {
"compass": {
"type": "vector",
"tiles": ["http://localhost/cgi-bin/mapserv?map=/usr/local/share/mapserver/demos/mvt-demo-master/ne.map&mode=tile&tilemode=gmap&tile={x}+{y}+{z}&layers=all&map.imagetype=mvt"]
}
},
"sprite": "https://openmaptiles.github.io/osm-bright-gl-style/sprite",
"glyphs": "mapbox://fonts/mapbox/{fontstack}/{range}.pbf",
"layers": [{
"id": "background",
"type": "background",
"paint": {
"background-color": "#ddeeff"
}
},
{
"id": "country-glow-outer",
"type": "line",
"source": "compass",
"source-layer": "allcountries",
"layout": {
"line-join":"round"
},
"paint": {
"line-color": "#226688",
"line-width": 5,
"line-opacity": {
"stops": [[0,0],[1,0.1]]
}
}
},{
"id": "country-glow-inner",
"type": "line",
"source": "compass",
"source-layer": "allcountries",
"layout": {
"line-join":"round"
},
"paint": {
"line-color": "#226688",
"line-width": {
"stops": [[0,1.2],[1,1.6],[2,2],[3,2.4]]
},
"line-opacity": 0.8
}
},{
"id": "country-fill",
"type": "fill",
"source": "compass",
"source-layer": "allcountries",
"paint": {
"fill-color": {
"property": "mapcolor7",
"type": "categorical",
"stops": [
["1", "#fdaf6b"],
["2", "#fdc663"],
["3", "#fae364"],
["4", "#d3e46f"],
["5", "#aadb78"],
["6", "#a3cec5"],
["7", "#ceb5cf"]
]
}
}
},{
"id": "country-fill-special",
"type": "fill",
"source": "compass",
"source-layer": "allcountries",
"filter":["in","adm0_a3","ATA"],
"paint": {
"fill-color": {
"property": "adm0_a3",
"type": "categorical",
"stops": [
["ATA", "#F0F8FF"]
]
}
}
} ,{
"id": "geo-lines",
"type": "line",
"source": "compass",
"source-layer": "geo-lines",
"paint": {
"line-color": "#226688",
"line-width": {
"stops": [[0,0.2],[4,1]]
},
"line-dasharray":[6,2]
}
},{
"id": "land-border-country",
"type": "line",
"source": "compass",
"source-layer": "land-border-country",
"paint": {
"line-color": "#fff",
"line-width": {
"base":1.5,
"stops": [[0,0],[1,0.8],[2,1]]
}
}
},{
"id": "state",
"type": "line",
"source": "compass",
"source-layer": "state",
"minzoom": 3,
"filter": ["in","adm0_a3","USA","CAN","AUS"],
"paint": {
"line-color": "#226688",
"line-opacity": 0.25,
"line-dasharray":[6,2,2,2],
"line-width": 1.2
}
},{
"id": "country-abbrev",
"type": "symbol",
"source": "compass",
"source-layer": "country-name",
"layout": {
"text-size": 12,
"text-field": ["get", "abbrev"],
"text-max-width": 5,
"text-rotation-alignment": "map",
"text-letter-spacing": 0.2,
"symbol-spacing": 350
},
"paint": {
"text-color": "#74aee9",
"text-halo-width": 1.5,
"text-halo-color": "rgba(255,255,255,0.7)"
}
},{
"id": "country-name",
"type": "symbol",
"source": "compass",
"source-layer": "country-name",
"minzoom":3,
"layout": {
"text-size": 12,
"text-field": "{name}",
"text-max-width": 5,
"text-rotation-alignment": "map",
"text-letter-spacing": 0.2,
"symbol-spacing": 350
},
"paint": {
"text-color": "#74aee9",
"text-halo-width": 1.5,
"text-halo-color": "rgba(255,255,255,0.7)"
}
},{
"id": "geo-lines-lables",
"type": "symbol",
"source": "compass",
"source-layer": "geo-lines",
"layout": {
"text-field": ["get", "name"],
"text-offset": [0,1],
"symbol-placement": "line",
"symbol-spacing": 600,
"text-size": 9
},
"paint": {
"text-color": "#226688",
"text-halo-width": 1.5
}
}]
}
You can’t perform that action at this time.