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, setProjection
escapeQuoteJs, getJsId, getJsIdWithSuffix
public 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()
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.