Type Definitions
-
olx.format.EsriJSONOptions{Object} experimental
-
Properties:
Name Type Argument Description geometryNamestring | undefined <optional>
Geometry name to use when creating features.
-
olx.format.GeoJSONOptions{Object} experimental
-
Properties:
Name Type Argument Description defaultDataProjectionol.proj.ProjectionLike Default data projection.
geometryNamestring | undefined <optional>
Geometry name to use when creating features.
-
olx.format.GMLOptions{Object} experimental
-
Properties:
Name Type Argument Description featureNSObject.<string, string> | string | undefined <optional>
Feature namespace. If not defined will be derived from GML. If multiple feature types have been configured which come from different feature namespaces, this will be an object with the keys being the prefixes used in the entries of featureType array. The values of the object will be the feature namespaces themselves. So for instance there might be a featureType item
topp:statesin thefeatureTypearray and then there will be a keytoppin the featureNS object with valuehttp://www.openplans.org/topp.featureTypeArray.<string> | string | undefined <optional>
Feature type(s) to parse. If multiple feature types need to be configured which come from different feature namespaces,
featureNSwill be an object with the keys being the prefixes used in the entries of featureType array. The values of the object will be the feature namespaces themselves. So for instance there might be a featureType itemtopp:statesand then there will be a key namedtoppin the featureNS object with valuehttp://www.openplans.org/topp.srsNamestring srsName to use when writing geometries.
surfaceboolean | undefined <optional>
Write gml:Surface instead of gml:Polygon elements. This also affects the elements in multi-part geometries. Default is
false.curveboolean | undefined <optional>
Write gml:Curve instead of gml:LineString elements. This also affects the elements in multi-part geometries. Default is
false.multiCurveboolean | undefined <optional>
Write gml:MultiCurve instead of gml:MultiLineString. Since the latter is deprecated in GML 3, the default is
true.multiSurfaceboolean | undefined <optional>
Write gml:multiSurface instead of gml:MultiPolygon. Since the latter is deprecated in GML 3, the default is
true.schemaLocationstring | undefined <optional>
Optional schemaLocation to use when writing out the GML, this will override the default provided.
-
olx.format.GPXOptions{Object} experimental
-
Properties:
Name Type Description readExtensionsfunction Callback function to process
extensionsnodes. To prevent memory leaks, this callback function must not store any references to the node. Note that theextensionsnode is not allowed in GPX 1.0. Moreover, onlyextensionsnodes fromwpt,rteandtrkcan be processed, as those are directly mapped to a feature. -
olx.format.IGCOptions{Object} experimental
-
Properties:
Name Type Argument Description altitudeModeol.format.IGCZ | undefined <optional>
Altitude mode. Possible values are
barometric,gps, andnone. Default isnone. -
olx.format.KMLOptions{Object} experimental
-
Properties:
Name Type Argument Description extractStylesboolean | undefined <optional>
Extract styles from the KML. Default is
true.defaultStyleArray.<ol.style.Style> | undefined <optional>
Default style. The default default style is the same as Google Earth.
-
olx.format.PolylineOptions{Object} experimental
-
Properties:
Name Type Argument Description factornumber The factor by which the coordinates values will be scaled. Default is
1e5.geometryLayoutol.geom.GeometryLayout | undefined <optional>
Layout of the feature geometries created by the format reader. Default is
ol.geom.GeometryLayout.XY. -
olx.format.ReadOptions{Object} experimental
-
Properties:
Name Type Description dataProjectionol.proj.ProjectionLike Projection of the data we are reading. If not provided, the projection will be derived from the data (where possible) or the
defaultDataProjectionof the format is assigned (where set). If the projection can not be derived from the data and if nodefaultDataProjectionis set for a format, the features will not be reprojected.featureProjectionol.proj.ProjectionLike Projection of the feature geometries created by the format reader. If not provided, features will be returned in the
dataProjection. -
olx.format.TopoJSONOptions{Object} experimental
-
Properties:
Name Type Description defaultDataProjectionol.proj.ProjectionLike Default data projection.
-
olx.format.WFSOptions{Object} experimental
-
Properties:
Name Type Argument Description featureNSObject.<string, string> | string | undefined <optional>
The namespace URI used for features.
featureTypeArray.<string> | string | undefined <optional>
The feature type to parse. Only used for read operations.
gmlFormatol.format.GMLBase | undefined <optional>
The GML format to use to parse the response. Default is
ol.format.GML3.schemaLocationstring | undefined <optional>
Optional schemaLocation to use for serialization, this will override the default.
-
olx.format.WFSWriteGetFeatureOptions{Object} experimental
-
Properties:
Name Type Argument Description featureNSstring The namespace URI used for features.
featurePrefixstring The prefix for the feature namespace.
featureTypesArray.<string> The feature type names.
srsNamestring | undefined <optional>
SRS name. No srsName attribute will be set on geometries when this is not provided.
handlestring | undefined <optional>
Handle.
outputFormatstring | undefined <optional>
Output format.
maxFeaturesnumber | undefined <optional>
Maximum number of features to fetch.
geometryNamestring | undefined <optional>
Geometry name to use in a BBOX filter.
bboxol.Extent | undefined <optional>
Extent to use for the BBOX filter.
-
olx.format.WFSWriteTransactionOptions{Object}
-
Properties:
Name Type Argument Description featureNSstring The namespace URI used for features.
featurePrefixstring The prefix for the feature namespace.
featureTypestring The feature type name.
srsNamestring | undefined <optional>
SRS name. No srsName attribute will be set on geometries when this is not provided.
handlestring | undefined <optional>
Handle.
nativeElementsArray.<Object> Native elements. Currently not supported.
gmlOptionsolx.format.GMLOptions | undefined <optional>
GML options for the WFS transaction writer.
-
olx.format.WKTOptions{Object} experimental
-
Properties:
Name Type Argument Description splitCollectionboolean | undefined <optional>
Whether to split GeometryCollections into multiple features on reading. Default is
false. -
olx.format.WriteOptions{Object} experimental
-
Properties:
Name Type Argument Description dataProjectionol.proj.ProjectionLike Projection of the data we are writing. If not provided, the
defaultDataProjectionof the format is assigned (where set). If nodefaultDataProjectionis set for a format, the features will be returned in thefeatureProjection.featureProjectionol.proj.ProjectionLike Projection of the feature geometries that will be serialized by the format writer.
rightHandedboolean | undefined <optional>
When writing geometries, follow the right-hand rule for linear ring orientation. This means that polygons will have counter-clockwise exterior rings and clockwise interior rings. By default, coordinates are serialized as they are provided at construction. If
true, the right-hand rule will be applied. Iffalse, the left-hand rule will be applied (clockwise for exterior and counter-clockwise for interior rings). Note that not all formats support this. The GeoJSON format does use this property when writing geometries.
OpenLayers 3