Class Source
java.lang.Object
org.openstreetmap.josm.data.imagery.vectortile.mapbox.style.Source
A source from a Mapbox Vector Style
- Since:
- 17862
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classA common function for zoom constraints -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe attribution to display for the userprivate final BoundsThe bounds of the data.private final intThe maximum zoom supportedprivate final intThe minimum zoom supportedprivate final StringThe name of the sourceprivate static final String[]private final StringThe property to use as a feature id.private final SchemeThe tile schemeprivate final SourceTypeThe type of the sourceprivate final intThe tile sizeprivate final String[]The tile urls.private final booleantrueif the tiles should not be cachedprivate static final StringWMS servers should contain a "{bbox-epsg-3857}" parameter for the bboxprivate static final IntFunction<Integer>Constrain the min/max zooms to be between 0 and 30, as per tilejson spec -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
WMS_BBOX
WMS servers should contain a "{bbox-epsg-3857}" parameter for the bbox- See Also:
-
NO_URLS
-
ZOOM_BOUND_FUNCTION
Constrain the min/max zooms to be between 0 and 30, as per tilejson spec -
name
The name of the source -
sourceType
The type of the source -
minZoom
The minimum zoom supported -
maxZoom
The maximum zoom supported -
tileUrls
The tile urls. These usually have replaceable fields. -
attribution
The attribution to display for the user -
bounds
The bounds of the data. We should not request data outside of the bounds -
promoteId
The property to use as a feature id. Can be parameterized -
scheme
The tile scheme -
volatileCache
trueif the tiles should not be cached -
tileSize
The tile size
-
-
Constructor Details
-
Source
Create a new Source object- Parameters:
name- The name of the source objectdata- The data to set the source information with
-
-
Method Details
-
getBounds
Get the bounds for this source- Returns:
- The bounds where this source can be used
-
getName
Get the source name- Returns:
- the name
-
getUrls
Get the URLs that can be used to get vector data- Returns:
- The urls
-
getMinZoom
Get the minimum zoom- Returns:
- The min zoom (default
0)
-
getMaxZoom
Get the max zoom- Returns:
- The max zoom (default
22)
-
getAttributionText
Get the attribution for this source- Returns:
- The attribution text. May be
null.
-
toString
-
equals
-
hashCode
-