Commit Graph

3719 Commits

Author SHA1 Message Date
Julien SORET
03fb73ed22 Fix cursor when dragging is set to false. 2015-02-15 21:18:44 +01:00
Vladimir Agafonkin
d518ad5763 Merge pull request #3231 from vsn4ik/gem_deprecated_options
Update travis.yml and CONTRIBUTING.md
2015-02-14 22:35:27 -08:00
vsn4ik
c5de3fcbb8 Changed deprecated gem options on travis.yml and updated links on CONTRIBUTING.md 2015-02-14 15:12:44 +03:00
Vladimir Agafonkin
5f29ccb220 Merge pull request #3230 from yohanboniface/disable-dragging-off-map
Do not try to remove drag class if marker as no icon
2015-02-13 09:25:31 -08:00
Yohan Boniface
5b3ba078bf Do not try to remove drag class if marker as no icon
Since 4c46abe781 it's possible
to have a marker off the map with dragging still enabled.
We want to be able to disable it in this situation too.
2015-02-13 17:53:23 +01:00
John Firebaugh
a998f9b6c8 Merge pull request #3217 from akauppi/two-small-typos
two small typos I spotted during code read-through
2015-02-08 11:10:28 -08:00
Asko Kauppi
a7fc9c9a5f two small typos I spotted during code read-through 2015-02-08 17:06:16 +02:00
John Firebaugh
21701a6fae Remove test specific to old zoom code 2015-02-06 16:36:43 -08:00
John Firebaugh
e52c551652 Remove trailing whitespace 2015-02-06 16:36:27 -08:00
Vladimir Agafonkin
2925be1112 Merge pull request #3215 from Leaflet/zoom-anim
Followups for zoom animation changes
2015-02-07 02:11:49 +02:00
John Firebaugh
71c11987b5 Ensure tiles have 0 opacity when first painted
Fixes #3206
2015-02-06 15:54:13 -08:00
John Firebaugh
875ec02e5f Remove obsolete unloadInvisibleTiles option 2015-02-06 15:51:20 -08:00
John Firebaugh
e47c568a0d Stricter selectors for will-change properties 2015-02-06 15:50:24 -08:00
Vladimir Agafonkin
54c712cf2b Merge pull request #2926 from aparshin/clip-round
Add optional parameter for result rounding in L.PolyUtil.clipPolygon and L.LineUtil.clipSegment
2015-02-06 17:42:53 +02:00
Vladimir Agafonkin
1d7c492bdd discard unneeded tile buffers 2015-02-06 12:17:26 +02:00
Vladimir Agafonkin
6b67df0232 make animations significantly smoother with will-change 2015-02-06 03:13:49 +02:00
John Firebaugh
8d96505527 Remove src reset on removed tiles
This is a performance hit on Chrome; no evidence it ever
solved a real issue. (Ref #107)
2015-02-06 03:13:49 +02:00
John Firebaugh
a0ebbef007 Don't adjust opacity for non-current tiles 2015-02-06 03:13:49 +02:00
Vladimir Agafonkin
421fcca086 Merge pull request #3203 from optical/canvas-weight-consistency
Do not render the stroke if the weight is explicitly set to 0
2015-02-06 01:12:35 +02:00
Jared
ff679aa7dc Do not render the stroke if the weight is explicitly set to 0
When rendering to SVG, if the weight is 0 the outline is not displayed.
However, when rendering to canvas it will still display the outline.
This change makes the behaviour consistent when rendering to either.
2015-02-06 11:41:40 +13:00
Vladimir Agafonkin
cb1994a3db Merge pull request #3142 from Leaflet/tile-fade
Fade tiles with requestAnimationFrame rather than CSS
2015-02-04 01:15:37 +02:00
John Firebaugh
fc70a21884 Go back to non-incremental tile pruning algorithm 2015-02-03 14:06:49 -08:00
Vladimir Agafonkin
ddcfa5265a less redundant opacity-changing frames 2015-02-03 15:25:22 +02:00
John Firebaugh
602648111f Use rounded zoom level when calculating tile bounds 2015-02-02 13:46:24 -08:00
John Firebaugh
4d119c9cdb Don't prune tiles during animated zoom
Tiles around the border will not be necessary when the zoom
completes, but need to be retained during the zoom.
2015-02-02 12:31:46 -08:00
John Firebaugh
16b1b26116 Adjust retention logic
Continue to retain loaded-but-still-fading-in tiles,
but also continue to look for loaded-and-active tiles.

This reduces flicker on multiple rapid zoom actions.
2015-02-02 12:29:53 -08:00
Vladimir Agafonkin
cbfbc88370 optimize DomUtil.setOpacity
V8 can’t optimize functions with try/catch inside
2015-02-02 10:50:18 -08:00
Vladimir Agafonkin
fb6eda1fbe don't request redundant fade in frames 2015-02-02 10:50:18 -08:00
John Firebaugh
465cfbad29 Remove opacity resetting on zoom of pre-existing tiles
Now that we are fading during the zoom animation, this
is no longer necessary. The zoom animation itself provides
enough of a transition, and resetting the opacity can lead
to more flickering than it solves.
2015-02-02 10:50:18 -08:00
John Firebaugh
7d90dc152e Clean up pixel bounds calculations 2015-02-02 10:50:18 -08:00
John Firebaugh
bb19fc1bf8 Deterministic tile pruning
Do not throttle _pruneTiles. Instead, when adding new tiles,
prune tiles that are no longer needed immediately, and when
a new tile finishes its fade animation, immediately prune
just its parents/children.
2015-01-29 16:26:32 -08:00
Vladimir Agafonkin
e7a7bfc9ea fix build 2015-01-28 19:45:56 +02:00
John Firebaugh
bbf32ebfcd Begin tile loading and fading during zoom animation 2015-01-28 19:44:15 +02:00
John Firebaugh
22cfd12956 Fade tiles with requestAnimationFrame rather than CSS 2015-01-28 19:44:14 +02:00
Vladimir Agafonkin
4c0f028794 Merge pull request #3176 from Leaflet/eslint
Switch from JSHint to ESLint
2015-01-28 19:37:43 +02:00
Vladimir Agafonkin
aeb5083170 complete the switch to ESLint 2015-01-28 19:33:45 +02:00
Vladimir Agafonkin
d145b1fdba fix a bunch of eslint warnings in the spec suite 2015-01-28 19:32:27 +02:00
Vladimir Agafonkin
e749d1915b add ESLint rules; various code style fixes 2015-01-28 17:27:31 +02:00
Vladimir Agafonkin
65efd30567 minor chaining fixes 2015-01-28 17:17:26 +02:00
Vladimir Agafonkin
93f3304f22 fix zoom control regression 2015-01-27 23:15:07 +02:00
Vladimir Agafonkin
aace5b278e add Control.Zoom disable/enable methods, close #3172 2015-01-27 19:09:49 +02:00
Vladimir Agafonkin
06d354e9cd Merge pull request #3173 from Leaflet/locate-options
Don't mutate this._defaultLocateOptions. Fixes #3160
2015-01-26 03:10:31 +02:00
Tom MacWright
a28c9508be Don't mutate this._defaultLocateOptions. 2015-01-25 19:27:24 -05:00
Vladimir Agafonkin
165bc298e0 Merge pull request #3168 from Starefossen/patch-6
Update year in copyright.js
2015-01-24 17:43:20 +02:00
Vladimir Agafonkin
0602136da7 Merge pull request #3169 from Starefossen/patch-8
Use SVG version of Travis build status badge
2015-01-24 17:43:05 +02:00
Hans Kristian Flaatten
46d5992279 Use SVG version of Travis build status badge 2015-01-24 11:23:23 +01:00
Hans Kristian Flaatten
73147bc9e6 Update year in copyright.js 2015-01-24 11:20:01 +01:00
Vladimir Agafonkin
461f82b710 Merge pull request #3154 from stsydow/master
preserve marker dragable state on layer deactivation
2015-01-21 00:09:32 +02:00
Stefan Sydow
4c46abe781 preserve dragable state on layer deactivation 2015-01-19 19:07:04 +01:00
Vladimir Agafonkin
9c10141cc9 Merge pull request #3153 from bb-generation/options-undefined-fix
fixed error in _tryAnimatedPan when options is undefined
2015-01-19 02:17:33 +02:00