Commit Graph

680 Commits

Author SHA1 Message Date
Vladimir Agafonkin
58a82d09fa fix WMS tile wrapping regression, close #970 2012-12-12 13:19:24 +02:00
Vladimir Agafonkin
30a3edb393 simplify zoom animation calculations a bit 2012-12-11 20:19:16 +02:00
Vladimir Agafonkin
edeea11919 fix GeoJSON resetStyle not fully resetting, close #1112 2012-12-11 17:16:39 +02:00
Vladimir Agafonkin
f5cfab73a1 remove LatLng coords wrapping/clamping, add explicit LatLng wrap method 2012-12-11 15:02:47 +02:00
danzel
946a9df5f9 Add iconRetinaUrl and shadowRetinaUrl to set urls for retina icons. Add a retina version of the default icon and use it. 2012-12-11 14:49:45 +13:00
Vladimir Agafonkin
c05e15f956 fix chaining in marker methods, close #1176 2012-12-10 18:22:19 +02:00
Vladimir Agafonkin
7ae4459dd3 Fix rectangle having duplicate last point, close #1185 2012-12-10 17:42:43 +02:00
danzel
3b2393bd93 Always set canvas alpha. Fixes #1186 2012-11-30 11:31:22 +13:00
OriginalSin
43794a3ea9 Update src/layer/tile/TileLayer.js
this should solve first problem in #1089 (http://jsfiddle.net/Q3SFZ/1/)
2012-11-21 16:11:51 +04:00
danzel
0033496b58 jshint happy 2012-11-20 09:38:14 +13:00
danzel
63ad64cb7a Use invoke to make this code smaller. 2012-11-20 09:36:23 +13:00
danzel
b28b6da924 Add setZIndex to LayerGroup to allow LayerGroups to work better with the layers control. Fixes #1096 2012-11-19 09:58:28 +13:00
Vladimir Agafonkin
07eb3b4c8d fix dashArray in IE, closes #1091 2012-11-18 17:55:28 +04:00
snkashis
7a6f2c2e7c filter out the last point of a polygon to account for GeoJSON compatibility 2012-11-16 19:33:41 -05:00
Vladimir Agafonkin
91aecd376b add Marker contextmenu event 2012-11-14 14:07:59 +02:00
Pascal Borreli
9546599520 Fixed typos 2012-11-09 23:15:48 +00:00
Vladimir Agafonkin
dbd4da6255 add shortcuts for extend, bind, stamp and setOptions 2012-11-07 20:30:56 +02:00
Vladimir Agafonkin
7517cbcd53 fix typos and regression in #1122 2012-11-07 19:21:21 +02:00
Vladimir Agafonkin
2b225cc3a8 more whitespace fixes 2012-11-07 18:46:59 +02:00
jacobtoye
6c4221fe04 Added 'layeradd' and 'layerremove' events to LayerGroup. 2012-11-06 15:37:36 +13:00
danzel
1a2764ae0a mousemove events need to propagate through path layers otherwise you cannot drag the map through them. Refs #1046 2012-11-06 10:28:34 +13:00
danzel
c03ff65bc4 Dragging a marker should not make a map click event. 2012-11-05 10:27:40 +13:00
Vladimir Agafonkin
bfc94d3176 add Path closePopup method, fix a couple of issues 2012-10-31 15:34:19 +02:00
alexanderd
1c597e4cf4 Use proper factory call for bounds option 2012-10-31 13:06:33 +02:00
Vladimir Agafonkin
7ed96d6ed1 fix TileLayer.Canvas drawTile zoom argument 2012-10-31 02:02:12 +02:00
Vladimir Agafonkin
8077faa2e3 refactor and cleanup marker bringToFront option 2012-10-31 01:25:03 +02:00
Vladimir Agafonkin
b0a911516f Merge pull request #914 from jacobtoye/MarkerBringToFront
Bring markers to front when mouseover
2012-10-30 16:09:55 -07:00
danzel
ef42973682 If a popup is removed from the map during viewreset we still try to remove it from the map, check we are still on the map first. Fixes #1094 2012-10-29 09:39:45 +13:00
Calvin Metcalf
0529a92589 GeoJSON GeometryCollection passes consisent params to pointToLayer 2012-10-27 22:10:20 -04:00
alexanderd
d5c1e4d251 Better parameter handling for TileLayer bounds 2012-10-27 23:10:13 +03:00
alexanderd
ceeb1f8a93 Rename TileLayer.options.tileBounds to bounds 2012-10-21 03:47:06 +03:00
Brian Hatchl
0a2697c4b6 fixed bug where wms tilesize option was ignored when setting
wms params width and height
2012-10-19 13:57:18 -04:00
Vladimir Agafonkin
5fa25c28a4 simplify vector animation, @danzel check it out lol 2012-10-18 16:38:31 +03:00
Vladimir Agafonkin
cca3180f30 fix Circle getBounds, closes #1068 2012-10-15 11:39:07 +03:00
Adam Stull
a22ce7ee50 Allow pointer-events to be set via options passed to shape 2012-10-09 13:31:02 -04:00
jacobtoye
95fc1f0fef Add latlng to 'move' event triggered on marker when marker is dragged. 2012-10-09 16:12:04 +13:00
jacobtoye
6279e99272 Bring _onDrag method in line with normal Leaflet coding conventions. 2012-10-09 16:10:36 +13:00
jacobtoye
939adbcf87 Fix up event handler method typo after movePopup rename. 2012-10-09 15:18:02 +13:00
danzel
9b56d31b24 More tidyups for #1046 2012-10-09 09:23:15 +13:00
Dave Leaver
a904c319f9 Merge pull request #1046 from inpursuit/bug/2
Vector layers do not stop propagation of mouse events that they fire
2012-10-08 13:11:51 -07:00
Vladimir Agafonkin
c178674948 Merge pull request #1038 from jacobtoye/popupdecouple
Decouple the closePopup and movePopup from L.Marker
2012-10-08 09:06:24 -07:00
Adam Stull
f844237a87 Stop propagation of mouse event 2012-10-08 11:54:36 -04:00
jacobtoye
d7daa5e8a8 Making movePopup private. 2012-10-08 08:46:30 +13:00
Vladimir Agafonkin
85d350e322 Merge pull request #1033 from danzel/fix-events
Allow click events to propogate through
2012-10-05 08:11:34 -07:00
Vladimir Agafonkin
5ab91941ff do not detect VML if SVG is supported, related to #870 comments 2012-10-05 16:37:15 +03:00
jacobtoye
fcf9b6cafe Adding unbindPopup method to L.Path. 2012-10-05 16:43:36 +13:00
jacobtoye
720068bd70 Make sure popup is closed when Path is removed from map. 2012-10-05 16:35:08 +13:00
jacobtoye
eba37ae47a Unbind the remove and move event handlers when we unbind the popup. 2012-10-05 16:29:22 +13:00
jacobtoye
4da0cb0104 Refactor closing and moving a marker's popup. 2012-10-05 14:19:37 +13:00
danzel
f435217301 Allow click events on Marker elements to fall through if they are not handled. 2012-10-04 10:13:30 +13:00
danzel
53f57cb45f Allow click events on Path.SVG elements to fall through if they are not handled. 2012-10-04 10:12:57 +13:00
danzel
28f067ce73 Allow SVG Path click propogation. Fixes #834 2012-10-04 09:59:37 +13:00
danzel
734ea2fdbf Fix deleting 2 end nodes from a poly line. Fixes #1022 2012-09-28 10:46:57 +12:00
Fleur Kelpin
bd8d5ff712 radius is part of CircleMarker style so should be changeable in using
setStyle();
2012-09-23 15:50:51 +02:00
Vladimir Agafonkin
c92201862c update build and changelog, do not prevent tile loading on pan animation 2012-09-11 12:42:00 +03:00
Vladimir Agafonkin
622060d336 Merge pull request #968 from danzel/tilelayer-fixes
TileLayer fixes - Removing a TileLayer while dragging
2012-09-11 02:36:28 -07:00
Vladimir Agafonkin
14a9d9e029 Merge pull request #963 from danzel/zindex
Correct TileLayer zIndex behaviour on bringToBack
2012-09-11 02:34:11 -07:00
Vladimir Agafonkin
1933ae157c Merge pull request #961 from danzel/canvas-fixes
Optimize _requestUpdate in Path.Canvas.
2012-09-11 02:32:34 -07:00
Alexander Dimitrov
03f48cc859 Add tile bounds option to limit tile loading to a given region 2012-09-11 11:59:33 +03:00
danzel
fcddcd065f Fix up issues reported by mourner https://github.com/CloudMade/Leaflet/pull/961/files#r1508267 2012-09-03 10:50:42 +12:00
danzel
7c59bef67a Fix for removing a TileLayer while dragging the map. Would be nicer if we could disable a limitExecByInterval, but this works. 2012-09-03 09:07:31 +12:00
danzel
21be460719 Correct zIndex behaviour (Previously if you had 2 layers, neither of which had a zindex we'd set the zIndex to 0 on bringToBack and not remember it. On zoom it would revert). Add a test page for tile layer zIndex. Refs #959 2012-08-31 10:50:15 +12:00
danzel
7059f27d6a Optimize _requestUpdate in Path.Canvas. Don't repeatedly request and cancel animation frames (previous code wasn't actually canceling the requests anyway!). 2012-08-29 10:15:40 +12:00
jacobtoye
ad4df84fdc Fixing jshint error 2012-08-22 10:42:08 +12:00
jacobtoye
2f4275fdd8 Remove unnecessary comment. 2012-08-17 16:27:10 +12:00
jacobtoye
74f0d5fe95 Set the icons z-index to show in front after zoom. 2012-08-17 16:24:24 +12:00
jacobtoye
e057e189ce Make icons appear on top of others on mouse over. 2012-08-17 15:25:03 +12:00
Vladimir Agafonkin
873f986f55 fix default icon anchor 2012-08-13 16:07:54 +03:00
mourner
8980f2d224 minor code cleanup, more destructive point operations 2012-08-10 22:40:55 +03:00
Vladimir Agafonkin
fe9516579e check if path is already in front in bringToFront, same for bringToBack 2012-08-08 12:17:10 +03:00
Vladimir Agafonkin
c18c394147 Merge branch 'improve-geojson' 2012-08-06 13:34:22 +03:00
mourner
8d6301cf07 Add geojson setStyle and resetStyle methods, layer feature property 2012-08-04 10:56:14 +03:00
Vladimir Agafonkin
fc819e6f47 return this in Path bringToFront/bringToBack 2012-08-03 15:57:48 +03:00
Vladimir Agafonkin
2697462b87 add bringToFront and bringToBack to FeatureGroup 2012-08-03 15:09:02 +03:00
danzel
8a3d508568 Tidy up comments 2012-08-03 09:29:47 +12:00
danzel
d9bafda0a8 Fix for android 2 tiles 2012-08-03 09:25:42 +12:00
danzel
7c94559355 When removing a marker from a FeatureGroup, only remove the popup if it was put there by the FeatureGroup.
Refs danzel/Leaflet.markercluster#24
2012-08-01 13:40:43 +12:00
mattcurrie
f3ef407814 Fix L.tileLayer.wms class factory 2012-07-31 12:05:30 +12:00
Olexandr Skrypnyk
031ee25377 Move isRetina method from Util to Browser 2012-07-30 17:27:15 +03:00
Olexandr Skrypnyk
7b167a41dc Detect retina support for a huge amount of devices by Thomas Fuchs
Tested on iOS, Android 2.x, Chrome for Android, Safari on MacBook Pro Retina, Firefox mobile (beta) for Android, Opera Mobile (Android).
2012-07-30 17:03:52 +03:00
Vladimir Agafonkin
529cdb09a3 fix ugly marker shadows on iE8, closes #850 2012-07-30 12:54:44 +03:00
Vladimir Agafonkin
b2adb29cf1 fix canvas backend and holed polygons regression 2012-07-30 12:28:44 +03:00
mourner
6437e653ee fix array form polyline editing bug, update build 2012-07-29 02:22:18 +03:00
Vladimir Agafonkin
cdfaad994f more TileLayer and Control.Layers zIndex improvements, #309 2012-07-27 12:32:24 +03:00
Matt Currie
6142a8b74c Add zIndex support to L.TileLayer 2012-07-27 14:12:40 +12:00
mourner
b2d6ea5b44 fix #834 map drag over polygon bug 2012-07-26 23:20:39 +03:00
Vladimir Agafonkin
65aafc3a8f fix VML remove/add losing styles issue, closes #830 2012-07-26 17:33:14 +03:00
Vladimir Agafonkin
54855494bb renamed LayerGroup _iterateLayers to eachLayer 2012-07-26 14:56:21 +03:00
Vladimir Agafonkin
b5513f4dd0 add ImageOverlay bringToBack/Front, update build, closes #824 2012-07-25 17:36:14 +03:00
Vladimir Agafonkin
4ece350176 fix TileLayer.redraw and multiple layers issue, closes #814 2012-07-25 17:25:53 +03:00
Vladimir Agafonkin
3342e7c215 fix lint error and update build 2012-07-25 17:14:31 +03:00
Vladimir Agafonkin
c50aaabd6d TileLayer refactoring, add loading event, update changelog, closes #177 2012-07-25 17:10:11 +03:00
Vladimir Agafonkin
55c35828a8 Fix jittery marker movement on pinch-zoom (removed position rounding) 2012-07-25 11:14:21 +03:00
Vladimir Agafonkin
de835e3ce3 normalize dashArray in IE, update changelog 2012-07-24 18:11:49 +03:00
jacobtoye
ef03f4aed2 Added support for dashed strokes. 2012-07-24 11:48:44 +12:00
mourner
1da1041655 return this in more methods 2012-07-24 01:42:57 +03:00
mourner
daf7a81f9c merge changes 2012-07-20 21:16:41 +03:00
mourner
0cadad7a1d remove shadowOffset, add shadowAnchor 2012-07-20 21:14:24 +03:00
jacobtoye
f6979ff96b Added missing mouse events to FeatureGroup. 2012-07-20 14:09:05 +12:00
danzel
0b913df152 Re-Fix android tile unloading crash #137 2012-07-19 09:48:35 +12:00
Vladimir Agafonkin
33d9bc0cff move L.Icon.Default to separate file, fix popup anchor 2012-07-18 13:55:49 +03:00
Vladimir Agafonkin
f446659325 fix whitespace 2012-07-18 13:52:24 +03:00
Vladimir Agafonkin
e9043f8cdb Merge pull request #810 from danzel/shadow-opacity
Make Marker options.opacity/setOpacity set the Shadow opacity as well as the marker opacity
2012-07-17 00:42:31 -07:00
danzel
7019a2001e Remove opacity parameter from _updateOpacity, unused. 2012-07-17 14:46:14 +12:00
danzel
dc067d3d7b Make Marker.setOpacity set the opacity of the shadow also. Otherwise your shadow can end up more visible than your marker: setOpacity(0) 2012-07-17 14:45:49 +12:00
danzel
b663c7f442 Turns out the android browser has this issue too.
Change the hack to just use top/left if chrome is being used, otherwise use transform.
Hopefully chrome fixes their issue so we can use transform everywhere instead.
2012-07-17 11:58:04 +12:00
danzel
95afdee703 Take another go at safari tile layer fix hack. Add a test case for it so we don't forget about it. 2012-07-17 09:31:04 +12:00
Vladimir Agafonkin
c32319e3ba Fix vector layer flicker on iOS, closes #18 (yay!) 2012-07-16 14:53:07 +03:00
Vladimir Agafonkin
0e4e02a1d3 fix popup so that tip shadow is not cut off 2012-07-16 14:22:05 +03:00
Vladimir Agafonkin
f99a4173fe optimize canvas layers update, closes #732, closes #785 2012-07-16 13:57:00 +03:00
Vladimir Agafonkin
6bc8ea6eb5 Merge branch 'master' of github.com:CloudMade/Leaflet 2012-07-16 12:39:48 +03:00
danzel
4b001e6d19 Position tiles with transform for safari to get around animation errors. 2012-07-16 09:44:43 +12:00
Vladimir Agafonkin
ffe7f9dffe Merge pull request #802 from Mithgol/master
Detect retina displays and adjust wmsParams.width and wmsParams.height accordingly
2012-07-15 06:01:52 -07:00
Mithgol the Webmaster
f9ea2728b7 fix CloudMade/Leaflet#789 2012-07-14 07:07:47 +04:00
Vladimir Agafonkin
649d439af9 only set popup opacity if fadeAnimation is true 2012-07-13 17:06:16 +03:00
Vladimir Agafonkin
c89f363767 Merge pull request #801 from lars-sh/master
Fixed basic XHTML problems.
2012-07-13 06:13:46 -07:00
Vladimir Agafonkin
ad4b8a2441 fix contextmenu event on path layers 2012-07-13 14:48:35 +03:00
Vladimir Agafonkin
7abe4c7d70 fix polyline error when it's removed on moveend 2012-07-13 11:36:11 +03:00
Lars Knickrehm
2248fb2d53 Fixed basic XHTML problems. 2012-07-13 01:47:19 +02:00
Vladimir Agafonkin
f4ecfe61fb improve popup close button, get rid of the image, closes #631 2012-07-12 16:22:14 +03:00
Vladimir Agafonkin
4f8dc06097 add Popup openOn(map) 2012-07-12 15:46:52 +03:00
Vladimir Agafonkin
e9b47e9811 factories for controls and multipolys 2012-07-12 15:40:47 +03:00
Vladimir Agafonkin
c6bae3ee5c support arrays in geojson addData 2012-07-12 15:37:43 +03:00
Vladimir Agafonkin
0814e18a81 fix popupAnchor array form 2012-07-12 15:35:22 +03:00
danzel
863bed6797 FeatureGroup now checks if the given layer has already been added in addLayer before adding it 2012-07-12 17:02:14 +12:00
danzel
ff86f5a24b Need to check that createShadow actually created a shadow before adding the classes. Simplify the code too. 2012-07-11 15:55:41 +12:00
danzel
129572014c Set the animation classes for marker in _initIcon rather than onAdd so that setIcon doesn't remove them 2012-07-11 15:51:12 +12:00
Jan Pieter Waagmeester
c7be915f45 Merge branch 'master' of git://github.com/CloudMade/Leaflet 2012-07-10 12:29:41 +02:00
Jan Pieter Waagmeester
138167158b Replace manual style.opacity manimulations by L.DomUtil.setOpacity in Popup.js 2012-07-10 12:29:23 +02:00
Vladimir Agafonkin
cc60eb81c7 add subdomains to WMS, closes #735 2012-07-10 12:00:13 +03:00
Vladimir Agafonkin
d0c341b006 Added WMS setParams, TileLayer redraw, setUrl, closed #719 2012-07-10 11:43:18 +03:00
Vladimir Agafonkin
97553cd0bd fix whitespace 2012-07-09 17:09:18 +03:00
Vladimir Agafonkin
dfdc011413 add bgPos to DivIcon for spriting, closes #743 2012-07-09 17:08:01 +03:00
Vladimir Agafonkin
8b3e97153c fix icon default paths, update changelog 2012-07-09 15:07:22 +03:00
Vladimir Agafonkin
92c704f33b Improved GeoJSON API, closed #315, closed #715 2012-07-09 14:42:44 +03:00
Jan Pieter Waagmeester
8e355b5596 Merge branch 'master' of git://github.com/CloudMade/Leaflet 2012-07-05 16:59:34 +02:00
Jan Pieter Waagmeester
97e3d08dd5 Use L.DomUtil.addClass to add classes instead of direct attribute manipulation 2012-07-05 16:59:00 +02:00
Vladimir Agafonkin
2746cc843e add addTo method to ImageOverlay, GeoJSON, LayerGroup, Popup 2012-07-05 16:53:32 +03:00
Vladimir Agafonkin
16cdb668b2 merge simplify-api 2012-07-05 16:24:42 +03:00
Vladimir Agafonkin
3e24ed5400 more work on simplified api 2012-07-05 14:45:06 +03:00
Vladimir Agafonkin
7ea7b144f9 Merge pull request #759 from danzel/zoom-marker-hack-fix
Zoom Marker Hack Fix
2012-07-04 16:09:11 -07:00
danzel
15718ec58c Rename options.innerHTML to options.html 2012-07-05 08:46:18 +12:00
danzel
46a18ad348 Add an option to DivIcon to allow setting the innerHTML 2012-07-04 15:45:27 +12:00
Vladimir Agafonkin
0d6749a3ac initial API simplification 2012-07-03 17:06:44 +03:00
danzel
3674c11ae7 Line up FeatureGroup change with master 2012-07-03 11:49:18 +12:00
danzel
f6f060f28b Make FeatureGroup de-init events when removing a layer 2012-07-03 11:49:09 +12:00
danzel
914204f301 Need to do the shadow too 2012-07-03 09:44:30 +12:00
danzel
166746563c If 3d is disabled, hide everything during a zoom. You can set window.L_DISABLE_3D = true to force 3d off. 2012-07-03 09:12:14 +12:00
mourner
28a21fd4c3 minor cleanup / refactoring, fix removeEventListener bug 2012-07-01 15:46:31 +03:00
mourner
0f40da1cce merge events by Guiswa, minor cleanup/refactoring 2012-06-30 14:51:09 +03: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
0830bb38dc fixed path setStyle in IE6-8, closed #641, updated build and changelog 2012-06-26 12:21:15 +03: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
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
mourner
bbd3c93237 add ImageOverlay opacity, hide on zoom animation 2012-06-25 23:45:37 +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
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
Konstantin.Myakshin
b65e95f96b Trigger popupopen/close on markers too. 2012-06-18 22:35:54 +03: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