public class GeoJsonSource extends Source
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TYPE |
| Constructor and Description |
|---|
GeoJsonSource(java.lang.String id,
java.lang.String geoJson)
Create a GeoJsonSource from a raw json string
|
GeoJsonSource(java.lang.String id,
java.net.URL url)
Create a GeoJsonSource from a remote geo json file
|
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuespublic static final java.lang.String TYPE
public GeoJsonSource(java.lang.String id,
java.lang.String geoJson)
id - the source idgeoJson - raw Json bodypublic GeoJsonSource(java.lang.String id,
java.net.URL url)
id - the source idurl - remote json file