Commit Graph

1313 Commits

Author SHA1 Message Date
Vladimir Agafonkin
6bc8ea6eb5 Merge branch 'master' of github.com:CloudMade/Leaflet 2012-07-16 12:39:48 +03:00
Vladimir Agafonkin
f4dcc0fbea Merge pull request #805 from danzel/master
Position tiles with transform for safari to get around animation errors.
2012-07-16 00:14:30 -07:00
jacobtoye
770d2c899f change second map mousedown to be mouseup 2012-07-16 15:34:55 +12:00
jacobtoye
661c6c6d1d Revert "change second mousedown to be mouseup"
This reverts commit 3b6f57e233.
2012-07-16 15:28:13 +12:00
jacobtoye
3b6f57e233 change second mousedown to be mouseup 2012-07-16 15:10:53 +12: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
444e0dba7c scale control fixes, closes #674 2012-07-13 12:11:20 +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
bd1510cec4 improve panning inertia, fix animation easings on IE 2012-07-12 17:46:17 +03: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
275760352b remove accidental console.log 2012-07-12 15:54:44 +03:00
Vladimir Agafonkin
532ff7232d optimize map resizing 2012-07-12 15:53:58 +03:00
Vladimir Agafonkin
01e26a4cce add Map mouseup event 2012-07-12 15:48:44 +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
Vladimir Agafonkin
4edfaee008 Use feature detection instead of browser sniffing for opacity, #796 2012-07-12 10:31:21 +03:00
Vladimir Agafonkin
2a7e49bfe3 Merge pull request #797 from danzel/master
Fix JSHint issues with my last pull
2012-07-12 00:18:59 -07: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
3b7d1761ee JSHint happiness. 2012-07-12 16:09:48 +12:00
danzel
e8a904530e Fix up opacity in IE10, use style.opacity in IE9 also
http://caniuse.com/#feat=css-opacity
Regex from http://msdn.microsoft.com/en-us/library/ms537509(v=vs.85).aspx
2012-07-12 09:54:53 +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
c3573dbb82 Merge pull request #784 from jieter/master
DomUtil removeClass space handling.
2012-07-05 07:11:37 -07:00
Vladimir Agafonkin
2746cc843e add addTo method to ImageOverlay, GeoJSON, LayerGroup, Popup 2012-07-05 16:53:32 +03:00
Jan Pieter Waagmeester
0a98e75aba Fixed error after running spec: only remove spaces at head and tail now 2012-07-05 15:51:40 +02:00
Jan Pieter Waagmeester
f1480557af Merge branch 'master' of git://github.com/CloudMade/Leaflet 2012-07-05 15:45:28 +02:00
Jan Pieter Waagmeester
6096795c1c Fix regexp in DomUtil.removeClass to correctly remove spaces, use addClass in stead of manual class manimulation in Map.ZoomAnimation 2012-07-05 15:41:55 +02: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
Vladimir Agafonkin
bdf2a814a2 Merge pull request #779 from danzel/divicon-innerhtml
Add an option to DivIcon to allow setting the innerHTML
2012-07-04 14:10:23 -07:00
danzel
15718ec58c Rename options.innerHTML to options.html 2012-07-05 08:46:18 +12:00
fr1n63
19b465eb0c Code conventions adherence 2012-07-04 11:13:57 +01:00
fr1n63
ef0505515d Code conventions adherence 2012-07-04 11:12:19 +01:00
fr1n63
85d6ce08c2 Code conventions adherence 2012-07-04 11:03:25 +01:00
fr1n63
d17bfc6e30 Removing the console log from Map.js, added mobileWebkit browser check to Transition.Native.js bug fix, reverted build files to mourners last revision 2012-07-04 10:14:06 +01:00
danzel
46a18ad348 Add an option to DivIcon to allow setting the innerHTML 2012-07-04 15:45:27 +12:00
fr1n63
7b6a2b8005 Seems to work, removed a lot of the over engineering, seems new version is more stable and deals with this fix better than the previous version did. 2012-07-03 16:30:53 +01:00
Vladimir Agafonkin
0d6749a3ac initial API simplification 2012-07-03 17:06:44 +03:00
fr1n63
9365e76169 First attempts at resolving the zoom bug - changes since v0.3 have rendered this fix useless - try again later 2012-07-03 15:01:56 +01:00
Vladimir Agafonkin
2f66e86479 Merge pull request #775 from danzel/fix-events
Events fixups
2012-07-03 01:05:55 -07:00
danzel
4629a10f76 Fix up Events.off with the multi method, was removing all listeners as context is null and fn should be used instead (see .on code) 2012-07-03 11:49:25 +12: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
62061396cc Make the android hacks only happen for android 2 and 3. On 4 (and hopefully future version) actually seem to do everything correct (Tested in chrome and the native browser) 2012-07-03 10:23:22 +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
danzel
dc46ae2ae3 By default only enable markerZoomAnimation if the browser supports transition and 3d. Allows Browser.any3d=false hack to work again 2012-07-03 08:25:12 +12:00
mourner
50c6c480b4 add window and undefined to outer closure 2012-07-01 16:18:00 +03: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
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
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
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
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
bbd3c93237 add ImageOverlay opacity, hide on zoom animation 2012-06-25 23:45: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
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
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
46a2e3456d Merge branch 'danzel-animate-zoom-tryagain' 2012-06-21 14:53:48 +03: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
6d725f02cd Change animateMarkerZoom to use a class/style rather than setting visibility directly. 2012-06-21 11:22:22 +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
df07bf0ae6 Use generic transform rather than webkit, should make this work on a win8 touch tablet, now I just need someone to give me one to test on :-) 2012-06-21 10:37:28 +12:00
mourner
6713200642 Fix panning animations in Firefox/Opera 2012-06-20 11:01:03 +03: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
be9f96c645 Re-Add TouchZoom firing the zoomstart event 2012-06-20 16:48:35 +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
ff47132527 move private method into correct place 2012-06-19 17:25:07 +03: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
Rob Brackett
a3d91156a2 Add support for maps with position: fixed 2012-06-18 18:11:27 -07: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
60f4a70710 Make BackfaceVisibility generic. 2012-06-19 10:21:57 +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
4b638bde42 Fix up TouchZoom free-zoom. 'zoomstart' event is abused a bit now, might need to fix that. 2012-06-19 09:20:36 +12:00
danzel
9bb49ac4e3 Fix merge issue 2012-06-19 09:20:35 +12:00
danzel
da475a9d23 Don't animate movement when zooming by touch. Still doesn't work right for touch. 2012-06-19 09:20:35 +12:00
danzel
b33d1f3231 Working towards making this work on touch browsers. Doesn't quite work yet but getting there. 2012-06-19 09:20:34 +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
1ac3a1ba59 Fix up Map.js zoomstart event 2012-06-19 09:20:33 +12:00
danzel
0b30a9b893 Move more zoom animation bits out to css 2012-06-19 09:20:33 +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
1fc674b58a Fix up SVG zooming with firefox 2012-06-19 09:20:30 +12:00
danzel
6e1802a7db Animate SVG layers when zooming 2012-06-19 09:20:30 +12:00
danzel
ccbd43f1e5 Animate popup boxes when zooming 2012-06-19 09:20:29 +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
danzel
04bb46a053 Make Map.ZoomAnimation hack browser independant, works on firefox too :) 2012-06-19 09:20:28 +12:00
danzel
cc304bf212 Add gecko3d support to Browser/DomUtil 2012-06-19 09:20:27 +12:00
danzel
51fb9eeacf Start on making markers animate when zooming rather than disappearing and reappearing. Currently implemented as a hack in Map.ZoomAnimation. 2012-06-19 09:20:27 +12:00
mourner
8fa1a0632e Merge remote-tracking branch 'origin/master' 2012-06-18 12:10:37 +03:00
mourner
2e80cfd719 update build, some merges 2012-06-18 12:10:20 +03:00
Vladimir Agafonkin
a287a6f553 Merge pull request #638 from jacobtoye/PreventDefault
Prevent default action when opening layers control
2012-06-18 02:01:06 -07: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
Vladimir Agafonkin
0858706837 Merge pull request #716 from twinbit/master
Add coordinates to "featureparse" event
2012-06-18 01:54:00 -07:00
danzel
21c7c0d7a5 Disable the continuous zoom animation on android as it doesn't work due to Androids issue with double translate. 2012-06-18 09:57:48 +12:00
danzel
dc9aa649a9 Performing a touch-zoom needs the transform the other way around, let it have its way... 2012-06-15 16:18:38 +12:00
danzel
4f07a167f1 Tidy up comments and remove console output 2012-06-13 14:34:37 +12:00
danzel
64ae71a4d2 Fix moving your mouse and zooming again before the fg layer has loaded. Previously the bg would get moved to the wrong location, now it moves to the correct location 2012-06-13 14:33:28 +12:00
danzel
e54bc27a18 When zooming, if the current foreground layer doesn't have many tiles and the current background layer does, keep the current background layer rather than swapping in the current foreground. Makes continuous zooming look more awesome, rather than going blank after 2 quick zooms. (Has a big of debug output to be cleaned up later) 2012-06-13 14:19:30 +12: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
mourner
3c8495b6f3 Fixed layers control in IE7, closed #652 2012-05-16 16:39:03 +03: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
7a056b660f Merge pull request #683 from cfis/tileLayersToLoad
_tileLayersToLoad Cleanup
2012-05-15 16:14:21 -07:00
Vladimir Agafonkin
7d46fdd2b4 Fix error with removing GeoJSON, closes #685 2012-05-16 02:13:15 +03:00
Charlie Savage
a04e4372e8 When a tileLayer is added or removed form a map, the _tileLayersNum property is appropriately updated but the _tileLayersToLoad is not. It is not updated until resetView, but that is called after the method _onTileLayerLoad is called. Thus, if you add one tile layer the _tileLayersToLoad is zero and when _onTileLayerLoad is called the values is decremented to -1.
This in the end doesn't make a difference on the initial zoom level of a map because _onTileLayerLoad also checks to see if there is a background tile layer, which there is not until after a first zoom.  However, this seems to me a bug waiting to happen, thus the patch.
2012-05-12 17:32:04 -06: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
mourner
7956c8c87e limitExecByInterval fixes 2012-05-10 11:09:30 +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
Charlie Savage
d6af5e8e03 this.edit is not always set for polygons - this happens to us for example when loading from geojson. This patch makes sure that this.editing is set before checking whether editing is enabled. 2012-05-07 00:05:47 -06:00
Geremia Taglialatela
434e09f01b ie6 filter clearing fix 2012-05-05 13:13:07 +02:00
Eric Martinez
3d78a8feef Cleaned up use of defaults. 2012-05-05 00:36:07 -06:00
Eric Martinez
b937d993c1 Removed legacy code that caused console errors. 2012-05-05 00:30:45 -06:00
Eric Martinez
96b5e510c5 Merge remote branch 'upstream/master' 2012-05-04 23:51:44 -06:00
Eric Martinez
a69477abcf Created a focus handler for the map. Converted keyboard handler to make use of new focus events. 2012-05-04 23:46:15 -06:00
Eric Martinez
20bec613ec Support for map.options.keyboardPanOffset and map.options.keyboardZoomOffset. Use these to configure how far the keyboard controls will pan/zoom the map (respectively). 2012-05-04 22:31:59 -06:00
Eric Martinez
aaa0721073 Reversed up/down arrow pan direction. Some noted the inverted style is not expected. 2012-05-04 22:19:48 -06:00
emartinez
4fa5918956 Updated keyboard handler to be more flexible/extensible. Calls to map.keyboard.setZoomOffset and map.keyboard.setPanOffset can change the behavior of this handler. 2012-05-03 13:01:26 -06:00
emartinez
909fac4be7 Corrected click handler for click-out events properly. 2012-05-03 12:18:33 -06:00
emartinez
765e07d69c Created keyboard handler for map panning/zooming. 2012-05-03 11:00:30 -06:00
Vladimir Agafonkin
0bd0c1a95a Merge pull request #657 from ericmmartinez/master
Patch for L.Control#setPosition
2012-05-03 07:55:53 -07:00
emartinez
cfbf31721b Patch so setPosition works properly on Control. 2012-05-01 18:04:27 -06:00
Aaron King
69aa3500ff Add getLatLng() and getRadius() methods to L.Circle. 2012-04-30 15:52:23 -07:00
Aaron King
1ffedae5ab Add getContainer() method to L.Map as per the documentation. 2012-04-27 12:49:57 -07:00
Dino Ravnić
1195ac3eea code reformating to make it compliant with jake 2012-04-27 15:00:36 +02:00
Vladimir Agafonkin
0d5e4ccf54 Merge pull request #602 from chx007/patch-1
getViewportOffset -> position:fiexd
2012-04-25 13:59:56 -07:00
jacobtoye
4e2fe35554 Prevent the default action and stop propagation when the layers control is expanded. 2012-04-17 13:11:41 +12:00
Mithgol the Webmaster
a8fa869a41 includes fixes provided by Max Ogden 2012-04-08 05:10:32 +04:00
djomp
ecec332504 Fix for passing jake jshint 2012-04-03 10:42:29 +02:00
Reed
a73b812fe1 fixed _checkIfEmpty in Circle.js with check for _map property 2012-04-01 15:39:00 -04:00
Mithgol the Webmaster
cc0fc0e5b7 adjust zoom levels as well (otherwise markers seem mispositioned) 2012-03-30 09:46:31 +04:00
Mithgol the Webmaster
443181af07 detectRetina is optional (false by default) to prevent map features (like city titles) from being too small to read on retinal tiles 2012-03-26 19:57:12 +04:00
chx007
280649bf42 getViewportOffset -> position:fiexd 2012-03-26 22:04:57 +08:00
Damon Oehlman
ab936cbafb Tweaked DOM util opacity to only apply in IE when opacity !== 1 2012-03-26 14:53:05 +10:00
Johannes
7a9b504e75 Fix bug in bind causing loss of arguments
Empty Arrays are truthy

