Convert an ArrayBuffer to a UTF-8 string
binary input
input in string form
Helper method for extracting binary-encoded file source from a layer config.
a ramp layer config. Should be layer type that is a binary format.
Extracts fields from csv file does no guesswork on property types and calls everything a string.
Extracts fields from the first feature in the feature collection
Fetch file data from remote URL.
the URL to get the data from
the type of the file layer (csv, shape, or geoJson)
Converts FlatGeobuf data to geojson.
an ArrayBuffer of a FlatGeobuf file
how long we are will permit this to run, in milliseconds
a promise resolving with geojson
Returns all the fields from csv file that can be possible lat/long fields
the csv file data
the delimiter in the data
Convert GeoJSON to Esri json, a format that can be read by a feature layer constructor
{Object} a GeoJSON object
{GeoJsonOptions} any options for the transformation
feature layer constructor object
Attempt to infers the type of a given value Will check if the value's type is one of int, double Defaults to string type if not
Will property convert json-based raw data (on a layer config) to a json object while respecting caching considerations.
json-compatible payload from config
Optionalcaching: boolean = falseif layer is concerned about caching the payload
data as a Json object
Converts Shapefile data to geojson.
an ArrayBuffer of the Shapefile in zip format
a promise resolving with geojson
Unzip a single zipped file.
zipped file as ArrayBuffer
contents of the unzipped file as ArrayBuffer
A base class for anything requiring access to the InstanceApi and instance of Vue app controlled by it.
Export
APIScope