Skip to content

Commit

Permalink
Fix typos in comments
Browse files Browse the repository at this point in the history
Using https://github.com/lucasdemarchi/codespell and excluding:
examples/animator.js
examples/georss.xml
examples/kml/sundials.kml
examples/utfgrid/geography-class/2/1/1.grid.json
lib/OpenLayers/Format/GeoRSS.js
lib/OpenLayers/Lang/*
tests/*
tools/BeautifulSoup.py
  • Loading branch information
Daniele Forsi committed Mar 22, 2014
1 parent 66a6d3e commit 191fe1c
Show file tree
Hide file tree
Showing 51 changed files with 60 additions and 60 deletions.
2 changes: 1 addition & 1 deletion build/lite.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This file includes a small subset of OpenLayers code, designed to be
# integrated into another application. It includes only the Layer types
# neccesary to create tiled or untiled WMS, and does not include any Controls.
# necessary to create tiled or untiled WMS, and does not include any Controls.
# This is the result of what was at the time called "Webmap.js" at the FOSS4G
# Web Mapping BOF.

Expand Down
2 changes: 1 addition & 1 deletion examples/clientzoom.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ <h1 id="title">Client Zoom</h1>
<code>fractionalZoom</code> set to true. So "client zoom" also
applies if you choose arbitrary zoom levels using the slider of the
zoom bar, or shift-drag boxes to zoom to arbitrary extents.
"client zoom" therefore allows continous zooming for tiled layers.
"client zoom" therefore allows continuous zooming for tiled layers.

</p>

Expand Down
2 changes: 1 addition & 1 deletion examples/example-list.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<!-- This is the example list source: if you are trying to look at the
source of an example, YOU ARE IN THE WRONG PLACE. If you want to view
the source of just one example, you can typically choose
"This Frame -> View source" when right clicking on the exmaple. If not,
"This Frame -> View source" when right clicking on the example. If not,
choose to open the example in a new window (via the context menu
click on the link), and view source from there. -->
<title>OpenLayers Examples</title>
Expand Down
2 changes: 1 addition & 1 deletion examples/markersTextLayer.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ <h1 id="title">Using a Layer.Text to display markers</h1>
textlayer, csv, tsv, basic, popup
</div>
<p id="shortdesc">
The Layer.Text class reads a Tab seperated values file and displays it as markers on
The Layer.Text class reads a Tab separated values file and displays it as markers on
the map.
</p>
<div id="map" class="smallmap"></div>
Expand Down
2 changes: 1 addition & 1 deletion examples/ordering.html
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ <h3>Z-Index (with Y-Ordering enabled)</h3>
</td>
<td>
<div class="docs">
In this map, the gold features all have the same z-index, and the red features have alternating z-indeces. The gold features' z-index is greater than the red features' z-indeces, which is why gold features look to be drawn on top of the red features. Since each gold feature has the same z-index, gold features succomb to y-ordering: this is where features that seem closest to the viewer (lower lattitude) show up above those that seem farther away (higher lattitude).
In this map, the gold features all have the same z-index, and the red features have alternating z-indeces. The gold features' z-index is greater than the red features' z-indeces, which is why gold features look to be drawn on top of the red features. Since each gold feature has the same z-index, gold features succomb to y-ordering: this is where features that seem closest to the viewer (lower latitude) show up above those that seem farther away (higher latitude).
<br><br>
You can enable y-ordering by passing the parameter <i>yOrdering: true</i> in the vector layer's options hash. For all configurations (with yOrdering or zIndexing set to true), if features have the same z-index -- and if y-ordering is enabled: the same latitude -- those features will succomb to drawing order, where the last feature to be drawn will appear above the rest.
</div>
Expand Down
2 changes: 1 addition & 1 deletion examples/overviewmap.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ <h1 id="title">Overview Map</h1>
// getting these settings initialized from map1.
var jplOverview = jpl.clone();

// A more detailled layer of Manhattan for map2
// A more detailed layer of Manhattan for map2
var ny = new OpenLayers.Layer.WMS(
"Manhattan",
"http://demo.opengeo.org/geoserver/wms",
Expand Down
4 changes: 2 additions & 2 deletions examples/simplify-linestring.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ <h1 id="title">Simplify a LineString geometry</h1>
<p>
Instances of OpenLayers.Geometry.LineString have a method simplify,
that can be used to simplify linestring geometries.
Simplification sometimes is useful to enhance the perfomance of
Simplification sometimes is useful to enhance the performance of
vector rendering or to reduce complexity of geometries. This
might be especially handy when viewing geometries a small
scales.
Expand Down Expand Up @@ -83,7 +83,7 @@ <h1 id="title">Simplify a LineString geometry</h1>
example implementation of the algorithm in python</a>.
</p>
<p>
For a detailled explanation of the algorithm see
For a detailed explanation of the algorithm see
<a href="http://en.wikipedia.org/wiki/Douglas-Peucker_algorithm">the
Wikipedia article</a> or the original publication: David Douglas
&amp; Thomas Peucker, "Algorithms for the reduction of the
Expand Down
2 changes: 1 addition & 1 deletion examples/simplify-linestring.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// global variables
var map, map2;

// wrap the instanciation code in an anonymous function that gets executed
// wrap the instantiation code in an anonymous function that gets executed
// immedeately
(function(){
// style the vectorlayer
Expand Down
2 changes: 1 addition & 1 deletion examples/strategy-cluster-extended.html
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ <h1 id="title">Extended clustering</h1>
</li>
</ul>
<p>
Hover over the features to get a short infomation about the
Hover over the features to get a short information about the
feature or cluster of features.
</p>
</div>
Expand Down
2 changes: 1 addition & 1 deletion examples/strategy-cluster-extended.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ OpenLayers.Strategy.RuleCluster = OpenLayers.Class(OpenLayers.Strategy.Cluster,
// global variables
var map, vectorlayer, features, stylemap, select;

// wrap the instanciation code in an anonymous function that gets executed
// wrap the instantiation code in an anonymous function that gets executed
// immeadeately
(function(){

Expand Down
2 changes: 1 addition & 1 deletion examples/styles-context.html
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ <h1 id="title">Feature Styles Example</h1>
<p>Features in the northern hemisphere are styled according to their
"type" attribute. This is accomplished with a simple template that
is evaluated with the feature attributes as context.</p>
<p>Features in the sourthern hemisphere are styled according to a
<p>Features in the southern hemisphere are styled according to a
combination of their attributes and non-attribute properties. This
is accomplished using an advanced template that calls functions
on the context object passed to the Style constructor.</p>
Expand Down
2 changes: 1 addition & 1 deletion lib/OpenLayers/Console.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* cross-browser debugging Firebug style.
*
* Note:
* Note that behavior will differ with the Firebug extention and Firebug Lite.
* Note that behavior will differ with the Firebug extension and Firebug Lite.
* Most notably, the Firebug Lite console does not currently allow for
* hyperlinks to code or for clicking on object to explore their properties.
*
Expand Down
2 changes: 1 addition & 1 deletion lib/OpenLayers/Control/Geolocate.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ OpenLayers.Control.Geolocate = OpenLayers.Class(OpenLayers.Control, {
* APIMethod: getCurrentLocation
*
* Returns:
* {Boolean} Returns true if a event will be fired (successfull
* {Boolean} Returns true if a event will be fired (successful
* registration)
*/
getCurrentLocation: function() {
Expand Down
2 changes: 1 addition & 1 deletion lib/OpenLayers/Control/GetFeature.js
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ OpenLayers.Control.GetFeature = OpenLayers.Class(OpenLayers.Control, {
* Unselect all selected features.
*/
unselectAll: function() {
// we'll want an option to supress notification here
// we'll want an option to suppress notification here
for(var fid in this.features) {
this.unselect(this.features[fid]);
}
Expand Down
2 changes: 1 addition & 1 deletion lib/OpenLayers/Control/MousePosition.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ OpenLayers.Control.MousePosition = OpenLayers.Class(OpenLayers.Control, {

/**
* APIProperty: separator
* {String} A string to be used to seperate the two coordinates from each
* {String} A string to be used to separate the two coordinates from each
* other. Defaults to the string ', ', which will result in a
* rendered coordinate of e.g. '42.12, 21.22'.
*/
Expand Down
2 changes: 1 addition & 1 deletion lib/OpenLayers/Control/PinchZoom.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ OpenLayers.Control.PinchZoom = OpenLayers.Class(OpenLayers.Control, {
location.lat -= resolution * ((size.h / 2) - zoomPixel.y);

// Force a reflow before calling setCenter. This is to work
// around an issue occuring in iOS.
// around an issue occurring in iOS.
//
// See https://github.com/openlayers/openlayers/pull/351.
//
Expand Down
2 changes: 1 addition & 1 deletion lib/OpenLayers/Control/SelectFeature.js
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ OpenLayers.Control.SelectFeature = OpenLayers.Class(OpenLayers.Control, {
* options - {Object} Optional configuration object.
*/
unselectAll: function(options) {
// we'll want an option to supress notification here
// we'll want an option to suppress notification here
var layers = this.layers || [this.layer],
layer, feature, l, numExcept;
for(l=0; l<layers.length; ++l) {
Expand Down
2 changes: 1 addition & 1 deletion lib/OpenLayers/Control/TransformFeature.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ OpenLayers.Control.TransformFeature = OpenLayers.Class(OpenLayers.Control, {
* APIProperty: irregular
* {Boolean} Make scaling/resizing work irregularly. If true then
* dragging a handle causes the feature to resize in the direction
* of movement. If false then the feature resizes symetrically
* of movement. If false then the feature resizes symmetrically
* about it's center.
*/
irregular: false,
Expand Down
2 changes: 1 addition & 1 deletion lib/OpenLayers/Control/ZoomPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

/**
* Class: OpenLayers.Control.ZoomPanel
* The ZoomPanel control is a compact collecton of 3 zoom controls: a
* The ZoomPanel control is a compact collection of 3 zoom controls: a
* <OpenLayers.Control.ZoomIn>, a <OpenLayers.Control.ZoomToMaxExtent>, and a
* <OpenLayers.Control.ZoomOut>. By default it is drawn in the upper left
* corner of the map.
Expand Down
2 changes: 1 addition & 1 deletion lib/OpenLayers/Feature/Vector.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ OpenLayers.Feature.Vector = OpenLayers.Class(OpenLayers.Feature, {
* Method: onScreen
* Determine whether the feature is within the map viewport. This method
* tests for an intersection between the geometry and the viewport
* bounds. If a more effecient but less precise geometry bounds
* bounds. If a more efficient but less precise geometry bounds
* intersection is desired, call the method with the boundsOnly
* parameter true.
*
Expand Down
4 changes: 2 additions & 2 deletions lib/OpenLayers/Format/KML.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ OpenLayers.Format.KML = OpenLayers.Class(OpenLayers.Format.XML, {
data = OpenLayers.Format.XML.prototype.read.apply(this, [data]);
}

// Loop throught the following node types in this order and
// Loop through the following node types in this order and
// process the nodes found
var types = ["Link", "NetworkLink", "Style", "StyleMap", "Placemark"];
for(var i=0, len=types.length; i<len; ++i) {
Expand Down Expand Up @@ -335,7 +335,7 @@ OpenLayers.Format.KML = OpenLayers.Class(OpenLayers.Format.XML, {
* color and opacity or null if the color is invalid.
*
* Parameters:
* kmlColor - {String} a kml formated color
* kmlColor - {String} a kml formatted color
*
* Returns:
* {Object}
Expand Down
2 changes: 1 addition & 1 deletion lib/OpenLayers/Format/OSM.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ OpenLayers.Format.OSM = OpenLayers.Class(OpenLayers.Format.XML, {
/**
* APIProperty: checkTags
* {Boolean} Should tags be checked to determine whether something
* should be treated as a seperate node. Will slow down parsing.
* should be treated as a separate node. Will slow down parsing.
* Default is false.
*/
checkTags: false,
Expand Down
4 changes: 2 additions & 2 deletions lib/OpenLayers/Format/QueryStringFilter.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,15 @@ OpenLayers.Format.QueryStringFilter = (function() {
// convert % to \%
value = value.replace(/%/g, "\\%");

// convert \\. to \\_ (\\.* occurences converted later)
// convert \\. to \\_ (\\.* occurrences converted later)
value = value.replace(/\\\\\.(\*)?/g, function($0, $1) {
return $1 ? $0 : "\\\\_";
});

// convert \\.* to \\%
value = value.replace(/\\\\\.\*/g, "\\\\%");

// convert . to _ (\. and .* occurences converted later)
// convert . to _ (\. and .* occurrences converted later)
value = value.replace(/(\\)?\.(\*)?/g, function($0, $1, $2) {
return $1 || $2 ? $0 : "_";
});
Expand Down
2 changes: 1 addition & 1 deletion lib/OpenLayers/Format/Text.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ OpenLayers.Format.Text = OpenLayers.Class(OpenLayers.Format, {

/**
* APIMethod: read
* Return a list of features from a Tab Seperated Values text string.
* Return a list of features from a Tab Separated Values text string.
*
* Parameters:
* text - {String}
Expand Down
2 changes: 1 addition & 1 deletion lib/OpenLayers/Geometry/LineString.js
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ OpenLayers.Geometry.LineString = OpenLayers.Class(OpenLayers.Geometry.Curve, {
*
*
* Parameters:
* tolerance - {number} threshhold for simplification in map units
* tolerance - {number} threshold for simplification in map units
*
* Returns:
* {OpenLayers.Geometry.LineString} the simplified LineString
Expand Down
2 changes: 1 addition & 1 deletion lib/OpenLayers/Handler/Click.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ OpenLayers.Handler.Click = OpenLayers.Class(OpenLayers.Handler, {
* the map.
* callbacks - {Object} An object with keys corresponding to callbacks
* that will be called by the handler. The callbacks should
* expect to recieve a single argument, the click event.
* expect to receive a single argument, the click event.
* Callbacks for 'click' and 'dblclick' are supported.
* options - {Object} Optional object whose properties will be set on the
* handler.
Expand Down
2 changes: 1 addition & 1 deletion lib/OpenLayers/Handler/Drag.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ OpenLayers.Handler.Drag = OpenLayers.Class(OpenLayers.Handler, {
* the map.
* callbacks - {Object} An object containing a single function to be
* called when the drag operation is finished. The callback should
* expect to recieve a single argument, the pixel location of the event.
* expect to receive a single argument, the pixel location of the event.
* Callbacks for 'move' and 'done' are supported. You can also speficy
* callbacks for 'down', 'up', and 'out' to respond to those events.
* options - {Object}
Expand Down
2 changes: 1 addition & 1 deletion lib/OpenLayers/Handler/Feature.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ OpenLayers.Handler.Feature = OpenLayers.Class(OpenLayers.Handler, {
* layer - {<OpenLayers.Layer.Vector>}
* callbacks - {Object} An object with a 'over' property whos value is
* a function to be called when the mouse is over a feature. The
* callback should expect to recieve a single argument, the feature.
* callback should expect to receive a single argument, the feature.
* options - {Object}
*/
initialize: function(control, layer, callbacks, options) {
Expand Down
2 changes: 1 addition & 1 deletion lib/OpenLayers/Handler/Keyboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ OpenLayers.Handler.Keyboard = OpenLayers.Class(OpenLayers.Handler, {
* the map.
* callbacks - {Object} An object containing a single function to be
* called when the drag operation is finished. The callback should
* expect to recieve a single argument, the pixel location of the event.
* expect to receive a single argument, the pixel location of the event.
* Callbacks for 'keydown', 'keypress', and 'keyup' are supported.
* options - {Object} Optional object whose properties will be set on the
* handler.
Expand Down
2 changes: 1 addition & 1 deletion lib/OpenLayers/Handler/MouseWheel.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ OpenLayers.Handler.MouseWheel = OpenLayers.Class(OpenLayers.Handler, {
* control - {<OpenLayers.Control>}
* callbacks - {Object} An object containing a single function to be
* called when the drag operation is finished.
* The callback should expect to recieve a single
* The callback should expect to receive a single
* argument, the point geometry.
* options - {Object}
*/
Expand Down
2 changes: 1 addition & 1 deletion lib/OpenLayers/Handler/Path.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ OpenLayers.Handler.Path = OpenLayers.Class(OpenLayers.Handler.Point, {
* geometry and the sketch feature.
* point - Called as each point is added. Receives the new point geometry.
* done - Called when the point drawing is finished. The callback will
* recieve a single argument, the linestring geometry.
* receive a single argument, the linestring geometry.
* cancel - Called when the handler is deactivated while drawing. The
* cancel callback will receive a geometry.
*/
Expand Down
2 changes: 1 addition & 1 deletion lib/OpenLayers/Handler/Point.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ OpenLayers.Handler.Point = OpenLayers.Class(OpenLayers.Handler, {
* modify - Called with each move of a vertex with the vertex (point)
* geometry and the sketch feature.
* done - Called when the point drawing is finished. The callback will
* recieve a single argument, the point geometry.
* receive a single argument, the point geometry.
* cancel - Called when the handler is deactivated while drawing. The
* cancel callback will receive a geometry.
*/
Expand Down
2 changes: 1 addition & 1 deletion lib/OpenLayers/Handler/Polygon.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ OpenLayers.Handler.Polygon = OpenLayers.Class(OpenLayers.Handler.Path, {
* geometry and the sketch feature.
* point - Called as each point is added. Receives the new point geometry.
* done - Called when the point drawing is finished. The callback will
* recieve a single argument, the polygon geometry.
* receive a single argument, the polygon geometry.
* cancel - Called when the handler is deactivated while drawing. The
* cancel callback will receive a geometry.
*/
Expand Down
2 changes: 1 addition & 1 deletion lib/OpenLayers/Handler/RegularPolygon.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ OpenLayers.Handler.RegularPolygon = OpenLayers.Class(OpenLayers.Handler.Drag, {
* create - Called when a sketch is first created. Callback called with
* the creation point geometry and sketch feature.
* done - Called when the sketch drawing is finished. The callback will
* recieve a single argument, the sketch geometry.
* receive a single argument, the sketch geometry.
* cancel - Called when the handler is deactivated while drawing. The
* cancel callback will receive a geometry.
*/
Expand Down
2 changes: 1 addition & 1 deletion lib/OpenLayers/Layer/ArcIMS.js
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ OpenLayers.Layer.ArcIMS = OpenLayers.Class(OpenLayers.Layer.Grid, {
* options - {Object} Object with non-default properties to set on the layer.
* Supported properties are buffer, callback, scope, and any other
* properties applicable to the ArcXML format. Set the 'callback' and
* 'scope' for an object and function to recieve the parsed features
* 'scope' for an object and function to receive the parsed features
* from ArcIMS.
*/
getFeatureInfo: function(geometry, layer, options) {
Expand Down
2 changes: 1 addition & 1 deletion lib/OpenLayers/Layer/Bing.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ OpenLayers.Layer.Bing = OpenLayers.Class(OpenLayers.Layer.XYZ, {
/**
* Method: getURL
*
* Paramters:
* Parameters:
* bounds - {<OpenLayers.Bounds>}
*/
getURL: function(bounds) {
Expand Down
2 changes: 1 addition & 1 deletion lib/OpenLayers/Layer/Image.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ OpenLayers.Layer.Image = OpenLayers.Class(OpenLayers.Layer, {
* Method: clone
* Create a clone of this layer
*
* Paramters:
* Parameters:
* obj - {Object} An optional layer (is this ever used?)
*
* Returns:
Expand Down
2 changes: 1 addition & 1 deletion lib/OpenLayers/Layer/MapGuide.js
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ OpenLayers.Layer.MapGuide = OpenLayers.Class(OpenLayers.Layer.Grid, {
}
var paramsString = OpenLayers.Util.getParameterString(allParams);

/* MapGuide needs '+' seperating things like bounds/height/width.
/* MapGuide needs '+' separating things like bounds/height/width.
Since typically this is URL encoded, we use a slight hack: we
depend on the list-like functionality of getParameterString to
leave ',' only in the case of list items (since otherwise it is
Expand Down
2 changes: 1 addition & 1 deletion lib/OpenLayers/Layer/MapServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ OpenLayers.Layer.MapServer = OpenLayers.Class(OpenLayers.Layer.Grid, {
// requestString always starts with url
var requestString = url;

// MapServer needs '+' seperating things like bounds/height/width.
// MapServer needs '+' separating things like bounds/height/width.
// Since typically this is URL encoded, we use a slight hack: we
// depend on the list-like functionality of getParameterString to
// leave ',' only in the case of list items (since otherwise it is
Expand Down
Loading

0 comments on commit 191fe1c

Please sign in to comment.