|
| 1 | +/*- |
| 2 | + * #%L |
| 3 | + * Google Maps Addon |
| 4 | + * %% |
| 5 | + * Copyright (C) 2020 - 2024 Flowing Code |
| 6 | + * %% |
| 7 | + * Licensed under the Apache License, Version 2.0 (the "License"); |
| 8 | + * you may not use this file except in compliance with the License. |
| 9 | + * You may obtain a copy of the License at |
| 10 | + * |
| 11 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 12 | + * |
| 13 | + * Unless required by applicable law or agreed to in writing, software |
| 14 | + * distributed under the License is distributed on an "AS IS" BASIS, |
| 15 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 16 | + * See the License for the specific language governing permissions and |
| 17 | + * limitations under the License. |
| 18 | + * #L% |
| 19 | + */ |
| 20 | + |
| 21 | +package com.flowingcode.vaadin.addons.googlemaps.maptypestyle; |
| 22 | + |
| 23 | +import lombok.Getter; |
| 24 | + |
| 25 | +/** |
| 26 | + * Enum representing supported feature types. Features are geographic characteristics on the |
| 27 | + * map, including roads, parks, bodies of water, businesses, and more. |
| 28 | + */ |
| 29 | +public enum FeatureType { |
| 30 | + |
| 31 | + /** |
| 32 | + * Selects all features. Is the default option. |
| 33 | + */ |
| 34 | + ALL("all"), |
| 35 | + |
| 36 | + /** |
| 37 | + * Selects all administrative areas. Styling affects only the labels of administrative areas, not |
| 38 | + * the geographical borders or fill. |
| 39 | + */ |
| 40 | + ADMINISTRATIVE("administrative"), |
| 41 | + |
| 42 | + /** |
| 43 | + * Selects countries. |
| 44 | + */ |
| 45 | + ADMINISTRATIVE_COUNTRY("administrative.country"), |
| 46 | + |
| 47 | + /** |
| 48 | + * Selects land parcels. |
| 49 | + */ |
| 50 | + ADMINISTRATIVE_LAND_PARCEL("administrative.land_parcel"), |
| 51 | + |
| 52 | + |
| 53 | + /** |
| 54 | + * Selects localities. |
| 55 | + */ |
| 56 | + ADMINISTRATIVE_LOCALITY("administrative.locality"), |
| 57 | + |
| 58 | + |
| 59 | + /** |
| 60 | + * Selects neighborhoods. |
| 61 | + */ |
| 62 | + ADMINISTRATIVE_NEIGHBORHOOD("administrative.neighborhood"), |
| 63 | + |
| 64 | + |
| 65 | + /** |
| 66 | + * Selects provinces. |
| 67 | + */ |
| 68 | + ADMINISTRATIVE_PROVINCE("administrative.province"), |
| 69 | + |
| 70 | + /** |
| 71 | + * Selects all landscapes. |
| 72 | + */ |
| 73 | + LANDSCAPE("landscape"), |
| 74 | + |
| 75 | + /** |
| 76 | + * Selects man-made features, such as buildings and other structures. |
| 77 | + */ |
| 78 | + LANDSCAPE_MAN_MADE("landscape.man_made"), |
| 79 | + |
| 80 | + /** |
| 81 | + * Selects natural features, such as mountains, rivers, deserts, and glaciers.. |
| 82 | + */ |
| 83 | + LANDSCAPE_NATURAL("landscape.natural"), |
| 84 | + |
| 85 | + /** |
| 86 | + * Selects land cover features, the physical material that covers the earth's surface, such as |
| 87 | + * forests, grasslands, wetlands, and bare ground.. |
| 88 | + */ |
| 89 | + LANDSCAPE_NATURAL_LANDCOVER("landscape.natural.landcover"), |
| 90 | + |
| 91 | + /** |
| 92 | + * Selects terrain features of a land surface, such as elevation, slope, and orientation. |
| 93 | + */ |
| 94 | + LANDSCAPE_NATURAL_TERRAIN("landscape.natural.terrain"), |
| 95 | + |
| 96 | + /** |
| 97 | + * Selects all points of interest. |
| 98 | + */ |
| 99 | + POI("poi"), |
| 100 | + |
| 101 | + /** |
| 102 | + * Selects tourist attractions. |
| 103 | + */ |
| 104 | + POI_ATTRACTION("poi.attraction"), |
| 105 | + |
| 106 | + /** |
| 107 | + * Selects businesses. |
| 108 | + */ |
| 109 | + POI_BUSINESS("poi.business"), |
| 110 | + |
| 111 | + /** |
| 112 | + * Selects government buildings. |
| 113 | + */ |
| 114 | + POI_GOVERNMENT("poi.government"), |
| 115 | + |
| 116 | + /** |
| 117 | + * Selects emergency services, including hospitals, pharmacies, police, doctors, and others. |
| 118 | + */ |
| 119 | + POI_MEDICAL("poi.medical"), |
| 120 | + |
| 121 | + /** |
| 122 | + * Selects parks. |
| 123 | + */ |
| 124 | + POI_PARK("poi.park"), |
| 125 | + |
| 126 | + /** |
| 127 | + * Selects places of worship, including churches, temples, mosques, and others. |
| 128 | + */ |
| 129 | + POI_PLACE_OF_WORSHIP("poi.place_of_worship"), |
| 130 | + |
| 131 | + /** |
| 132 | + * Selects schools. |
| 133 | + */ |
| 134 | + POI_SCHOOL("poi.school"), |
| 135 | + |
| 136 | + /** |
| 137 | + * Selects sports complexes. |
| 138 | + */ |
| 139 | + POI_SPORTS_COMPLEX("poi.sports_complex"), |
| 140 | + |
| 141 | + /** |
| 142 | + * Selects all roads. |
| 143 | + */ |
| 144 | + ROAD("road"), |
| 145 | + |
| 146 | + /** |
| 147 | + * Selects arterial roads. |
| 148 | + */ |
| 149 | + ROAD_ARTERIAL("road.arterial"), |
| 150 | + |
| 151 | + /** |
| 152 | + * Selects highways. |
| 153 | + */ |
| 154 | + ROAD_HIGHWAY("road.highway"), |
| 155 | + |
| 156 | + /** |
| 157 | + * Selects highways with controlled access. |
| 158 | + */ |
| 159 | + ROAD_HIGHWAY_CONTROLLED_ACCESS("road.highway.controlled_access"), |
| 160 | + |
| 161 | + /** |
| 162 | + * Selects local roads. |
| 163 | + */ |
| 164 | + ROAD_LOCAL("road.local"), |
| 165 | + |
| 166 | + /** |
| 167 | + * Selects all transit stations and lines. |
| 168 | + */ |
| 169 | + TRANSIT("transit"), |
| 170 | + |
| 171 | + /** |
| 172 | + * Selects transit lines. |
| 173 | + */ |
| 174 | + TRANSIT_LINE("transit.line"), |
| 175 | + |
| 176 | + /** |
| 177 | + * Selects transit stations. |
| 178 | + */ |
| 179 | + TRANSIT_STATION("transit.station"), |
| 180 | + |
| 181 | + /** |
| 182 | + * Selects airports. |
| 183 | + */ |
| 184 | + TRANSIT_STATION_AIRPORT("transit.station.airport"), |
| 185 | + |
| 186 | + /** |
| 187 | + * Selects bus stops. |
| 188 | + */ |
| 189 | + TRANSIT_STATION_BUS("transit.station.bus"), |
| 190 | + |
| 191 | + /** |
| 192 | + * Selects rail stations. |
| 193 | + */ |
| 194 | + TRANSIT_STATION_RAIL("transit.station.rail"), |
| 195 | + |
| 196 | + /** |
| 197 | + * Selects bodies of water. |
| 198 | + */ |
| 199 | + WATER("water"); |
| 200 | + |
| 201 | + @Getter |
| 202 | + private String value; |
| 203 | + |
| 204 | + FeatureType(String value) { |
| 205 | + this.value = value; |
| 206 | + } |
| 207 | + |
| 208 | +} |
0 commit comments