Icon symbolizer extends point symbolizer

This commit is contained in:
Tim Schaub
2013-10-09 09:01:30 -06:00
parent 7be90877fe
commit e36c53dd23
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -17,6 +17,7 @@ goog.require('ol.style.Point');
* @param {ol.style.IconOptions} options Icon options. * @param {ol.style.IconOptions} options Icon options.
*/ */
ol.style.Icon = function(options) { ol.style.Icon = function(options) {
goog.base(this);
goog.asserts.assert(options.url, 'url must be set'); 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); options.zIndex : new ol.expr.Literal(options.zIndex);
}; };
goog.inherits(ol.style.Icon, ol.style.Point);
/** /**
@@ -15,6 +15,7 @@ describe('ol.style.Icon', function() {
yOffset: 15 yOffset: 15
}); });
expect(symbolizer).to.be.a(ol.style.Icon); expect(symbolizer).to.be.a(ol.style.Icon);
expect(symbolizer).to.be.a(ol.style.Point);
}); });
it('accepts expressions', function() { it('accepts expressions', function() {
@@ -527,3 +528,4 @@ goog.require('ol.geom.GeometryType');
goog.require('ol.geom.Point'); goog.require('ol.geom.Point');
goog.require('ol.style.Icon'); goog.require('ol.style.Icon');
goog.require('ol.style.IconLiteral'); goog.require('ol.style.IconLiteral');
goog.require('ol.style.Point');