Commit Graph

1263 Commits

Author SHA1 Message Date
mourner
0f40da1cce merge events by Guiswa, minor cleanup/refactoring 2012-06-30 14:51:09 +03:00
mourner
fe198ce9e4 Merge branch 'master' of https://github.com/Guiswa/Leaflet into better-events 2012-06-30 13:16:51 +03:00
mourner
2f25c36222 update jasmine to 1.2.0 2012-06-30 13:13:02 +03:00
Aaron King
95ed9cdda2 Allow L.Mixin.Events.addEventListener() to accept a map in which the string keys represent one or more space-separated event types and the values represent a handler function to be called for the event(s).
Allow L.Mixin.Events.removeEventListener() to accept one or more space-separated event types. Omitting the fn parameter will remove all event handlers for the supplied event type(s).

Also allow L.Mixin.Events.removeEventListener() to accept a map where the string keys represent one or more space-separated event types and the values represent handler functions previously attached for the event(s).

Add unit tests for the above changes.
2012-06-29 16:14:41 -07:00
mourner
8d619899b0 refactoring, map getZoomScale and getScaleZoom, fix path zoom anim to take clip padding into account 2012-06-29 02:59:49 +03:00
mourner
9387db04c2 refactoring, cleanup, add Bounds.getBottomLeft and getTopRight 2012-06-29 01:47:30 +03:00
Vladimir Agafonkin
8288684dca Merge pull request #764 from IMAmuseum/master
Fix for fitBounds while using crs.Simple projection
2012-06-28 06:47:50 -07:00
Charlie Moad
4a9b87bdbb use abs val distance 2012-06-27 21:18:02 -04:00
Vladimir Agafonkin
0830bb38dc fixed path setStyle in IE6-8, closed #641, updated build and changelog 2012-06-26 12:21:15 +03:00
Vladimir Agafonkin
5da6da99d4 Merge remote-tracking branch 'origin/master' 2012-06-26 11:48:59 +03:00
Vladimir Agafonkin
d292b16666 tidy up leaflet CSS 2012-06-26 11:48:43 +03:00
Vladimir Agafonkin
277a008e1e Merge pull request #758 from danzel/imageoverlay-zoom-support
Imageoverlay zoom support
2012-06-25 23:27:12 -07:00
danzel
7fc0b5a4d0 Remove the CSS hacks from the first go. 2012-06-26 11:18:49 +12:00
danzel
9a979dd6d9 ImageOverlay zooming support done proper! :) 2012-06-26 11:16:46 +12:00
danzel
b901708d31 Working on ImageOverlay zoom animation. This works but the image wobbles when it zooms some times. Will have another go with scale... 2012-06-26 11:16:45 +12:00
mourner
18557d890a update build and changelog, cleanup 2012-06-26 01:51:04 +03:00
Vladimir Agafonkin
4b2ccdd7fd Merge pull request #757 from stsydow/for_mourner
fixes NaN bug in scale control and spurios mousemove event
2012-06-25 15:32:34 -07:00
mourner
f7a65ffbd9 update changelog 2012-06-26 01:25:22 +03:00
Stefan Sydow
8aaac25b11 fix spurios mousemove event for Chrome on Win 2012-06-26 00:11:40 +02:00
Stefan Sydow
011bbb0906 fix NaN bug in scale control 2012-06-26 00:11:39 +02:00
mourner
a9b42fad6d update changelog, cleanup 2012-06-26 01:05:55 +03:00
Vladimir Agafonkin
784b9cc7cb Merge pull request #756 from danzel/master
Enable translate3d on all webkit3d browsers and a few comments
2012-06-25 14:37:30 -07:00
mourner
500848ef5c tilelayer bringToFront and bringToBack 2012-06-26 00:32:17 +03:00
mourner
ce06661534 marker update method 2012-06-26 00:21:58 +03:00
mourner
ed3176f18f path bringToFront and bringToBack 2012-06-26 00:16:46 +03:00
danzel
76897575f6 Comment on bottom positioning popups 2012-06-26 09:07:07 +12:00
danzel
3536e9e3cc Comment on why a work around is there 2012-06-26 09:07:07 +12:00
danzel
e5239d167d Ensure translate3d is used in all webkit3d browsers and note why. 2012-06-26 09:07:06 +12:00
mourner
58ec820ab1 add image overlay debug page 2012-06-25 23:46:12 +03:00
mourner
bbd3c93237 add ImageOverlay opacity, hide on zoom animation 2012-06-25 23:45:37 +03:00
Vladimir Agafonkin
dd47877154 removed translate3d(0,0,0) hack (seems unnecessary now) 2012-06-25 20:21:37 +03:00
Vladimir Agafonkin
dd80fc296e fix typo in browser 2012-06-25 19:27:42 +03:00
Vladimir Agafonkin
2ac4a6d364 L.Browser and translate refactor and cleanup 2012-06-25 18:58:37 +03:00
Vladimir Agafonkin
99dd46b538 ensure drag is not fired after dragend, closed #555 2012-06-25 18:08:00 +03:00
Vladimir Agafonkin
4ce8d5f459 update build, cleanup 2012-06-25 17:10:01 +03:00
Vladimir Agafonkin
3f0f7d7ad4 Merge pull request #742 from shintonik/tilelayer-load-event-fix
TileLayer load event is only fired once
2012-06-25 07:07:00 -07:00
mourner
468cc5c5fa minor cleanup 2012-06-25 11:56:38 +03:00
Vladimir Agafonkin
183bf50173 Merge pull request #750 from danzel/fix-unit-tests
Fix up the unit tests
2012-06-25 01:50:12 -07:00
Vladimir Agafonkin
1a598fe1b7 Merge pull request #751 from danzel/ie10
Minor fixups for IE 10 support
2012-06-25 01:48:00 -07:00
mourner
9eda0c8047 Merge remote-tracking branch 'origin/master'
Conflicts:
	src/layer/Popup.js
