Shape symbolizer extends point symbolizer
This commit is contained in:
@@ -20,6 +20,7 @@ goog.require('ol.style.Stroke');
|
|||||||
* @param {ol.style.ShapeOptions} options Shape options.
|
* @param {ol.style.ShapeOptions} options Shape options.
|
||||||
*/
|
*/
|
||||||
ol.style.Shape = function(options) {
|
ol.style.Shape = function(options) {
|
||||||
|
goog.base(this);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @type {ol.style.ShapeType}
|
* @type {ol.style.ShapeType}
|
||||||
@@ -63,6 +64,7 @@ ol.style.Shape = function(options) {
|
|||||||
options.zIndex : new ol.expr.Literal(options.zIndex);
|
options.zIndex : new ol.expr.Literal(options.zIndex);
|
||||||
|
|
||||||
};
|
};
|
||||||
|
goog.inherits(ol.style.Shape, ol.style.Point);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ describe('ol.style.Shape', function() {
|
|||||||
})
|
})
|
||||||
});
|
});
|
||||||
expect(symbolizer).to.be.a(ol.style.Shape);
|
expect(symbolizer).to.be.a(ol.style.Shape);
|
||||||
|
expect(symbolizer).to.be.a(ol.style.Point);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('accepts expressions', function() {
|
it('accepts expressions', function() {
|
||||||
@@ -329,6 +330,7 @@ goog.require('ol.geom.GeometryType');
|
|||||||
goog.require('ol.geom.Point');
|
goog.require('ol.geom.Point');
|
||||||
goog.require('ol.expr');
|
goog.require('ol.expr');
|
||||||
goog.require('ol.style.Fill');
|
goog.require('ol.style.Fill');
|
||||||
|
goog.require('ol.style.Point');
|
||||||
goog.require('ol.style.Shape');
|
goog.require('ol.style.Shape');
|
||||||
goog.require('ol.style.ShapeLiteral');
|
goog.require('ol.style.ShapeLiteral');
|
||||||
goog.require('ol.style.ShapeType');
|
goog.require('ol.style.ShapeType');
|
||||||
|
|||||||
Reference in New Issue
Block a user