Commit Graph

4178 Commits

Author SHA1 Message Date
Morton Fox
c213d78346 Fix features link 2015-12-13 01:06:14 -05:00
Vladimir Agafonkin
afbf08c46d Merge pull request #4078 from OleLaursen/master
Fix bug with max bounds and custom projections
2015-12-09 11:23:07 -08:00
Ole Laursen
f90678a593 Fix bug with max bounds and custom projections.
_getBoundsOffset was assuming that SE/NW were the min/max corners, but
this isn't necessarily true after projection.
2015-12-09 14:34:32 +01:00
Vladimir Agafonkin
0cf95c5f5d Merge pull request #4077 from Leaflet/fix-2427
When limiting center to bounds, ignore offsets less than a pixel.
2015-12-08 21:23:46 -08:00
Per Liedman
7c3d7cb139 When limiting center to bounds, ignore offsets less than a pixel. 2015-12-08 23:10:57 +01:00
Iván Sánchez Ortega
92c575f2ca Merge pull request #4072 from fimietta/overlayed-circle-canvas-bug
fix bug for hover event between circle overlapping polygon on canvas
2015-12-07 12:37:06 +01:00
Daniela Remogna
609a792792 fix bug for hover event between circle overlapping polygon on canvas 2015-12-05 12:51:11 +00:00
Iván Sánchez Ortega
5dac21b14b Merge pull request #4063 from Brobin/4062_control_layers
call getSize() instead of _size to avoid render error
2015-12-02 08:55:42 +01:00
Brobin
70ed0e75c9 call getSize() instead of _size to avoid render error 2015-12-01 17:50:21 -06:00
Iván Sánchez Ortega
edacdf3bd5 Merge pull request #3653 from Leaflet/wheel
Switch to wheel event where available
2015-12-01 09:40:32 +01:00
Iván Sánchez Ortega
fa3da6503f Skip horizontal scroll on wheel events. Thanks to Julius Buset and his laptop's trackpad. 2015-11-30 17:09:30 +01:00
Vladimir Agafonkin
db550f0848 Merge pull request #4057 from ghybs/contributingLinkSO
Contributing guide replaced Google Group by Stack Overflow and GIS SE links
2015-11-27 16:44:27 +02:00
ghybs
5dc1c8ff40 Replaced Google Group by Stack Overflow and GIS SE links
in CONTRIBUTING.md following Leaflet/Leaflet#4055.
2015-11-27 18:22:05 +04:00
Vladimir Agafonkin
5b0384ea12 Merge pull request #4046 from RLRR/pan-anim-round-newpos
Round new map position before animating pan
2015-11-24 12:54:55 +02:00
Vladimir Agafonkin
f23074d790 Merge pull request #4040 from Leaflet/gridlayer-pixelbounds
Fix GridLayer pixelBounds computation
2015-11-23 23:48:31 +02:00
Alex Fedosov
3a2331d6c1 round new map position before animating pan 2015-11-23 19:05:39 +06:00
Yohan Boniface
e2fbe19683 Fix GridLayer pixelBounds computation
Map size does not change from one zoom to another, so we dont need
to scale it.

