From 72532b7dd64baa85932759fc1a1fe517902540f2 Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Mon, 24 Jun 2013 13:36:14 -0600 Subject: [PATCH 1/2] Export individual geometry types This makes the style-rules.html example work with built lib. --- src/ol/geom.exports | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/ol/geom.exports b/src/ol/geom.exports index 1a21c2481a..4e936f0941 100644 --- a/src/ol/geom.exports +++ b/src/ol/geom.exports @@ -1,4 +1,13 @@ @exportSymbol ol.geom.GeometryType +@exportProperty ol.geom.GeometryType.POINT +@exportProperty ol.geom.GeometryType.LINEARRING +@exportProperty ol.geom.GeometryType.LINESTRING +@exportProperty ol.geom.GeometryType.POLYGON +@exportProperty ol.geom.GeometryType.MULTIPOINT +@exportProperty ol.geom.GeometryType.MULTILINESTRING +@exportProperty ol.geom.GeometryType.MULTIPOLYGON +@exportProperty ol.geom.GeometryType.GEOMETRYCOLLECTION + @exportSymbol ol.geom.Point @exportSymbol ol.geom.LineString @exportSymbol ol.geom.Polygon From 3dc8c4bc7b496e4b4081c75dc45d4ceeb254ad47 Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Mon, 24 Jun 2013 15:28:55 -0600 Subject: [PATCH 2/2] Properly exporting the transformFeatureInfo option This was previously called getTransformFeatureInfo, which is a method instead of an option. In addition, the generate-exports.py script does not properly export properties whose names appear on a different line than the @property annotation. This makes the vector-layer.html, kml.html, and gpx.html examples work with the built lib. --- src/objectliterals.jsdoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/objectliterals.jsdoc b/src/objectliterals.jsdoc index fa584f9332..b56997527f 100644 --- a/src/objectliterals.jsdoc +++ b/src/objectliterals.jsdoc @@ -308,8 +308,8 @@ /** * @typedef {Object} ol.layer.VectorLayerOptions - * @property {function(Array.):string| - * undefined} getTransformFeatureInfo Function to render an array of + * @property {function(Array.):string|undefined} transformFeatureInfo + * Function to render an array of * features into feature info markup. If not provided, a comma separated * list of the unique ids of the resulting features will be returned. * @property {number|undefined} opacity Opacity. 0-1. Default is 1.