Class GeoJsonSourceDataHandle
Prepared GeoJSON source data handle, usable from any thread.
public sealed class GeoJsonSourceDataHandle : IDisposable
- Inheritance
-
GeoJsonSourceDataHandle
- Implements
- Inherited Members
Remarks
Create(byte[], GeoJsonSourceOptions?) parses and tiles one complete GeoJSON document with its source options baked in, without a runtime or a map. The prepared value is immutable, so one handle may be installed on any number of sources with AddGeoJsonSourceData(string, GeoJsonSourceDataHandle) and SetGeoJsonSourceData(string, GeoJsonSourceDataHandle) and released at any time afterward; release never invalidates a source the data was installed on.
Properties
IsClosed
Whether this wrapper has successfully closed its native handle.
public bool IsClosed { get; }
Property Value
Methods
Close()
Destroys the prepared data; sources it was installed on keep their reference.
public void Close()
Create(byte[], GeoJsonSourceOptions?)
Parses and tiles one UTF-8 GeoJSON document into prepared source data.
public static GeoJsonSourceDataHandle Create(byte[] data, GeoJsonSourceOptions? options)
Parameters
databyte[]optionsGeoJsonSourceOptions
Returns
Remarks
Callable from any thread; no runtime or map is required.
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()