Without this change, we are creating more or less 4x tiles when
zooming in.
There are still cases where we are requesting a bit more tiles than
what I would expect, but I see it also happens on 0.7.3
2015-11-22 23:19:57 +01:00
Vladimir Agafonkin
63f239a20f Merge pull request #4028 from Leaflet/geojson-setstyle
Do not set layer.options a reference to layer.defaultOptions (fix #3990)
2015-11-18 17:02:46 +02:00
Yohan Boniface
7a1496ea4d Do not set layer.options a reference to layer.defaultOptions (fix #3990)
git bisect point at ad9d0f8c7f
2015-11-18 13:29:02 +01:00
Vladimir Agafonkin
c55f89972b Merge pull request #4016 from Leaflet/toggle-popup
Fix popup toggle on marker click (fix #3992)
2015-11-15 10:44:39 +02:00
Yohan Boniface
fd5411d74b Fix popup toggle on marker click (fix #3992)
Issue was:
- popup toggling is made on 'click' event
- map listen to 'preclick' to close any open popup
- at second user click, 'preclick' has been fired, then popup
  closed, so the popup toggling was reopening it
- this was not an issue before 0d3448d494
  because 'preclick' on the marker was not bubbled to the map
- also the unittest covering this use case was too much coupled with
  the use case with calling marker.fire instead of simulating user
  click on the marker icon
2015-11-14 20:41:53 +01:00
Iván Sánchez Ortega
99a48a5255 Merge pull request #4000 from simsibimsiwimsi/master
issue #3995 fixed check for maxZoom option to honor maxZoom 0
2015-11-10 09:04:02 +01:00
Vladimir Agafonkin
7d7ece0e55 Merge pull request #3999 from Leaflet/ie8-minzoom-tiles
Skip _updateLevels when out of min/max zoom (prevents IE8 exceptions)
2015-11-09 15:48:23 +02:00
Iván Sánchez Ortega
7d35531236 Skip _updateLevels when out of min/max zoom (prevents IE8 exceptions) 2015-11-09 14:35:54 +01:00
Vladimir Agafonkin
db3604ff2c Merge pull request #3998 from Leaflet/null-getposition
L.DomUtil.getPosition should return a fallback value (for VML in IE8)
2015-11-09 13:53:28 +02:00
Iván Sánchez Ortega
da57507494 L.DomUtil.getPosition should return a fallback value (for VML in IE8) 2015-11-09 12:40:21 +01:00
simsibimsiwimsi
3cfb1eff04 fixed check for maxZoom option to honor maxZoom 0
Checking if maxZoom is a number will work fine for {maxZoom: 0} where
options.maxZoom evaluates to false.
2015-11-08 22:44:47 +01:00
Iván Sánchez Ortega
aebf591693 Merge pull request #3978 from celadevra/issue3976
init interaction regardless of new icon or not
2015-11-02 10:03:33 +01:00
Haoyang Xu
772220070f init interaction regardless of new icon or not
[issue #3976]

previously interaction only get inited when not reusing icon, i.e. when addIcon
flag is set to true. by taking the statement out of the if condition,
interaction is inited whenever setIcon is called.
2015-10-30 20:50:28 +08:00
Vladimir Agafonkin
ca43794128 simplify bower setup, remove component
Component is not an active project anymore, and bower no longer
requires a version field in the config.
2015-10-26 19:25:39 +02:00
Vladimir Agafonkin
3c3a571585 add 0.7.7 entry in the changelog 2015-10-26 12:09:53 +02:00
Iván Sánchez Ortega
a969d20476 DomEvent.getWheelDelta() now aware of WheelEvent.deltaMode 2015-10-20 10:31:16 +02:00
Iván Sánchez Ortega
f6e9f90c41 Merge pull request #3950 from klaftertief/fix-canvas-zoom_split-events
Alternative fix for #3947
2015-10-20 09:40:53 +02:00
Vladimir Agafonkin
2a5857d172 Merge pull request #3956 from Leaflet/canvas-click-interactive-false
Fix interactive=false not taken into account for canvas (fix #3946)
2015-10-20 00:03:28 +03:00
Yohan Boniface
d901a5fc07 Fix interactive=false not taken into account for canvas (fix #3946) 2015-10-19 21:39:04 +02:00
Jonas Coch
3e0067fab7 Split renderer events and use zoomstart only in SVG renderer 2015-10-16 20:32:44 +02:00
Jonas Coch
e6e165869f Disable _onZoomStart in canvas renderer
This fixes disappearing paths when starting an animated zoom.
2015-10-16 13:27:53 +02:00
Yohan Boniface
c2a3dc9f18 Merge pull request #3942 from klaftertief/fix-canvas-move
Only check for moving draggable in canvas renderer when map is draggable
2015-10-15 21:09:46 +02:00
Jonas Coch
0df4d57f91 Use moving() method to simplify check in canvas renderer 2015-10-15 20:45:23 +02:00
Jonas Coch
b0d5c12b50 Add moving() method to MapDrag handler 2015-10-15 20:44:17 +02:00
Jonas Coch
ace08c17ca Only check for moving draggable in canvas renderer when map is draggable 2015-10-15 17:21:22 +02:00
Vladimir Agafonkin
55fe462508 v1.0.0-beta.2 2015-10-14 19:17:05 +03:00
Vladimir Agafonkin
857848fbee come back to the old publishing approach with improvements 2015-10-14 19:16:05 +03:00
Vladimir Agafonkin
d9917fa240 tag npm publish with beta 2015-10-14 18:28:31 +03:00
Vladimir Agafonkin
213c602f4e new Travis configuration with automatic releases 2015-10-14 18:09:47 +03:00
Vladimir Agafonkin
80960fe9e7 add the now missing phantomjs dep 2015-10-14 16:44:21 +03:00
Vladimir Agafonkin
9ebd2f03a0 update changelog 2015-10-14 16:32:27 +03:00
Vladimir Agafonkin
a147dae838 Merge pull request #3923 from Leaflet/renderer-pinch-zoom
Better handling of Renderer positioning during pinch-zoom, fixes #3919
2015-10-13 15:58:52 +03:00
Yohan Boniface
f75d80a626 Canvas: layer is removed later by this._draw (fix #3926) 2015-10-12 17:11:50 +02:00
Yohan Boniface
514e27aa6f CHANGELOG 2015-10-12 15:22:26 +02:00