Vladimir Agafonkin
44d98afb6a
make Popup.setLatLng faster, fix #2167
2013-11-07 19:55:22 +02:00
John Firebaugh
dd063b26a1
Prefer selectstart to user-select
...
Rather than both setting user-select to none and suppressing the selectstart
event, we now prefer to suppress the selectstart event if supported. This avoids
redundantly setting the user-select style, which can be slow. Fixes #2163 .
2013-11-06 16:04:27 -08:00
Vladimir Agafonkin
04776b7ad8
fix tile filtering after #2160
2013-11-07 00:07:21 +02:00
Vladimir Agafonkin
e2977a1244
Merge pull request #2160 from perliedman/crs-size
...
Remove hardcoded world size from L.TileLayer
2013-11-06 14:03:30 -08:00
perliedman
37d303defb
Fixed whitespace
2013-11-06 23:00:21 +01:00
Vladimir Agafonkin
2464d13414
fix FeatureGroup e.layer empty in old IE, close #1938
2013-11-06 23:35:42 +02:00
Vladimir Agafonkin
b1c5aa2e29
fix problems with #1822 merge
2013-11-06 23:34:23 +02:00
Vladimir Agafonkin
5d6641360b
merge GeoJSON altitude pull with some tweaks #1822
2013-11-06 23:17:14 +02:00
perliedman
63e84693ae
Fixed smart tabs
2013-11-06 21:55:33 +01:00
perliedman
8ae0e2700c
Generalized
2013-11-06 21:46:17 +01:00
perliedman
2a407b19ac
Merge branch 'master' of https://github.com/Leaflet/Leaflet into tilelayer-crs-controlled-wrap
2013-11-06 21:23:39 +01:00
Vladimir Agafonkin
ddbb01c3da
add distance to dragend event data, close #2158 , ref #872
2013-11-06 21:17:35 +02:00
danzel
b7a6f2aebe
Comment why this hack exists and improve it with @mourner code :)
2013-11-05 10:34:35 +13:00
Vladimir Agafonkin
77bd10c69d
Merge pull request #2149 from danzel/ios7-2122
...
Work around iOS7 memory trouble
2013-11-04 13:33:54 -08:00
danzel
fa35aba1e9
Improve this test and fix removeEventListener.
2013-11-05 10:29:52 +13:00
danzel
579c044c00
Fix a potential event bug due to bad cleanup.
2013-11-05 10:21:32 +13:00
danzel
65f3b2417a
We set the context value to context || this in addEventListener, so we don't need to do so here.
2013-11-05 10:15:21 +13:00
Vladimir Agafonkin
6c85f43fb2
fix CircleMarker getRadius, close #2016 , close #2017
2013-11-04 18:56:49 +02:00
Vladimir Agafonkin
bd3409f2f8
reverse axis order for wms 1.3 & EPSG4326, close #1897
2013-11-04 18:24:33 +02:00
Vladimir Agafonkin
5b40fade90
remove excessive updateContent on Popup add, close #2137
2013-11-04 13:27:48 +02:00
Vladimir Agafonkin
399e304bb2
minor cleanup
2013-11-04 13:15:15 +02:00
jacobtoye
254e6fe6b9
Refocus on the map when an input is clicked on the layers dialog. fixes #2148
2013-11-04 10:46:51 +13:00
jacobtoye
f133d9a1bd
Refocus on the map after a +/- button is clicked.
2013-11-04 10:39:04 +13:00
jacobtoye
112f4d6e02
Add method to controls to refocus on the map container.
2013-11-04 10:38:25 +13:00
danzel
9fce697982
Work around iOS7 memory trouble by not applying the contextId performance optimization when context==this. The optimization does nothing in this case anyway. Fixes #2122
2013-11-04 09:47:55 +13:00
Vladimir Agafonkin
90ce2ab951
Merge pull request #2136 from danzel/rtl
...
Correct rtl again
2013-11-03 08:23:03 -08:00
Tom MacWright
427c9f1ed4
Fix build error, reference layer correctly.
2013-10-31 19:10:30 -04:00
Tom MacWright
ef44fbe17a
Add tileloadstart event with tile data
2013-10-31 18:53:24 -04:00
Vladimir Agafonkin
cc2b03f1e7
Merge pull request #2121 from jieter/util-template
...
Allow double quotes in template strings
2013-10-30 04:20:06 -07:00
danzel
80c48c5da7
Re-add ltr/rtl detection and make getMousePosition work correctly with rtl again when scrolled.
2013-10-30 14:32:18 +13:00
danzel
0c7e7eb373
Delete ltr/rtl code as its not needed any more, wtf?
2013-10-30 10:25:28 +13:00
danzel
7b101da036
Hack fix for firefox android layers control. refs #2033
2013-10-30 09:04:20 +13:00
Vladimir Agafonkin
1aba51be01
Merge pull request #2072 from trevorpowell/master
...
Don't bounce near zoom limits on touch zoom
2013-10-24 12:12:57 -07:00
Trevor Powell
0574301113
Fixing long line
2013-10-24 13:34:17 -05:00
Trevor Powell
3b79dd816b
Adding bounceAtZoomLimits option
2013-10-24 13:26:52 -05:00
Jan Pieter Waagmeester
a7f2d1975f
Allow double quotes in template strings fixes #2120
2013-10-23 15:14:59 +02:00
Vladimir Agafonkin
b0df9627b0
Merge pull request #2117 from danzel/fix-2094
...
Fix click events when touch zooming on ie 10
2013-10-23 04:36:51 -07:00
danzel
6855e7dfd8
The drag click avoid hack is needed for touch zooms on ie10 also, when releasing your fingers after a touch zoom click events are generated. Fixes #2094
2013-10-23 16:28:56 +13:00
Vladimir Agafonkin
929ea1fe71
Merge pull request #2112 from jimmytidey/master
...
adding alt tag to marker icons
2013-10-21 10:23:08 -07:00
danzel
91cc18503c
Remove leftover code from the draggable/tap cleanup. Fixes #2103
2013-10-21 11:38:19 +13:00
Vladimir Agafonkin
f73becca22
fix broken IE detection in IE11 #2102
2013-10-18 20:15:14 +03:00
Vladimir Agafonkin
a8baeec367
add timestamp to geolocation data, #584
2013-10-18 18:47:04 +03:00
Vladimir Agafonkin
83fb3cc9dd
add Popup getContent, close #2100
2013-10-18 14:02:42 +03:00
Vladimir Agafonkin
c9d0abb02b
cleanup whitespace in #1197 , remove unnecessary if
2013-10-18 14:01:43 +03:00
Vladimir Agafonkin
676a76d4d5
Merge pull request #1197 from scottharvey/master
...
Adds the ability to get a popup once it's bound to a marker, this commit fixes issue #618
2013-10-18 04:00:38 -07:00
Vladimir Agafonkin
9d28dbb360
hopefully fix IE11/Win8.1 touch interaction, close #2102 (thanks @fnicollet)
...
#2103 may be related too
2013-10-18 12:55:50 +03:00
Vladimir Agafonkin
c3734e5a91
add maxZoom to Map fitBounds options, close #2101
2013-10-17 00:17:31 +03:00
Jimmy Tidey
5af47dddc2
adding alt tag to marker icons
2013-10-16 14:52:05 +01:00
AndreyGeonya
31114669be
popup getLatLng method added
2013-10-14 17:09:04 +03:00
Jérémy Lal
2974cacff4
panInsideBounds: fit or center, pass options, remove boundsMinZoom
...
Deltas are calculated on x, y pixel coordinates separately.
Options are propagated from setMaxBounds to panBy.
No panBy loops. Fixes #1908 .
2013-10-14 14:40:45 +02:00
Vladimir Agafonkin
1a3b150a2d
fix layers control not scrolling in FF, close #2029
...
and also add DomEvent disableScrollPropagation method
2013-10-14 13:29:23 +03:00
Alexander Parshin
f5de36e229
Add holes support to L.Polygon.setLatLngs(). Fixes #1518
2013-10-13 20:17:12 +04:00
Vladimir Agafonkin
2629c181d0
fix firefox console warnings when animating markers, close #2090
2013-10-11 18:44:18 +03:00
Vladimir Agafonkin
d68a80971b
Merge pull request #2066 from danzel/fix-2037-ie11touch
...
Support Pointer events as well as MsPointer Events
2013-10-10 12:36:56 -07:00
Vladimir Agafonkin
64b0e340c0
only animate tile layer if at least one tile loaded, fix #2071
2013-10-10 18:44:08 +03:00
danzel
a9627d63af
Fix lines too long issues
2013-10-10 15:27:23 +13:00
Vladimir Agafonkin
8a53afc34e
fix zoom control not always reflecting disabled state initially, close #2083
2013-10-09 22:21:04 +03:00
Vladimir Agafonkin
361c9cab6d
fix isArray not working IE9 in rare cases, close #2077
2013-10-08 16:59:42 +03:00
Vladimir Agafonkin
9b0510e55f
Merge pull request #2075 from kapouer/geojson-options
...
GeoJSON: pass options to geometryToLayer
2013-10-07 04:58:22 -07:00
Jérémy Lal
0fdb00be9e
GeoJSON: pass options to geometryToLayer
...
smoothFactor, noClip options cannot be changed otherwise.
In particular, smoothFactor: 0 is needed when one need to
render tiled polygons (or else small cuts appears).
2013-10-07 10:16:31 +02:00
Trevor Powell
7a907ba2cf
Fixing line too long error
2013-10-06 01:39:01 -05:00
Trevor Powell
7541d64a71
Do not scale above minzoom and maxzoom in touch zoom action
2013-10-06 01:20:45 -05:00
danzel
6e3e0d9b14
Rename MsTouch to Pointer
2013-10-04 15:07:30 +13:00
danzel
bf3b660bef
Redo MsTouch to be pointer events with msPointer fallback for IE10. fixes #2037
2013-10-04 15:06:53 +13:00
Vladimir Agafonkin
2250cee6ec
allow setZoom before setView, make setView zoom optional, close #2056 , close #1449
2013-09-30 15:00:46 +03:00
perliedman
3bcc1c9a3a
Use CRS's bounds to calculate wrap
2013-09-23 09:59:10 +02:00
perliedman
b782498650
Added getBounds function to CRS
2013-09-23 09:58:42 +02:00
Tom MacWright
befc5eb992
Add support for layers lacking Events mixin. Fixes #1962
2013-09-17 17:36:05 -04:00
Vladimir Agafonkin
6c77fe64c2
fix IE6-8 throwing error on map.remove(), close #2015
2013-09-13 18:14:05 +03:00
Vladimir Agafonkin
4b34362405
add public Popup update method, close #1959
2013-09-13 18:00:54 +03:00
Seb Emonet
16f9c9a302
Accept simple objects in L.latLngBounds(). Fixes #1915 .
2013-09-13 00:22:19 +02:00
Alexander Parshin
d10cff3357
Fixing wrong EPGS3395 transformation
2013-09-10 10:47:52 +04:00
Vladimir Agafonkin
96575af5b5
Merge pull request #1953 from Danielku15/patch-1
...
Localization Support for Zoom Control
2013-09-09 01:50:27 -07:00
Daniel
037048a6d0
Renamed Tooltip to Title
2013-09-02 02:34:41 +02:00
Vladimir Agafonkin
3d5dbe7dfc
fix accidentally commented out fix, #1980
2013-08-29 00:51:00 +03:00
danzel
dbced20543
MsTouch needs preventDefault. Fixes #2000
2013-08-29 09:22:36 +12:00
Vladimir Agafonkin
62b23b42e0
fix resize tracking on multiple maps, close #1980
2013-08-28 17:56:43 +03:00
Vladimir Agafonkin
5e30c51f85
add GeoJSON rountripping of GeometryCollection and MultiPoint, close #1956
2013-08-28 12:43:04 +03:00
Vladimir Agafonkin
40ef71dc4c
minor cleanup
2013-08-27 22:06:13 +03:00
Vladimir Agafonkin
d0f768ba36
clean up template interpolation code #1969
2013-08-27 21:45:13 +03:00
Vladimir Agafonkin
1581a94fc3
Merge branch 'interpolation' of https://github.com/calvinmetcalf/Leaflet
...
* 'interpolation' of https://github.com/calvinmetcalf/Leaflet :
'#1968 compiled interpolation'
2013-08-27 21:28:38 +03:00
Calvin Metcalf
b2b25c8941
' #1968 compiled interpolation'
2013-08-27 13:03:07 -04:00
Vladimir Agafonkin
b0699b1fe3
Merge pull request #1972 from albburtsev/issue-1588
...
Adds Popup autoPanPadding(TopLeft & BottomRight) options. Fixes #1588
2013-08-27 06:14:31 -07:00
Dag Jomar Mersland
5180cce838
check for undefined el.tagName prevents iPad error
2013-08-21 13:30:10 +02:00
Vladimir Agafonkin
14d934b639
Merge pull request #1963 from fastrde/fixSecondClickPopupIssue
...
Fix second click popup issue (#1925 )
2013-08-20 10:04:33 -07:00
Fabian Strachanski
caece94467
added _skipped(e) to stopPropagation to reset _fakeStop
2013-08-20 17:21:13 +02:00
Dag Jomar Mersland
d78fb49943
Fix for iPad, where el.tagName was undefined when clicking on labels.
2013-08-19 10:14:36 +02:00
Vladimir Agafonkin
1f6533d0f5
Merge pull request #1982 from fastrde/FixworldCopyJump
...
Fix worldCopyJump set Center and Zoom first
2013-08-18 01:21:31 -07:00
fastrde
b4ed2bf282
map.once doesn't get called when the map is already initailized and drag.enabled is called.
2013-08-17 12:13:47 +02:00
fastrde
3370942b36
call _onViewReset() not until map is loaded (center and zoom are set)
2013-08-17 02:08:24 +02:00
fastrde
5eacbbf105
Added Keycode 171 to support Firefox 22
2013-08-17 00:38:51 +02:00
Yohan Boniface
c7eac791b2
Use this._popupHandlersAdded to manage Marker popup event
...
Just like it's done in Path. This allows to cut event management on bindPopup
2013-08-15 00:16:58 +02:00
Alexander Burtsev
157500818e
Adds Popup autoPanPadding(TopLeft & BottomRight) options. Fixes #1588
2013-08-14 17:57:48 +04:00
Vladimir Agafonkin
4609d482f2
some tweaks to #1951
2013-08-09 14:00:44 +03:00
Vladimir Agafonkin
30f33766dd
Merge branch 'zoomboxOnClickFix' of https://github.com/fastrde/Leaflet
...
* 'zoomboxOnClickFix' of https://github.com/fastrde/Leaflet :
Fix for zoomBox fires map click Event (Issue #1884 )
2013-08-09 13:21:26 +03:00
Stefan Sydow
1b584afc49
remove tailing spaces for jake build
2013-08-09 09:28:08 +02:00
Stefan Sydow
10c1af4f41
more consistent method name for ImageOverlay update
2013-08-09 09:25:04 +02:00
Stefan Sydow
e5a129a59f
add attribution and update function
2013-08-09 09:24:52 +02:00
Daniel
9630876ce3
Again some whitespace removing. (Travis)
2013-08-08 17:29:09 +02:00
Daniel
4f2f1edb04
Code style adjusted for travis.
2013-08-08 17:11:34 +02:00
Daniel
15da339bbe
Localization Support for Zoom Control
2013-08-08 16:16:59 +02:00
fastrde
5de0be072a
moved this._moved = false to the top of _onDown to fix an Issue von shift-click after dragging
2013-08-08 15:32:48 +02:00
fastrde
c1e64c2479
Fix for zoomBox fires map click Event (Issue #1884 )
2013-08-08 15:15:39 +02:00
Anton Borodatov
b66dd9dfc3
Marker should fire 'add' event like geometry Path and any object utilizing Ilayer
2013-08-06 22:23:32 +03:00
John Firebaugh
65a311a822
Return this even when short-circuiting
2013-08-06 10:27:27 -07:00
Vladimir Agafonkin
e18b7eded6
Merge pull request #1931 from russelldavis/fix-invalidate-size
...
Fix rounding issues in Map::invalidateSize
2013-08-06 02:43:40 -07:00
Vladimir Agafonkin
8611e22005
Merge pull request #1939 from jfirebaugh/zoom
...
Support center-oriented scroll/double-click zoom
2013-08-06 01:55:08 -07:00
John Firebaugh
a0c6363bb6
Invalidate _initialCenter along with size ( fixes #1919 )
2013-08-05 14:09:09 -07:00
John Firebaugh
4fdf76ee90
Support center-oriented scroll/double-click zoom
2013-08-05 12:29:55 -07:00
Russell Davis
f568768142
Fix rounding issues in Map::invalidateSize
2013-08-01 23:14:11 -07:00
Scooter Wadsworth
ea044c8312
Make container optional in L.DomUtil.getMousePosition(). Addresses #1926
2013-08-01 00:15:53 -04:00
Steve Kashishian
e5bf57c4f7
move a circlemarker's popup with each new position.
2013-07-31 14:40:13 -04:00
Vladimir Agafonkin
b313165cca
Merge pull request #1918 from snkashis/empty_interior_ring
...
Throw invalid GeoJSON error on Polygon with an empty interior
2013-07-29 12:17:16 -07:00
Steve Kashishian
b36a79d386
Throw invalid GeoJSON error on Polygon with an empty interior
2013-07-29 14:56:29 -04:00
Steve Kashishian
1d3980b563
Provide css classes for draggable markers, and in-progress drags.
2013-07-29 11:39:54 -04:00
Vladimir Agafonkin
ba7a7f58cb
Merge pull request #1891 from snkashis/seticon_and_popups
...
Rebind popup when using setIcon to ensure proper anchor placement
2013-07-28 23:58:50 -07:00
Vladimir Agafonkin
6db592b5da
bump master version to 0.7-dev, close #1906
2013-07-25 22:43:11 +03:00
Vladimir Agafonkin
8d925b6acb
fix map scrolling right on click with horizontal scroll on page, close #1901
2013-07-25 12:49:16 +03:00
Vladimir Agafonkin
42a78fd867
fix infinite loop in getBounds and setMaxBounds, close #1895 , close #1866
2013-07-25 12:42:13 +03:00
Steve Kashishian
e4c801a514
rebind popup when using setIcon to ensure proper popup anchor placement
2013-07-19 20:30:05 -05:00
palewire
ede3aebf6a
Corrected camelcasing of lineCap and lineJoin.
2013-07-18 06:56:42 -07:00
Vladimir Agafonkin
e7ebb60133
rename to lineCap and lineJoin, #1863 , close #1843
2013-07-18 14:54:43 +03:00
Vladimir Agafonkin
101d0df5f7
Merge pull request #1863 from datadesk/linecap
...
New stroke-linecap and stroke-linejoin style options with VML alternatives. For #1843 .
2013-07-18 04:51:18 -07:00
Vladimir Agafonkin
756e9b854c
avoid vector flickering on Mac Safari more often, #902
2013-07-17 19:28:24 +03:00
John Firebaugh
7623e0a593
Fix scrolling popup content on Firefox
2013-07-15 11:32:40 -07:00
palewire
a2c987febc
New stroke-linejoin style option with a VML alternative. For #1843 .
2013-07-12 22:52:32 -07:00
palewire
665a956bc2
New stroke-linecap style option with a VML alternative. For #1643 .
2013-07-12 22:37:30 -07:00
Vladimir Agafonkin
75c133082c
fix Map min/maxZoom not overriding TileLayer-derived min/max, close #1848
2013-07-12 15:05:59 +03:00
Vladimir Agafonkin
a4c6c03550
break line to fix jshint
2013-07-12 12:46:10 +03:00
Vladimir Agafonkin
5c1a34979e
fix fakeStop in IE<9, close #1850 hopefully
2013-07-12 12:41:08 +03:00
danzel
ec3b9e0ff2
Add a few more featuregroup tests and fix regression of removeLayer.
2013-07-12 10:13:25 +12:00
Aaron Rutkovsky
24ebb66f40
Stop animation if can't get position from current style
2013-07-11 11:27:57 -05:00
Aaron Rutkovsky
b3b06eaabc
Merge branch 'master' into disable_animations_outside_dom
2013-07-11 10:29:36 -05:00
Vladimir Agafonkin
5829963014
do not animate zoom if nothing to animate yet, close #1484 , close #1845
2013-07-11 15:59:13 +03:00
Vladimir Agafonkin
a24a772694
add multipoly getLatLngs, close #1839 , update changelog
2013-07-11 15:11:28 +03:00
Vladimir Agafonkin
183c8a2cb7
merge #1834 (passing options to setMaxBounds)
2013-07-11 13:03:41 +03:00
Vladimir Agafonkin
889136fe84
fixed false FeatureGroup layerremove, close #1847
2013-07-11 12:57:05 +03:00
Poisbeau Mathieu
bde6b34502
Update Marker.js
...
According to the Leaflet documentation, setOpacity must return "this".
2013-07-10 19:00:11 +02:00
Vladimir Agafonkin
001f975b22
fix marker shadow not zoom animating after setIcon, close #1768
2013-07-10 19:34:51 +03:00
Vladimir Agafonkin
1781cda04a
fix geojson not accepting geometry arrays, close #1840
2013-07-10 19:21:39 +03:00
Vladimir Agafonkin
69c74a5057
Merge pull request #1817 from tofferrosen/patch-1
...
Issue where the tile layer is not reset and updated when redraw is calle...
2013-07-10 02:27:41 -07:00
John Firebaugh
4839c44509
Fire layerremove after removing the layer
...
This is consistent with 0.5.x and seems more useful. Updating
the state of a layer switcher using map.hasLayer in response
to layeradd and layerremove events is my use case.
2013-07-08 16:53:04 -07:00
John Firebaugh
a1d7c1268d
Mirror D3 strategy for drag event suppression
...
-webkit-user-drag is not inherited, so it's ineffective
at preventing drags of image overlays (#1821 ). Instead,
always preventDefault on dragstart.
While here, preventDefault on selectstart as well (a
"belt-and-suspenders" approach).
Together, these changes bring Leaflet's strategy in line
with D3's:
https://github.com/mbostock/d3/blob/master/src/event/drag.js
2013-07-08 10:26:02 -07:00
Vladimir Agafonkin
8a0b9ecb64
Merge pull request #1826 from scooterw/fix_mouse_position_relative
...
attempt to address regressions from #1684 , #1745
2013-07-06 07:45:03 -07:00
Josh Caldwell
0c381325bb
Fix issue with mouse position when page is scrolled
2013-07-05 11:50:36 -04:00
David Beitey
c663392697
Allow options to be passed to Map.setMaxBounds such that they can be used when setting the view.
2013-07-05 14:12:09 +10:00
danzel
fef108cc8e
Fix worldCopyJump if you start zoomed all the way out. Fixes #1831
2013-07-05 14:35:48 +12:00
Scooter Wadsworth
914807c621
attempt to address regressions from #1684 , #1745
2013-07-03 22:42:10 -06:00
Aaron Rutkovsky
f01e010f9a
Stop transition if element is outside fo the DOM
2013-07-03 18:06:45 -05:00
Hans Kristian Flaatten
8e98e52b88
Renames L.LatLng property .altitude to .alt
2013-07-03 15:44:57 +02:00