/** * This function determines the projection of the features based on the provided text. * * @param {GeoJSON | KML | TopoJSON | null} formatReader * @param {string} text * @returns {string | undefined} - Returns the projection string if determined, otherwise undefined. */ export function getProj(formatReader: GeoJSON | KML | TopoJSON | null, text: string): string | undefined; /** * This function reads text and attempts to parse it as GeoJSON, KML, or TopoJSON. * If successful, it adds the parsed features to the map. * * @param {string} text - The string containing the geographic data to be parsed. * @param {import("ol/layer").Vector} vectorLayer - The vector layer to which the parsed features will be added. * @param {import("../main").EOxMap} EOxMap - An instance of EOxMap, used here for context and potentially for further operations like event dispatching. * @param {boolean} replaceFeatures - Optional boolean flag indicating whether to replace the existing features with the new ones. * @param {boolean} animate - Optional boolean flag indicating whether to animate the map on feature change. * @return {void} */ export default function parseTextToFeature(text: string, vectorLayer: import("ol/layer").Vector, EOxMap: import("../main").EOxMap, replaceFeatures?: boolean, animate?: boolean): void; /** * Function to check if a string is valid GeoJSON * * @param {string} text - The string to be checked. * @returns {boolean} - `true` if the string is a valid GeoJSON object, `false` otherwise. */ export function isGeoJSON(text: string): boolean; /** * Function to check if a string is valid KML * * @param {string} text - The string to be checked. * @returns {boolean} - `true` if the string contains KML tags, `false` otherwise. */ export function isKML(text: string): boolean; /** * Function to check if a string is valid TopoJSON * * @param {string} text - The string to be checked. * @returns {boolean} - `true` if the string is a valid TopoJSON object, `false` otherwise. */ export function isTopoJSON(text: string): boolean; import GeoJSON from "ol/format/GeoJSON"; import KML from "ol/format/KML"; import TopoJSON from "ol/format/TopoJSON"; //# sourceMappingURL=parse-text.d.ts.map