@geogirafe/lib-geoportal
Version:
GeoGirafe is a flexible application to build online geoportals.
39 lines (38 loc) • 1.41 kB
TypeScript
import type OlGeomGeometry from 'ol/geom/Geometry';
/**
* Generates HTML string containing icons based on the provided geometry.
*/
export default class FormatGridGeomValue {
private locale;
/**
* @returns The generated HTML string containing the icons, based on the provided geometry.
*/
getGeometryIcons(geometry: OlGeomGeometry, locale: string): string | undefined;
/**
* Supports point, multipoint, line, multilines (as line),
* polygon and multipolygons (as polygon) and circle (as polygon).
* @return A tuple containing the icon html, based on the given geometry,
* and coordinates array. Can returns [null, null] in case of not supported geometry.
*/
private getGeometryIconsInfo;
/**
* @returns A tuple containing the icons and coordinates for a point geometry.
* @private
*/
private getGeometryIconsInfoPoint;
/**
* @returns A tuple containing the icons and coordinates for a multi point geometry.
* @private
*/
private getGeometryIconsInfoMultiPoint;
/**
* @returns A tuple containing the icons and coordinates for a line or multiline geometry.
* @private
*/
private getGeometryIconsInfoLine;
/**
* @returns A tuple containing the icons and coordinates for a polygon or multipolygon geometry.
* @private
*/
private getGeometryIconsInfoPolygon;
}