Add assert messages for all assertions up until ol.renderer.vector.
This commit is contained in:
@@ -311,7 +311,8 @@ ol.interaction.Select.getDefaultStyleFunction = function() {
|
||||
ol.interaction.Select.prototype.addFeature_ = function(evt) {
|
||||
var feature = evt.element;
|
||||
var map = this.getMap();
|
||||
goog.asserts.assertInstanceof(feature, ol.Feature);
|
||||
goog.asserts.assertInstanceof(feature, ol.Feature,
|
||||
'feature should be an ol.Feature');
|
||||
if (!goog.isNull(map)) {
|
||||
map.skipFeature(feature);
|
||||
}
|
||||
@@ -325,7 +326,8 @@ ol.interaction.Select.prototype.addFeature_ = function(evt) {
|
||||
ol.interaction.Select.prototype.removeFeature_ = function(evt) {
|
||||
var feature = evt.element;
|
||||
var map = this.getMap();
|
||||
goog.asserts.assertInstanceof(feature, ol.Feature);
|
||||
goog.asserts.assertInstanceof(feature, ol.Feature,
|
||||
'feature should be an ol.Feature');
|
||||
if (!goog.isNull(map)) {
|
||||
map.unskipFeature(feature);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user