diff --git a/src/ol/style/iconsymbolizer.js b/src/ol/style/iconsymbolizer.js index 284dce51fe..d8e8c0556e 100644 --- a/src/ol/style/iconsymbolizer.js +++ b/src/ol/style/iconsymbolizer.js @@ -17,6 +17,7 @@ goog.require('ol.style.Point'); * @param {ol.style.IconOptions} options Icon options. */ ol.style.Icon = function(options) { + goog.base(this); goog.asserts.assert(options.url, 'url must be set'); @@ -91,6 +92,7 @@ ol.style.Icon = function(options) { options.zIndex : new ol.expr.Literal(options.zIndex); }; +goog.inherits(ol.style.Icon, ol.style.Point); /** diff --git a/test/spec/ol/style/iconsymbolizer.test.js b/test/spec/ol/style/iconsymbolizer.test.js index 0f0a736f7d..cd34550842 100644 --- a/test/spec/ol/style/iconsymbolizer.test.js +++ b/test/spec/ol/style/iconsymbolizer.test.js @@ -15,6 +15,7 @@ describe('ol.style.Icon', function() { yOffset: 15 }); expect(symbolizer).to.be.a(ol.style.Icon); + expect(symbolizer).to.be.a(ol.style.Point); }); it('accepts expressions', function() { @@ -527,3 +528,4 @@ goog.require('ol.geom.GeometryType'); goog.require('ol.geom.Point'); goog.require('ol.style.Icon'); goog.require('ol.style.IconLiteral'); +goog.require('ol.style.Point');