Skip to content

Commit

Permalink
Merge pull request openlayers#1113 from tschaub/point-symbolizers
Browse files Browse the repository at this point in the history
ol.style.Shape and ol.style.Icon don't inherit from ol.style.Point.
  • Loading branch information
tschaub committed Oct 9, 2013
2 parents 7be9087 + d5ab5ec commit 3893351
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ol/style/iconsymbolizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down Expand Up @@ -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);


/**
Expand Down
2 changes: 2 additions & 0 deletions src/ol/style/shapesymbolizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down Expand Up @@ -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);


/**
Expand Down
2 changes: 2 additions & 0 deletions test/spec/ol/style/iconsymbolizer.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -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');
2 changes: 2 additions & 0 deletions test/spec/ol/style/shapesymbolizer.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -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');
Expand Down

0 comments on commit 3893351

Please sign in to comment.