|
|
1 mesiac pred | |
|---|---|---|
| .. | ||
| src | 1 mesiac pred | |
| LICENSE | 1 mesiac pred | |
| README.en.md | 1 mesiac pred | |
| README.md | 1 mesiac pred | |
| package.json | 1 mesiac pred | |
| tsconfig.json | 1 mesiac pred | |
Standalone geospatial renderer package for Flyfish File Viewer. It previews GeoJSON, KML, GPX, and Shapefile data in the browser while keeping @tmcw/togeojson and shpjs lazy-loaded for geospatial files only.
import { geoRenderer } from '@file-viewer/renderer-geo'
const options = {
builtinRenderers: 'none',
renderers: [geoRenderer],
}
You can also compose it through the full preset:
import { allRenderers } from '@file-viewer/preset-all'
const options = {
builtinRenderers: 'none',
renderers: allRenderers,
}
FeatureCollection, Feature, and standalone geometry objects.@tmcw/togeojson only for KML / GPX and normalizes them into the shared GeoJSON pipeline.shpjs only for SHP / Shapefile previews, including common ZIP or binary Shapefile payloads.@file-viewer/core no longer bundles the geo renderer and no longer installs @tmcw/togeojson or shpjs by default. Install this renderer explicitly, or use @file-viewer/preset-all, when GeoJSON / KML / GPX / SHP preview is required.