2012-06-25 11:43:41 +03:00
mourner
ca9b96edde Fix IE9 (and older) popup positioning 2012-06-25 11:42:51 +03:00
danzel
d8289081b8 Minor fixups for IE 10 support (Tested with Release Preview in a VirtualBox VM). Not sure if multi-touch support will work as I don't have a device. 2012-06-25 15:30:27 +12:00
danzel
61ce465134 Fix up the unit tests. Polyline.closestLayerPoint and noConflict were broken. 2012-06-25 12:16:46 +12:00
mourner
0479e24034 add autopanstart event to Map 2012-06-23 02:20:32 +03:00
mourner
76b0a1de5a get rid of "unbounded" stuff (unprojection should always be unbounded) 2012-06-22 18:24:08 +03:00
mourner
d208f38a0a update build 2012-06-22 17:32:53 +03:00
mourner
0b372dfa7c Merge remote-tracking branch 'origin/master' 2012-06-22 16:11:12 +03:00
Vladimir Agafonkin
c7a97a2eba Merge pull request #744 from danzel/animate-zoom-rename
Rename animateMarkerZoom to markerZoomAnimation to match other animation options.
2012-06-21 23:32:07 -07:00
danzel
7ec0563dac When reuseTiles is enabled, don't remove and re-add tiles from the DOM, just mark them as off screen and reposition them as required. This performs slightly better.
google maps does this trick too. You can test by finding the tile container ("leaflet-layer" equiv), right click it and set "break on subtree modifications", this will cause a js break whenever a child node is added/removed from that node.
2012-06-22 16:20:06 +12:00
danzel
c92059324d Position tiles without 3d transforms, this makes them faster (google maps does the same). The transforms for them (pan, zoom animation etc) happen on a parent node, this is unaffected.
If you run chrome with about:flags "Composited render layer borders" enabled you will see each tile is dark blue outlined when 3d positioned (meaning each is a render surface) and when not 3d positioned they are cyan outlined (tiles in a tiled composited layer), which renders faster.
Ref http://www.chromium.org/developers/design-documents/gpu-accelerated-compositing-in-chrome (very bottom)
2012-06-22 16:15:08 +12:00