AbstractStaticbufferThe extent to check and buffer
Buffer size in map units (default: 5000)
Buffered extent
StaticcalculateCalculates distance along a path define by array of Coordinates
Array of corrdinates
Input projection (EPSG:4326, EPSG:3978, ESPG:3857)
Output projection (EPSG:3978, ESPG:3857)
StaticconvertConverts a TypeFeatureStyle to an Open Layers Style object.
Optionalstyle: TypeFeatureStylean Open Layers styling for drawing on a map or undefined
StaticcoordFormat the coordinates for degrees - minutes - seconds (lat, long)
the value to format
the formatted value
StaticcreateCreate empty basemap tilelayer to use as initial basemap while we load basemap so the viewer will not fails if basemap is not avialable
The created empty basemap
StaticensureEnsures a service URL includes standardized OGC parameters (SERVICE, REQUEST, VERSION),
overriding any existing ones with the correct casing and values.
The function normalizes query parameter keys, removes lowercase variants (service, request),
and ensures the final URL contains correctly capitalized parameters with the specified values.
If the VERSION parameter is missing, a default value is added.
The input service URL, which may be absolute or relative.
The OGC service type (e.g., "WMS", "WFS", "WMTS").
The OGC request type (e.g., "GetMap", "GetFeature", "GetCapabilities").
Optionalversion: string = '1.3.0'The default service version to enforce if not already present.
The normalized and fully qualified service request URL.
StaticensureBuilds a complete DescribeFeatureType URL for a WFS service.
The base WFS service URL.
The layer or feature type name to describe.
The WFS version.
OptionaloutputFormat: stringOptional output format (e.g., "application/json", "text/xml").
A fully qualified DescribeFeatureType request URL.
StaticensureBuilds a complete GetCapabilities URL for a specific OGC service.
The base service URL.
The service type (e.g., "WMS", "WFS").
Optionallayers: stringOptional layer name(s) to include in the request.
A fully qualified GetCapabilities request URL.
StaticensureBuilds a complete GetFeature URL for a WMS/WFS service.
The base WFS service URL.
The layer or feature type name to request.
The WFS version.
OptionaloutputFormat: stringOptional output format (e.g., "application/json").
A fully qualified GetFeature request URL.
StaticensureBuilds a complete GetLegendGraphic URL for a WMS service.
The base WMS service URL.
The layer name for which to retrieve the legend.
The WMS version.
Optionalformat: string = 'image/png'Optional image format for the legend (e.g., "image/png").
A fully qualified GetLegendGraphic request URL.
StaticensureBuilds a complete GetStyles URL for a WMS service.
The base WMS service URL.
Optionallayers: stringOptional layer name(s) to include in the request.
Optionalversion: stringOptional WMS version.
A fully qualified GetStyles request URL.
StaticesriConverts an esri geometry type string to a TypeStyleGeometry.
The esri geometry type to convert
The corresponding TypeStyleGeometry
StaticextentConverts an extent to a polygon
The extent to convert
The created polygon
StaticgeojsonReturns the Geometry representation of a given geojson
The geojson
Read options to convert the geojson to a geometry
StaticgeometriesFunction for checking if two geometries have the same coordinates
The first geometry
The second geometry
Whether the two geometries are equal or not
StaticgeometryReturns the WKT representation of a given geometry.
The geometry
The WKT representation of the geometry
StaticgetGets the area of a given geometry
the geometry to calculate the area
the area of the given geometry
StaticgetExtracts the base URL (origin + pathname) from a full URL string, removing any query parameters, hash fragments, or authentication data.
The full URL string to process.
The normalized base URL consisting of the origin and pathname.
StaticgetDefault drawing style for GeoView
OptionalstrokeColor: string | ColorOptionalstrokeWidth: numberOptionalfillColor: string | ColorAn Open Layers styling for drawing on a map
StaticgetFetch the json response from the ESRI map server to get REST endpoint metadata.
The url of the ESRI map server.
A json promise containing the result of the query.
StaticgetReturns the intersection of 2 extents.
First extent
OptionalextentB: ExtentOptional second extent
The intersection of the extents
StaticgetReturns the union of 2 extents.
First extent
OptionalextentB: ExtentOptional second extent
The union of the extents
StaticgetThis method gets the legend styles used by the the layer as specified by the style configuration.
Layer style configuration.
A promise that the layer styles are processed.
StaticgetGets the length of a given geometry
the geometry to calculate the length
the length of the given geometry
StaticgetGets map scale for Web Mercator or Lambert Conformal Conic projections
The view to get the current scale from
number representing scale (e.g. 50000 for 1:50,000)
StaticgetStaticgetGets meters per pixel for different projections
The projection of the map
The resolution of the map
Optionallat: numberThe latitude, only needed for Web Mercator
Number representing meters per pixel
StaticgetStaticgetGets the pointer position information from a Map Event and a specified projection.
The map event
The map projection code
An object representing pointer position information
StaticgetConverts a map scale to zoom level
The view for converting the zoom
The desired zoom (e.g. 50000 for 1:50,000)
number representing the closest scale for the given zoom number
StaticgetFetch the json response from the XML response of a WMS getCapabilities request.
The url the url of the WMS server.
Optionallayers: stringThe layers to query separate by.
OptionalcallbackNewMetadataUrl: CallbackNewMetadataDelegateOptionalabortSignal: AbortSignalAbort signal to handle cancelling of fetch.
A json promise containing the result of the query.
StaticgetFetch the json response from the XML response of a WMS getCapabilities request.
The url the url of the WMS server.
OptionalcallbackNewMetadataUrl: CallbackNewMetadataDelegateOptionalabortSignal: AbortSignalAbort signal to handle cancelling of fetch.
A json promise containing the result of the query.
StaticgetFetch the json response from the XML response of a WMS getCapabilities request.
The url the url of the WMS server.
Optionallayers: stringThe layers to query separate by.
OptionalcallbackNewMetadataUrl: CallbackNewMetadataDelegateOptionalabortSignal: AbortSignalAbort signal to handle cancelling of fetch.
A json promise containing the result of the query.
StaticgetConverts a map scale to zoom level
The view for converting the scale
The desired scale (e.g. 50000 for 1:50,000)
OptionaldpiValue: numbernumber representing the closest zoom level for the given scale
StaticisChecks if a given extent is long/lat.
The extent to check.
Whether or not the extent is long/lat
StaticisChecks whether a given value is a valid GeoJSON FeatureCollection object.
The value to test (can be any type).
true if the value appears to be a GeoJSON FeatureCollection, otherwise false.
StaticisCheck if a point is contained in an extent
The point
The extent
True if point is within the extent, false otherwise
StaticpolygonConverts a polygon to an extent
The polygon to convert
The created extent
StaticreadExtracts the EPSG code from a GeoJSON object's CRS definition.
Accepts either a GeoJSON object or a JSON string. If the GeoJSON contains
a crs entry with a properties.name field in the form
"urn:ogc:def:crs:EPSG::<code>", it is normalized to "EPSG:<code>".
A GeoJSON object or a JSON string representing one.
The normalized EPSG code (e.g., "EPSG:3005"), or
undefined if the CRS is not defined.
StaticreadExtracts the EPSG code from a GeoJSON object's CRS definition.
Accepts either a GeoJSON object or a JSON string. If the GeoJSON contains
a crs entry with a properties.name field in the form
"urn:ogc:def:crs:EPSG::<code>", it is normalized to "EPSG:<code>".
The normalized EPSG code (e.g., "EPSG:3005"), or
undefined if the CRS is not defined.
StaticreadReads OpenLayers features from a GeoJSON object.
The GeoJSON data to read.
Optionaloptions: ReadOptionsOptional read options such as projection or extent.
An array of parsed OpenLayers Feature instances.
StaticreadReads OpenLayers features from a WKBObject object.
The WKBObject data to read.
Optionaloptions: ReadOptionsOptional read options such as projection or extent.
An array of parsed OpenLayers Feature instances.
StaticreplaceReplaces or adds the BBOX parameter in a WMS GetMap URL.
The original WMS GetMap URL
The new CRS
The new BBOX to set, as an array of 4 numbers: [minX, minY, maxX, maxY]
A new URL string with the updated BBOX parameter
StaticvalidateChecks validity of lat long, LCC, or Web Mercator extent and updates values if invalid.
The extent to validate.
The projection code of the extent. Default EPSG:4326.
The validated extent
StaticvalidateValidates lat long, LCC, or Web Mercator extent if it is defined.
The extent to validate.
The projection code of the extent. Default EPSG:4326.
The validated extent if it was defined.
StaticwfsConverts a WFS geometry type string to a TypeStyleGeometry.
The wfs geometry type to convert
The corresponding TypeStyleGeometry
StaticwktReturns the Geometry representation of a given wkt.
The well known text
Read options to convert the wkt to a geometry
The Geometry representation of the wkt
StaticwriteSerializes an OpenLayers geometry into a GML3 string.
This method uses the OpenLayers GML3 format to convert the provided
Geometry object into a GML XML string, using the specified spatial
reference system (srsName).
The OpenLayers geometry to serialize.
The spatial reference system (e.g., 'EPSG:3857') to assign to the GML geometry.
The serialized GML geometry as a string.
Apply buffer to extent