Move defaults style into style.js

This commit is contained in:
Antoine Abt
2014-07-25 09:50:53 +02:00
parent 16cdd35f6d
commit 4b8ceca8eb
6 changed files with 48 additions and 54 deletions

View File

@@ -10,7 +10,7 @@ goog.require('ol.CollectionEventType');
goog.require('ol.Feature');
goog.require('ol.render.EventType');
goog.require('ol.renderer.vector');
goog.require('ol.style.defaults');
goog.require('ol.style.Style');
@@ -74,7 +74,7 @@ ol.FeatureOverlay = function(opt_options) {
this.styleFunction_ = undefined;
this.setStyle(goog.isDef(options.style) ?
options.style : ol.style.defaults.styleFunction);
options.style : ol.style.defaultStyleFunction);
if (goog.isDef(options.features)) {
if (goog.isArray(options.features)) {
@@ -168,7 +168,7 @@ ol.FeatureOverlay.prototype.handleMapPostCompose_ = function(event) {
}
var styleFunction = this.styleFunction_;
if (!goog.isDef(styleFunction)) {
styleFunction = ol.style.defaults.styleFunction;
styleFunction = ol.style.defaultStyleFunction;
}
var replayGroup = /** @type {ol.render.IReplayGroup} */
(event.replayGroup);