Commit Graph

136 Commits

Author SHA1 Message Date
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
Per Liedman
d0d699bfa4 Fix missing variable 2016-11-10 11:07:53 +01:00
Per Liedman
957659fcd0 Move attribution option and getAttribution to L.Layer (#5070)
Close #5051.
2016-11-03 09:32:56 +01:00
Steve Kashishian
c624a3ed50 remove explicit image path on two debug pages 2016-09-29 15:12:08 -05:00
Yohan Boniface
e746211be7 Better tooltip offset handling (fix #4772) (#4773)
- default offset is now [0, 0]
- both offset.x and offset.y are always honoured
- positive x always move the tooltip on the right
- positive y always move the tooltip on the bottom
2016-08-02 17:51:22 +03:00
Yohan Boniface
fc1dc96638 Allow to call bindTooltip on a layer not yet added to a map (fix #4778) (#4779) 2016-08-02 17:50:53 +03:00
Steve Kashishian
7738565a33 Remove usage of mapquest tiles from debug pages 2016-07-25 12:39:55 -05:00
Vladimir Agafonkin
94303a681b Merge pull request #3952 from Leaflet/label
Implement L.Label
2016-07-15 13:06:36 +03:00
Yohan Boniface
64ba1f7f95 Rename Label in Tooltip, PopupBase in DivOverlay 2016-07-08 13:51:18 +02:00
Yohan Boniface
a1e43ed3bb spaces to tabs in label.html debug page 2016-07-08 11:44:10 +02:00
Yohan Boniface
bd2616f901 Do not rely on options.draggable to compute draggableMoved (#4638)
One can enable dragging of a marker after it has been initialized
with draggable=false.
2016-07-08 11:22:54 +02:00
Yohan Boniface
2f4b97de19 Add support for "center" Label position 2016-07-02 10:52:04 +02:00
Yohan Boniface
14bfedf7ff Merge branch 'master' into label 2016-07-02 10:36:42 +02:00
Zsolt Ero
26df85e841 maxbounds example fixes (#4680) 2016-06-28 15:14:24 +02:00
Jon Woyame
268a57c077 add demo with both map and vector click events (#4601) 2016-06-01 17:27:47 +03:00
Yohan Boniface
4a9140e6b1 Add L.Label related documentation 2016-05-06 15:00:01 +02:00
Yohan Boniface
737137634e Rename Label clickable option to interactive 2016-05-06 13:39:09 +02:00
Yohan Boniface
b4b97277c4 Support top and bottom direction 2016-05-06 13:30:58 +02:00
Yohan Boniface
8a2255afc3 Merge branch 'master' into label 2016-04-30 14:36:48 +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
Nathan Cahill
a5cf6b9390 remove old CircleMarker options (#4497) 2016-04-25 15:54:02 +03:00
Nathan Cahill
1462f7e538 correct TileLayer constructors in debug (#4498) 2016-04-25 08:43:01 +02:00
Zsolt Ero
928100f961 Workaround for flyTo bug
* test for flyTo start latlng == end latlng condition
* workaround for flyTo infinite loop
* expect for zoomend values

Close #4226
2016-04-02 21:12:40 +02:00
Jan Pieter Waagmeester
0bed05d537 Use array in L.Control.Layers to preserve layer order fixes #2086 2016-04-02 20:48:31 +02:00
Zsolt Ero
7dd71b83f4 workaround flyTo bug 2016-02-12 03:14:12 +01:00
Zsolt Ero
3c87804f42 added gridLoadData 2016-02-12 02:12:05 +01:00
Zsolt Ero
68d52deada styling fixes 2016-02-09 00:00:04 +01:00
Zsolt Ero
a5506e9f8e added resetCounter, indenting for tile-debug 2016-02-08 23:22:59 +01:00
Zsolt Ero
71423f9069 tile-debug html added 2016-02-08 22:58:23 +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
39d7388a2f Revert back to "prune tiles every tileready" behaviour 2016-02-05 17:07:03 +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
a1ff60bf9b Make wheel-zoom speed depend on a new wheelPxPerZoomLevel option 2016-02-04 12:50:42 +01:00
Iván Sánchez Ortega
65ccc2b36c Fractional zoom controls. 2016-01-18 10:10:32 +01:00
Thomas Coats
8a0719f16c Fire tileunload for all unloading of tiles 2015-12-17 21:34:35 +13:00
Yohan Boniface
d8b7f6fcbe L.Label: honour opacity option 2015-11-15 19:15:14 +01:00
Yohan Boniface
9d0b13b991 Add some basic unittests for L.Label 2015-11-15 18:56:27 +01: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
Yohan Boniface
b685d22eee Add popup in label debug page 2015-10-18 10:37:12 +02:00
Yohan Boniface
d7b721877c First naive L.Label version 2015-10-17 22:42:17 +02:00
Yohan Boniface
d3198d8d39 Fix duration not passed through from setView to panBy (fix #3300) 2015-10-12 14:02:30 +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
w8r
5e32cd190c fixes #3652 by container opacity approach 2015-07-24 15:57:43 +02:00
Yohan Boniface
78b486ac48 Dont call preventDefault on contextmenu if no target listen to it (fix #3638) 2015-07-17 17:15:19 +02:00
Yohan Boniface
8870c2abf8 Fix boxZoom._moved remaining in bad state after use (cf #3026) 2015-07-17 12:54:59 +02:00
Patrick Arlt
6bf0f98796 fix popup offseting 2015-07-02 00:44:31 +03:00
Iván Sánchez Ortega
7032bbc13d Graceful degradations of zoom-pan animations on top of refactored zoom-pan events. 2015-06-05 20:51:20 +03:00
Iván Sánchez Ortega
8a352fbbbf Add an option to make the map's maxBounds non-bouncy. Fixes #1673. 2015-06-02 17:24:22 +02:00