Followup to r8519; fix styleurl parsing as well. Includes new KML modifications

to examples to show styleurls in action. r=me (Closes #1796)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8882 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2009-02-21 13:43:21 +00:00
parent d4c94eb1e6
commit 31dd2e65bd
4 changed files with 32 additions and 2 deletions

View File

@@ -543,7 +543,7 @@ OpenLayers.Format.KML = OpenLayers.Class(OpenLayers.Format.XML, {
// Create reference to styleUrl
if (this.extractStyles && feature.attributes &&
feature.attributes.styleUrl) {
feature.style = this.getStyle(feature.attributes.styleUrl);
feature.style = this.getStyle(feature.attributes.styleUrl, options);
}
if (this.extractStyles) {