7dd7e4f699
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. |
||
---|---|---|
build | ||
debug | ||
dist | ||
spec | ||
src | ||
.gitignore | ||
CHANGELOG.md | ||
CONTRIBUTING.md | ||
Jakefile.js | ||
LICENSE | ||
README.md |
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!