From b1f38ea0e88b6c31b982a81f5bb981393c16e474 Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Mon, 24 Apr 2017 08:47:00 +0200 Subject: [PATCH] Fix spelling --- examples/mapbox-vector-tiles-advanced.html | 2 +- examples/reprojection.js | 2 +- examples/wms-time.html | 2 +- examples/wmts-dimensions.html | 2 +- externs/olx.js | 2 +- src/ol/control/fullscreen.js | 2 +- src/ol/interaction/dragbox.js | 4 ++-- src/ol/interaction/draw.js | 2 +- src/ol/map.js | 2 +- src/ol/tilegrid/wmts.js | 2 +- tasks/test-coverage.js | 4 ++-- test/spec/ol/format/wfs.test.js | 2 +- 12 files changed, 14 insertions(+), 14 deletions(-) diff --git a/examples/mapbox-vector-tiles-advanced.html b/examples/mapbox-vector-tiles-advanced.html index 45d0821053..62db367a3c 100644 --- a/examples/mapbox-vector-tiles-advanced.html +++ b/examples/mapbox-vector-tiles-advanced.html @@ -3,7 +3,7 @@ layout: example.html title: Advanced Mapbox Vector Tiles shortdesc: Example of a Mapbox vector tiles map with custom tile grid. docs: > - A vector tiles map which reuses the same tiles for subsequent zoom levels to save bandwith on mobile devices. **Note**: No map will be visible when the access token has expired. + A vector tiles map which reuses the same tiles for subsequent zoom levels to save bandwidth on mobile devices. **Note**: No map will be visible when the access token has expired. tags: "mapbox, vector, tiles, mobile" resources: - resources/mapbox-streets-v6-style.js diff --git a/examples/reprojection.js b/examples/reprojection.js index 7f4422d1c3..92a5029ae2 100644 --- a/examples/reprojection.js +++ b/examples/reprojection.js @@ -177,7 +177,7 @@ function updateViewProjection() { }); map.setView(newView); - // Example how to prevent double occurence of map by limiting layer extent + // Example how to prevent double occurrence of map by limiting layer extent if (newProj == ol.proj.get('EPSG:3857')) { layers['bng'].setExtent([-1057216, 6405988, 404315, 8759696]); } else { diff --git a/examples/wms-time.html b/examples/wms-time.html index d53adf8a85..0827fa2948 100644 --- a/examples/wms-time.html +++ b/examples/wms-time.html @@ -3,7 +3,7 @@ layout: example.html title: WMS Time shortdesc: Example of smooth tile transitions when changing the time dimension of a tiled WMS layer. docs: > - Demonstrates smooth reloading of layers when changing the time dimension continously. Data shown: IEM generated CONUS composite of NWS NEXRAD WSR-88D level III base reflectivity. + Demonstrates smooth reloading of layers when changing the time dimension continuously. Data shown: IEM generated CONUS composite of NWS NEXRAD WSR-88D level III base reflectivity. tags: "wms, time, dimensions, transition, nexrad" ---
diff --git a/examples/wmts-dimensions.html b/examples/wmts-dimensions.html index a1ca67ef1d..f22b1d6a61 100644 --- a/examples/wmts-dimensions.html +++ b/examples/wmts-dimensions.html @@ -3,7 +3,7 @@ layout: example.html title: WMTS Tile Transitions shortdesc: Example of smooth tile transitions when changing the dimension of a WMTS layer. docs: > - Demonstrates smooth reloading of layers when changing a dimension continously. The demonstration layer is a global sea-level computation (flooding computation from SCALGO, underlying data from CGIAR-CSI SRTM) where cells that are flooded if the sea-level rises to more than x m are colored blue. The user selects the sea-level dimension using a slider. + Demonstrates smooth reloading of layers when changing a dimension continuously. The demonstration layer is a global sea-level computation (flooding computation from SCALGO, underlying data from CGIAR-CSI SRTM) where cells that are flooded if the sea-level rises to more than x m are colored blue. The user selects the sea-level dimension using a slider. tags: "wmts, parameter, transition" ---
diff --git a/externs/olx.js b/externs/olx.js index 31fcfd67cc..f0e0f1e1e1 100644 --- a/externs/olx.js +++ b/externs/olx.js @@ -2915,7 +2915,7 @@ olx.interaction.DrawOptions.prototype.wrapX; olx.interaction.ExtentOptions; /** - * Initial extent. Defaults to no inital extent + * Initial extent. Defaults to no initial extent * @type {ol.Extent|undefined} * @api */ diff --git a/src/ol/control/fullscreen.js b/src/ol/control/fullscreen.js index a89f9b1a14..597650383c 100644 --- a/src/ol/control/fullscreen.js +++ b/src/ol/control/fullscreen.js @@ -12,7 +12,7 @@ goog.require('ol.events.EventType'); * @classdesc * Provides a button that when clicked fills up the full screen with the map. * The full screen source element is by default the element containing the map viewport unless - * overriden by providing the `source` option. In which case, the dom + * overridden by providing the `source` option. In which case, the dom * element introduced using this parameter will be displayed in full screen. * * When in full screen mode, a close button is shown to exit full screen mode. diff --git a/src/ol/interaction/dragbox.js b/src/ol/interaction/dragbox.js index d8764faee9..870016d810 100644 --- a/src/ol/interaction/dragbox.js +++ b/src/ol/interaction/dragbox.js @@ -115,8 +115,8 @@ ol.interaction.DragBox.prototype.getGeometry = function() { /** - * To be overriden by child classes. - * FIXME: use constructor option instead of relying on overridding. + * To be overridden by child classes. + * FIXME: use constructor option instead of relying on overriding. * @param {ol.MapBrowserEvent} mapBrowserEvent Map browser event. * @protected */ diff --git a/src/ol/interaction/draw.js b/src/ol/interaction/draw.js index 44fa8d7aed..e42a6f5274 100644 --- a/src/ol/interaction/draw.js +++ b/src/ol/interaction/draw.js @@ -117,7 +117,7 @@ ol.interaction.Draw = function(options) { this.maxPoints_ = options.maxPoints ? options.maxPoints : Infinity; /** - * A function to decide if a potential finish coordinate is permissable + * A function to decide if a potential finish coordinate is permissible * @private * @type {ol.EventsConditionType} */ diff --git a/src/ol/map.js b/src/ol/map.js index a3171762bb..b042812dff 100644 --- a/src/ol/map.js +++ b/src/ol/map.js @@ -579,7 +579,7 @@ ol.Map.prototype.forEachFeatureAtPixel = function(pixel, callback, opt_options) * detection can be configured through `opt_layerFilter`. * @param {ol.Pixel} pixel Pixel. * @param {function(this: S, ol.layer.Layer, (Uint8ClampedArray|Uint8Array)): T} callback - * Layer callback. This callback will recieve two arguments: first is the + * Layer callback. This callback will receive two arguments: first is the * {@link ol.layer.Layer layer}, second argument is an array representing * [R, G, B, A] pixel values (0 - 255) and will be `null` for layer types * that do not currently support this argument. To stop detection, callback diff --git a/src/ol/tilegrid/wmts.js b/src/ol/tilegrid/wmts.js index fdc66da056..d9c44220a3 100644 --- a/src/ol/tilegrid/wmts.js +++ b/src/ol/tilegrid/wmts.js @@ -22,7 +22,7 @@ ol.tilegrid.WMTS = function(options) { * @type {!Array.} */ this.matrixIds_ = options.matrixIds; - // FIXME: should the matrixIds become optionnal? + // FIXME: should the matrixIds become optional? ol.tilegrid.TileGrid.call(this, { extent: options.extent, diff --git a/tasks/test-coverage.js b/tasks/test-coverage.js index 8d99cea06b..1fd94bbe47 100644 --- a/tasks/test-coverage.js +++ b/tasks/test-coverage.js @@ -14,7 +14,7 @@ var glob = require('glob'); var runTestsuite = require('./test').runTests; -// setup some pathes +// setup some paths var dir = path.join(__dirname, '../src'); var backupDir = path.join(__dirname, '../src-backup'); var instrumentedDir = path.join(__dirname, '../src-instrumented'); @@ -124,7 +124,7 @@ var runRenderingTestsuite = function(callback) { /** * Derive output file name from input file name, by replacing the *last* - * occurence of `/src/` by `/src-instrumented/` + * occurrence of `/src/` by `/src-instrumented/` * * @param {String} file The input filename. * @return {String} file The output filename. diff --git a/test/spec/ol/format/wfs.test.js b/test/spec/ol/format/wfs.test.js index e9d85a2bc6..aa0ae06a30 100644 --- a/test/spec/ol/format/wfs.test.js +++ b/test/spec/ol/format/wfs.test.js @@ -848,7 +848,7 @@ describe('ol.format.WFS', function() { }); }); - it('do not add feature prefx twice', function() { + it('do not add feature prefix twice', function() { var format = new ol.format.WFS(); var insertFeature = new ol.Feature({ the_geom: new ol.geom.MultiPoint([[1, 2]]),