public class ViewEvent extends Object implements Serializable
Constructor and Description |
---|
ViewEvent(com.google.gson.JsonObject jsonViewEvent)
Creates a new view event from the JSON encoded ol.View instance.
|
Modifier and Type | Method and Description |
---|---|
CoordinateProjected |
getCenter()
Returns the coordinate at the center of this view.
|
CoordinateProjected[] |
getExtent()
Returns an array of two coordinates describing the extent of this view.
|
com.google.gson.JsonObject |
getJsonObject()
Returns the JsonObject backing this instance.
|
String |
getProjection()
Returns the projection for this view.
|
public ViewEvent(com.google.gson.JsonObject jsonViewEvent)
jsonViewEvent
- JSON encoded ol.View instancepublic String getProjection()
public CoordinateProjected[] getExtent()
public CoordinateProjected getCenter()
public com.google.gson.JsonObject getJsonObject()
Copyright © 2015. All rights reserved.