new KML
Stability: experimental
Parameters:
| Name | Type | Argument | Description |
|---|---|---|---|
options |
olx.format.KMLOptions |
<optional> |
Options. |
- Source:
- kmlformat.js, line 59
Extends
- ol.format.XMLFeature
Methods
-
readFeature
Stability: not documented -
Read the first feature from a KML source.
Parameters:
Name Type Description sourceArrayBuffer | Document | Node | Object | string Source.
- Source:
- kmlformat.js, line 1454
Returns:
Feature.
- Type
- ol.Feature
-
readFeatures
Stability: not documented -
Read all features from a KML source.
Parameters:
Name Type Description sourceArrayBuffer | Document | Node | Object | string Source.
- Source:
- kmlformat.js, line 1483
Returns:
Features.
- Type
- Array.<ol.Feature>
-
readName
Stability: experimental -
Parameters:
Name Type Description sourceDocument | Node | string Souce.
- Source:
- kmlformat.js, line 1533
Returns:
Name.
- Type
- string | undefined
-
readProjection
Stability: not documented -
Read the projection from a KML source.
Parameters:
Name Type Description sourceArrayBuffer | Document | Node | Object | string Source.
- Source:
- kmlformat.js, line 1604
Returns:
Projection.
- Type
- ol.proj.Projection
OpenLayers 3