Commit Graph

174 Commits

Author SHA1 Message Date
John Firebaugh
c9e2453eed Bounds-check array access in Polygon#initialize 2013-05-02 16:17:04 -07:00
Vladimir Agafonkin
7cb7993571 simplify popup methods, merge #738 2013-04-20 16:58:42 +03:00
John Firebaugh
0e9b7249d8 Convert to expect.js assertions 2013-04-04 09:47:45 -07:00
John Firebaugh
55edd44678 Add #toGeoJSON to various layer types (#712) 2013-04-04 09:46:18 -07:00
Tom MacWright
a2f7d7e834 Use mocha 2013-04-03 14:50:09 -07:00
Tom MacWright
71d17180c8 Add layerGroup#getLayers and tests. Fixes #1460 2013-02-27 17:10:19 -05:00
Vladimir Agafonkin
9c9d4286a1 Merge pull request #1439 from danzel/convert_option
Make Polyline/Polygon not overwrite the source array
2013-02-21 00:08:48 -08:00
Vladimir Agafonkin
501b179bbd fix 404 error in TileLayer tests 2013-02-20 21:22:47 +02:00
Tom MacWright
d8fccfb3dc Spacing. 2013-02-19 21:15:36 -05:00
Tom MacWright
8735b87980 Add public getContainer API to TileLayer, and test for it. 2013-02-19 20:05:44 -05:00
danzel
5873914062 Start on some Polyline/Polygon tests. 2013-02-20 11:03:37 +13:00
Vladimir Agafonkin
0b14d71d7a Merge pull request #1427 from jfirebaugh/should
Omit "should" in spec descriptions
2013-02-19 12:54:33 -08:00
John Firebaugh
01332ebead Omit "should" in spec descriptions
The rationale is this: the spec string describes the expected
behavior unconditionally. The code examples, on the other hand,
set up an expectation that is tested with the call to the expect
method. The code examples can violate the expectation, but the
spec string does not. The value of the spec string is as clearly
as possible describing the behavior. Including “should” in that
description adds no value. (From http://rubyspec.org/style_guide/)
2013-02-19 12:41:48 -08:00
Tom MacWright
a324759268 Use tobe instead of testing the result of an equality 2013-02-19 14:21:06 -05:00
danzel
513c6ca4cd Change _propagateEvent to be careful that it doesn't overwrite e.layer if it is already set. Allows markers to be in multiple FeatureGroups and have the events come through correctly. See the test for details.
Fixes Leaflet.markercluster#128 ( https://github.com/Leaflet/Leaflet.markercluster/issues/128 )
2013-02-08 14:44:28 +13:00
danzel
0390a86e7f More CircleMarker tests, move them where they should be. 2013-02-04 09:49:37 +13:00
danzel
b905708f24 Test cases for #1297 circleMarker setRadius issue. 2013-02-03 15:34:32 +13:00
Mattias Bengtsson
593fa82fe8 Stupid typo 2012-11-29 08:10:04 +01:00
Mattias Bengtsson
2fd70b3bb7 Wrap the last test in a map.whenReady to ensure the map has finished loading
before removeLayer is called.
2012-11-29 08:05:08 +01:00
Mattias Bengtsson
c0135a219d Added a bunch of tests and fixed some bugs those exposed.
Also don't try to automatically adjust zoom. Leave that to the
layer control for now and wait for a setBaseLayer / switchLayer
or something instead.
2012-11-19 04:36:13 +01:00
Vladimir Agafonkin
cca3180f30 fix Circle getBounds, closes #1068 2012-10-15 11:39:07 +03:00
Konstantin.Myakshin
b65e95f96b Trigger popupopen/close on markers too. 2012-06-18 22:35:54 +03:00
Andrey Rublev
263a5b9b5f Add method Polyline.closestLayerPoint
Also fix method L.LineUtil.simplify for empty geometry
2011-07-20 13:23:04 +07:00
mourner
53bd768a47 TileLayer 2010-09-15 16:45:42 +03:00