Clearer naming of method to create symbolizer literals
This commit is contained in:
@@ -395,7 +395,7 @@ ol.layer.Vector.prototype.groupFeaturesBySymbolizerLiteral =
|
||||
} else {
|
||||
if (!goog.isNull(style)) {
|
||||
// layer style second
|
||||
literals = style.apply(feature);
|
||||
literals = style.createLiterals(feature);
|
||||
} else {
|
||||
literals = ol.style.Style.applyDefaultStyle(feature);
|
||||
}
|
||||
|
||||
@@ -28,11 +28,12 @@ ol.style.Style = function(options) {
|
||||
|
||||
|
||||
/**
|
||||
* Create an array of symbolizer literals for a feature.
|
||||
* @param {ol.Feature} feature Feature.
|
||||
* @return {Array.<ol.style.Literal>} Symbolizer literals for the
|
||||
* feature.
|
||||
*/
|
||||
ol.style.Style.prototype.apply = function(feature) {
|
||||
ol.style.Style.prototype.createLiterals = function(feature) {
|
||||
var rules = this.rules_,
|
||||
literals = [],
|
||||
rule, symbolizers;
|
||||
@@ -55,7 +56,7 @@ ol.style.Style.prototype.apply = function(feature) {
|
||||
* the feature.
|
||||
*/
|
||||
ol.style.Style.applyDefaultStyle = function(feature) {
|
||||
return ol.style.Style.defaults.apply(feature);
|
||||
return ol.style.Style.defaults.createLiterals(feature);
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user