Patrick Arlt
9186eade96
remove method checks from test
2015-01-11 08:31:41 -08:00
Patrick Arlt
ff8023a460
fix passing latlng to openPopup, fix build
2015-01-07 09:50:06 -08:00
Patrick Arlt
ef0ee1483d
consistant failing test
2015-01-02 07:39:00 -08:00
Patrick Arlt
2d709141a8
fix tests, misc cleanup
2014-12-29 13:50:23 -08:00
John Firebaugh
bad49e7612
Add autoClose option to Popup
...
Fixes #2716
Fixes #1853
2014-11-12 12:52:50 -08:00
John Firebaugh
d2871e68e5
Add test for #3008
2014-11-12 10:53:26 -08:00
John Firebaugh
68f86d85d3
Better fix for tile pruning
...
Need to always prune in _addTiles, otherwise tiles can
get stranded.
2014-11-07 16:27:42 -08:00
Jeff Smale
c6dea37d86
Preserve marker draggability on setIcon ( fixes #2578 )
2014-11-05 18:12:21 -08:00
John Firebaugh
e6d857eb70
jshint
2014-11-05 15:22:49 -08:00
John Firebaugh
ea2c397523
No-op bringToFront/Back when Path is not on a map ( fixes #2439 )
2014-11-05 15:13:28 -08:00
Vladimir Agafonkin
0c70dcb581
remove slow tests
2014-10-29 17:20:06 +02:00
Yohan Boniface
1ddac9361a
Fix array of array of LatLngs toGeoJSON edge case
2014-10-26 21:00:56 +01:00
Vladimir Agafonkin
2ff2c42847
move some GridLayer tests, add createTile stub
2014-10-23 12:58:29 +03:00
Tom MacWright
74133f49f0
Fix MarkerSpec in retina browsers.
2014-10-21 12:21:29 +03:00
bennlich
4eb033c719
Included leaflet.css in html instead of TileLayerSpec.js
2014-07-31 23:43:14 -06:00
bennlich
abfcd9ea59
Added TileLayerSpec.js tests for loading events
2014-07-31 15:38:21 -06:00
Vladimir Agafonkin
1a7b12604b
run view reset before load, fix #2510
2014-03-05 23:27:32 +02:00
danzel
8cc7404f53
This should be oldLatLng, even if latlng is wrong, let's have this be right. refs #2412 #1423
2014-01-29 14:51:55 +13:00
danzel
e2d9a97836
Add oldLatlng parameter to Marker move event, will allow MarkerCluster to support moving markers.
2014-01-29 11:33:08 +13:00
Vladimir Agafonkin
dab0cbfc14
update tests to reflect no clamping near poles
2014-01-03 17:37:28 +02:00
Vladimir Agafonkin
7ff0fa9c72
approximate Circle with ellipse
2014-01-03 00:37:34 +02:00
Vladimir Agafonkin
6d1142a978
only propagate events if given true to fire, #2311
2013-12-18 23:23:22 -05:00
Vladimir Agafonkin
33e23a69e7
fix specs for polygon holes
2013-12-18 12:03:22 -05:00
Vladimir Agafonkin
dc5151b81a
fix GeoJSON roundtripping
2013-12-18 12:03:22 -05:00
John Firebaugh
af9302ce19
Make GridLayer methods safe to call pre-setView
2013-12-13 18:01:06 -05:00
John Firebaugh
c1654c4626
Add hasLayer tests
2013-12-13 17:51:37 -05:00
Vladimir Agafonkin
04c95e1af9
basic GridLayer spec, move TileLayer spec
2013-12-02 19:18:08 +02:00
Vladimir Agafonkin
91c039b7aa
jshinting and major clean up of specs code, ref #2151
2013-11-07 23:54:33 +02:00
Vladimir Agafonkin
5d6641360b
merge GeoJSON altitude pull with some tweaks #1822
2013-11-06 23:17:14 +02:00
Alexander Parshin
f5de36e229
Add holes support to L.Polygon.setLatLngs(). Fixes #1518
2013-10-13 20:17:12 +04:00
Tom MacWright
befc5eb992
Add support for layers lacking Events mixin. Fixes #1962
2013-09-17 17:36:05 -04:00
Vladimir Agafonkin
a086b336b2
fix images 404 warnings in specs
2013-09-12 13:14:00 +03:00
Vladimir Agafonkin
5e30c51f85
add GeoJSON rountripping of GeometryCollection and MultiPoint, close #1956
2013-08-28 12:43:04 +03:00
Vladimir Agafonkin
75c133082c
fix Map min/maxZoom not overriding TileLayer-derived min/max, close #1848
2013-07-12 15:05:59 +03:00
danzel
ec3b9e0ff2
Add a few more featuregroup tests and fix regression of removeLayer.
2013-07-12 10:13:25 +12:00
Hans Kristian Flaatten
46885de00d
Adds support for altitude and 3D GeoJSON
...
This commit adds a third parameter to the L.LatLon class for specifying
altitude. This is in turn stored in the `.latitude` property for the LatLng
instance. Latitude property will only be set if the latitude parameter is not
undefined, this is done in order to ensure backwards compability.
```javascript
var latlng = new L.LatLng(10, 20, 30);
console.log(latlng.altitude); // prints '30' to the console
```
Similar functionality has been added to L.GeoJSON coordsToLatLng() and
latLngToCoords() methods in order to handle import and export of 3D GeoJSON.
```javascript
var geoJSON = {
type: 'Feature'
,properties: {}
,geometry: {
type: 'Point'
,coordinates: [20, 10, 30]
}
}
var layer = new L.GeoJSON();
layer.addData(geoJSON);
console.log(layer.getLayers()[0].getLatLng().altitude);
```
`NB` It is important to notice that no logic has been added in order to prevent
latitude and longitude to change without appropirate change in altitude – this
must be handled by the application.
2013-07-03 10:13:00 +02:00
John Firebaugh
475e736346
Revert "Consistent mouse event propagation in Marker and Path"
...
This reverts commit 4015f49615
.
2013-06-28 16:22:20 -04:00
John Firebaugh
4015f49615
Consistent mouse event propagation in Marker and Path
...
Marker was missing mouseup and mousemove.
Path was missing mouseup.
2013-06-28 14:44:10 -04:00
Vladimir Agafonkin
cdc65c6c6b
add Circle & CircleMarker toGeoJSON
2013-06-25 12:43:22 -04:00
John Firebaugh
2c22d13ab8
Fix test
2013-06-24 14:39:23 -04:00
John Firebaugh
e7d0fb1b37
Normalize all toGeoJSON output to Features
2013-06-24 14:30:24 -04:00
danzel
19d49e027f
Add another test for marker/shadow reuse
2013-06-24 08:54:40 +12:00
Paul Bonaud
1af9769ed0
Toggle the display of a marker s popup on click
2013-06-16 22:13:31 +02:00
danzel
1a1cfb2e60
Make Marker setIcon unit tests better.
2013-06-12 16:18:20 +12:00
danzel
fa45913505
Make Icon/DivIcon reuse not try reuse the wrong dom element type.
2013-06-12 16:05:42 +12:00
danzel
7f2eff363b
Add support to DivIcon for reusing a div. Fixes #1753 . Still issues remain (Can't change a marker with a DivIcon to have an image Icon or vice versa)
2013-06-12 15:55:03 +12:00
John Firebaugh
ade9c943ff
Popup-specific closeOnClick option
2013-05-10 15:22:03 -07:00
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