Geo Json Source
Create an empty GeoJsonSource
Parameters
the source id
Create an empty GeoJsonSource with non-default GeoJsonOptions.
Parameters
the source id
options
Create a GeoJsonSource from a raw json string
Parameters
the source id
raw Json FeatureCollection
Create a GeoJsonSource from a raw json string and non-default GeoJsonOptions
Parameters
the source id
raw Json body
options
Create a GeoJsonSource from a geo json URI
An URI is a combination of a protocol and a resource path. The following URI protocol schemes are supported:
http://
load resources using HyperText Transfer Protocol
file://
load resources from the Android file system
asset://
load resources from the binary packaged assets folder
Parameters
the source id
unique resource identifier
Create a GeoJsonSource from a geo json URI and non-default GeoJsonOptions
An URI is a combination of a protocol and a resource path. The following URI protocol schemes are supported:
http://
load resources using HyperText Transfer Protocol
file://
load resources from the Android file system
asset://
load resources from the binary packaged assets folder
Parameters
the source id
remote json file
options
Create a GeoJsonSource from a FeatureCollection.
Parameters
the source id
the features
Create a GeoJsonSource from a FeatureCollection and non-default GeoJsonOptions.
Parameters
the source id
the features
options
Create a GeoJsonSource from a Feature
Parameters
the source id
the feature
Create a GeoJsonSource from a Feature and non-default GeoJsonOptions
Parameters
the source id
the feature
options
Create a GeoJsonSource from a Geometry
Parameters
the source id
the geometry
Create a GeoJsonSource from a Geometry and non-default GeoJsonOptions
Parameters
the source id
the geometry
options
Deprecated
use {@link #GeoJsonSource(String, URI)} instead
Create a GeoJsonSource from a remote geo json file
Parameters
the source id
remote json file
Deprecated
use {@link #GeoJsonSource(String, URI, GeoJsonOptions)} instead
Create a GeoJsonSource from a remote geo json file and non-default GeoJsonOptions
Parameters
the source id
remote json file
options