public class GeoJson extends StaticVector
counter, JS_GLOBAL, objectIds| Constructor and Description |
|---|
GeoJson(String url,
Projection projection)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getJsType()
Returns a String with the type of Javascript object that this object represents.
|
String |
getUrl()
Returns the URL from which the data will be fetched.
|
String |
renderJs()
Returns a String with containing the rendered Javascript code for this object.
|
void |
setUrl(String url)
Sets the URL from which the data will be fetched.
|
GeoJson |
url(String url)
Sets the URL from which the data will be fetched.
|
getProjection, projection, setProjectionescapeQuoteJs, getJsId, getJsIdWithSuffixpublic GeoJson(String url, Projection projection)
url - URL from which the GeoJSON formatted data will be fetchedprojection - Projection for the fetched datapublic String getUrl()
public void setUrl(String url)
url - New valuepublic GeoJson url(String url)
url - New valuepublic String getJsType()
JavascriptObjectgetJsType in interface IJavascriptObjectgetJsType in class Sourcepublic String renderJs()
JavascriptObjectrenderJs in interface IJavascriptObjectrenderJs in class SourceCopyright © 2015. All rights reserved.