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