Commit Graph

368 Commits

Author SHA1 Message Date
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
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
mourner
ca9b96edde Fix IE9 (and older) popup positioning 2012-06-25 11:42:51 +03: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
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
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
danzel
640e447c7c Remove unused variable. Don't set leaflet-tile-loaded multiple times when reuseTiles:true, don't fire tileload for blank images 2012-06-22 15:19:44 +12:00
danzel
a1afe37436 Rename animateMarkerZoom to markerZoomAnimation to match other animation options. 2012-06-22 09:36:01 +12:00
mourner
02f167e29d fix Marker zIndex on zoom animation 2012-06-21 14:52:13 +03:00
shintonik
6428baaa6b bug fix: TileLayer load event was fired only once 2012-06-21 11:10:12 +02:00
danzel
4bc3455812 Fix canvas zooming 2012-06-21 12:05:45 +12:00
danzel
9cec6643f1 Use a generic class (leaflet-zoom-animated) instead of explicitly stating in the CSS what things are zoom animated. 2012-06-21 12:05:31 +12:00
danzel
106228647e Only do Marker/Path zoom animation if options.zoomAnimation is on (Aka we are doing the zoom animation), be pointless otherwise ;) 2012-06-21 11:15:02 +12:00
danzel
f56682ef31 Add an option to the map: animateMarkerZoom (default true). Set to false and markers will disappear instead of animating when the zoom animation plays. 2012-06-20 16:49:29 +12:00
danzel
92f9541f9d Correct the translate+scale code in Path.SVG so that it works correctly for transitions. THIS FIXES TOUCHZOOM WOO!!! 2012-06-20 16:26:00 +12:00
mourner
45d9421417 refactoring, fix autopanning bug 2012-06-19 16:38:40 +03:00
danzel
8d605a0f8d rename _zooming inside Path to _pathZooming so it has a different name to _zooming in Map.TouchZoom. Minor other tidy ups. 2012-06-19 15:11:41 +12:00
danzel
289071fa5c Fix up TouchZoom SVG zoom handling AGAIN. This works, but if you do some weird movements (two finger scroll on iPad) it makes the animation get weird. 2012-06-19 11:59:58 +12:00
danzel
bda2a8a2bc Add zooming animation support to Path.Canvas layers also. 2012-06-19 11:12:29 +12:00
danzel
0556e73c3f Path.SVG needs to keep track of when a zoom is going on and not redraw while it is happening or the animation will get messed up 2012-06-19 10:38:32 +12:00
danzel
063341c35e Add L.Browser.opera3d, L.Browser.any3d and use it everywhere instead of testing each browsers 3d everywhere. Gives opera 3d support!
Not totally happy with L.Browser.any3d not being in the closure, but it works.
2012-06-19 09:49:44 +12:00
danzel
c04020aa18 Remove remaining hacks from Map.ZoomAnimation and implement them properly (using events) in Marker and Popup. 2012-06-19 09:20:34 +12:00
danzel
86596daa8f Only do SVG zoomstart handling if we support 3d transforms 2012-06-19 09:20:32 +12:00
danzel
c42ce5992f Code tidy up/compaction 2012-06-19 09:20:32 +12:00
danzel
d30d057968 Do major tidy ups on the SVG zoom animation, pretty certain that this is tidy now.
Conflicts:

	src/map/anim/Map.ZoomAnimation.js
2012-06-19 09:20:31 +12:00
danzel
6e1802a7db Animate SVG layers when zooming 2012-06-19 09:20:30 +12:00
danzel
6de02571a1 Only apply Path.SVG mobile Webkit hack for mobileWebkit 2012-06-19 09:20:29 +12:00
danzel
65fe7a8e5b Position Popup using L.DomUtil.setPosition for Hardware Accel. 2012-06-19 09:20:28 +12:00
mourner
2e80cfd719 update build, some merges 2012-06-18 12:10:20 +03:00
Vladimir Agafonkin
9a1360b7e5 Merge pull request #701 from shramov/polyline-edit-fix
polyline: Fix old position of middle point
2012-06-18 01:56:50 -07:00
Pavel Shramov
03a84a9a84 polyline: Don't reinitialize MarkerGroup
If updateMarkers is called without add/remove old
markers are removed but new don't appear on map
2012-06-12 16:16:34 +04:00
Pavel Shramov
cacf112494 polyline: Fix old position of middle point
When marker position changed and middle point is clicked (not dragged)
old coordinates are used for new point.
2012-06-12 16:16:34 +04:00
Paolo e Stefano Mainardi
4aed9ed533 Keep geometry object on "featureparse" event. 2012-06-04 03:15:59 +03:00
Paolo e Stefano Mainardi
0ca0f2275a Add coordinates to featureparse event. 2012-06-04 03:04:38 +03:00
Pavel Shramov
95ae759632 polyline: Remove deleted marker from internal list
When marker is deleted from line it's left in internal _markers list.
2012-05-25 19:18:53 +04:00
Vladimir Agafonkin
13d861360f Merge pull request #682 from cfis/tilesLoaded
Make sure TileLayer load event is fired
2012-05-15 16:15:34 -07:00
Vladimir Agafonkin
7d46fdd2b4 Fix error with removing GeoJSON, closes #685 2012-05-16 02:13:15 +03:00
Charlie Savage
da29f47e25 The load event for a tile layer is only fired after all tiles are loaded. However, the previous code only took into account successful tile loads. It is legitimate for a tile load to cause an error - you might be zoomed out on a map and are pulling a non-existent tile (especially on indoors maps). This patch takes into account both successful and unsuccessful tile loads. 2012-05-12 17:22:53 -06:00
mourner
0a6e8d87b7 update build 2012-05-10 17:17:04 +03:00
mourner
c188756573 Merge remote-tracking branch 'origin/master' 2012-05-10 17:08:14 +03:00
mourner
6f40aeeb97 refactor icon and default marker image paths, wrap library in a function 2012-05-10 17:03:50 +03:00
Graeme West
8b2bda9bc3 Converting spaces to tabs for consistency. 2012-05-10 11:45:06 +01:00
Graeme West
081b75b6e8 Fixing indentation so that Leaflet compiles. 2012-05-10 10:05:54 +01:00
mourner
be647f1b20 Make any Circle visible even on low zoom levels 2012-05-10 11:12:59 +03:00
Vladimir Agafonkin
1de934ef7e Merge pull request #586 from Mithgol/master
Detect retina displays and adjust tileSize accordingly
2012-05-10 01:00:58 -07:00
Peter Gassner
b0486f2e0b Fix feature detection for IE9 when drawing SVG paths 2012-05-07 16:56:30 +03:00