Skip to content

Latest commit

 

History

History
120 lines (79 loc) · 3.63 KB

actions.md

File metadata and controls

120 lines (79 loc) · 3.63 KB

Actions

STAC Browser has a pluggable interface to share or open assets and links with other services, which we call "actions".

An action adds a button to an asset or link if certain requirements are met, which can then be executed by users. For example, you could open COPC files in a dedicated COPC Viewer, which otherwise you could only download.

Assets

All actions for assets are stored in the folder src/actions/assets. They all implement the AssetActionPlugin interface. The actions can be enabled by adding them to the assetActions.config.js file.

cogeo.xyz

Adds an Open in cogeo.xyz button that allows to open Cloud-Optimized GeoTiff (COG) files on https://cogeo.xyz.

import CoGeoXyz from './src/actions/assets/CoGeoXyz.js';
export default { CoGeoXyz };

copc.io

Adds an Open in copc.io button that allows to open Cloud-Optimized Point Cloud (COPC) files on https://viewer.copc.io.

import CopcViewer from './src/actions/assets/CopcViewer.js';
export default { CopcViewer };

Felt (Assets)

Adds an Open in Felt button that allows to import KML, KMZ, GeoTiff and GeoJSON assets to https://felt.com.

import Felt from './src/actions/assets/Felt.js';
export default { Felt };

geojson.io

Adds an Open in geojson.io button that allows to open GeoJSON files on https://geojson.io.

import GeoJsonIo from './src/actions/assets/GeoJsonIo.js';
export default { GeoJsonIo };

OGC3dTiles

Adds an Open in Geofox.ai button that allows to open OGC 3D Tiles files on https://viewer.geofox.ai or Cesium Sandcastle.

import OGC3dTiles from './src/actions/assets/OGC3dTiles.js';
export default { OGC3dTiles };

geoparquet.info

Adds an Open in geoparquet.info button that allows to open GeoParquet files on https://geoparquet.info.

import Geoparquet from './src/actions/assets/Geoparquet.js';
export default { Geoparquet };

potree.org

Adds an Open in potree.org button that allows to open COPC and Potree files on https://potree.org (via Darren Wiens or Iconem apps)

import Potree from './src/actions/assets/Potree.js';
export default { Potree };

pmtiles.io

Adds an Open in pmtiles.io button that allows to open Protomaps PMTiles files on https://pmtiles.io.

import Protomaps from './src/actions/assets/Protomaps.js';
export default { Protomaps };

Links

All actions for links are stored in the folder src/actions/links. They all implement the LinkActionPlugin interface. The actions can be enabled by adding them to the linkActions.config.js file.

Felt (Links)

Adds an Open in Felt button that allows to show XYZ tile services on https://felt.com. The link to the XYZ has to follow the web-map-links extension.

import Felt from './src/actions/links/Felt.js';
export default { Felt };

pmtiles.io

Adds an Open in pmtiles.io button that allows to open Protomaps PMTiles files on https://pmtiles.io.

import Protomaps from './src/actions/assets/Protomaps.js';
export default { Protomaps };

OGC3dTiles

Adds an Open in Geofox.ai button that allows to open OGC 3D Tiles files on https://viewer.geofox.ai or Cesium Sandcastle.

import OGC3dTiles from './src/actions/assets/OGC3dTiles.js';
export default { OGC3dTiles };