public class GeoJSONSource
extends java.lang.Object
Constructor and Description |
---|
GeoJSONSource() |
Modifier and Type | Method and Description |
---|---|
boolean |
isEnabled() |
boolean |
isLoaded() |
void |
setBaseController(RenderControllerInterface baseController)
Sets the globe or map controller to which vector features will be added.
|
void |
setEnabled(boolean enabled) |
void |
setJsonStream(java.io.InputStream jsonStream)
Sets the InputStream from which the JSON document will be read.
|
void |
setStyleSet(SLDStyleSet styleSet)
Sets the SLD styleset used to style vector features based on their attributes.
|
void |
startParse()
Start parsing the GeoJSON.
|
void |
startParse(java.lang.Runnable completionBlock)
Start parsing the GeoJSON.
|
public boolean isLoaded()
public boolean isEnabled()
public void setEnabled(boolean enabled)
public void setStyleSet(SLDStyleSet styleSet)
styleSet
- The SLDStyleSet object.public void setJsonStream(java.io.InputStream jsonStream)
jsonStream
- The InputStream object which is the source of the JSON document.public void setBaseController(RenderControllerInterface baseController)
baseController
- The MaplyBaseController instance.public void startParse()
public void startParse(java.lang.Runnable completionBlock)
completionBlock
- Block to execute after completion.