Make sure that opt_layout is listed as optional

This commit is contained in:
Andreas Hocevar
2014-05-15 20:29:16 +02:00
parent b2805c58de
commit d163f60e34
9 changed files with 33 additions and 8 deletions

25
simple.json Normal file
View File

@@ -0,0 +1,25 @@
{
"exports": [],
"src": ["src/**/*.js", "examples/simple.js"],
"compile": {
"js": ["externs/olx.js"],
"externs": [
"externs/example.js",
"externs/bingmaps.js",
"externs/geojson.js",
"externs/oli.js",
"externs/proj4js.js",
"externs/tilejson.js",
"externs/topojson.js",
"externs/vbarray.js"
],
"define": [
"goog.dom.ASSUME_STANDARDS_MODE=true",
"goog.DEBUG=false"
],
"compilation_level": "ADVANCED_OPTIMIZATIONS",
"output_wrapper": "(function(){%output%})();",
"use_types_for_optimization": true,
"manage_closure_dependencies": true
}
}

View File

@@ -13,7 +13,7 @@ goog.require('ol.geom.flat.deflate');
* @extends {ol.geom.SimpleGeometry} * @extends {ol.geom.SimpleGeometry}
* @param {ol.geom.RawPoint} center Center. * @param {ol.geom.RawPoint} center Center.
* @param {number=} opt_radius Radius. * @param {number=} opt_radius Radius.
* @param {ol.geom.GeometryLayout|string=} opt_layout Layout. * @param {ol.geom.GeometryLayout=} opt_layout Layout.
* @todo api * @todo api
*/ */
ol.geom.Circle = function(center, opt_radius, opt_layout) { ol.geom.Circle = function(center, opt_radius, opt_layout) {

View File

@@ -15,7 +15,7 @@ goog.require('ol.geom.flat.simplify');
* @constructor * @constructor
* @extends {ol.geom.SimpleGeometry} * @extends {ol.geom.SimpleGeometry}
* @param {ol.geom.RawLinearRing} coordinates Coordinates. * @param {ol.geom.RawLinearRing} coordinates Coordinates.
* @param {ol.geom.GeometryLayout|string=} opt_layout Layout. * @param {ol.geom.GeometryLayout=} opt_layout Layout.
* @todo api * @todo api
*/ */
ol.geom.LinearRing = function(coordinates, opt_layout) { ol.geom.LinearRing = function(coordinates, opt_layout) {

View File

@@ -19,7 +19,7 @@ goog.require('ol.geom.flat.simplify');
* @constructor * @constructor
* @extends {ol.geom.SimpleGeometry} * @extends {ol.geom.SimpleGeometry}
* @param {ol.geom.RawLineString} coordinates Coordinates. * @param {ol.geom.RawLineString} coordinates Coordinates.
* @param {ol.geom.GeometryLayout|string=} opt_layout Layout. * @param {ol.geom.GeometryLayout=} opt_layout Layout.
* @todo api * @todo api
*/ */
ol.geom.LineString = function(coordinates, opt_layout) { ol.geom.LineString = function(coordinates, opt_layout) {

View File

@@ -19,7 +19,7 @@ goog.require('ol.geom.flat.simplify');
* @constructor * @constructor
* @extends {ol.geom.SimpleGeometry} * @extends {ol.geom.SimpleGeometry}
* @param {ol.geom.RawMultiLineString} coordinates Coordinates. * @param {ol.geom.RawMultiLineString} coordinates Coordinates.
* @param {ol.geom.GeometryLayout|string=} opt_layout Layout. * @param {ol.geom.GeometryLayout=} opt_layout Layout.
* @todo api * @todo api
*/ */
ol.geom.MultiLineString = function(coordinates, opt_layout) { ol.geom.MultiLineString = function(coordinates, opt_layout) {

View File

@@ -17,7 +17,7 @@ goog.require('ol.math');
* @constructor * @constructor
* @extends {ol.geom.SimpleGeometry} * @extends {ol.geom.SimpleGeometry}
* @param {ol.geom.RawMultiPoint} coordinates Coordinates. * @param {ol.geom.RawMultiPoint} coordinates Coordinates.
* @param {ol.geom.GeometryLayout|string=} opt_layout Layout. * @param {ol.geom.GeometryLayout=} opt_layout Layout.
* @todo api * @todo api
*/ */
ol.geom.MultiPoint = function(coordinates, opt_layout) { ol.geom.MultiPoint = function(coordinates, opt_layout) {

View File

@@ -24,7 +24,7 @@ goog.require('ol.geom.flat.simplify');
* @constructor * @constructor
* @extends {ol.geom.SimpleGeometry} * @extends {ol.geom.SimpleGeometry}
* @param {ol.geom.RawMultiPolygon} coordinates Coordinates. * @param {ol.geom.RawMultiPolygon} coordinates Coordinates.
* @param {ol.geom.GeometryLayout|string=} opt_layout Layout. * @param {ol.geom.GeometryLayout=} opt_layout Layout.
* @todo api * @todo api
*/ */
ol.geom.MultiPolygon = function(coordinates, opt_layout) { ol.geom.MultiPolygon = function(coordinates, opt_layout) {

View File

@@ -13,7 +13,7 @@ goog.require('ol.math');
* @constructor * @constructor
* @extends {ol.geom.SimpleGeometry} * @extends {ol.geom.SimpleGeometry}
* @param {ol.geom.RawPoint} coordinates Coordinates. * @param {ol.geom.RawPoint} coordinates Coordinates.
* @param {ol.geom.GeometryLayout|string=} opt_layout Layout. * @param {ol.geom.GeometryLayout=} opt_layout Layout.
* @todo api * @todo api
*/ */
ol.geom.Point = function(coordinates, opt_layout) { ol.geom.Point = function(coordinates, opt_layout) {

View File

@@ -23,7 +23,7 @@ goog.require('ol.geom.flat.simplify');
* @constructor * @constructor
* @extends {ol.geom.SimpleGeometry} * @extends {ol.geom.SimpleGeometry}
* @param {ol.geom.RawPolygon} coordinates Coordinates. * @param {ol.geom.RawPolygon} coordinates Coordinates.
* @param {ol.geom.GeometryLayout|string=} opt_layout Layout. * @param {ol.geom.GeometryLayout=} opt_layout Layout.
* @todo api * @todo api
*/ */
ol.geom.Polygon = function(coordinates, opt_layout) { ol.geom.Polygon = function(coordinates, opt_layout) {