Fixed typos
This commit is contained in:
parent
9e37766c96
commit
9546599520
@ -1,6 +1,6 @@
|
||||
<img src="http://leafletjs.com/docs/images/logo.png" alt="Leaflet" />
|
||||
|
||||
Leaflet is a modern open-source JavaScript library for **mobile-friendly interactive maps**. It is developed by [Vladimir Agafonkin][] of [CloudMade][] with a team of dedicated [contributors][]. Weighing just about 27 KB of gzipped JS code, it has all the [features][] most devepers ever need for online maps.
|
||||
Leaflet is a modern open-source JavaScript library for **mobile-friendly interactive maps**. It is developed by [Vladimir Agafonkin][] of [CloudMade][] with a team of dedicated [contributors][]. Weighing just about 27 KB of gzipped JS code, it has all the [features][] most developers ever need for online maps.
|
||||
|
||||
Leaflet is designed with *simplicity*, *performance* and *usability* in mind. It works efficiently across all major desktop and mobile platforms out of the box, taking advantage of HTML5 and CSS3 on modern browsers while being accessible on older ones too. It can also be extended with many [plugins][], has a beautiful, easy to use and [well-documented][] API and a simple, readable [source code][] that is a joy to [contribute][] to.
|
||||
|
||||
|
@ -63,7 +63,7 @@ describe('DomEvent', function() {
|
||||
});
|
||||
|
||||
describe('#removeListener', function() {
|
||||
it('should remove prevously added listener', function() {
|
||||
it('should remove previously added listener', function() {
|
||||
var listener = jasmine.createSpy('listener');
|
||||
|
||||
L.DomEvent.addListener(el, 'click', listener);
|
||||
|
@ -18,7 +18,7 @@ describe('LatLng', function() {
|
||||
expect(b).toEqual(-90);
|
||||
});
|
||||
|
||||
it("should clamp longtitude to lie between -180 and 180", function() {
|
||||
it("should clamp longitude to lie between -180 and 180", function() {
|
||||
var a = new L.LatLng(0, 190).lng;
|
||||
expect(a).toEqual(-170);
|
||||
|
||||
@ -44,7 +44,7 @@ describe('LatLng', function() {
|
||||
expect(h).toEqual(180);
|
||||
});
|
||||
|
||||
it("should not clamp latitude and longtitude if unbounded flag set to true", function() {
|
||||
it("should not clamp latitude and longitude if unbounded flag set to true", function() {
|
||||
var a = new L.LatLng(150, 0, true).lat;
|
||||
expect(a).toEqual(150);
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
*/
|
||||
|
||||
L.DomEvent = {
|
||||
/* inpired by John Resig, Dean Edwards and YUI addEvent implementations */
|
||||
/* inspired by John Resig, Dean Edwards and YUI addEvent implementations */
|
||||
addListener: function (obj, type, fn, context) { // (HTMLElement, String, Function[, Object])
|
||||
|
||||
var id = L.stamp(fn),
|
||||
|
@ -22,7 +22,7 @@ L.PosAnimation = L.Class.extend({
|
||||
// toggle reflow, Chrome flickers for some reason if you don't do this
|
||||
L.Util.falseFn(el.offsetWidth);
|
||||
|
||||
// there's no native way to track value updates of tranisitioned properties, so we imitate this
|
||||
// there's no native way to track value updates of transitioned properties, so we imitate this
|
||||
this._stepTimer = setInterval(L.bind(this.fire, this, 'step'), 50);
|
||||
},
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
CM.LatLng represents a geographical point with latitude and longtitude coordinates.
|
||||
CM.LatLng represents a geographical point with latitude and longitude coordinates.
|
||||
*/
|
||||
|
||||
L.LatLng = function (rawLat, rawLng, noWrap) { // (Number, Number[, Boolean])
|
||||
@ -12,7 +12,7 @@ L.LatLng = function (rawLat, rawLng, noWrap) { // (Number, Number[, Boolean])
|
||||
|
||||
if (noWrap !== true) {
|
||||
lat = Math.max(Math.min(lat, 90), -90); // clamp latitude into -90..90
|
||||
lng = (lng + 180) % 360 + ((lng < -180 || lng === 180) ? 180 : -180); // wrap longtitude into -180..180
|
||||
lng = (lng + 180) % 360 + ((lng < -180 || lng === 180) ? 180 : -180); // wrap longitude into -180..180
|
||||
}
|
||||
|
||||
this.lat = lat;
|
||||
|
@ -1,8 +1,8 @@
|
||||
/*
|
||||
* L.PolyUtil contains utilify functions for polygons (clipping, etc.).
|
||||
* L.PolyUtil contains utility functions for polygons (clipping, etc.).
|
||||
*/
|
||||
|
||||
/*jshint bitwise:false */ // allow bitwise oprations here
|
||||
/*jshint bitwise:false */ // allow bitwise operations here
|
||||
|
||||
L.PolyUtil = {};
|
||||
|
||||
|
@ -167,7 +167,7 @@ L.TileLayer = L.Class.extend({
|
||||
_setAutoZIndex: function (pane, compare) {
|
||||
|
||||
var layers = pane.getElementsByClassName('leaflet-layer'),
|
||||
edgeZIndex = -compare(Infinity, -Infinity), // -Ifinity for max, Infinity for min
|
||||
edgeZIndex = -compare(Infinity, -Infinity), // -Infinity for max, Infinity for min
|
||||
zIndex, i, len;
|
||||
|
||||
for (i = 0, len = layers.length; i < len; i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user