A GeoJSON source. Data must be provided via a "data" property, whose value can be a URL or inline GeoJSON. When using in a browser, the GeoJSON data must be on the same domain as the map or served with CORS headers.
Constructors
- GeoJsonSource.new({required String id, required String data, double maxZoom = 18, String? attribution})
-
The default constructor for a GeoJsonSource object.
const
Properties
- attribution → String?
-
Contains an attribution to be displayed when the map is shown to a user.
final
- data → String
-
A URL to a GeoJSON file, or GeoJSON string.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
The id of the source.
finalinherited
- maxZoom → double
-
Maximum zoom level at which to create vector tiles (higher means greater
detail at high zoom levels).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited