Package com.azure.maps.traffic.models
Class TrafficIncidentViewportOptions
java.lang.Object
com.azure.maps.traffic.models.TrafficIncidentViewportOptions
TrafficIncidentViewportOptions class
-
Constructor Summary
ConstructorDescriptionTrafficIncidentViewportOptions constructorTrafficIncidentViewportOptions
(com.azure.core.models.GeoBoundingBox boundingBox, int boundingZoom, com.azure.core.models.GeoBoundingBox overviewBox, int overviewZoom) TrafficIncidentViewportOptions constructor -
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.models.GeoBoundingBox
get bounding boxint
get bounding zoomget copyrightcom.azure.core.models.GeoBoundingBox
get overviewboxint
get overview zoomsetBoundingBox
(com.azure.core.models.GeoBoundingBox boundingbox) set bounding boxsetBoundingZoom
(int boundingZoom) set bounding zoomsetCopyright
(Boolean copyright) set copyrightsetOverview
(com.azure.core.models.GeoBoundingBox overviewBox) set overviewsetOverviewZoom
(int overviewZoom) set overview zoom
-
Constructor Details
-
TrafficIncidentViewportOptions
public TrafficIncidentViewportOptions()TrafficIncidentViewportOptions constructor -
TrafficIncidentViewportOptions
public TrafficIncidentViewportOptions(com.azure.core.models.GeoBoundingBox boundingBox, int boundingZoom, com.azure.core.models.GeoBoundingBox overviewBox, int overviewZoom) TrafficIncidentViewportOptions constructor- Parameters:
boundingBox
- Bounding box of the map viewport in EPSG900913 projection. The boundingbox is represented by two value pairs describing it's corners (first pair for lower left corner and second for upper right).boundingZoom
- Zoom level of the map viewport. Used to determine whether the view can be zoomed in.overviewBox
- Bounding box of the overview map in EPSG900913 projection.overviewZoom
- Zoom level of the overview map. If there is no mini map, use the same zoom level as boundingZoom.
-
-
Method Details
-
getBoundingBox
public com.azure.core.models.GeoBoundingBox getBoundingBox()get bounding box- Returns:
- GeoBoundingBox
-
setBoundingBox
public TrafficIncidentViewportOptions setBoundingBox(com.azure.core.models.GeoBoundingBox boundingbox) set bounding box- Parameters:
boundingbox
- Bounding box of the map viewport in EPSG900913 projection. The boundingbox is represented by two value pairs describing it's corners (first pair for lower left corner and second for upper right).- Returns:
- TrafficIncidentViewportOptions
-
getBoundingZoom
public int getBoundingZoom()get bounding zoom- Returns:
- int
-
setBoundingZoom
set bounding zoom- Parameters:
boundingZoom
- Zoom level of the map viewport. Used to determine whether the view can be zoomed in.- Returns:
- TrafficIncidentViewportOptions
-
getOverviewBox
public com.azure.core.models.GeoBoundingBox getOverviewBox()get overviewbox- Returns:
- GeoBoundingBox
-
setOverview
set overview- Parameters:
overviewBox
- Bounding box of the overview map in EPSG900913 projection.- Returns:
- TrafficIncidentViewportOptions
-
getOverviewZoom
public int getOverviewZoom()get overview zoom- Returns:
- int
-
setOverviewZoom
set overview zoom- Parameters:
overviewZoom
- Zoom level of the overview map. If there is no mini map, use the same zoom level as boundingZoom.- Returns:
- TrafficIncidentViewportOptions
-
getCopyright
get copyright- Returns:
- boolean
-
setCopyright
set copyright- Parameters:
copyright
- Determines what copyright information to return. When true the copyright text is returned; when false only the copyright index is returned.- Returns:
- TrafficIncidentViewportOptions
-