函數Read the first feature from a KML source. MultiGeometries are converted into GeometryCollections if they are a mix of geometry types, and into MultiPoint/ MultiLineString/MultiPolygon if they are all of the same type.
Source.
可選opt_options: ReadOptionsRead options.
Feature.
函數Read all features from a KML source. MultiGeometries are converted into GeometryCollections if they are a mix of geometry types, and into MultiPoint/ MultiLineString/MultiPolygon if they are all of the same type.
Source.
可選opt_options: ReadOptionsRead options.
Features.
函數Read the projection from a KML source.
Source.
Projection.
函數Encode an array of features in the KML format. GeometryCollections, MultiPoints, MultiLineStrings, and MultiPolygons are output as MultiGeometries.
Features.
可選opt_options: WriteOptionsOptions.
Result.
Encode an array of features in the KML format as an XML node. GeometryCollections, MultiPoints, MultiLineStrings, and MultiPolygons are output as MultiGeometries.
Features.
可選opt_options: WriteOptionsOptions.
Node.
可選opt_options: KMLOptionsOptions.
Classdesc
Feature format for reading and writing data in the KML format.
Note that the KML format uses the URL() constructor. Older browsers such as IE which do not support this will need a URL polyfill to be loaded before use.
參數: opt_options
Options.
Api
stable