Accept missing properties in symbolizer constructors
Still need to have some discussion about when to apply defaults.
This commit is contained in:
@@ -48,9 +48,9 @@ ol.style.LineLiteral.prototype.equals = function(lineLiteral) {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @typedef {{strokeStyle: (string|ol.Expression),
|
* @typedef {{strokeStyle: (string|ol.Expression|undefined),
|
||||||
* strokeWidth: (number|ol.Expression),
|
* strokeWidth: (number|ol.Expression|undefined),
|
||||||
* opacity: (number|ol.Expression)}}
|
* opacity: (number|ol.Expression|undefined)}}
|
||||||
*/
|
*/
|
||||||
ol.style.LineOptions;
|
ol.style.LineOptions;
|
||||||
|
|
||||||
|
|||||||
@@ -53,10 +53,10 @@ ol.style.PolygonLiteral.prototype.equals = function(polygonLiteral) {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @typedef {{fillStyle: (string|ol.Expression),
|
* @typedef {{fillStyle: (string|ol.Expression|undefined),
|
||||||
* strokeStyle: (string|ol.Expression),
|
* strokeStyle: (string|ol.Expression|undefined),
|
||||||
* strokeWidth: (number|ol.Expression),
|
* strokeWidth: (number|ol.Expression|undefined),
|
||||||
* opacity: (number|ol.Expression)}}
|
* opacity: (number|ol.Expression|undefined)}}
|
||||||
*/
|
*/
|
||||||
ol.style.PolygonOptions;
|
ol.style.PolygonOptions;
|
||||||
|
|
||||||
|
|||||||
@@ -71,12 +71,12 @@ ol.style.ShapeLiteral.prototype.equals = function(shapeLiteral) {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @typedef {{type: (ol.style.ShapeType),
|
* @typedef {{type: (ol.style.ShapeType|undefined),
|
||||||
* size: (number|ol.Expression),
|
* size: (number|ol.Expression|undefined),
|
||||||
* fillStyle: (string|ol.Expression),
|
* fillStyle: (string|ol.Expression|undefined),
|
||||||
* strokeStyle: (string|ol.Expression),
|
* strokeStyle: (string|ol.Expression|undefined),
|
||||||
* strokeWidth: (number|ol.Expression),
|
* strokeWidth: (number|ol.Expression|undefined),
|
||||||
* opacity: (number|ol.Expression)}}
|
* opacity: (number|ol.Expression|undefined)}}
|
||||||
*/
|
*/
|
||||||
ol.style.ShapeOptions;
|
ol.style.ShapeOptions;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user