001// License: GPL. For details, see LICENSE file. 002package org.openstreetmap.josm.data.imagery.vectortile.mapbox; 003 004import java.util.Arrays; 005import java.util.Collections; 006import java.util.List; 007 008/** 009 * Items that MAY be used to figure out if a file or server response MAY BE a Mapbox Vector Tile 010 * @author Taylor Smock 011 * @since 17862 012 */ 013public final class MVTFile { 014 /** 015 * Extensions for Mapbox Vector Tiles. 016 * {@code mvt} is a SHOULD, <i>not</i> a MUST. 017 */ 018 public static final List<String> EXTENSION = Collections.unmodifiableList(Arrays.asList("mvt", "pbf")); 019 020 /** 021 * mimetypes for Mapbox Vector Tiles 022 * This {@code application/vnd.mapbox-vector-tile}is a SHOULD, <i>not</i> a MUST. 023 */ 024 public static final List<String> MIMETYPE = Collections.unmodifiableList(Arrays.asList("application/vnd.mapbox-vector-tile", 025 "application/x-protobuf")); 026 027 /** 028 * The default projection. This is Web Mercator, per specification. 029 */ 030 public static final String DEFAULT_PROJECTION = "EPSG:3857"; 031 032 private MVTFile() { 033 // Hide the constructor 034 } 035}