Commit Graph

59 Commits

Author SHA1 Message Date
Thach Hoang
0d1eae32be Fix debug examples after rollup (#5417)
Fix #5373.

- Remove references to removed file "../../build/deps.js"
- Update leaflet-include.js to point to "../dist/leaflet-src.js"
- Update watch to use the same destination file as rollup (dist/leaflet-src.js)
- Define getRandomLatLng where used
2017-03-28 08:40:48 +02:00
Uzerus
cab880d4d8 type attribute not required in HTML5 2017-02-06 20:32:50 +01:00
Vladimir Agafonkin
703ae02aa8 ES6 modules & Rollup (#4989)
* WIP ES6 modules & rollup

* WIP ES6 modules & rollup 2

* WIP ES6 modules & rollup 3

* WIP ES6 modules Browser

* WIP ES6 module fixes

* WIP ES6 modules: simpler browser exports

* WIP ES6: refactor CRS/Projection modules, CRS obj -> CRS.Base

* get rid of unnecessary index.js

* WIP ES6 modules, dom events and stuff

* Make linter happy, rollup to dist/

* revert to CRS namespace/class for now

* WIP rollup: export more stuff

* export controls

* rollup: export Layer

* rollup: export DomEvent

* rollup: export more layer types

* rollup: export Popup/Tooltip

* WIP: ES6-ify marker, icon, domutil, draggable.

* ES6-ify gridlayer, tilelayer.

* ES6-ify: Tweak imports-exports, code is now runnable!!

* ES6-ify: Fix scope in some DomUtils

* ES6-ify: Path, fix Popup

* ES6-ify: Lint & cleanup

* ES6-ify map handlers, more linting

* ES6-ify: Icon.Default namespacing

* ES6-ify: Renderers, CircleMarker

* ES6-ify: Circle, Polyline, LineUtil

* ES6-ify: Polygon, Rectangle, LineUtil, PolyUtil, linting

* ES6-ify: SVG.VML

* ES6-ify: DomEvent.Pointer, DomEvent.DoubleTap

* ES6-ify: Linting, make Karma play nice with Rollup

* ES6-ify: More work on fixing bits breaking some unit tests.

* ES6-ify: rollup the version number, fiddled with build scripts

* ES6-ify: Fiddle with test scripts

* ES6-ify: cleanup (refs to global L, imports from (DOM)Util), prevent cyclic loop on Map imports

* ES6-ify: More cleanup of (DOM)Util/Browser/DomEvent imports

* ES6ify: Use rollup's "legacy" option for ES3 (IE8) builds

* ES6-ify: Clean up build scripts, fix CONTRIBUTING.md instructions

* Typo

* ES6-ify: minor fixes and lefovers after rebasing on top of 1.0.2

* ES6-ify: upgrade to rollup 0.38 for proper IE8 builds, fix L.SVG.VML

* Make linter happy.

* ES6: Fixing typos and sxrew-ups after big rebase

* Fix symlink for debugging scripts

* ES6: Cleanup old build scripts

* ES6-ify: Update build system to include git rev in L.version

* ES6-ify: re-enable unit tests replacing L.Path with L.Polyline

* Export Path

* ES6ify: cleanup old banner file

* ES6-ify: whitespace in var declarations

* ES6-ify: Export toTransformation as L.transformation

* ES6-ify: cleanup L.transform exports

* ES6-ify: "import Util" in Transformation and SVG.VML
2017-01-30 11:35:16 +01:00
Jon Woyame
d5c499b732 limit css selectors for svg/canvas (#4597) 2016-11-11 10:45:34 +01:00
Per Liedman
0bcfbdb537 Cleanup, tests and minor bug fixes for event system 2016-07-08 15:01:38 +02:00
Nathan Cahill
425fa13cb4 Various debug fixes (#4515)
* various debug fixes
* fix mixed spaces and tabs
2016-04-29 12:35:50 +03:00
Iván Sánchez Ortega
6829134e90 Possible fix for #3530, also should fix some shaking on pinch-zooming. 2016-03-21 15:51:29 +01:00
Yohan Boniface
50539d6fe5 Merge pull request #4131 from Leaflet/chrome-win10-dblclick
Possible fix for #4127, assume dblclick DOM event exists in touch-capable browsers
2016-02-15 11:18:42 +01:00
Zsolt Ero
3fc511d219 added zoomSnap for examples 2016-02-08 17:04:30 +01:00
Vladimir Agafonkin
01455c0167 Merge pull request #4193 from Leaflet/grid-extra-loads
Fix extra tile usage
2016-02-08 16:53:50 +02:00
Iván Sánchez Ortega
51149b79e7 Fix counters on tile-events debug page 2016-02-08 12:46:34 +01:00
Iván Sánchez Ortega
39d7388a2f Revert back to "prune tiles every tileready" behaviour 2016-02-05 17:07:03 +01:00
Iván Sánchez Ortega
e7fd00254e Updated tile-events debugging page 2016-02-05 16:45:08 +01:00
Iván Sánchez Ortega
c6e2a2021a Unit tests for flyTo and TileLayers. 2016-02-05 16:30:29 +01:00
Iván Sánchez Ortega
07039e05a9 Fix Stamen's Toner gridlayer in examples 2016-02-04 15:45:10 +01:00
Iván Sánchez Ortega
f777f42c6b More GridLayer unit tests; Grid zoom calculation changed during zoom anims 2016-02-03 17:35:52 +01:00
Iván Sánchez Ortega
bf37a9106c Change the way GridLayer is reset on a map viewreset 2016-02-02 16:56:18 +01:00
Iván Sánchez Ortega
ed05d4ac1e Unit tests for GridLayer loading logic 2016-02-02 14:56:02 +01:00
Iván Sánchez Ortega
ce0b289504 Test webpage for dblclick/dbltap performance 2016-01-13 14:40:30 +01:00
Iván Sánchez Ortega
6a283294fa Extra test case for #4093 2016-01-08 13:27:48 +01:00
Yohan Boniface
76cb60705f Switch from L_PREFER_CANVAS to map.options.preferCanvas 2015-07-14 10:27:50 +02:00
Iván Sánchez Ortega
d67cbb24c1 More complete test webpage for #3307 2015-07-06 13:55:59 +02:00
Yohan Boniface
0d3448d494 Always fire DOM event on the map too 2015-07-06 13:55:59 +02:00
Steve Kashishian
3687ed81e6 Fix setting of offset for popups.
Fixes #3525
2015-07-02 00:44:30 +03:00
Vladimir Agafonkin
d48191f426 Revert "Fix setting of offset for popups."
This reverts commit 30d2959c23.
2015-07-01 22:16:36 +03:00
Vladimir Agafonkin
047830f131 Merge pull request #3526 from snkashis/popup_offsets
Fix setting of offset for popups.
2015-07-01 22:10:17 +03:00
Steve Kashishian
30d2959c23 Fix setting of offset for popups. 2015-07-01 14:01:29 -05:00
Iván Sánchez Ortega
cf5111306f Implement non-square tiles for L.GridLayer, see #3570 2015-06-30 13:54:56 +02:00
Iván Sánchez Ortega
5245b94aad Reworked pixelBounds calculation in GridTile to deal with fractional zoom 2015-06-09 09:44:52 +02:00
Vladimir Agafonkin
120d8523c5 Merge pull request #3514 from Leaflet/detached-memory-leak
Cleaning up map layers when map.remove() is run
2015-06-05 01:17:40 +03:00
Iván Sánchez Ortega
81b038926c Cleaning up map layers when map.remove() is run 2015-06-04 16:30:38 +02:00
Iván Sánchez Ortega
3a9da3bd7c Fixes #3431, GridLayer.setOpacity() behaviour on active tiles. 2015-06-04 15:02:28 +02:00
Iván Sánchez Ortega
29e8507851 Test webpage for #3233 2015-05-08 16:32:57 +02:00
AndreyGeonya
9445c2f9f2 this commit fixes #2499 2014-08-05 18:14:02 +03:00
Steve Kashishian
ed926180d2 whitespace fixes 2014-03-04 11:04:00 -05:00
Steve Kashishian
28c56c4bb0 Remove cloudmade tilesets 2014-03-04 10:54:41 -05:00
Vladimir Agafonkin
9edf8e0ea3 remove leaflet.ie.css inclusion in all debug pages 2013-11-08 16:44:14 +02:00
danzel
b987f0c44b Test pages for rtl support. 2013-10-30 10:22:19 +13:00
fastrde
21a282d38b Test for dragging and worldCopyJump added 2013-08-17 13:20:12 +02:00
Steve Kashishian
62f708a4dc Prevent contextmenu events on popups from falling thru to map 2013-06-04 11:27:42 -04:00
Robert Nordan
9c379ff0e8 Make test/example actually check ondragstart/end 2013-05-31 14:16:18 +02:00
Robert Nordan
90cb132269 Add a test that shows the DOM change failure
The icon should switch from blue to red and back, but does not in IE
because the DOMelement has disappeared, as in issue #561. Instead, the
mouseover event is fired on any mouse motion in the marker. In addition,
in FF & Chrome the mouseover and mouseout events are continously fired
on any movement, which gives the correct visual results but causes
a lot of superflous event handling.
2013-05-31 12:47:51 +02:00
Steve Kashishian
c684fb4652 Prevent infinite loop in adding of canvas CircleMarkers 2013-05-28 19:39:14 -04:00
Vladimir Agafonkin
3c13569147 update cloudmade API key on all debug pages 2013-03-22 16:27:07 +02:00
Vladimir Agafonkin
b993f1fc4b Merge pull request #1471 from snkashis/drag_handling
handle drag listeners properly to avoid errors on marker removal
2013-02-28 03:25:04 -08:00
snkashis
71167baa52 move test location 2013-02-28 10:47:39 +00:00
snkashis
dc5c3d9492 mistaken, unneeded test file. 2013-02-17 15:26:43 -05:00
snkashis
70968e06d4 dupe of 50K vector test, for canvas. 2013-02-17 14:40:25 -05:00
snkashis
baeeddb078 Hand cursor for canvas paths 2013-02-17 14:21:27 -05:00
Vladimir Agafonkin
703f8a3a43 Merge pull request #1384 from snkashis/svg_clicks
Allow clicks to pass thru non clickable paths
2013-02-15 07:38:27 -08:00