Updating example and tests to demonstrate the trackAttributes property for per point attribute parsing (see #2771).

git-svn-id: http://svn.openlayers.org/trunk/openlayers@10633 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Tim Schaub
2010-08-18 18:53:43 +00:00
parent 42fedc4d69
commit 94c29f1d4d
3 changed files with 1426 additions and 466 deletions

View File

@@ -16,7 +16,8 @@ function init() {
protocol: new OpenLayers.Protocol.HTTP({
url: "kml-track.kml",
format: new OpenLayers.Format.KML({
extractTracks: true
extractTracks: true,
trackAttributes: ["speed"]
})
}),
styleMap: new OpenLayers.StyleMap({