OpenLayersUtils: {
    fromOLColor: ((input) => {
        color: Color;
        opacity: number;
    });
    fromOLExtent: ((extent, projectionCode) => Extent);
    getFeatureExtent: ((feature, crs) => Extent | undefined);
    toOLExtent: ((extent, margin?) => OLExtent);
}

Type declaration

  • fromOLColor: ((input) => {
        color: Color;
        opacity: number;
    })
      • (input): {
            color: Color;
            opacity: number;
        }
      • Parameters

        • input: Color | ColorLike

        Returns {
            color: Color;
            opacity: number;
        }

        • color: Color
        • opacity: number
  • fromOLExtent: ((extent, projectionCode) => Extent)
      • (extent, projectionCode): Extent
      • Parameters

        • extent: Extent
        • projectionCode: string

        Returns Extent

  • getFeatureExtent: ((feature, crs) => Extent | undefined)
  • toOLExtent: ((extent, margin?) => OLExtent)
      • (extent, margin?): OLExtent
      • Parameters

        • extent: Extent
        • margin: number = 0

        Returns OLExtent