Icon symbolizer extends point symbolizer
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user