Commit Graph

458 Commits

Author SHA1 Message Date
ghybs
628fc04333 docstrings: update L.circle example to match new syntax (#4974)
docstrings: update L.circle example to match new syntax
2016-09-29 13:21:11 +02:00
Per Liedman
d10077e13e Fire update event from VML renderer (#4956)
Close #4950.
2016-09-27 19:59:40 +02:00
Edgard Lorraine Messias
6bb703ca7c docstrings: Removed incorrect semicolon (#4943) 2016-09-27 10:05:17 +02:00
Edgard Lorraine Messias
db7482a561 docstrings: Removed incorrect semicolon (#4942) 2016-09-26 19:06:54 +02:00
Iván Sánchez Ortega
c931d330fe Delay firing the 'update' event on renderers (should fix #4928) (#4929) 2016-09-21 19:20:59 +03:00
Per Liedman
ed1a612e6f Make paths insensitive to the order of its map's moveend handlers (#4855)
* Make Paths always update after renderer updates

Close #4851

* Add test

* Add docs for update event

* Remove listener when layer is removed
2016-08-31 17:58:46 +03:00
Steve
92baa9c73f Throw error on call to L.Polygon getCenter before map add (#4820)
* Throw error on call to L.Polygon getCenter before map add

References #4740

* add polyline handling, tests, and docstring
2016-08-15 17:01:41 +02:00
Yohan Boniface
1d1b7e2aea Be more defensive when using other layers pxBounds in L.Canvas._draw (#4653)
In some edge cases, it will not be defined. For example if a poly
with no latlngs (or only one) is attached to the canvas renderer.
2016-06-18 23:51:41 -07:00
Yohan Boniface
95d5b59c5f Fix canvas not filtering click event after drag (#4493)
* Fix preclick not fired in canvas
* Do not add canvas layers to click event targets if just dragged (fix #4458)
2016-06-01 17:43:32 +03:00
Iván Sánchez Ortega
5cc9b79c97 docstrings: Refactor interactive layers, implements #4583 (#4585) 2016-05-25 10:57:18 +02:00
Iván Sánchez Ortega
ddf8f0575e Leafdoc: fix internal links & inconsistent return types (#4469)
* Leafdoc: fix internal links & inconsistent return types

* an -> a
2016-04-20 16:29:08 +02:00
Iván Sánchez Ortega
c3426d6bb6 docstring fixes regarding Polyline/Circle options 2016-04-20 09:48:53 +02:00
Nathan Cahill
c59bf6ad30 remove duplicate Map.options.renderer 2016-04-16 12:42:59 -06:00
Nathan Cahill
c10f405a11 switch options type from path to polyline for polygon and rectangle - fixes #4427 (#4444) 2016-04-15 17:22:51 +02:00
Per Liedman
593a553e64 Pass layer on when calling _updateDashArray
Add specs to verify intialization and setStyle with dashArray.
Close #4401.
2016-04-08 16:43:21 +02:00
Iván Sánchez Ortega
0cfe85897f Make non-interactive markers not fire pointer events
* Make non-interactive markers not fire pointer events, fixes #3936

* Make non-interactive image overlays and SVGs not fire pointer events

* Make gridlayers non-interactive, fixing #2396 too.
2016-04-02 19:33:02 +02:00
Per Liedman
f1ce036caf Remove use of ES5 function (map). Close #4362. 2016-04-02 18:25:57 +02:00
Yohan Boniface
1b1d21b1bf Let's say I'm @IvanSanchez for once 2016-04-02 15:59:54 +02:00
Iván Sánchez Ortega
560e73bac5 Trying out Leafdoc comments in L.Marker
Added Leafdoc comments to Layer.js

Leafdoc comments for Popup, Layer

Leafdoc comments: L.Evented, inheritances, minor tilelayer

Leafdoc comments: gridlayer & tilelayer options

Leafdoc comments: tilelayer, marker drag

Typos

Leafdoc: switch to shorthand method params

Leafdoc: Switch to shorthands in marker drag, WMS.

Leafdoc: Vector layers

Leafdoc: Layer group, feature group, geojson

Leafdoc: LatLng, Point, Bounds, Icons.

Leafdoc: Controls.

Leafdoc: DOM & utils.

Leafdoc: "jake docs" now builds the documentation

Leafdoc: Commit actual templates instead of symlinks

Leafdoc: Fix broken build, have jake print out uglifyjs errors

Leafdoc: Several L.Map bits.

Leafdoc: Map handlers

Leafdoc: Map events, L.CRS, misc. fixes

Leafdoc: Fixed ordering of classes by using new leafdoc features

Leafdoc: Misc bits at the bottom of the docs

🍂doc: Map panes

🍂doc: CRSs, projections and their templates

🍂doc: miniclasses for map methods' options

Leafdoc: Cleanup L.Class, mark uninheritable sections, use Leafdoc 0.3.0

🍂doc: miniclasses for event types, bump to Leafdoc 1.0.0

🍂doc: Make linter happy after branch rebase

🍂doc: Tweaked headers for inherited stuff.

🍂doc: Tweaking section headers (white, padding, triangles)

Leafdoc: upgrade to 1.2, document SVG&Canvas, and misc bits

🍂doc: minor CSS tweaks, version in filename, typo.

Add missing bits - supersedes #4105, #4065, #4031

🍂doc: moved sections around, minor typos & fixes

Typo about LocationEvent
2016-04-02 15:59:39 +02:00
Per Liedman
4267291527 Initialize canvas dash on init. Check that canvas supports setLineDash.
Close #4363. Close #4351.
2016-04-02 09:41:59 +02:00
Iván Sánchez Ortega
8aa32484b4 Port #4173 to master 2016-03-08 16:58:36 +01:00
Joseph Folkemer
97921d6cef Increase depth of legacy support
A lot of plugins use the capitalized internal constructors rather than
the API.  This should broaden legacy support for plugins that use the
L.Circle constructor.
2016-02-29 13:01:30 -06:00
Iván Sánchez Ortega
2730a3e3cf Throw error on NaN circle radius, #4235 2016-02-15 10:20:36 +01:00
Iván Sánchez Ortega
c40aba27bc Branch L.Renderer.updateTransform when not L.Browser.any3d, fixes #4211 2016-02-09 11:05:18 +01:00
Yohan Boniface
de4526cc1d Sanity check: test pxBounds validity before using it (fix #4153)
Otherwise, we may have bug when polyline latlngs are cleared while
not updating the polyline bounds (so ending with empty latlngs
but this._bounds still valid).
2016-02-04 09:48:35 +01:00
Iván Sánchez Ortega
228d357239 Work around precision issues in circle radius, fixes #2425 2016-01-08 14:45:34 +01:00
Per Liedman
832b43ac58 Use all projected coords when calculating Polyline's pixel bounds.
Close #3968. Close #4020.
2015-12-28 20:59:57 +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
f6e9f90c41 Merge pull request #3950 from klaftertief/fix-canvas-zoom_split-events
Alternative fix for #3947
2015-10-20 09:40:53 +02: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
Jonas Coch
0df4d57f91 Use moving() method to simplify check in canvas renderer 2015-10-15 20:45:23 +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
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
Iván Sánchez Ortega
2191cfa8b0 Better handling of Renderer positioning during pinch-zoom, fixes #3919 2015-10-12 14:10:48 +02:00
Vladimir Agafonkin
8a5184193e Merge pull request #3917 from Leaflet/canvas-stop-event
Canvas events fixes (fix #3915)
2015-10-10 21:24:37 +03:00
Yohan Boniface
6c3b9e10b8 Fix L.Circle init without options.radius 2015-10-09 20:24:42 +02:00
Yohan Boniface
0b0989f9f1 Canvas events fixes (fix #3915)
- fix fireEvent called for each layer containing event point
- fix layer not removed from this._layer at remove
- fix L.DomEvent.stop(e) not honoured for canvas because events
  are both listenned on canvas container and map container
2015-10-09 18:28:35 +02:00
Iván Sánchez Ortega
a2595bbfe8 L.Renderer shall use center and not topleft as reference, fixes #3769 2015-10-06 15:35:10 +02:00
Vladimir Agafonkin
301473ad4d more strict eslinting 2015-09-25 13:40:21 +03:00
Yohan Boniface
8ea42c1ccc Add padding on canvas redraw bounds 2015-09-20 12:32:40 +02:00
Yohan Boniface
f643d25637 Use clip to limit canvas redraw area (fix #3583) 2015-09-20 12:32:40 +02:00
Vladimir Agafonkin
6e9236de93 Merge pull request #3837 from Leaflet/rendered-update
Always call renderer.getEvents before Path.getEvents (fix #3836)
2015-09-20 00:06:36 +09:00
Iván Sánchez Ortega
3924d49bcd Consistency between L.circle and L.circleMarker (#3785) 2015-09-17 23:22:55 +09:00
Yohan Boniface
bd55613cb5 Always call renderer.getEvents before Path.getEvents (fix #3836) 2015-09-16 11:35:26 +02:00
Iván Sánchez Ortega
e698f641af Rectangle.setBounds() must return a value 2015-08-28 12:39:28 +02:00
Andreas Knab
0848635b9a Use radius if radiusY is not set 2015-08-06 15:31:27 +02:00
Vladimir Agafonkin
ccfd306eb5 Merge pull request #3662 from fminuti/vml-fixes
Fix vector layers in IE8, close #2809
2015-07-23 12:37:11 +03:00