Skip to content

Commit

Permalink
Styles compatibility with OSM2VectorTiles
Browse files Browse the repository at this point in the history
  • Loading branch information
klokan committed Feb 29, 2016
1 parent 10068a0 commit 9b9d3ff
Show file tree
Hide file tree
Showing 6 changed files with 298 additions and 1,617 deletions.
21 changes: 8 additions & 13 deletions styles/basic-v8.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
"sources": {
"mapbox": {
"type": "vector",
"url": "mapbox://mapbox.mapbox-streets-v6"
"url": "http://osm2vectortiles.tileserver.com/v1.json"

This comment has been minimized.

Copy link
@klokan

klokan Mar 2, 2016

Author Member

You should use your own hosting or the free CDN at: http://maps.klokantech.com/

}
},
"sprite": "mapbox://sprites/mapbox/basic-v8",
"glyphs": "mapbox://fonts/mapbox/{fontstack}/{range}.pbf",
"sprite": "sprites/basic-v8",
"glyphs": "glyphs/{fontstack}/{range}.pbf",
"layers": [
{
"id": "background",
Expand Down Expand Up @@ -515,8 +515,7 @@
],
"text-field": "{name_en}",
"text-font": [
"Open Sans Semibold",
"Arial Unicode MS Bold"
"Open Sans Semibold"
],
"text-max-width": 8,
"text-anchor": "top",
Expand Down Expand Up @@ -553,8 +552,7 @@
"symbol-placement": "line",
"text-field": "{name_en}",
"text-font": [
"Open Sans Semibold",
"Arial Unicode MS Bold"
"Open Sans Semibold"
],
"text-transform": "uppercase",
"text-letter-spacing": 0.1,
Expand Down Expand Up @@ -604,8 +602,7 @@
"layout": {
"text-field": "{name_en}",
"text-font": [
"Open Sans Semibold",
"Arial Unicode MS Bold"
"Open Sans Semibold"
],
"text-max-width": 6,
"text-size": {
Expand Down Expand Up @@ -650,8 +647,7 @@
"layout": {
"text-field": "{name_en}",
"text-font": [
"Open Sans Bold",
"Arial Unicode MS Bold"
"Open Sans Bold"
],
"text-max-width": 10,
"text-size": {
Expand Down Expand Up @@ -688,8 +684,7 @@
"layout": {
"text-field": "{name_en}",
"text-font": [
"Open Sans Regular",
"Arial Unicode MS Regular"
"Open Sans Regular"
],
"text-max-width": 10,
"text-size": {
Expand Down
75 changes: 26 additions & 49 deletions styles/bright-v8.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
"name": "Bright",
"sources": {
"mapbox": {
"url": "mapbox://mapbox.mapbox-streets-v6",
"url": "http://osm2vectortiles.tileserver.com/v1.json",
"type": "vector"
}
},
"sprite": "mapbox://sprites/mapbox/bright-v8",
"glyphs": "mapbox://fonts/mapbox/{fontstack}/{range}.pbf",
"sprite": "sprites/bright-v8",
"glyphs": "glyphs/{fontstack}/{range}.pbf",
"layers": [
{
"id": "background",
Expand Down Expand Up @@ -1865,8 +1865,7 @@
{
"layout": {
"text-font": [
"Open Sans Italic",
"Arial Unicode MS Regular"
"Open Sans Italic"
],
"text-field": "{name_en}",
"text-max-width": 5,
Expand All @@ -1892,8 +1891,7 @@
"layout": {
"icon-image": "{maki}-12",
"text-font": [
"Open Sans Semibold",
"Arial Unicode MS Bold"
"Open Sans Semibold"
],
"text-field": "{name_en}",
"text-max-width": 9,
Expand Down Expand Up @@ -1934,8 +1932,7 @@
"layout": {
"icon-image": "{maki}-12",
"text-font": [
"Open Sans Semibold",
"Arial Unicode MS Bold"
"Open Sans Semibold"
],
"text-field": "{name_en}",
"text-max-width": 9,
Expand Down Expand Up @@ -1976,8 +1973,7 @@
"layout": {
"icon-image": "{maki}-12",
"text-font": [
"Open Sans Semibold",
"Arial Unicode MS Bold"
"Open Sans Semibold"
],
"text-field": "{name_en}",
"text-max-width": 9,
Expand Down Expand Up @@ -2018,8 +2014,7 @@
"layout": {
"icon-image": "{maki}-12",
"text-font": [
"Open Sans Semibold",
"Arial Unicode MS Bold"
"Open Sans Semibold"
],
"text-field": "{name_en}",
"text-max-width": 9,
Expand Down Expand Up @@ -2058,8 +2053,7 @@
{
"layout": {
"text-font": [
"Open Sans Regular",
"Arial Unicode MS Regular"
"Open Sans Regular"
],
"text-field": "{name_en}",
"symbol-placement": "line",
Expand Down Expand Up @@ -2098,8 +2092,7 @@
"icon-image": "motorway_{reflen}",
"text-field": "{ref}",
"text-font": [
"Open Sans Semibold",
"Arial Unicode MS Bold"
"Open Sans Semibold"
],
"text-rotation-alignment": "viewport",
"icon-rotation-alignment": "viewport",
Expand Down Expand Up @@ -2135,8 +2128,7 @@
{
"layout": {
"text-font": [
"Open Sans Bold",
"Arial Unicode MS Bold"
"Open Sans Bold"
],
"text-transform": "uppercase",
"text-letter-spacing": 0.1,
Expand Down Expand Up @@ -2176,8 +2168,7 @@
{
"layout": {
"text-font": [
"Open Sans Regular",
"Arial Unicode MS Regular"
"Open Sans Regular"
],
"text-field": "{name_en}",
"text-max-width": 8,
Expand Down Expand Up @@ -2213,8 +2204,7 @@
{
"layout": {
"text-font": [
"Open Sans Regular",
"Arial Unicode MS Regular"
"Open Sans Regular"
],
"text-field": "{name_en}",
"text-max-width": 8,
Expand Down Expand Up @@ -2250,8 +2240,7 @@
{
"layout": {
"text-font": [
"Open Sans Semibold",
"Arial Unicode MS Bold"
"Open Sans Semibold"
],
"text-field": "{name_en}",
"text-max-width": 8,
Expand Down Expand Up @@ -2287,8 +2276,7 @@
{
"layout": {
"text-font": [
"Open Sans Italic",
"Arial Unicode MS Regular"
"Open Sans Italic"
],
"text-field": "{name_en}",
"text-letter-spacing": 0.2,
Expand Down Expand Up @@ -2333,8 +2321,7 @@
{
"layout": {
"text-font": [
"Open Sans Italic",
"Arial Unicode MS Regular"
"Open Sans Italic"
],
"text-field": "{name_en}",
"text-max-width": 6,
Expand Down Expand Up @@ -2380,8 +2367,7 @@
{
"layout": {
"text-font": [
"Open Sans Italic",
"Arial Unicode MS Regular"
"Open Sans Italic"
],
"text-field": "{name_en}",
"text-letter-spacing": 0.2,
Expand Down Expand Up @@ -2426,8 +2412,7 @@
{
"layout": {
"text-font": [
"Open Sans Italic",
"Arial Unicode MS Regular"
"Open Sans Italic"
],
"text-field": "{name_en}",
"text-max-width": 5,
Expand Down Expand Up @@ -2473,8 +2458,7 @@
{
"layout": {
"text-font": [
"Open Sans Italic",
"Arial Unicode MS Regular"
"Open Sans Italic"
],
"text-field": "{name_en}",
"text-letter-spacing": 0.2,
Expand Down Expand Up @@ -2519,8 +2503,7 @@
{
"layout": {
"text-font": [
"Open Sans Italic",
"Arial Unicode MS Regular"
"Open Sans Italic"
],
"text-field": "{name_en}",
"text-max-width": 5,
Expand Down Expand Up @@ -2566,8 +2549,7 @@
{
"layout": {
"text-font": [
"Open Sans Italic",
"Arial Unicode MS Regular"
"Open Sans Italic"
],
"text-field": "{name_en}",
"text-letter-spacing": 0.2,
Expand Down Expand Up @@ -2612,8 +2594,7 @@
{
"layout": {
"text-font": [
"Open Sans Italic",
"Arial Unicode MS Regular"
"Open Sans Italic"
],
"text-field": "{name_en}",
"text-max-width": 5,
Expand Down Expand Up @@ -2664,8 +2645,7 @@
{
"layout": {
"text-font": [
"Open Sans Bold",
"Arial Unicode MS Bold"
"Open Sans Bold"
],
"text-field": "{name_en}",
"text-max-width": 6.25,
Expand Down Expand Up @@ -2702,8 +2682,7 @@
{
"layout": {
"text-font": [
"Open Sans Bold",
"Arial Unicode MS Bold"
"Open Sans Bold"
],
"text-field": "{name_en}",
"text-max-width": 6.25,
Expand Down Expand Up @@ -2740,8 +2719,7 @@
{
"layout": {
"text-font": [
"Open Sans Bold",
"Arial Unicode MS Bold"
"Open Sans Bold"
],
"text-field": "{name_en}",
"text-max-width": 6.25,
Expand Down Expand Up @@ -2778,8 +2756,7 @@
{
"layout": {
"text-font": [
"Open Sans Bold",
"Arial Unicode MS Bold"
"Open Sans Bold"
],
"text-field": "{name_en}",
"text-max-width": 6.25,
Expand Down
Loading

0 comments on commit 9b9d3ff

Please sign in to comment.