Package com.azure.maps.traffic.models
Class TrafficIncidentTileOptions
java.lang.Object
com.azure.maps.traffic.models.TrafficIncidentTileOptions
TrafficIncidentTileOptions class
-
Constructor Summary
ConstructorDescriptionTrafficIncidentTileOptions constructorTrafficIncidentTileOptions
(TileFormat format, TrafficIncidentTileStyle style, int zoom) TrafficIncidentTileOptions constructor -
Method Summary
Modifier and TypeMethodDescriptionget formatget tile indexget traffic incident tile styleget traffic stateint
getZoom()
get zoomsetFormat
(TileFormat tileFormat) set formatsetTileIndex
(TileIndex tileIndex) set tile indexsetTrafficIncidentTileStyle
(TrafficIncidentTileStyle trafficIncidentTileStyle) set traffic incident tile stylesetTrafficState
(String trafficState) set traffic statesetZoom
(int zoom) set zoom
-
Constructor Details
-
TrafficIncidentTileOptions
public TrafficIncidentTileOptions()TrafficIncidentTileOptions constructor -
TrafficIncidentTileOptions
TrafficIncidentTileOptions constructor- Parameters:
format
- Desired format of the response. Possible values are png and pbf.style
- The style to be used to render the tile. This parameter is not valid when format is pbf.zoom
- Zoom level for the desired tile. For raster tiles, value must be in the range: 0-22 (inclusive). For vector tiles, value must be in the range: 0-22 (inclusive).
-
-
Method Details
-
getFormat
get format- Returns:
- TileFormat
-
setFormat
set format- Parameters:
tileFormat
- Desired format of the response. Possible values are png and pbf.- Returns:
- TrafficIncidentTileOptions
-
getTrafficIncidentTileStyle
get traffic incident tile style- Returns:
- TrafficIncidentTileStyle
-
setTrafficIncidentTileStyle
public TrafficIncidentTileOptions setTrafficIncidentTileStyle(TrafficIncidentTileStyle trafficIncidentTileStyle) set traffic incident tile style- Parameters:
trafficIncidentTileStyle
- The style to be used to render the tile. This parameter is not valid when format is pbf.- Returns:
- TrafficIncidentTileOptions
-
getZoom
public int getZoom()get zoom- Returns:
- int
-
setZoom
set zoom- Parameters:
zoom
- Zoom level for the desired tile. For raster tiles, value must be in the range: 0-22 (inclusive). For vector tiles, value must be in the range: 0-22 (inclusive).- Returns:
- TrafficIncidentTileOptions
-
getTileIndex
get tile index- Returns:
- TileIndex
-
setTileIndex
set tile index- Parameters:
tileIndex
- tile index- Returns:
- TrafficIncidentTileOptions
-
getTrafficState
get traffic state- Returns:
- String
-
setTrafficState
set traffic state- Parameters:
trafficState
- Reference value for the state of traffic at a particular time, obtained from the Viewport API call, trafficModelId attribute in trafficState field.- Returns:
- TrafficIncidentTileOptions
-