Go to file
oslek 7dd7e4f699 Robust array type check for cross-frame support
In a multi-frame DOM environment, if setView is called with an array for
the first parameter, a subsequent call to getBounds raises "Invalid
LatLng object" exception. This is the case if the array passed to
setView was created outside the iFrame that contains the map. It causes
the array test using "instanceof" in L.latLng to fail, and
_initialTopLeftPoint to not being properly initialized.

Thank you to Juriy Zaytsev for the full explaination:
http://perfectionkills.com/instanceof-considered-harmful-or-how-to-write-a-robust-isarray/
John Resig and Dean Edwards post comments and concur.
2013-01-14 14:04:50 -08:00
build Update build/build.js 2012-12-26 15:21:10 -02:00
debug Remove click handler with onRemove 2013-01-12 16:55:13 -05:00
dist Merge pull request #1174 from danzel/master 2013-01-14 02:50:28 -08:00
spec handling no existingUrl scenario 2012-12-27 14:39:19 -05:00
src Robust array type check for cross-frame support 2013-01-14 14:04:50 -08:00
.gitignore add built files to gitignore to avoid confusion, update build 2012-10-12 15:03:35 +03:00
CHANGELOG.md update changelog 2013-01-14 01:20:50 +02:00
CONTRIBUTING.md Add missing "be" to CONTRIBUTING.md 2013-01-11 14:12:37 +02:00
Jakefile.js refactor build scripts, cleanup 2012-12-17 19:15:19 +02:00
LICENSE udpate copyright to be more precise 2013-01-11 18:50:21 +02:00
README.md Oops, revert accidental commit 2013-01-14 00:42:15 +02:00

Leaflet

Leaflet is a modern open-source JavaScript library for mobile-friendly interactive maps. It is developed by Vladimir Agafonkin 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.

For more information, check out the official website.

We're happy to meet new contributors. If you want to get involved with Leaflet development, check out the contribution guide. Let's make the best open-source library for maps that can possibly exist!