|
| 1 | +{ |
| 2 | + "version": 8, |
| 3 | + "name": "POI OSM", |
| 4 | + "glyphs": "https://data.geopf.fr/annexes/ressources/vectorTiles/fonts/{fontstack}/{range}.pbf", |
| 5 | + "sprite": "https://ignf.github.io/cartes-ign-app/data/poi-osm-sprite", |
| 6 | + "sources": { |
| 7 | + "poi_osm": { |
| 8 | + "type": "vector", |
| 9 | + "minzoom": 11, |
| 10 | + "maxzoom": 19, |
| 11 | + "tiles": [ |
| 12 | + "https://data.geopf.fr/tms/1.0.0/OSM.POI/{z}/{x}/{y}.pbf" |
| 13 | + ] |
| 14 | + } |
| 15 | + }, |
| 16 | + "transition": { |
| 17 | + "duration": 300, |
| 18 | + "delay": 0 |
| 19 | + }, |
| 20 | + "layers": [ |
| 21 | + { |
| 22 | + "id": "POI OSM isochrone", |
| 23 | + "type": "symbol", |
| 24 | + "source": "poi_osm", |
| 25 | + "source-layer": "point_interet", |
| 26 | + "minzoom": 10, |
| 27 | + "maxzoom": 15, |
| 28 | + "layout": { |
| 29 | + "visibility": "none", |
| 30 | + "icon-image": "{symbo}_17", |
| 31 | + "symbol-sort-key": [ |
| 32 | + "match", |
| 33 | + ["get", "symbo"], |
| 34 | + "bicycle_rental", 30, |
| 35 | + "parking", 25, |
| 36 | + "fuel", 20, |
| 37 | + "charging_station", 15, |
| 38 | + "bus_stop", 10, |
| 39 | + 1 |
| 40 | + ] |
| 41 | + }, |
| 42 | + "filter": [ |
| 43 | + "!", ["in", |
| 44 | + ["get", "symbo"], |
| 45 | + ["literal", [ |
| 46 | + "divers_bleu", |
| 47 | + "divers_gris", |
| 48 | + "divers_magenta", |
| 49 | + "divers_marron", |
| 50 | + "divers_orange", |
| 51 | + "divers_rouge", |
| 52 | + "divers_vert" |
| 53 | + ]] |
| 54 | + ]] |
| 55 | + }, |
| 56 | + { |
| 57 | + "id": "POI OSM 14", |
| 58 | + "type": "symbol", |
| 59 | + "source": "poi_osm", |
| 60 | + "source-layer": "point_interet", |
| 61 | + "minzoom": 13, |
| 62 | + "maxzoom": 14, |
| 63 | + "layout": { |
| 64 | + "visibility": "visible", |
| 65 | + "icon-image": "{symbo}_17" |
| 66 | + }, |
| 67 | + "filter": [ |
| 68 | + "in", |
| 69 | + ["get", "symbo"], |
| 70 | + ["literal", [ |
| 71 | + "aerodrome", |
| 72 | + "courthouse", |
| 73 | + "hospital", |
| 74 | + "station", |
| 75 | + "townhall" |
| 76 | + ]] |
| 77 | + ] |
| 78 | + }, |
| 79 | + { |
| 80 | + "id": "POI OSM 15", |
| 81 | + "type": "symbol", |
| 82 | + "source": "poi_osm", |
| 83 | + "source-layer": "point_interet", |
| 84 | + "minzoom": 14, |
| 85 | + "maxzoom": 15, |
| 86 | + "layout": { |
| 87 | + "visibility": "visible", |
| 88 | + "icon-image": "{symbo}_17" |
| 89 | + }, |
| 90 | + "filter": [ |
| 91 | + "in", |
| 92 | + ["get", "symbo"], |
| 93 | + ["literal", [ |
| 94 | + "aerodrome", |
| 95 | + "christian", |
| 96 | + "college", |
| 97 | + "courthouse", |
| 98 | + "hospital", |
| 99 | + "station", |
| 100 | + "townhall", |
| 101 | + "university" |
| 102 | + ]] |
| 103 | + ] |
| 104 | + }, |
| 105 | + { |
| 106 | + "id": "POI OSM 16et17", |
| 107 | + "type": "symbol", |
| 108 | + "source": "poi_osm", |
| 109 | + "source-layer": "point_interet", |
| 110 | + "minzoom": 15, |
| 111 | + "maxzoom": 18, |
| 112 | + "layout": { |
| 113 | + "visibility": "visible", |
| 114 | + "icon-image": "{symbo}_17" |
| 115 | + }, |
| 116 | + "filter": [ |
| 117 | + "!", ["in", |
| 118 | + ["get", "symbo"], |
| 119 | + ["literal", [ |
| 120 | + "divers_bleu", |
| 121 | + "divers_gris", |
| 122 | + "divers_magenta", |
| 123 | + "divers_marron", |
| 124 | + "divers_orange", |
| 125 | + "divers_rouge", |
| 126 | + "divers_vert" |
| 127 | + ]] |
| 128 | + ]] |
| 129 | + }, |
| 130 | + { |
| 131 | + "id": "POI OSM 18et19", |
| 132 | + "type": "symbol", |
| 133 | + "source": "poi_osm", |
| 134 | + "source-layer": "point_interet", |
| 135 | + "minzoom": 18, |
| 136 | + "layout": { |
| 137 | + "visibility": "visible", |
| 138 | + "symbol-placement": "point", |
| 139 | + "text-field": "{texte}", |
| 140 | + "text-size": 9, |
| 141 | + "text-max-width": 9, |
| 142 | + "text-allow-overlap": false, |
| 143 | + "text-offset": [0, -1], |
| 144 | + "text-padding": 3, |
| 145 | + "text-anchor": "bottom", |
| 146 | + "text-font": ["Source Sans Pro Bold Italic"], |
| 147 | + "icon-image": "{symbo}_21", |
| 148 | + "symbol-sort-key": [ |
| 149 | + "case", |
| 150 | + [ |
| 151 | + "in", |
| 152 | + "divers", |
| 153 | + ["get", "symbo"] |
| 154 | + ], 100, |
| 155 | + 1 |
| 156 | + ] |
| 157 | + }, |
| 158 | + "paint": { |
| 159 | + "text-color": [ |
| 160 | + "match", |
| 161 | + ["get", "symbo"], |
| 162 | + "aerodrome", "#1E64AA", |
| 163 | + "helipad", "#1E64AA", |
| 164 | + "bicycle_rental", "#1E64AA", |
| 165 | + "bus_stop", "#1E64AA", |
| 166 | + "charging_station", "#1E64AA", |
| 167 | + "ferry_terminal", "#1E64AA", |
| 168 | + "fuel", "#1E64AA", |
| 169 | + "rest_area", "#1E64AA", |
| 170 | + "services", "#1E64AA", |
| 171 | + "station", "#1E64AA", |
| 172 | + "subway", "#1E64AA", |
| 173 | + "parking", "#1E64AA", |
| 174 | + "divers_bleu", "#1E64AA", |
| 175 | + "autrereligion", "#626A6F", |
| 176 | + "bank", "#626A6F", |
| 177 | + "christian", "#626A6F", |
| 178 | + "college", "#626A6F", |
| 179 | + "conference_centre", "#626A6F", |
| 180 | + "courthouse", "#626A6F", |
| 181 | + "drinking_water", "#626A6F", |
| 182 | + "grave_yard", "#626A6F", |
| 183 | + "jewish", "#626A6F", |
| 184 | + "lighthouse", "#626A6F", |
| 185 | + "muslim", "#626A6F", |
| 186 | + "police", "#626A6F", |
| 187 | + "post_office", "#626A6F", |
| 188 | + "prison", "#626A6F", |
| 189 | + "recycling", "#626A6F", |
| 190 | + "toilets", "#626A6F", |
| 191 | + "townhall", "#626A6F", |
| 192 | + "university", "#626A6F", |
| 193 | + "divers_gris", "#626A6F", |
| 194 | + "car_repair", "#B64E84", |
| 195 | + "car_wash", "#B64E84", |
| 196 | + "clothes", "#B64E84", |
| 197 | + "greengrocer", "#B64E84", |
| 198 | + "hairdresser", "#B64E84", |
| 199 | + "mall", "#B64E84", |
| 200 | + "marketplace", "#B64E84", |
| 201 | + "supermarket", "#B64E84", |
| 202 | + "divers_magenta", "#B64E84", |
| 203 | + "archaeological_site", "#BD7431", |
| 204 | + "casino", "#BD7431", |
| 205 | + "castle", "#BD7431", |
| 206 | + "church_histo", "#BD7431", |
| 207 | + "cinema", "#BD7431", |
| 208 | + "information", "#BD7431", |
| 209 | + "library", "#BD7431", |
| 210 | + "museum", "#BD7431", |
| 211 | + "theatre", "#BD7431", |
| 212 | + "divers_marron", "#BD7431", |
| 213 | + "bar", "#E38A25", |
| 214 | + "restaurant", "#E38A25", |
| 215 | + "bakery", "#E38A25", |
| 216 | + "divers_orange", "#E38A25", |
| 217 | + "camp_site", "#5F4087", |
| 218 | + "hotel", "#5F4087", |
| 219 | + "hut", "#5F4087", |
| 220 | + "fire_station", "#E8324A", |
| 221 | + "hospital", "#E8324A", |
| 222 | + "divers_rouge", "#E8324A", |
| 223 | + "aquarium", "#00AA84", |
| 224 | + "cave_entrance", "#00AA84", |
| 225 | + "golf_course", "#00AA84", |
| 226 | + "horse_riding", "#00AA84", |
| 227 | + "jardin", "#00AA84", |
| 228 | + "marina", "#00AA84", |
| 229 | + "peak", "#00AA84", |
| 230 | + "picnic_site", "#00AA84", |
| 231 | + "picnic_table", "#00AA84", |
| 232 | + "saddle", "#00AA84", |
| 233 | + "sports_centre", "#00AA84", |
| 234 | + "swimming_pool", "#00AA84", |
| 235 | + "theme_park", "#00AA84", |
| 236 | + "viewpoint", "#00AA84", |
| 237 | + "waterway", "#00AA84", |
| 238 | + "zoo", "#00AA84", |
| 239 | + "divers_vert", "#00AA84", |
| 240 | + "pharmacy", "#0B7E33", |
| 241 | + "#0000CC" |
| 242 | + ], |
| 243 | + "text-halo-width": 1, |
| 244 | + "text-halo-color": "#FFFFFF" |
| 245 | + } |
| 246 | + } |
| 247 | + ] |
| 248 | +} |
0 commit comments