Module: leaflet

This is a module summarizing functions for integration with Leaflet. Since this is a provisional version, specifications may change in the future. Integration with OpenLayers is stable (recommended).

Methods

(static) createLayer(params) → {L.layer}

Retrieves a layer instance that can be loaded with Leaflet. Since this is a provisional version, specifications may change in the future.
Parameters:
Name Type Description
params Object Conditions for obtaining an instance of {L.layer}
Properties
Name Type Attributes Default Description
L Object Reference to the Leaflet module
collection string URL of the dataset's collection.json
band string <optional>
The band names of the dataset defined in collection.json. If this is omitted, the first band defined in the dataset will be set automatically.
colorMap ColorMapObject <optional>
Color map used for visualization. If this is omitted, the settings will automatically display the range from minimum to maximum values globally using a color scale from black to white.
date Date <optional>
new Date() An Image instance will be retrieved for this date and time.
tid number <optional>
An Image instance corresponding to this timestamp ID will be obtained. Please specify either date or tid.
opacity number <optional>
1 Layer opacity. Please specify a value between 0 (transparent) and 1 (opaque).
projection string <optional>
"EPSG:4326" Map projection. Currently, it only supports displaying datasets in EPSG:4326 (geographic coordinates) using EPSG:3857 (Web Mercator). In that case, specify "EPSG:3857."
bilinearResampling boolean <optional>
false If true, high-precision bilinear resampling will be used. This method is necessary for differential calculations, such as deriving a slope from acquired terrain data. If false, a fast nearest neighbor method will be used.
See:
Returns:
Returns an instance of {L.layer}.
Type
L.layer