public class GeoJsonMBSource extends MBSource
JSONObject
holding a Mapbox GeoJSON source. Data must be provided via a
"data" property, whose value can be a URL or inline GeoJSON.Constructor and Description |
---|
GeoJsonMBSource(JSONObject json) |
GeoJsonMBSource(JSONObject json,
MBObjectParser parser) |
Modifier and Type | Method and Description |
---|---|
Number |
getBuffer()
(Optional) Defaults to 128.
|
Boolean |
getCluster()
(Optional) Defaults to false.
|
Number |
getClusterMaxZoom()
(Optional) Max zoom on which to cluster points if clustering is enabled.
|
Number |
getClusterRadius()
(Optional) Defaults to 50.
|
Object |
getData()
(Optional) A URL to a GeoJSON file, or inline GeoJSON.
|
Number |
getMaxZoom()
(Optional) Defaults to 18.
|
Number |
getTolerance()
(Optional) Defaults to 0.375.
|
String |
getType()
Type of source.
|
public GeoJsonMBSource(JSONObject json)
public GeoJsonMBSource(JSONObject json, MBObjectParser parser)
public Object getData()
public Number getMaxZoom()
public Number getBuffer()
public Number getTolerance()
public Boolean getCluster()
public Number getClusterRadius()
Radius of each cluster if clustering is enabled. A value of 512 indicates a radius equal to the width of a tile.
public Number getClusterMaxZoom()
Copyright © 1996–2023 Geotools. All rights reserved.