@geogirafe/lib-geoportal
    Preparing search index...
    Index
    geojson: object = {}
    id: string = ...
    onChange: (f: DrawingFeature) => void = ...
    geoJSONFormat: GeoJSON<Feature<Geometry, { [x: string]: any }>> = ...
    • Parameters

      • center: number[]
      • radius: number
      • nbEdges: number = 300

      Returns number[][]

    • Create an ol feature instance from a geojson object, optionally simplifying circle geometries to polygons with a limited number of edges to improve support across formats and services.

      Parameters

      • geoJson: any
      • OptionalcircleToPolygonNbEdges: number

      Returns Feature<Geometry>

    • Transform a geojson (valid object, or disk with its properties) to a new projection.

      Parameters

      • geoJson: object
      • oldProj: string
      • newProj: string

      Returns object | null

      The transformed geojson object or null.