OpenLayers.Format.KML

Patch for KML format of OpenLayers.

Extends the OpenLayers.Format.KML format to load StyleMap with “normal” and “highlight” styles.

Summary
OpenLayers.Format.KMLPatch for KML format of OpenLayers.
Functions
parseStyleMapsLooks for <Style> nodes in the data and parses them Also parses <StyleMap> nodes, but only uses the ‘normal’ key
getStyleRetrieves a style from a style hash using styleUrl as the key If the styleUrl doesn’t exist yet, we try to fetch it Internet

Functions

parseStyleMaps

_prototype.parseStyleMaps = function(nodes,
options)

Looks for <Style> nodes in the data and parses them Also parses <StyleMap> nodes, but only uses the ‘normal’ key

Parameters

nodes{Array} of {DOMElement} data to read/parse.
options{Object} Hash of options

getStyle

_prototype.getStyle = function(styleUrl,
options)

Retrieves a style from a style hash using styleUrl as the key If the styleUrl doesn’t exist yet, we try to fetch it Internet

Parameters

styleUrl{String} URL of style
options{Object} Hash of options
_prototype.parseStyleMaps = function(nodes,
options)
Looks for Style nodes in the data and parses them Also parses StyleMap nodes, but only uses the ‘normal’ key
_prototype.getStyle = function(styleUrl,
options)
Retrieves a style from a style hash using styleUrl as the key If the styleUrl doesn’t exist yet, we try to fetch it Internet
Close