Move extractStyles option to ol.format.KML
This commit is contained in:
@@ -124,9 +124,10 @@ var vector = new ol.layer.Vector({
|
||||
source: new ol.source.Cluster({
|
||||
distance: 40,
|
||||
source: new ol.source.Vector({
|
||||
extractStyles: false,
|
||||
url: 'data/kml/2012_Earthquakes_Mag5.kml',
|
||||
format: new ol.format.KML()
|
||||
format: new ol.format.KML({
|
||||
extractStyles: false
|
||||
})
|
||||
})
|
||||
}),
|
||||
style: styleFunction
|
||||
|
||||
@@ -40,9 +40,10 @@ var styleFunction = function(feature, resolution) {
|
||||
|
||||
var vector = new ol.layer.Vector({
|
||||
source: new ol.source.Vector({
|
||||
extractStyles: false,
|
||||
url: 'data/kml/2012_Earthquakes_Mag5.kml',
|
||||
format: new ol.format.KML()
|
||||
format: new ol.format.KML({
|
||||
extractStyles: false
|
||||
})
|
||||
}),
|
||||
style: styleFunction
|
||||
});
|
||||
|
||||
@@ -47,9 +47,10 @@ var styleFunction = function(feature, resolution) {
|
||||
|
||||
var vector = new ol.layer.Vector({
|
||||
source: new ol.source.Vector({
|
||||
extractStyles: false,
|
||||
url: 'data/kml/timezones.kml',
|
||||
format: new ol.format.KML()
|
||||
format: new ol.format.KML({
|
||||
extractStyles: false
|
||||
})
|
||||
}),
|
||||
style: styleFunction
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user