Fixes issue #574
2012-03-17 16:57:47 +00:00
Mithgol the Webmaster
97cd41e9f5 correction: window.devicePixelRatio > 1 becomes false even if devicePixelRatio is undefined 2012-03-16 10:53:54 +04:00
Mithgol the Webmaster
c7e29b5a87 detecting retina displays, adjusting tileSize 2012-03-16 09:44:07 +04:00
mourner
b333f86e1d fix superclass regression 2012-03-09 11:28:14 +02:00
mourner
9081e9a00c Merge branch 'master' of github.com:CloudMade/Leaflet 2012-03-07 00:08:17 +02:00
Vladimir Agafonkin
14f1a6a947 Merge pull request #557 from JasonSanford/feature-group-bounds
Adding getBounds method to FeatureGroup.
2012-03-06 07:13:07 -08:00
Mattias Bengtsson
e27f4cbcbd Make Leaflet build again. 2012-03-06 15:18:53 +01:00
Jason Sanford
713a3a702f Adding getBounds method to FeatureGroup. 2012-03-03 22:54:50 -07:00
mourner
e5f934e97f more global refactoring 2012-03-04 00:42:50 +02:00
Vladimir Agafonkin
d7998fa7cb Merge pull request #553 from JasonSanford/bounds-extend
LatLngBounds.extend(otherLatLngBounds)
2012-03-03 13:37:50 -08:00
CKeen
a4197a825e add start & end events for Map.BoxZoom 2012-03-03 11:39:14 -05:00
Jason Sanford
d86278571d LatLngBounds.extend(otherLatLngBounds) seems to be working. Addresses #517. 2012-03-03 08:39:18 -07:00
mourner
0474023675 initial global refactoring 2012-03-03 17:02:20 +02:00
Vladimir Agafonkin
20c0bad37e Merge pull request #548 from mehmeta/contentupdated
Added contentupdated event to popup
2012-03-03 05:51:33 -08:00
Vladimir Agafonkin
e9d9a021d3 Merge pull request #552 from mehmeta/polyedit
Bugfix: Proper cleanup of marker editing handler when it is disabled.
2012-03-03 05:50:48 -08:00
Mehmet Alkanlar
cf52a5168b Moving it inside the if clause makes more sense. 2012-03-02 15:52:53 -07:00
Mehmet Alkanlar
5437de4116 Bugfix: Proper cleanup of marker editing handler when it is disabled.
This fixes a critical bug which occurs if editing is enabled, disabled
and enabled again. Since line 16 checks for existence of marker group
reference, markers never get reinitiated, causing the handler to use
the old ones, which may have been changed in the last editing session.
2012-03-02 15:43:35 -07:00
mourner
59f6672e64 whitespace fix 2012-03-01 14:10:27 +02:00
Mehmet Alkanlar
85ae6d9192 Renamed the event according to conventiions 2012-02-29 17:11:24 -07:00
Mehmet Alkanlar
925ffd6538 Fixed bugs on polyline editing regarding edge cases
This commit fixes couple bugs. One of them is polylines (or polygons)
can be  reduced to a single point by clicking on markers to remove
them. Second, if an edge point is clicked for a polyline (not
applicable to polygons since they are a circular linked list) code
produces a js error since previous or next might not be present.
2012-02-29 15:35:35 -07:00
Mehmet Alkanlar
cbe7e9795f Added contentupdated event to popup 2012-02-29 15:24:21 -07:00
mourner
401a6e2224 Added originalEvent to Marker mouse events, closed #408 2012-02-26 01:14:42 +02:00
mourner
14e3eff44b Fixed IE regression, closed #539 2012-02-26 01:11:43 +02:00
mourner
fc0b477622 minor cleanup 2012-02-25 17:13:30 +02:00
mourner
90198ec519 added scale control 2012-02-25 17:04:27 +02:00
mourner
79eb5bcb32 fire move during pan animation 2012-02-25 16:59:08 +02:00
mourner
5d263e9637 more inertia fixes 2012-02-25 11:40:39 +02:00
Dino Ravnić
dd5e4744e2 forgot a semicolon 2012-02-25 01:44:31 +01:00
Dino Ravnić
5d1b56c9e7 "instanceof window.Event" didn't worked on Chrome, so replaced it with a more general variant 2012-02-25 01:31:37 +01:00
Dino Ravnić
c2b0037f34 - dragend should fire in _onDragEnd no matter if inertia is on or off
- fixed an inertia edge case when _onDragEnd was called and _positions array was empty
2012-02-25 01:27:54 +01:00
mourner
e5d315a6aa fix deceleration spelling 2012-02-25 00:07:28 +02:00
mourner
291f3515bf fix touch zoom regression 2012-02-25 00:05:06 +02:00
mourner
4583eb13e0 fix typo 2012-02-24 23:20:50 +02:00
mourner
0f914b6409 fix regression with tile loading 2012-02-24 22:48:22 +02:00
mourner
bca3c8eb67 fix typo (treshold -> threshold) 2012-02-24 18:18:50 +02:00
mourner
2e9551dbe9 Merge branch 'inertia' 2012-02-24 17:20:44 +02:00
mourner
57aee3c5ed Finally implemented panning inertia, closed #17 2012-02-24 17:19:53 +02:00
mourner
0299c02d27 Fixed world wrapping regression, closed #526 2012-02-24 17:17:00 +02:00
mourner
194425d24b Fix stuttering of pan animation in some cases 2012-02-24 16:53:22 +02:00
mourner
8ad4f12cb9 Minor zoom animation cleanup 2012-02-24 16:52:30 +02:00
mourner
8ba23eb393 Don't do tile update when animation is in progress 2012-02-24 16:51:10 +02:00
Jason Sanford
a7081e6927 Fixing typo in Rectanlge.js description. Adding Rectangle.js to dependencies. 2012-02-23 14:02:10 -07:00
mourner
cc058fcd83 more inertia experiments 2012-02-23 17:24:32 +02:00
mourner
de8274831b Merge branch 'master' into inertia 2012-02-23 16:37:57 +02:00
mourner
477c1109eb clean up, move attribution prefix arg to options 2012-02-23 11:01:03 +02:00
mourner
08dccbc71c fix some more whitespace 2012-02-23 10:52:49 +02:00
mourner
d728779bc6 fix controls regression 2012-02-23 10:47:19 +02:00
Vladimir Agafonkin
d6d35c0f19 Merge pull request #523 from thatjpk/fire_edit_on_drag_vertex
Fire 'edit' event while dragging editable polygon/line marker.
2012-02-23 00:36:48 -08:00
mourner
2c54d55189 fix missing semicolon 2012-02-23 10:33:49 +02:00
Vladimir Agafonkin
849a3b6e1b Merge pull request #524 from giscloud/return.this.fix
all paths need to return "this"
2012-02-22 23:23:58 -08:00
jpk
5f9bd71f61 Fixes click (without drag) on middle marker to fire 'edit'. 2012-02-22 20:24:05 -05:00
jpk
fb255798dd Makes polygon/line edits fire('edit') only on dragend. 2012-02-22 20:10:07 -05:00
jpk
62f3b6faeb Merge remote-tracking branch 'upstream/master' into fire_edit_on_drag_vertex 2012-02-22 20:09:46 -05:00
mourner
0a7bafd14f initial inertia work (experimental) 2012-02-23 01:10:28 +02:00
Dino Ravnić
e690cceda3 all paths need to return "this" 2012-02-23 00:09:30 +01:00
mourner
9bf845851d Merge branch 'master' of github.com:CloudMade/Leaflet 2012-02-22 23:39:21 +02:00
Vladimir Agafonkin
128dd319e6 Merge pull request #521 from k4/master
ctrl-click event
2012-02-22 13:12:50 -08:00
k4
d26a35aa14 save original event in MouseEvent. 2012-02-22 21:25:19 +03:00
k4
92437ae100 save original event in MouseEvent. 2012-02-22 21:23:12 +03:00
k4
9da8dcf803 save original event in MouseEvent. 2012-02-22 21:20:03 +03:00
jpk
5539886132 Fire 'edit' event while dragging editable polygon/line marker. 2012-02-22 12:40:10 -05:00
Vladimir Agafonkin
1abcc66f19 more zoom control cleanup 2012-02-22 15:28:38 +02:00
k4
4be061a5cc add ctrlKey to mouse event 2012-02-22 17:27:20 +04:00
Vladimir Agafonkin
764205765a clean up zoom control code 2012-02-22 15:26:30 +02:00
k4
0336d1c8c8 add ctrlKey to mouse event 2012-02-22 17:25:51 +04:00
mourner
2f0fbc3ca3 make panning even more smooth 2012-02-22 09:00:54 +02:00
mourner
dfdd363d2e cancelAnimFrame function 2012-02-22 08:59:17 +02:00
Jason Sanford
a9c1629875 DRYing things up a bit with Rectangle.js 2012-02-21 07:47:34 -07:00
Jason Sanford
53627cab80 Merge branch 'master' of git://github.com/CloudMade/Leaflet 2012-02-21 07:39:54 -07:00
mourner
e6af79d005 Fixed poly editing with layer add/remove bugs, closed #508 2012-02-21 15:28:11 +02:00
mourner
7889b692b0 Made Marker openPopup fail silently, closed #507 2012-02-21 15:07:54 +02:00
mourner
60f96281e7 Fixed false clicks on touch devices bugs, closed #485 2012-02-21 14:58:01 +02:00
mourner
96e29ee3e9 Fixed manual popup closing bug, closed #423 2012-02-21 14:53:59 +02:00
mourner
10bb71fb2a Improved panning usability on marker-crowded maps, closed #506 2012-02-21 12:32:11 +02:00
mourner
495f4d3632 More Icon-related improvements 2012-02-21 12:02:54 +02:00
mourner
e64743f741 Bringed back the mouseEventToLatLng method, closed #515 2012-02-21 10:46:04 +02:00
Jason Sanford
6778c4c26b Adding setBounds method to Rectangle layer. 2012-02-20 22:08:28 -07:00
Jason Sanford
e90230272d Merge branch 'master' of git://github.com/CloudMade/Leaflet 2012-02-20 21:54:23 -07:00
mourner
1e72e40c89 Added Popup maxHeight option, updated default popup styles 2012-02-17 15:32:40 +02:00
mourner
c6ec68615f Added Map addHandler method 2012-02-17 15:30:25 +02:00
mourner
1063ad884e made panning animation slightly faster 2012-02-17 11:53:31 +02:00
mourner
fe77297cf5 made zoom animation slightly faster 2012-02-17 11:53:11 +02:00
Jason Sanford
b18491c25d Adding L.Rectangle. Just ready to test in debug, still needs added to build scripts, documentation to be comlete. Addresses #494. 2012-02-16 23:36:46 -07:00
mourner
d907c6df63 Fixed setStyle stroke/fill update bug, closed #441 2012-02-16 18:56:39 +02:00
mourner
c3b33d8ca3 Polyline editing fixes, better debug page 2012-02-16 18:11:17 +02:00
Vladimir Agafonkin
b76cba10e2 Merge pull request #501 from ErrorProne/master
Forgot to prevent the default action on Path-right click
2012-02-16 07:56:18 -08:00
mourner
9ae2926327 Add Polyline edit event 2012-02-16 17:46:24 +02:00
mourner
95602105c1 Merge remote-tracking branch 'origin/master' 2012-02-16 17:29:00 +02:00
mourner
ebbad27cbd More polyline/polygon editing (middle markers), #174 2012-02-16 17:28:42 +02:00
Finn Herpich
395eeca7f4 forget to prevent the default context menu action 2012-02-16 16:26:49 +01:00
Finn Herpich
b863b0baf0 Added contextmenu to Path.SVG Events 2012-02-16 15:19:29 +01:00
mourner
43305b9ffb Initial polyline/polygon editing implementation, #174 2012-02-16 14:15:47 +02:00
mourner
b90c2f551f Clean up LatLngBounds#pad, update changelog 2012-02-16 13:09:48 +02:00
mourner
f9b3e28833 Merge remote-tracking branch 'origin/master' 2012-02-16 13:01:32 +02:00
mourner
1a8a0ce632 Added DivIcon for lightweight div-based markers, and editable poly example 2012-02-16 13:00:45 +02:00
mourner
e42f140970 Refactored Icon to use options instead of properties 2012-02-16 13:00:09 +02:00
mourner
bf558551ed Fix flickering cursor on marker dragging 2012-02-16 12:58:56 +02:00
mourner
e5feddf8fc Made Path redraw method public and chainable 2012-02-16 11:40:50 +02:00
jacobtoye
b817093da8 Added method to pad a LatLngBounds by a %. 2012-02-16 10:37:45 +13:00
mourner
df0800e678 Fixed click event after disabled dragging bug, closed #434 2012-02-15 19:26:17 +02:00
mourner
6040d8bf77 Added Circle#getBounds, closed #440 2012-02-15 18:54:11 +02:00
mourner
ae99354857 interpolate URL values from options (instead of urlParams 3rd argument) 2012-02-15 18:23:34 +02:00
mourner
a2a666d9c3 update build 2012-02-15 17:50:59 +02:00
mourner
808d01207c another batch of cleanup and refactoring 2012-02-15 17:50:22 +02:00
mourner
8e131c5f32 more cleanup and refactoring 2012-02-15 17:05:55 +02:00
mourner
e3d0e24a0c cleaning up and formatting code 2012-02-15 13:17:25 +02:00
mourner
30f1c6af9e Merged #488 fix from stable, closed #488, allowed smart tabs 2012-02-15 11:03:39 +02:00
mourner
ba5b40cc19 Fixed non-removable attributions regression #488 2012-02-15 10:54:17 +02:00
mourner
81e6fe4b95 webkit memory issue hack for webkit 2012-02-15 10:49:42 +02:00
Jason Sanford
22e2fba84b Adding "equals" method to LatLngBounds using the preferred LatLng.equals method. Much cleaner. 2012-02-14 09:29:29 -07:00
mourner
bc39d7036b fix black tile flickering bug, update changelog, build 2012-02-14 17:25:47 +02:00
mourner
2828235ba3 fixed black tile flickering on iOS and query string bug 2012-02-14 17:20:57 +02:00
mourner
bf7fbdb795 Fixed Leaflet include query string bug 2012-02-14 12:41:46 +02:00
mourner
7435d2ac09 removed unneeded control constants 2012-02-14 11:42:01 +02:00
mourner
2d8029e436 Reworked controls to be more flexible (inspired by #480) 2012-02-14 11:40:47 +02:00
Kyle Johnson
4ca4622aae Added support to set the position of the zoom control 2012-02-13 23:25:35 -05:00
Bryan McBride
d5660ef6ca Support ability to add a tile layer below all others for TileLayer.WMS 2012-02-13 10:04:23 -05:00
mourner
fdde989f05 Fixed Android 3 stability issues 2012-02-13 16:01:00 +02:00
mourner
0756ef15c7 Fixed Android 2 stability issues, Closed #69 2012-02-13 14:32:58 +02:00
mourner
2ebbfdf40c Fixed attributions disappearing, closed #405 2012-02-13 13:12:36 +02:00
mourner
0ef3058512 Added setZIndexOffset to Marker, closed #449 2012-02-13 12:50:18 +02:00
Vladimir Agafonkin
cdf91c2572 Merge pull request #468 from appelflap/master
Make L.TileLayer._update obey min/max Zoom of layer
2012-02-12 23:41:41 -08:00
mourner
c4d6a4f3d7 Fixed Layer Switcher on Mobile, closed #203 2012-02-12 16:51:30 +02:00
mourner
24ff9ce5ec more stable zoom animation 2012-02-12 15:15:33 +02:00
Norbert Renner
a9bca5ceef Fix empty popup on Internet Explorer 2012-02-07 23:16:05 +01:00
appelflap
388b6aeadb Make _update obey min/max Zoom of layer 2012-02-03 23:38:50 +01:00
mourner
fd2426eabd minor TileLayer edits 2012-02-03 20:17:20 +02:00
mourner
f46c0263c3 Fixed touch-panning inside a popup, closed #452 2012-02-03 12:59:05 +02:00
mourner
de78de0fee Update build and changelog 2012-02-03 12:51:29 +02:00
mourner
8088be451e merge reverse zoom TileLayer option from Majiir 2012-02-03 12:41:18 +02:00
mourner
3c2df2ee61 Clean up harvesine formula, update changelog 2012-02-03 12:17:11 +02:00
mourner
aa111eb790 Merge remote-tracking branch 'origin/master' 2012-02-03 12:07:23 +02:00
mourner
1cc885056b Significantly improved line simplification performance 2012-02-03 12:07:06 +02:00
Vladimir Agafonkin
4c25fd8236 Merge pull request #462 from mortenbekditlevsen/lldist
Haversine distance formula for getting distance between two LatLngs
2012-02-03 01:55:29 -08:00
Vladimir Agafonkin
77a24f107a Merge pull request #461 from mortenbekditlevsen/boundsintersection
Bounds intersection
2012-02-03 01:55:22 -08:00
Vladimir Agafonkin
10aa67a438 Merge pull request #460 from mortenbekditlevsen/divicon
<div> Icon
2012-02-03 01:55:13 -08:00
Vladimir Agafonkin
769ecd9801 Merge pull request #459 from mortenbekditlevsen/redraw
'redraw' method for TileLayer.Canvas
2012-02-03 01:55:08 -08:00
Morten Ditlevsen
86badfcefa Haversine distance formula for getting distance (in meters) between two LatLngs 2012-02-03 08:43:59 +01:00
Morten Ditlevsen
f54450f893 Added 'intersection' method for Bounds - just like the current implementation for LatLngBounds 2012-02-02 15:30:36 +01:00
Morten Ditlevsen
b7a2eeacd8 If image source for an icon is null, then create a div-object instead of an img-object 2012-02-02 15:29:55 +01:00
Morten Ditlevsen
a42491e272 'redraw' method for Tile.Canvas layer 2012-02-02 15:28:58 +01:00
Morten Ditlevsen
de740148a0 Option to reuse tiles instead of creating and destroying them continuously 2012-02-02 15:07:37 +01:00
Morten Ditlevsen
6f57de7a5a Simplified antialiasing fix - thanks Vladimir. 2012-02-01 10:46:36 +01:00
Morten Ditlevsen
debaf3e0c3 Fix antialiasing on WebKit when calling map.invalidateSize() on a map having an odd width or height (e.g. when resizing a browser window and having set the map width to 100%) 2012-02-01 09:33:56 +01:00
Vladimir Agafonkin
a485d668db Fix incorrect merge of #373 2012-01-25 10:58:08 +02:00
Andy Chosak
cec18094a3 Bug fix related to issue #373. 2012-01-24 13:20:06 -05:00
Vladimir Agafonkin
edb7d25921 Merge pull request #433 from aceiii/master
Attribution control only works after it's added to map.
2012-01-16 06:21:28 -08:00
Jonathan DERROUGH
f684eca40b Marker._map is undefined in Marker.bindPopup()
This would occur when the Map has never been set/reset.
'this._map' is now tested before being accessed with a call to Map.openPopup().
2012-01-14 17:47:28 +01:00
Borin Ouch
a3202fca2a Fix Attribution control behaviour before it's added to map. 2012-01-13 12:55:12 -08:00
Jonathan DERROUGH
09279cdc6e Removed some trailing spaces in 'src/map/Map.js'.
Corrected the way L.Map.locateAndSetView() handles the 'options'
parameter so that it is not overriden anymore.
2012-01-11 20:18:06 +01:00
Vladimir Agafonkin
8c428fb660 Merge pull request #427 from mikolajgrajek/master
Right click (context menu) event on Map.
2012-01-11 09:08:00 -08:00
Mikolaj Grajek
d2994b388d Right click (context menu) event on Map (with default context menu popup
block).
2012-01-11 10:19:37 +01:00
ErshKUS
69885956e6 leaflet-popup class should be always present 2012-01-06 15:40:50 +03:00
ErshKUS
15fe83b150 add options correct class popup 2012-01-06 13:16:24 +03:00
Majiir Paktu
1f45ef7348 Added zoomInvert option to reverse the order in which zooms are numbered. 2011-12-23 12:56:56 -05:00
Alex Graul
57f44bc423 fix issue with 180 longs being clamped to -180 2011-12-21 13:22:07 +00:00
mourner
50a5790072 Fixed empty Polygon constructor issue 2011-12-16 14:16:18 +02:00
mourner
cf8e0ca50e Fixed map.getBounds on a date line cross issue, closed #295 2011-12-16 14:04:45 +02:00
mourner
435b3eea69 Fixed getBoundsZoom regression on small bounds 2011-12-15 15:05:51 +02:00
mourner
2fabb23358 Added Marker zIndexOffset option, closed #65 2011-12-15 14:46:36 +02:00
mourner
80048bddf4 Fixed Safari redraw after popup issue, closed #296 2011-12-15 13:56:29 +02:00
mourner
e50c98863c Added FeatureGroup setStyle and invoke methods, closed #353 2011-12-15 13:25:25 +02:00
mourner
83af28eae9 Fixed GeoJSON date line rendering bug, closed #354 2011-12-15 12:07:35 +02:00
mourner
3595c50b33 Added map zoomstart event, fixed movestart event, closed #377 2011-12-14 16:09:32 +02:00
mourner
36eb9d3cbd fix map drag regression 2011-12-14 15:09:59 +02:00
mourner
873bf10442 Move popup on Marker setLatLng (by @tjarratt), closes #272 2011-12-14 13:42:50 +02:00
mourner
5db85f2a76 Added ImageOverlay load event, closed #213 2011-12-14 13:38:42 +02:00
mourner
8504147844 Restructure handler code 2011-12-14 13:12:54 +02:00
mourner
39ffba339e Handler code refactoring 2011-12-14 12:34:11 +02:00
mourner
877bc7c908 fix whitespace 2011-12-13 17:37:14 +02:00
mourner
4751d1dbea Merge map popup events by @chosak #373 2011-12-13 17:34:56 +02:00
mourner
e5242cec29 Fix LatLngBounds intersects 2011-12-13 17:12:33 +02:00
mourner
12d3dc5e71 Merge Elliptical Mercator fix by @Savvkin 2011-12-13 16:23:22 +02:00
mourner
6f8698b93d Added LatLngBounds intersects method, closed #350 2011-12-13 16:01:04 +02:00
mourner
f68a227680 integrate jshint into Jakefile, minor cleanup 2011-12-12 19:54:03 +02:00
mourner
3776e73c00 Switched to Node + Jake + UglifyJS for building 2011-12-11 22:45:49 +02:00
mourner
c509c55f20 more whitespace fixes 2011-12-10 13:48:45 +02:00
mourner
8c6b5b3df5 Fixed GeoJSON pointToLayer not working inside a GeometryCollection, closed#391 2011-12-09 18:19:58 +02:00
mourner
a9720fcb43 Final jshinting without remorse 2011-12-09 16:51:31 +02:00
mourner
b03f6eff07 Some really heavy jshinting and whitespace fixes 2011-12-09 16:35:15 +02:00
mourner
dc79b10683 More jshinting and whitespace fixes 2011-12-09 12:20:59 +02:00
mourner
fccecb419f Whitespace fixes 2011-12-08 17:53:17 +02:00
mourner
0f23454168 Fixed min zoom recalculation on resize when max bounds enabled 2011-12-07 15:58:06 +02:00
mourner
dd3788f48d Fixed rare polygon/polyline rendering issue, closed #381 2011-12-05 19:47:07 +02:00
mourner
43d87dacde At last, added ability to set max geographical bounds within which users can pan/zoom! Closed #93 2011-12-02 19:04:19 +02:00
mourner
0e81d29168 Fixed fast mouse wheel zoom when approaching min/max zoom 2011-12-02 16:27:26 +02:00
Andy Chosak
5db524ee66 Removed unnecessary parameter. 2011-11-22 11:07:36 -05:00
Andy Chosak
eb9be64bd8 Add map events for popup open/close. 2011-11-22 10:45:43 -05:00
mourner
315ebb1eb5 fix typo in movestart fire 2011-11-18 13:02:46 +02:00
Savva
f54a55858b Fix for Elliptical Mercator projection (y coord corresponds to minor earth radius) 2011-11-02 21:38:12 +04:00
mourner
2c540485d2 Throw error if trying to initialize the same map container twice. Closed #258 2011-10-28 12:23:42 +03:00
mourner
98be07c86b Make layers control expanded on mobile by default (temp workaround). 2011-10-28 12:19:00 +03:00
mourner
70339807ed add urlParams argument to TileLayer constructor 2011-10-27 17:20:12 +03:00
mourner
6c4dd07c51 Build updated 2011-10-26 17:37:18 +03:00
mourner
a6551fa114 Fixed ROOT_URL regression 2011-10-26 16:04:06 +03:00
mourner
9e4286db4a Added Marker unbindPopup method 2011-10-26 16:04:06 +03:00
mourner
ee3e78ce07 don't add click event more than once on bindPopup 2011-10-26 16:04:05 +03:00
Vladimir Agafonkin
fb30bfa21f remove extra semicolon 2011-10-23 09:17:32 +03:00
mourner
5bf0f0e8b7 fix vector flickering in Safari on big maps 2011-10-21 19:39:35 +03:00
mourner
5d339f9abb fix vector regression 2011-10-21 19:35:55 +03:00
mourner
a38f9dd6ae vector code refactoring to fix #339 2011-10-21 17:50:59 +03:00
mourner
11de00ec5b jslinted for fun 2011-10-21 15:53:21 +03:00
Vladimir Agafonkin
13d07ebd72 Added mousemove to paths 2011-10-20 14:29:40 +03:00
Samat K Jain
c59e8b3239 Ignore shift key for touch-enabled browsers
Firefox Mobile (née Fennec) has a bug that sets Event.shiftKey to true
even though the shift key is not depressed:

  https://bugzilla.mozilla.org/show_bug.cgi?id=694268

As a workaround, ignore whether the shift key is depressed for
touch-enabled browsers. This breaks Leaflet’s drag-zoom, but besides
being awkward I’m unsure it consistently worked on other touch-enabled
browsers (did not work for me on Android 2.3 devices w/ Bluetooth
keyboard).
2011-10-14 17:16:13 -06:00
Samat K Jain
ac78c7e144 Better touch feature detection
Rewrite L.Browser.Touch to support feature detection in more browsers
(Firefox in particular). Based on Juriy Zaytsev code:

  https://github.com/kangax/iseventsupported
2011-10-14 17:11:00 -06:00
mourner
a154f08415 Improved map locate method, added watching and more options 2011-10-05 16:02:46 +03:00
mourner
b078e0236e Turn off world copy jump if continuous world is turned on 2011-10-05 16:02:46 +03:00
Vladimir Agafonkin
3e1f7726f6 Fixed marker regression as pointed out by @shramov 2011-09-30 21:43:07 +03:00
mourner
d15d20bbf8 Fixed Marker setIcon breaking if marker isn't added to the map, closed #311 2011-09-29 14:42:13 +03:00
Charlie Savage
7fb61dad90 Fix map refernce for _onDragEnd method. 2011-09-23 14:12:00 -06:00
Vladimir Agafonkin
14ba939f5f Fixed error when calling setRadius before adding circle to the map, closed #307 2011-09-23 22:44:55 +03:00
mourner
be575a6622 Clear transition step interval timer one more time (to make sure it doesn't leak), related to #231 2011-09-23 18:18:43 +03:00
mourner
04afa9b813 Fixed performance drop when calling panTo or setView to the current center, closed #231 2011-09-23 18:15:24 +03:00
mourner
fe443d3d50 Fixed regression in Draggable (click triggers after dragging), closed #306 2011-09-23 17:03:36 +03:00
mourner
106054140b A better attempt at the copy world problem, hopefully closed #273, fixed #293, fixed #294, closed #288 2011-09-23 16:55:47 +03:00
mourner
9fad3d0b40 cleanup, fix IE6 events error 2011-09-20 17:03:35 +03:00
mourner
87e5cba374 Fixed whitespace 2011-09-20 16:27:08 +03:00
mourner
a7d2b16543 Fixed a bug related to panning getting stuck after releasing the mouse over an iframe or flash, closed #64 and #166 2011-09-20 16:22:30 +03:00
mourner
2954a4264f Merge remote-tracking branch 'origin/master' 2011-09-20 14:59:01 +03:00
mourner
9fe47c9103 Minor cleanup, tested WebStorm git integration 2011-09-20 14:19:11 +03:00
Dino Ravnić
5a5493ee04 don't proceed with invalidation if map is not loaded 2011-09-19 23:56:18 +01:00
Dino Ravnić
1c5f4716b2 if map is not loaded don't fire mouse events 2011-09-16 18:04:22 +01:00
Vladimir Agafonkin
6a71ea2d4e Merge pull request #290 from giscloud/tileunload.fix
firing tileunload when a layer is being reset
2011-09-14 10:23:26 -07:00
Vladimir Agafonkin
73d6fb6c0a Fixes IE problem introduced in a recent commit, #292 2011-09-14 20:19:50 +03:00
Dino Ravnić
e86b632a8c firing tileunload when a layer is being reset 2011-09-12 14:33:27 +01:00
Mourner
e4c08caf47 Fix overlay positions when panning to a copy of a world, close #273 2011-09-09 16:32:43 +03:00
Mourner
d9f9cbfd2e added TileLayer zoomOffset option (thanks to @msaspence) 2011-09-09 14:30:56 +03:00
Mourner
1d86c969be Fix vector layer click events for iOS, close #204 2011-09-09 12:52:28 +03:00
Mourner
b0205094c1 Fix initializing map in a non-empty div, close #278 2011-09-08 12:23:22 +03:00
Mourner
3797bb74f9 Fix mouse events propagating on attribution control, close #279 2011-09-08 12:11:49 +03:00
Mourner
7ce750a3b7 more on #281 2011-09-08 12:11:14 +03:00
Mourner
63d57d1640 Merge branch 'master' of git@github.com:CloudMade/Leaflet.git 2011-09-08 12:01:52 +03:00
Mourner
fde7c7960a don't add the same listener twice, close #281 2011-09-08 12:01:21 +03:00
Mourner
57a6013d45 minor cleanup 2011-09-08 12:00:40 +03:00
Dino Ravnić
5c1fa83b63 moved viewreset event handler to a callback function
- before event handler wasn't removed and causing this event to fire on removed layers as well
2011-09-04 22:05:26 +01:00
Mourner
f5ceabf158 cleanup, update changelog 2011-08-31 15:10:40 +03:00
Mourner
6d2f821788 Merge branch 'master' of git@github.com:CloudMade/Leaflet.git 2011-08-31 15:03:41 +03:00
Vladimir Agafonkin
d36d4b514c Merge pull request #256 from CodeJosch/tileunload
Fire a "tileunload" when tiles removed
2011-08-31 05:03:26 -07:00
Mourner
c450dfdbf9 cleanup LatLngBounds toBBoxString 2011-08-31 15:02:27 +03:00
CodeJosch
3a6efaa350 Array access => tile 2011-08-30 17:32:47 +02:00
CodeJosch
2b54c28890 Pass object 2011-08-30 17:28:45 +02:00
Kevin Mahoney
a0d8d304c6 Extend the GeoJSON layer from FeatureGroup to allow click events. 2011-08-30 15:50:12 +01:00
Vladimir Agafonkin
629b9ac3e8 Merge pull request #263 from JasonSanford/master
Adding toBBoxString method to LatLngBounds
2011-08-25 01:06:03 -07:00
Christian Bäuerlein
da02d2aadd call method #getSize on the map instance, not a global object called map 2011-08-23 09:46:50 +02:00
Jason Sanford
2fad6c1bc0 Adding "toBBoxString" method to LatLngBounds. I'm following the OpenSearch Geo spec which is different than what was originally request in #216. 2011-08-22 09:29:54 -06:00
Vladimir Agafonkin
8734ddcff7 Merge pull request #253 from JasonSanford/master
Adding a getBounds method for Path
2011-08-16 11:11:42 -07:00
Jochen
900711b59a fire a "tileunload" when tiles removed 2011-08-16 16:58:21 +02:00
Mourner
6a39725de5 fix requestAnimationFrame in some Chrome/Linux builds 2011-08-15 18:34:58 +03:00
Jason Sanford
da379754b1 Moving "getBounds" from L.Path to L.Polyline as some descendants of L.Path dont' have a "getLatLngs" method. 2011-08-15 07:25:54 -06:00
Jason Sanford
9e6d976449 Adding "getBounds" method to L.Path and a debug page to show it in use. 2011-08-14 22:31:13 -06:00
Mourner
28be37ca8e preserve map center after resize 2011-08-11 16:12:58 +03:00
Mourner
83372eb0ed fix marker setLatLng in case it's called before adding #222 2011-08-11 15:43:40 +03:00
Mourner
13807db12e more mouse scrolling fixes, update build 2011-08-11 14:01:15 +03:00
ErshKUS
1fb8e4bb4b oops, I'm new to GitHub 2011-08-11 00:07:13 +03:00
ErshKUS
94d1288d4c fix zoom mousescroll, test FF3.6 Chrome last IE 8 2011-08-10 23:50:32 +03:00
Vladimir Agafonkin
ce72298d66 Merge pull request #240 from giscloud/master
bugfix in the layer _reset method
2011-08-10 12:37:11 -07:00
Dino Ravnić
56382fcefd fixed an error at uninitialized layer container 2011-08-10 20:18:28 +01:00
Mourner
6dd915a1e5 Fix IE6-8 popup close button error, closes #235 2011-08-10 15:21:02 +03:00
Vladimir Agafonkin
0c887fe7ef Merge pull request #237 from giscloud/master
Fixed not clearing old tiles
2011-08-10 05:10:28 -07:00
Mourner
9aee9dc68a TileLayer continuousWorld option, related to #236 2011-08-10 15:06:16 +03:00
Dino Ravnić
061f3d6832 fixed not clearing old layer content in case of non animated pan or zoom 2011-08-10 12:22:35 +01:00
Dino Ravnić
3e61594205 when tile option noWrap is set, checking if tile x coordinate is valid 2011-08-09 23:47:57 +01:00
Dino Ravnić
9532db6d08 fixed not decreasing total tile count when a tile is being discarded 2011-08-09 21:55:43 +01:00
Mourner
9334d78ce4 todo comment 2011-08-04 12:29:33 +03:00
Mourner
c02053825d circle clipping 2011-08-04 12:28:47 +03:00
Mourner
8a004bc54b revert #221, as it causes flickering on zoom animation 2011-08-02 11:09:12 +03:00
Mourner
6c8ee87b09 Merge branch 'master' of git@github.com:CloudMade/Leaflet.git 2011-08-02 11:07:45 +03:00
Mourner
366fce6eb8 update version and website link 2011-08-01 17:19:34 +03:00
Neno
8ac92f2303 Method TileLayer._reset now first cleans old container HTML and then initializes a new one.
This should remove a bug with using Map.setView() when old tiles would remain visible after the view has been reset.
2011-07-31 19:20:53 +01:00
Neno
6d509e432b Fix L.DomUtil.removeClasss method. Regex wasn't matching '-' chars in class names. 2011-07-31 14:04:04 +01:00
Vladimir Agafonkin
2c149abd18 Merge pull request #214 from marphi/minWidthInPopup
add minWidth to Popup, fix calculation _containerWidth
2011-07-29 02:39:57 -07:00
Marcin Sikon
a29e22c3d2 Marker.js: this._reset() after set new icon, because the icon element has no set position 2011-07-29 11:19:15 +02:00
Marcin Sikon
4e3667d7fa fix my previous mistake with offsetWidth 2011-07-28 23:11:19 +02:00
Mourner
aa5849a2dc fixed mouse zoom when map is inside scrollable div, closes #206 2011-07-28 12:49:32 +03:00
chrillo
d4c73d2b57 Scrolling Offset Bug Fix 2011-07-28 10:36:21 +02:00
Marcin Sikon
a9dc7e0dd3 add minWidth to Popup, fix calculation _containerWidth 2011-07-27 09:00:10 +02:00
florianf
6c37eda53a Implemented removing of canvas layers. Fixes #172 2011-07-24 14:56:42 +02:00
Mourner
7d41f80b9b Fix layer ordering in Control.Layers 2011-07-21 12:05:59 +03:00
Vladimir Agafonkin
876de46b2f Merge pull request #194 from anru/multipoly
Add method setLatLngs to L.MultiPolygon and L.MultiPolyline
2011-07-21 00:40:49 -07:00
Andrey Rublev
78c51b06b0 Add method setLatLngs to L.MultiPolygon and L.MultiPolyline 2011-07-21 11:29:28 +07:00
Vladimir Agafonkin
dc1ddd86a5 Merge pull request #200 from anru/master
Fix method L.LineUtil._sqClosestPointOnSegment
2011-07-20 07:45:10 -07:00
Andrey Rublev
94d97d84c0 Fix method L.LineUtil._sqClosestPointOnSegment 2011-07-20 21:42:48 +07:00
Mourner
f87a6583dd Close marker popup on marker removal (merge Rick's pull) 2011-07-20 16:53:48 +03:00
Mourner
189e532dd7 fix potential Safari crashes and tile load errors 2011-07-20 16:28:11 +03:00
Mourner
62db9893c1 fix setPrefix not updating attribution prefix, closes #195 2011-07-20 16:09:18 +03:00
Mourner
67172990bb Fix map click error when dragging is initially disabled, closes #196 2011-07-20 16:05:53 +03:00
Mourner
1ff1edb7b0 Limited zoom change on a single mouse wheel movement, closes #149 2011-07-20 15:54:22 +03:00
Vladimir Agafonkin
c726d6f3cb Merge pull request #189 from anru/domutil
Add L.DomUtil.removeClass method
2011-07-20 04:27:12 -07:00
Vladimir Agafonkin
fdaedb434a Merge pull request #186 from anru/master
Add method Polyline.closestLayerPoint
2011-07-20 04:16:48 -07:00
Andrey Rublev
479eaa6528 Now draggable's event 'drag' syncronized with actual position of draggable element 2011-07-20 14:18:59 +07:00
Andrey Rublev
263a5b9b5f Add method Polyline.closestLayerPoint
Also fix method L.LineUtil.simplify for empty geometry
2011-07-20 13:23:04 +07:00
Andrey Rublev
b27922ea2c Add L.DomUtil.removeClass method 2011-07-15 19:03:35 +07:00
Rick Harris
d1997386fd Remove marker popups when marker is removed 2011-07-13 13:46:57 -04:00
Mourner
cf83c2e146 Merge branch 'master' of git@github.com:CloudMade/Leaflet.git 2011-07-13 14:51:10 +03:00
Mourner
95e0e6345c passing layer config in control constructor 2011-07-13 14:49:36 +03:00
Mourner
50e36cc2cb minor tweaks 2011-07-13 14:38:46 +03:00
Andrey Rublev
9479911e69 Fix Bounds.contains method in case if obj argument is instance of L.Point 2011-07-13 18:13:35 +07:00
Mourner
03075f0928 initial Control.Layers commit 2011-07-12 20:19:29 +03:00