public class View extends JavascriptObject implements Serializable
Modifier and Type | Field and Description |
---|---|
Coordinate |
center
The coordinate that represents the center of this view.
|
static String |
DEFAULT_PROJECTION
Default projection.
|
Integer |
maxZoom
The maximum zoom level for this view.
|
Integer |
minZoom
The minimum zoom level for this view.
|
String |
projection
The projection for the map.
|
Integer |
zoom
The zoom factor for this view.
|
counter, JS_GLOBAL, objectIds
Constructor and Description |
---|
View(Coordinate center,
Integer zoom)
Creates a new instance.
|
View(Coordinate center,
Integer zoom,
Integer maxZoom)
Creates a new instance.
|
View(Coordinate center,
Integer zoom,
Integer maxZoom,
String projection)
Creates a new instance.
|
View(Coordinate center,
Integer zoom,
Integer maxZoom,
String projection,
Extent extent)
Creates a new instance.
|
View(Coordinate center,
Integer zoom,
String projection)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
View |
center(Coordinate center)
Sets the center coordinate for this view.
|
View |
extent(Extent extent)
Sets the extent for this view.
|
Coordinate |
getCenter()
Returns the center coordinate for this view.
|
Extent |
getExtent()
Returns the extent for this view.
|
String |
getJsType()
Returns a String with the type of Javascript object that this object represents.
|
Integer |
getMaxZoom()
Returns the maximum zoom level for this instance.
|
Integer |
getMinZoom()
Returns the minimum zoom level for this instance.
|
String |
getProjection()
Returns the projection for this view.
|
Integer |
getZoom()
Returns the zoom level for this view.
|
View |
maxZoom(Integer maxZoom)
Sets the maximum zoom level for this instance.
|
View |
minZoom(Integer minZoom)
Sets the minimum zoom level for this instance.
|
View |
projection(String projection)
Sets the projection for this view.
|
String |
renderJs()
Returns a String with containing the rendered Javascript code for this object.
|
void |
setCenter(Coordinate center)
Sets the center coordinate for this view.
|
void |
setExtent(Extent extent)
Sets the extent for this view.
|
void |
setMaxZoom(Integer maxZoom)
Sets the maximum zoom level for this instance.
|
void |
setMinZoom(Integer minZoom)
Sets the minimum zoom level for this instance.
|
void |
setProjection(String projection)
Sets the projection for this view.
|
void |
setZoom(Integer zoom)
Sets the zoom level for this view.
|
View |
zoom(Integer zoom)
Sets the zoom level for this view.
|
escapeQuoteJs, getJsId, getJsIdWithSuffix
public static final String DEFAULT_PROJECTION
public Coordinate center
public Integer zoom
public Integer minZoom
public Integer maxZoom
public String projection
public View(Coordinate center, Integer zoom)
center
- The coordinate at the center of this viewzoom
- The zoom factor for this viewpublic View(Coordinate center, Integer zoom, Integer maxZoom)
center
- The coordinate at the center of this viewzoom
- The zoom factor for this viewmaxZoom
- The maximum zoom factor for this viewpublic View(Coordinate center, Integer zoom, String projection)
center
- The coordinate at the center of this viewzoom
- The zoom factor for this viewprojection
- The projection for this viewpublic View(Coordinate center, Integer zoom, Integer maxZoom, String projection)
center
- The coordinate at the center of this viewzoom
- The zoom factor for this viewmaxZoom
- The maximum zoom factor for this viewprojection
- The projection for this viewpublic View(Coordinate center, Integer zoom, Integer maxZoom, String projection, Extent extent)
center
- The coordinate at the center of this viewzoom
- The zoom factor for this viewmaxZoom
- The maximum zoom factor for this viewprojection
- The projection for this viewextent
- The extent for this viewpublic Coordinate getCenter()
public void setCenter(Coordinate center)
center
- New valuepublic View center(Coordinate center)
center
- New valuepublic Integer getZoom()
public void setZoom(Integer zoom)
zoom
- New valuepublic View zoom(Integer zoom)
zoom
- New valuepublic String getProjection()
public void setProjection(String projection)
projection
- New valuepublic View projection(String projection)
projection
- New valuepublic Integer getMinZoom()
public void setMinZoom(Integer minZoom)
minZoom
- New valuepublic View minZoom(Integer minZoom)
minZoom
- New valuepublic Integer getMaxZoom()
public void setMaxZoom(Integer maxZoom)
maxZoom
- Integer with the zoom levelpublic View maxZoom(Integer maxZoom)
maxZoom
- Integer with the zoom levelpublic Extent getExtent()
public void setExtent(Extent extent)
extent
- The extent for this viewpublic View extent(Extent extent)
extent
- The extent for this viewpublic String getJsType()
JavascriptObject
getJsType
in interface IJavascriptObject
getJsType
in class JavascriptObject
public String renderJs()
JavascriptObject
renderJs
in interface IJavascriptObject
renderJs
in class JavascriptObject
Copyright © 2015. All rights reserved.