Commit Graph

4016 Commits

Author SHA1 Message Date
Vladimir Agafonkin
e1c714edab Merge pull request #3722 from Leaflet/gridlayer-zindex-fix
Always force GridLayer to have a zIndex
2015-09-17 17:57:13 +09:00
Matthew Mueller
b8aea43414 Fixing negative acceptableHeights and supporting browser resize
The previous formula calculated acceptableHeight as (map height - (4 * element offset).  If the element had other controls above it, it might be pushed lower on the screen, which depending on screen size means that the acceptableHeight could quickly become a negative value which causes a bug.   For example: my map has a height of 815px, and my layer control is offset from the top 277px so it is almost halfway down my screen.  Using the old formula, the acceptable height would be 815 - (277 * 4) = -293.  Since the acceptable height was less than the client height the scrollbar would show up, but it would be greyed out, and because the height limit was negative, the window would not have a height limit and expand off the map. Using the new formula it takes the vertical offset, and adds 50px(element is 36px,+ bottom credits height + a few pixels for a bottom margin) to determine max height.  This means the element will be able to expand until it is a few pixels above the credits at the bottom of the map before it stops expanding.

Additionally, by resetting the form.style.height to null before checking the clientHeight, we are removing the limit on the height of the control, so that if someone resizes their browser window to make it larger when viewing the layer list, the list will reset the max height instead of keeping the smaller max height that was already set, and in addition, if the scrollbar is no longer needed, it will be removed.
2015-09-17 17:42:56 +09:00
Vladimir Agafonkin
a54c239238 Merge pull request #3815 from Leaflet/tilelayer-update-zoom
Fix TileLayer._update so it doesn't break drag-then-pinch interactions.
2015-09-17 17:36:13 +09:00
Yohan Boniface
bd55613cb5 Always call renderer.getEvents before Path.getEvents (fix #3836) 2015-09-16 11:35:26 +02:00
Vladimir Agafonkin
9ee0fbed98 Merge pull request #3831 from Leaflet/transform3D-threshold
Cleaner code for L.Map._onMoveEnd
2015-09-16 16:10:13 +09:00
javimolla
76868ad3f4 Extract logic from getScaleZoom to CRS
Added tests for custom crs with zooms not power of two related
2015-09-15 17:58:19 +02:00
Vladimir Agafonkin
1ef9e220e4 Merge pull request #3839 from danzel/3804
Redo some (ms)pointer work to be consistent and fix IE10
2015-09-15 21:13:12 +09:00
danzel
c60fd1d17b Only preventDefault for non-mouse events, this makes mouse events still cause mousedown/up events, which is usually what you want. Fixes #3804 2015-09-14 13:19:16 +12:00
danzel
c6d8587753 Don't use maxTouchPoints detection in IE11+ (or edge) either, matching our msPointer detection. 2015-09-14 13:18:43 +12:00
Iván Sánchez Ortega
17c180e1ef Update max precision of CSS transforms to those of 32-bit floats, as used by Firefox 2015-09-11 16:18:24 +02:00
Yohan Boniface
5f1b230bda Cleaner code for L.Map._onMoveEnd 2015-09-11 12:20:51 +02:00
Iván Sánchez Ortega
83d45c2327 Merge pull request #3830 from Leaflet/transform3D-threshold
Prevent to use extreme values in transform3d
2015-09-11 11:04:02 +02:00
Yohan Boniface
c5172f3088 Prevent to use extreme values in transform3d
- FF bugs in positioning the element
- Chrom(e|ium) have a one pixel offset
2015-09-11 11:02:22 +02:00
Iván Sánchez Ortega
e5182affc6 Make GridLayer._update always depend on the map's zoom level. 2015-09-10 09:41:39 +02:00
Iván Sánchez Ortega
bc36fb645d Make linter happy. 2015-09-09 16:46:09 +02:00
Iván Sánchez Ortega
641cdd07f7 Clarifications for GridLayer._update 2015-09-09 16:25:20 +02:00
Iván Sánchez Ortega
e5a208c670 Fix #3355 by not aborting tile loading for tiles in the "active" zoom level. 2015-09-09 16:06:57 +02:00
Iván Sánchez Ortega
3c3f23f339 Fix small minZoom/maxZoom infinite-loop-on-map-load regression 2015-09-09 15:41:56 +02:00
Iván Sánchez Ortega
7098b04cd7 Modify GridLayer update logic to run smoother on zoom pinch & flyTo anims. 2015-09-09 14:03:12 +02:00
Iván Sánchez Ortega
944f2de3a8 Fix TileLayer._update so it doesn't break drag-then-pinch interactions. 2015-09-08 15:24:51 +02:00
Vladimir Agafonkin
08d655fe66 upgrade deps and stricter eslint 2015-09-04 17:46:55 +02:00
Iván Sánchez Ortega
9cbb761c15 Merge pull request #3806 from Leaflet/getevents
Call layer.getEvents before calling layer.onAdd (fix #3745)
2015-09-04 10:09:45 +02:00
Yohan Boniface
61c07bd3e3 Call layer.getEvents before calling layer.onAdd (fix #3745) 2015-09-04 10:02:11 +02:00
Vladimir Agafonkin
ed0cf6e772 update changelog about 0.7.5 2015-09-02 10:25:29 +02:00
Vladimir Agafonkin
fe5e8728ac add a 0.7.4 changelog 2015-09-01 13:01:25 +02:00
Iván Sánchez Ortega
809186dcc9 Make linter happy about whitespace 2015-08-31 16:41:54 +02:00
Iván Sánchez Ortega
e698f641af Rectangle.setBounds() must return a value 2015-08-28 12:39:28 +02:00
Iván Sánchez Ortega
da8149c164 Move L.Layer.isPopupOpen to appropiate file 2015-08-27 23:56:02 +02:00
Vladimir Agafonkin
28c8417c49 Merge pull request #3776 from knabar/fix-missing-radius
Use radius if radiusY is not set
2015-08-26 11:31:12 +02:00
Iván Sánchez Ortega
c565cd4687 Merge pull request #3770 from ilfa/fix-init-bug
Fix init bug when we have script tags without src
2015-08-25 10:53:04 +02:00
i.taratuhin
5a61a5ec48 fix init bug when script in document don't have src 2015-08-25 14:47:18 +06:00
Vladimir Agafonkin
dd00156a8c Merge pull request #3723 from Leaflet/sourcemaps
Build sourcemaps via magic-string
2015-08-10 18:54:10 +03:00
Iván Sánchez Ortega
62f1cd2f58 Build sourcemaps via magic-string 2015-08-10 15:29:00 +02:00
Patrick Arlt
431547c28e Trailing whitespace 2015-08-09 15:45:18 -07:00
Patrick Arlt
66e6e856de Always force GridLayer to have a zIndex
Fixes https://github.com/Leaflet/Leaflet/issues/3721
2015-08-09 15:42:24 -07:00
Vladimir Agafonkin
d17e53bbf6 Merge pull request #3663 from fminuti/flyTo-center
FlyTo with targetCenter == currentCenter not animated
2015-08-07 16:08:29 +03:00
Andreas Knab
0848635b9a Use radius if radiusY is not set 2015-08-06 15:31:27 +02:00
Vladimir Agafonkin
81e71fe7e0 check for geolocation clearWatch, #3707 2015-08-04 13:39:51 +03:00
Vladimir Agafonkin
a6663baf25 Merge pull request #3706 from Leaflet/truncate-sphericalmercator-high-latitudes
Truncate high/low latitudes for Spherical Mercator like previous versions
2015-08-03 22:58:49 +03:00
Per Liedman
fecd412209 Truncate high/low latitudes for Spherical Mercator like previous versions.
Close #3700.
2015-08-03 21:26:56 +02:00
Vladimir Agafonkin
c016634bb1 Merge pull request #3703 from fminuti/requestAnimFrame-extraParams
Remove extra params from L.Util.requestAnimFrame calls
2015-08-03 16:06:36 +03:00
Fabrizio Minuti
936b8d119d Remove extra params from L.Util.requestAnimFrame calls
I removed the parameters from the calls to L.Util.requestAnimFrame:
they don’t seem to be used.
2015-08-03 14:49:19 +02:00
Iván Sánchez Ortega
723c22312d L.Control.Layers shows disabled inputs for non-visible tilelayers 2015-07-30 13:59:09 +02:00
Vladimir Agafonkin
5a29499834 Merge pull request #3692 from Leaflet/dragging-while-zooming
Do not set draggable flags during a zoom animation
2015-07-30 12:15:15 +03:00
Iván Sánchez Ortega
895a75de48 Do not set draggable flags during a zoom animation 2015-07-30 10:33:57 +02:00
Vladimir Agafonkin
62f26f288d Merge pull request #3688 from fminuti/setTransform-ie11-fix
Fix Internet Explorer 11 map overflow outside container
2015-07-29 15:44:06 +03:00
Vladimir Agafonkin
4a60b1a666 Merge pull request #3686 from Leaflet/msie-disable-dragging
Allow disabling dragging during mid-drag.
2015-07-29 15:16:14 +03:00
Fabrizio Minuti
4a8e1b6a87 Fix Internet Explorer map overflow outside container 2015-07-29 14:10:20 +02:00
Iván Sánchez Ortega
39f03304a6 Fix Marker dragging with changing Icon, see #3687 2015-07-29 11:21:19 +02:00
Iván Sánchez Ortega
6bb447bafe Allow disabling dragging during mid-drag. 2015-07-29 10:19:01 +02:00