public class ServerVector extends StaticVector
counter, JS_GLOBAL, objectIds
Constructor and Description |
---|
ServerVector(Feature format,
Loader loader,
Projection projection)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
ServerVector |
format(Feature format)
Sets the format for the features.
|
Feature |
getFormat()
Returns the format for the features.
|
String |
getJsType()
Returns a String with the type of Javascript object that this object represents.
|
Loader |
getLoader()
Returns the loader used to fetch remote data.
|
ServerVector |
loader(Loader loader)
Sets the loader used to fetch remote data.
|
ServerVector |
projection(Projection projection)
Sets the projection used to transform the data.
|
String |
renderJs()
Returns a String with containing the rendered Javascript code for this object.
|
void |
setFormat(Feature format)
Sets the format for the features.
|
void |
setLoader(Loader loader)
Sets the loader used to fetch remote data.
|
getProjection, setProjection
escapeQuoteJs, getJsId, getJsIdWithSuffix
public ServerVector(Feature format, Loader loader, Projection projection)
format
- Format for the feature dataloader
- Loader for fetching remote dataprojection
- Projection for transforming loaded datapublic Feature getFormat()
public void setFormat(Feature format)
format
- New valuepublic ServerVector format(Feature format)
format
- New valuepublic Loader getLoader()
public void setLoader(Loader loader)
loader
- New valuepublic ServerVector loader(Loader loader)
loader
- New valuepublic ServerVector projection(Projection projection)
StaticVector
projection
in class StaticVector
projection
- New valuepublic String getJsType()
JavascriptObject
getJsType
in interface IJavascriptObject
getJsType
in class Source
public String renderJs()
JavascriptObject
renderJs
in interface IJavascriptObject
renderJs
in class Source
Copyright © 2015. All rights reserved.