Move all styleFunction types into ol.feature

This commit is contained in:
Tom Payne
2014-01-03 17:23:11 +01:00
parent 2342f83a48
commit 061fed50b7
7 changed files with 54 additions and 43 deletions
+3 -3
View File
@@ -18,6 +18,7 @@ goog.require('goog.math');
goog.require('goog.object');
goog.require('goog.string');
goog.require('ol.Feature');
goog.require('ol.feature');
goog.require('ol.format.XML');
goog.require('ol.geom.GeometryCollection');
goog.require('ol.geom.LineString');
@@ -78,7 +79,7 @@ ol.format.KML = function(opt_options) {
/**
* @private
* @type {function(this: ol.Feature, number): Array.<ol.style.Style>}
* @type {ol.feature.FeatureStyleFunction}
*/
this.sharedStyleFeatureStyleFunction_ =
/**
@@ -238,8 +239,7 @@ ol.format.KML.defaultFeatureStyleFunction_ = function(resolution) {
/**
* @param {ol.style.Style} style Style.
* @private
* @return {function(this: ol.Feature, number): Array.<ol.style.Style>} Feature
* style function.
* @return {ol.feature.FeatureStyleFunction} Feature style function.
*/
ol.format.KML.makeFeatureStyleFunction_ = function(style) {
// FIXME handle styleMap?