snkashis
d010d586d0
don't perform if animatingZoom
2013-02-17 14:57:32 -05:00
Vladimir Agafonkin
0b671a9b08
make zoom buttons listen to zoomlevelschange
2013-02-17 21:38:15 +02:00
snkashis
baeeddb078
Hand cursor for canvas paths
2013-02-17 14:21:27 -05:00
snkashis
11195f4849
allow Path.bindPopup to take existing popups as well.
2013-02-17 13:31:27 -05:00
Vladimir Agafonkin
f12e7e65f3
Merge pull request #1400 from jfirebaugh/getTileUrl
...
Enable cleaner overriding of TileLayer#getTileUrl
2013-02-15 16:39:22 -08:00
Vladimir Agafonkin
26b026b1c3
Merge pull request #1399 from jfirebaugh/tabs_vs_spaces
...
2 space indents -> tabs
2013-02-15 16:31:22 -08:00
John Firebaugh
4f906246bf
Enable cleaner overriding of TileLayer#getTileUrl
...
Moved the called to _adjustTilePoint outside of getTileUrl,
and moved the call to _getZoomForUrl into _adjustTilePoint.
This allows getTileUrl to use x, y, z directly without any
calls to private methods.
2013-02-15 16:29:20 -08:00
John Firebaugh
e52bbd0b3a
2 space indents -> tabs
2013-02-15 16:22:45 -08:00
Dave Leaver
acf3413d7c
Merge pull request #1396 from danzel/oldie-fixes
...
Fix TileLayer opacity in IE7/8
2013-02-15 14:00:16 -08:00
danzel
aed9506ab0
TileLayer opacity fixes as per @javisantana in #1371 . Fixes #1084
2013-02-16 10:57:25 +13:00
Vladimir Agafonkin
703f8a3a43
Merge pull request #1384 from snkashis/svg_clicks
...
Allow clicks to pass thru non clickable paths
2013-02-15 07:38:27 -08:00
Vladimir Agafonkin
3cef077128
Merge pull request #1385 from snkashis/bind_popup_option
...
Allow previously created popups to be used with bindPopup
2013-02-15 07:35:03 -08:00
Vladimir Agafonkin
b42559d816
Merge pull request #1386 from snkashis/click_while_open
...
Don't fade in a currently shown popup when clicking marker again
2013-02-15 07:31:35 -08:00
snkashis
1c38b896ba
Don't fade in a currently shown marker popup
2013-02-14 23:27:21 -05:00
snkashis
ae07e792af
Allow previously created popups to be used with bindPopup
2013-02-14 23:04:53 -05:00
snkashis
7472550087
Allow clicks to pass thru non clickable paths
2013-02-14 22:17:34 -05:00
Vladimir Agafonkin
a948379db8
Merge pull request #1376 from moonlite/zoomlevelschange-event
...
Zoomlevelschange event
2013-02-14 03:35:57 -08:00
Mattias Bengtsson
cbee6851c8
Don't expose getZoomLevels.
2013-02-14 12:00:08 +01:00
Vladimir Agafonkin
d8ef52b1b1
Merge pull request #1374 from oslek/move-events
...
Move events
2013-02-14 02:31:25 -08:00
Mattias Bengtsson
efe0c6f6ea
Fire zoomlevelschange event when zoomlevels are updated.
...
This is triggered when you remove a layer from a map with greater
zoom level coverage than the remainding layers or when you add a tilelayer
with greater zoomlevel coverage than the previous set of layers had.
2013-02-14 03:04:10 +01:00
oslek
c3ccf01a29
prevent extra movestart on inertia drag
2013-02-13 13:35:40 -08:00
oslek
f7301fa267
fire dragend before moveend for consistency
2013-02-13 13:25:02 -08:00
oslek
2c11fdfa6d
prevent false move events in invalidateSize
2013-02-13 12:38:33 -08:00
snkashis
633e21d043
include conditional before trying to set content of popup
2013-02-13 14:08:45 -05:00
snkashis
dbd57c0b7b
Allow popups that are bound to markers to have new content set
2013-02-13 14:06:48 -05:00
snkashis
a25cc9fb37
remove handler too
2013-02-13 10:21:29 -05:00
snkashis
3c5161feba
determine button disabled state on baselayer change
2013-02-13 10:19:37 -05:00
jacobtoye
e13d5faa80
Remove Polyline.Edit file.
2013-02-11 13:17:11 +13:00
Joschka
06bb571095
Fix viewport offset calculation in Firefox (issue #1322 )
2013-02-09 18:51:00 +01:00
danzel
513c6ca4cd
Change _propagateEvent to be careful that it doesn't overwrite e.layer if it is already set. Allows markers to be in multiple FeatureGroups and have the events come through correctly. See the test for details.
...
Fixes Leaflet.markercluster#128 ( https://github.com/Leaflet/Leaflet.markercluster/issues/128 )
2013-02-08 14:44:28 +13:00
Vladimir Agafonkin
84d537b804
fix L.latLng factory not passing null through
2013-02-05 14:26:32 +02:00
Vladimir Agafonkin
94a69bec1e
fix Point factory not passing null through
2013-02-05 12:38:13 +02:00
Calvin Metcalf
c3ee79b01d
enable coffeescript classes
2013-02-04 08:00:02 -05:00
Vladimir Agafonkin
98a950ff53
cleanup #1227 pull
2013-02-04 14:40:28 +02:00
Vladimir Agafonkin
72ad6912e6
Merge pull request #1227 from jerel/patch/android-webview
...
A bug in Android WebView triggers two clicks at once.
2013-02-04 04:34:19 -08:00
Vladimir Agafonkin
80f107cba3
Merge pull request #1318 from yohanboniface/add_lbrt_getters
...
Add LatLngBounds.getLeft/getBottom/getRight/getTop
2013-02-04 02:45:06 -08:00
danzel
6b51780e79
Make setRadius and updateStyle({radius: 123 }) work.
2013-02-04 09:51:27 +13:00
danzel
ded525fb06
Fix #1297 CircleMarker setRadius not working if called before adding to map.
2013-02-03 15:35:12 +13:00
Vladimir Agafonkin
08f770fcc2
Merge pull request #1053 from inpursuit/enhancement/3
...
Allow pointer-events to be set via options passed to shape
2013-01-31 08:37:43 -08:00
Vladimir Agafonkin
619698f6fb
minor whitespace cleanup
2013-01-31 17:32:16 +02:00
Vladimir Agafonkin
ef02f60387
merge #1141 and clean it up
2013-01-31 17:29:40 +02:00
Vladimir Agafonkin
a8763e665b
Merge remote-tracking branch 'origin/control-design'
...
# By Vladimir Agafonkin (4) and jacobtoye (2)
# Via Vladimir Agafonkin (1) and jacobtoye (1)
* origin/control-design:
Removing unnecessary ie only styles.
Using hex color instead of rgba to support oldie.
make toolbar styles more generic
simplify toolbar classes
rename top/bottom to first/last in control classes, thanks @yohanboniface
improve zoom control design (refining @jacobtoye's work)
2013-01-30 17:23:17 +02:00
Yohan Boniface
4f59140253
Eat our own food
2013-01-28 01:09:26 +01:00
Yohan Boniface
4b5746ffbc
Use getWest/South/East/North instead of getLeft/Bottom/Right/Top
2013-01-28 01:04:09 +01:00
Vladimir Agafonkin
39f9e2be10
Merge pull request #1317 from yohanboniface/escape_uri_component
...
Escape URI component in getParamString
2013-01-27 12:37:32 -08:00
Yohan Boniface
69b925b057
Add LatLngBounds.getLeft/getBottom/getRight/getTop
2013-01-27 12:12:02 +01:00
Yohan Boniface
c432c4eb24
Escape URI component in getParamString
2013-01-26 17:47:28 +01:00
Vladimir Agafonkin
9bdab60182
make toolbar styles more generic
2013-01-23 15:34:44 +02:00
Vladimir Agafonkin
0554098460
simplify toolbar classes
2013-01-23 15:16:42 +02:00
Vladimir Agafonkin
140cace2a7
Merge pull request #1300 from rvlasveld/add_hasLayer_to_layerGroup
...
Add has layer to layer group
2013-01-21 14:29:07 -08:00
Roemer Vlasveld
109fd06ae6
hasLayer not checking for null
...
Return false when checking for a null object in L.Map.hasLayer, in
response to issue #1282 .
2013-01-21 23:22:01 +01:00
Roemer Vlasveld
75fa5b087f
Fix js typo
2013-01-21 22:46:18 +01:00
Roemer Vlasveld
82d4535180
Add hasLayer to LayerGroup
...
Add the method hasLayer to LayerGroup, return false when not present or checking for a null layer.
2013-01-21 22:36:24 +01:00
snkashis
5524db2816
condition on one line
2013-01-21 10:14:42 -05:00
Vladimir Agafonkin
57c0ac408e
rename top/bottom to first/last in control classes, thanks @yohanboniface
2013-01-21 17:04:58 +02:00
snkashis
65aad99297
Revert "whitespace fix?"
...
This reverts commit 9856a66864
.
2013-01-20 20:18:48 -05:00
Steve
9856a66864
whitespace fix?
2013-01-20 20:06:52 -05:00
Steve
c0210009df
whitespace again
2013-01-20 19:39:01 -05:00
Steve
03a775c69b
Trying to fix whitespace
2013-01-20 19:38:12 -05:00
Steve
52b445a36d
Simplify features check
2013-01-20 19:35:18 -05:00
snkashis
c43e72da16
Handle arrays of feature collections
2013-01-20 19:13:43 -05:00
Calvin Metcalf
f26da9f9be
only mention the path, and ternery
2013-01-18 13:35:07 -05:00
Calvin Metcalf
c3cb132463
we want it reletive not from the base
2013-01-18 12:46:16 -05:00
Calvin Metcalf
82869206e2
ie7 fix
2013-01-18 12:41:11 -05:00
Vladimir Agafonkin
292d2b3633
merge snkashis polygon fix
2013-01-18 17:43:31 +02:00
Vladimir Agafonkin
10bd63a6a6
update changelog, bump version
2013-01-18 17:30:53 +02:00
Vladimir Agafonkin
76f8d0762d
Merge pull request #1287 from jieter/master
...
TileLayer.Canvas now returns this.
2013-01-18 07:25:37 -08:00
Vladimir Agafonkin
5fccd34a54
Merge pull request #1286 from calvinmetcalf/layerControlEvents
...
Layer control events for overlays
2013-01-18 07:25:22 -08:00
Yohan Boniface
44a7c6e0d8
Typo in Polyline docstring
2013-01-18 12:48:43 +01:00
Vladimir Agafonkin
eed2c8a12b
fix FF minus key, close #869 , update changelog and build
2013-01-17 11:51:52 +02:00
Jan Pieter Waagmeester
12d04f5c59
TileLayer.Canvas.redraw() now returns this.
2013-01-17 09:39:06 +01:00
Calvin Metcalf
c0e4241f36
rename events
2013-01-16 22:00:55 -05:00
Calvin Metcalf
88f1e121ee
overlay events
2013-01-16 18:20:20 -05:00
Vladimir Agafonkin
8facf33896
fix whitespace, update build
2013-01-16 17:08:57 +02:00
Vladimir Agafonkin
e3528c2d22
update zoom control styles, extract general toolbar classes, fix #1209
2013-01-16 17:08:06 +02:00
Vladimir Agafonkin
11e74ccab9
minor cleanup
2013-01-15 16:19:04 +02:00
Vladimir Agafonkin
405bf0c05d
Merge pull request #1279 from oslek/isArray
...
Robust array type check for cross-frame support
2013-01-14 15:11:41 -08:00
oslek
7dd7e4f699
Robust array type check for cross-frame support
...
In a multi-frame DOM environment, if setView is called with an array for
the first parameter, a subsequent call to getBounds raises "Invalid
LatLng object" exception. This is the case if the array passed to
setView was created outside the iFrame that contains the map. It causes
the array test using "instanceof" in L.latLng to fail, and
_initialTopLeftPoint to not being properly initialized.
Thank you to Juriy Zaytsev for the full explaination:
http://perfectionkills.com/instanceof-considered-harmful-or-how-to-write-a-robust-isarray/
John Resig and Dean Edwards post comments and concur.
2013-01-14 14:04:50 -08:00
danzel
365a5b3b02
Fix jshint unhappiness (Thanks @Guiswa)
2013-01-15 10:51:36 +13:00
Vladimir Agafonkin
dad3996d0e
Merge pull request #1097 from calvinmetcalf/GeometryCollection
...
GeoJSON GeometryCollection passes consisent params to pointToLayer
2013-01-14 06:33:28 -08:00
Calvin Metcalf
0ebbd7553e
fixed the whitespace and also removed the quotes in object keys
2013-01-14 07:25:34 -05:00
Vladimir Agafonkin
3f4e890b58
Merge pull request #1174 from danzel/master
...
Add retina marker icon support and retina-ize the default icon
2013-01-14 02:50:28 -08:00
danzel
6eefa8ad0e
Another pass on marker-icon, better grid fitting.
2013-01-14 16:12:58 +13:00
mourner
333899ca51
add Popup zoomAnimation option, fix #999
2013-01-14 00:23:45 +02:00
mourner
5eb4f4686d
fix a bug with FeatureGroup bindPopup not accepting options
2013-01-14 00:23:04 +02:00
snkashis
b3a7f2ffb7
Remove click handler with onRemove
2013-01-12 16:55:13 -05:00
Vladimir Agafonkin
eb518f33ac
Merge branch 'master' of github.com:Leaflet/Leaflet
2013-01-11 18:50:44 +02:00
Vladimir Agafonkin
4ebfeb9d18
udpate copyright to be more precise
2013-01-11 18:50:21 +02:00
Vladimir Agafonkin
116671fa55
Merge pull request #1013 from fdlk/set-radius-in-style
...
radius is part of CircleMarker style so should be changeable in using setStyle();
2013-01-11 08:43:18 -08:00
Vladimir Agafonkin
bc4104c708
fix TileLayer.brintToFront/Back on IE6-8, close #1168
2013-01-11 18:33:17 +02:00
Vladimir Agafonkin
64ca0af124
attempt to fix Android 4.1 zoom freeze, #1182
2013-01-11 18:20:40 +02:00
Vladimir Agafonkin
6dd0dea1aa
double quotes to single
2013-01-11 18:19:50 +02:00
Vladimir Agafonkin
80d0da1bdf
fix iOS vectir zoom anim regression, close #1259
2013-01-08 12:18:10 +02:00
Aaron King
c2869cee5d
Fix issue 1226: IE10 "Invalid argument" error in version 0.5 defining retina
...
https://github.com/CloudMade/Leaflet/issues/1226
Credit to dreamfall for the fix.
2012-12-31 10:39:24 -08:00
Vladimir Agafonkin
590bbd9ba7
Merge pull request #1245 from danzel/ie
...
Re-add L.Browser.ie as it is used in debug\vector\geojson.html(113).
2012-12-28 04:49:46 -08:00
Vladimir Agafonkin
733666bcab
Merge pull request #1240 from brianherbert/allow-null-geojson
...
Allow null GeoJSON geometries.
2012-12-28 04:49:31 -08:00
Brian Herbert
971e55b911
Simplifying condition for null geojson geometries.
...
Used feedback from @mourner to make the change from the pull request
#1240
2012-12-28 11:56:19 +09:00
danzel
f57e2eadcb
Re-add L.Browser.ie as it is used in debug\vector\geojson.html(113). Fixes #1242
2012-12-28 11:21:23 +13:00
Vladimir Agafonkin
e825b32cf8
Merge pull request #1244 from danzel/fix-events
...
Change marker click tracking. Only care if the map has been dragged if we are not draggable.
2012-12-27 13:53:55 -08:00
snkashis
b2e3f16b54
pass the clicked obj, not the map.
2012-12-27 15:37:57 -05:00