|
| 1 | +{ |
| 2 | + "version": 8, |
| 3 | + "metadata": { |
| 4 | + "test": { |
| 5 | + "width": 200, |
| 6 | + "height": 150 |
| 7 | + } |
| 8 | + }, |
| 9 | + "sources": { |
| 10 | + "geojson": { |
| 11 | + "type": "geojson", |
| 12 | + "data": "local://geojson/anchors.json" |
| 13 | + } |
| 14 | + }, |
| 15 | + "sprite": "local://sprites/stretch", |
| 16 | + "glyphs": "local://glyphs/{fontstack}/{range}.pbf", |
| 17 | + "layers": [ |
| 18 | + { |
| 19 | + "id": "anchor-center", |
| 20 | + "type": "symbol", |
| 21 | + "source": "geojson", |
| 22 | + "filter": ["==", "anchor", "center"], |
| 23 | + "layout": { |
| 24 | + "text-field": "ASDFASDF", |
| 25 | + "text-size": 10, |
| 26 | + "text-anchor": "center", |
| 27 | + "text-font": [ "Open Sans Semibold", "Arial Unicode MS Bold" ], |
| 28 | + "text-allow-overlap": true, |
| 29 | + "text-ignore-placement": true, |
| 30 | + "icon-image": "nine-part", |
| 31 | + "icon-text-fit": "height", |
| 32 | + "icon-allow-overlap": true, |
| 33 | + "icon-ignore-placement": true |
| 34 | + } |
| 35 | + }, |
| 36 | + { |
| 37 | + "id": "anchor-left", |
| 38 | + "type": "symbol", |
| 39 | + "source": "geojson", |
| 40 | + "filter": ["==", "anchor", "left"], |
| 41 | + "layout": { |
| 42 | + "text-field": "ASDFASDF", |
| 43 | + "text-size": 10, |
| 44 | + "text-anchor": "left", |
| 45 | + "text-font": [ "Open Sans Semibold", "Arial Unicode MS Bold" ], |
| 46 | + "text-allow-overlap": true, |
| 47 | + "text-ignore-placement": true, |
| 48 | + "icon-image": "nine-part", |
| 49 | + "icon-text-fit": "height", |
| 50 | + "icon-allow-overlap": true, |
| 51 | + "icon-ignore-placement": true |
| 52 | + } |
| 53 | + }, |
| 54 | + { |
| 55 | + "id": "anchor-top-left", |
| 56 | + "type": "symbol", |
| 57 | + "source": "geojson", |
| 58 | + "filter": ["==", "anchor", "top-left"], |
| 59 | + "layout": { |
| 60 | + "text-field": "ASDFASDF", |
| 61 | + "text-size": 10, |
| 62 | + "text-anchor": "top-left", |
| 63 | + "text-font": [ "Open Sans Semibold", "Arial Unicode MS Bold" ], |
| 64 | + "text-allow-overlap": true, |
| 65 | + "text-ignore-placement": true, |
| 66 | + "icon-image": "nine-part", |
| 67 | + "icon-text-fit": "height", |
| 68 | + "icon-allow-overlap": true, |
| 69 | + "icon-ignore-placement": true |
| 70 | + } |
| 71 | + }, |
| 72 | + { |
| 73 | + "id": "anchor-top", |
| 74 | + "type": "symbol", |
| 75 | + "source": "geojson", |
| 76 | + "filter": ["==", "anchor", "top"], |
| 77 | + "layout": { |
| 78 | + "text-field": "ASDFASDF", |
| 79 | + "text-size": 10, |
| 80 | + "text-anchor": "top", |
| 81 | + "text-font": [ "Open Sans Semibold", "Arial Unicode MS Bold" ], |
| 82 | + "text-allow-overlap": true, |
| 83 | + "text-ignore-placement": true, |
| 84 | + "icon-image": "nine-part", |
| 85 | + "icon-text-fit": "height", |
| 86 | + "icon-allow-overlap": true, |
| 87 | + "icon-ignore-placement": true |
| 88 | + } |
| 89 | + }, |
| 90 | + { |
| 91 | + "id": "anchor-top-right", |
| 92 | + "type": "symbol", |
| 93 | + "source": "geojson", |
| 94 | + "filter": ["==", "anchor", "top-right"], |
| 95 | + "layout": { |
| 96 | + "text-field": "ASDFASDF", |
| 97 | + "text-size": 10, |
| 98 | + "text-anchor": "top-right", |
| 99 | + "text-font": [ "Open Sans Semibold", "Arial Unicode MS Bold" ], |
| 100 | + "text-allow-overlap": true, |
| 101 | + "text-ignore-placement": true, |
| 102 | + "icon-image": "nine-part", |
| 103 | + "icon-text-fit": "height", |
| 104 | + "icon-allow-overlap": true, |
| 105 | + "icon-ignore-placement": true |
| 106 | + } |
| 107 | + }, |
| 108 | + { |
| 109 | + "id": "anchor-right", |
| 110 | + "type": "symbol", |
| 111 | + "source": "geojson", |
| 112 | + "filter": ["==", "anchor", "right"], |
| 113 | + "layout": { |
| 114 | + "text-field": "ASDFASDF", |
| 115 | + "text-size": 10, |
| 116 | + "text-anchor": "right", |
| 117 | + "text-font": [ "Open Sans Semibold", "Arial Unicode MS Bold" ], |
| 118 | + "text-allow-overlap": true, |
| 119 | + "text-ignore-placement": true, |
| 120 | + "icon-image": "nine-part", |
| 121 | + "icon-text-fit": "height", |
| 122 | + "icon-allow-overlap": true, |
| 123 | + "icon-ignore-placement": true |
| 124 | + } |
| 125 | + }, |
| 126 | + { |
| 127 | + "id": "anchor-bottom-left", |
| 128 | + "type": "symbol", |
| 129 | + "source": "geojson", |
| 130 | + "filter": ["==", "anchor", "bottom-left"], |
| 131 | + "layout": { |
| 132 | + "text-field": "ASDFASDF", |
| 133 | + "text-size": 10, |
| 134 | + "text-anchor": "bottom-left", |
| 135 | + "text-font": [ "Open Sans Semibold", "Arial Unicode MS Bold" ], |
| 136 | + "text-allow-overlap": true, |
| 137 | + "text-ignore-placement": true, |
| 138 | + "icon-image": "nine-part", |
| 139 | + "icon-text-fit": "height", |
| 140 | + "icon-allow-overlap": true, |
| 141 | + "icon-ignore-placement": true |
| 142 | + } |
| 143 | + }, |
| 144 | + { |
| 145 | + "id": "anchor-bottom", |
| 146 | + "type": "symbol", |
| 147 | + "source": "geojson", |
| 148 | + "filter": ["==", "anchor", "bottom"], |
| 149 | + "layout": { |
| 150 | + "text-field": "ASDFASDF", |
| 151 | + "text-size": 10, |
| 152 | + "text-anchor": "bottom", |
| 153 | + "text-font": [ "Open Sans Semibold", "Arial Unicode MS Bold" ], |
| 154 | + "text-allow-overlap": true, |
| 155 | + "text-ignore-placement": true, |
| 156 | + "icon-image": "nine-part", |
| 157 | + "icon-text-fit": "height", |
| 158 | + "icon-allow-overlap": true, |
| 159 | + "icon-ignore-placement": true |
| 160 | + } |
| 161 | + }, |
| 162 | + { |
| 163 | + "id": "anchor-bottom-right", |
| 164 | + "type": "symbol", |
| 165 | + "source": "geojson", |
| 166 | + "filter": ["==", "anchor", "bottom-right"], |
| 167 | + "layout": { |
| 168 | + "text-field": "ASDFASDF", |
| 169 | + "text-size": 10, |
| 170 | + "text-anchor": "bottom-right", |
| 171 | + "text-font": [ "Open Sans Semibold", "Arial Unicode MS Bold" ], |
| 172 | + "text-allow-overlap": true, |
| 173 | + "text-ignore-placement": true, |
| 174 | + "icon-image": "nine-part", |
| 175 | + "icon-text-fit": "height", |
| 176 | + "icon-allow-overlap": true, |
| 177 | + "icon-ignore-placement": true |
| 178 | + } |
| 179 | + }, |
| 180 | + { |
| 181 | + "id": "anchors", |
| 182 | + "type": "circle", |
| 183 | + "source": "geojson", |
| 184 | + "paint": { |
| 185 | + "circle-radius": 2, |
| 186 | + "circle-color": "green", |
| 187 | + "circle-stroke-color": "white", |
| 188 | + "circle-stroke-width": 1 |
| 189 | + } |
| 190 | + } |
| 191 | + ] |
| 192 | +} |
0 commit comments