Shape symbolizer extends point symbolizer

This commit is contained in:
Tim Schaub
2013-10-09 09:01:51 -06:00
parent e36c53dd23
commit d5ab5ec1d2
2 changed files with 4 additions and 0 deletions

View File

@@ -20,6 +20,7 @@ goog.require('ol.style.Stroke');
* @param {ol.style.ShapeOptions} options Shape options.
*/
ol.style.Shape = function(options) {
goog.base(this);
/**
* @type {ol.style.ShapeType}
@@ -63,6 +64,7 @@ ol.style.Shape = function(options) {
options.zIndex : new ol.expr.Literal(options.zIndex);
};
goog.inherits(ol.style.Shape, ol.style.Point);
/**

View File

@@ -12,6 +12,7 @@ describe('ol.style.Shape', function() {
})
});
expect(symbolizer).to.be.a(ol.style.Shape);
expect(symbolizer).to.be.a(ol.style.Point);
});
it('accepts expressions', function() {
@@ -329,6 +330,7 @@ goog.require('ol.geom.GeometryType');
goog.require('ol.geom.Point');
goog.require('ol.expr');
goog.require('ol.style.Fill');
goog.require('ol.style.Point');
goog.require('ol.style.Shape');
goog.require('ol.style.ShapeLiteral');
goog.require('ol.style.ShapeType');