Vladimir Agafonkin
7ff0fa9c72
approximate Circle with ellipse
2014-01-03 00:37:34 +02:00
Vladimir Agafonkin
c4a9418d3b
add low level ellipse rendering support
2014-01-02 20:36:47 +02:00
Vladimir Agafonkin
9ce2cc5cbd
use simpler distance formula (precision is good enough)
2014-01-02 16:32:57 +02:00
Vladimir Agafonkin
3d34f27df8
normalize latlng argument in Map wrapLatLng
2014-01-02 16:15:00 +02:00
Vladimir Agafonkin
ea1402ec4f
simplify calculations in scale control
2014-01-02 16:13:08 +02:00
Vladimir Agafonkin
5923a64ec4
add Map distance method, close #1442
2014-01-02 16:13:03 +02:00
Vladimir Agafonkin
2ee5c90f02
add CRS.Earth, move Harvesine distance there
2014-01-02 15:42:14 +02:00
Vladimir Agafonkin
6940b5bac9
use projected coordinates in Circle, close #1465
2014-01-02 15:23:28 +02:00
Vladimir Agafonkin
b2965351e0
ignore openPopup if map not initialized, close #2343
2013-12-31 02:43:56 +02:00
Vladimir Agafonkin
7d18adbe73
don't postfix createPane name, #1742
2013-12-30 23:39:30 +02:00
Vladimir Agafonkin
2000734658
do not fail on unnamed createPane, #1742
2013-12-30 20:16:21 +02:00
Vladimir Agafonkin
76f9c7ae7f
add Map createPane/getPane methods, close #1742
2013-12-30 19:17:52 +02:00
Vladimir Agafonkin
dd1b9617dd
add syntactic sugar to DomEvent.on/off
2013-12-30 17:40:23 +02:00
Vladimir Agafonkin
6cea376807
add missing Canvas events, fix mouseover spam
2013-12-30 13:22:14 +02:00
Vladimir Agafonkin
bc9721b3be
simplify pane structure (remove objectsPane, not necessary)
2013-12-28 03:38:59 +02:00
Vladimir Agafonkin
ee3f2f8b1e
stop propagation explicitly; marker and vector mouseup
...
this way we know what events won’t propagate to Map and this behavior
is consistent across layers
2013-12-28 03:12:18 +02:00
Vladimir Agafonkin
7ca19b59ea
clean up Marker mouse events code
2013-12-27 19:27:46 +02:00
Vladimir Agafonkin
8bf7f963e2
fix marker drag regression
2013-12-27 19:27:11 +02:00
Vladimir Agafonkin
c354113293
fix build (fire preclick even with no click listeners)
2013-12-27 18:46:10 +02:00
Vladimir Agafonkin
93214d7e3c
clean up mouse events handling code
2013-12-27 18:36:24 +02:00
Vladimir Agafonkin
e7898584c3
more BoxZoom cleanup
2013-12-27 18:17:51 +02:00
Vladimir Agafonkin
e27b295261
clean up BoxZoom, fix cursors #1813
2013-12-27 17:22:16 +02:00
Vladimir Agafonkin
9ae1623910
include version info in top comment, close #2276
2013-12-26 18:46:00 +02:00
Vladimir Agafonkin
abdf0c2afa
better compression for Leaflet.js
2013-12-26 18:45:29 +02:00
Vladimir Agafonkin
2b96ea5aba
make Leaflet.js requirable for version, remove noConflict test
...
Currently tests don’t account for wrapper function around Leaflet
source, so the noConflict one failed — removing for now.
2013-12-26 18:29:46 +02:00
Vladimir Agafonkin
9a6288ef37
make Android double-click issue threshold smaller, close #2303
2013-12-25 20:37:25 +02:00
Vladimir Agafonkin
8764063c46
simpler and faster mouse pos; remove DomUtil.documentIsLtr
2013-12-24 18:46:05 +02:00
Vladimir Agafonkin
9eaaf096c1
use getTileSize when determining tile bounds
2013-12-24 00:47:11 +02:00
Vladimir Agafonkin
3ae769a4e7
pass options in canvas/svg factories
2013-12-23 22:39:42 +02:00
Vladimir Agafonkin
bc405b5911
make propagation work correctly for vector layers
2013-12-23 21:33:25 +02:00
Vladimir Agafonkin
6edc39e19a
revert ce29ac59
2013-12-23 17:21:12 +02:00
Vladimir Agafonkin
5d9cc6bf47
optimize canvas implementation further
2013-12-23 16:55:12 +02:00
Vladimir Agafonkin
6b43bc6566
fix Popup remove/add sequence
2013-12-23 12:47:02 +02:00
Vladimir Agafonkin
37485fd334
fix layers control not firing overlayadd, close #2330
2013-12-23 12:41:50 +02:00
Vladimir Agafonkin
dd72a6545a
simplify bringToFront/Back, add DomUtil toFront/Back
2013-12-23 12:31:51 +02:00
Vladimir Agafonkin
a97c599201
Layer popup methods and cleanup, fix #2279 , fix #2292
2013-12-21 12:46:38 +01:00
Vladimir Agafonkin
9e6a747f6f
minor events-related cleanup
2013-12-21 09:53:26 +01:00
Vladimir Agafonkin
deec9d54be
don't bind on each move in IE7-8
2013-12-21 09:36:53 +01:00
Vladimir Agafonkin
47783821f7
rename limitExecByInterval to throttle, better implementation
2013-12-21 01:49:25 -05:00
Vladimir Agafonkin
b7c03c8a99
add more comments to Util, clean up
2013-12-20 22:47:09 -05:00
Vladimir Agafonkin
d0051500c3
comment the Events code better
2013-12-20 17:26:27 -05:00
Vladimir Agafonkin
dcb6f74ef5
ensure execution order in events, slightly bulkier structure
2013-12-19 18:35:05 -05:00
Vladimir Agafonkin
ce29ac59a9
fire load after viewreset/moveend to fix Canvas rendering
2013-12-19 18:04:55 -05:00
Vladimir Agafonkin
70e3500716
rename _leaflet_events to _events
2013-12-19 17:20:04 -05:00
Vladimir Agafonkin
88b27fe832
clean up events code a bit
2013-12-19 17:14:53 -05:00
Vladimir Agafonkin
1dfec0a021
shortcut hasEventListeners as listens
2013-12-19 17:09:32 -05:00
Vladimir Agafonkin
d4fe4cb804
simplify events code, better footprint, speedup removal 2x
2013-12-19 17:05:36 -05:00
Vladimir Agafonkin
6d81f5e51c
fix edge case with SVG event delegation
2013-12-19 16:13:34 -05:00
Vladimir Agafonkin
247c13fbdd
optimize perf-sensitive LayerGroup methods
2013-12-19 02:23:17 -05:00
Vladimir Agafonkin
df4570a9f0
delegate SVG event handling to root, close #2315
2013-12-19 00:58:13 -05:00
Vladimir Agafonkin
be67170869
simpler stamp without closure
2013-12-19 00:20:43 -05:00
Vladimir Agafonkin
824d168375
optimize DomEvent addListener
2013-12-19 00:20:23 -05:00
Vladimir Agafonkin
6d1142a978
only propagate events if given true to fire, #2311
2013-12-18 23:23:22 -05:00
Vladimir Agafonkin
ce4a031d40
faster on/off, add private non-sugary versions
2013-12-18 23:07:39 -05:00
Vladimir Agafonkin
6b132009af
handle attrib in Layer, don't use map layeradd/remove (perf)
...
otherwise thousands of markers/vectors will trigger layeradd and check
for attributions, this is waste of resources
2013-12-18 23:04:08 -05:00
Vladimir Agafonkin
f7198e71dc
fix build
2013-12-18 22:22:40 -05:00
Vladimir Agafonkin
1c925fa698
don't copy over layer options on GeoJSON setStyle (perf)
2013-12-18 22:21:17 -05:00
Vladimir Agafonkin
9f09f50812
remove Util invokeEach since on/off are hot functions
2013-12-18 22:05:47 -05:00
Vladimir Agafonkin
a628e724a1
minor poly performance tweaks
2013-12-18 21:55:04 -05:00
Vladimir Agafonkin
9cc1b3608d
more comments in new vector code
2013-12-18 15:19:53 -05:00
Vladimir Agafonkin
511cbd5465
add more comments to Canvas, fix dragging cursors
2013-12-18 14:57:06 -05:00
Vladimir Agafonkin
cf55d0edb9
clean up Renderer/SVG code and add comments
2013-12-18 14:36:58 -05:00
Vladimir Agafonkin
b329c4a9fd
only round clip edges, other path points already rounded
2013-12-18 14:35:51 -05:00
Vladimir Agafonkin
4d8990f7a8
dry up the renderer code a bit
2013-12-18 13:45:05 -05:00
Vladimir Agafonkin
95e394f0d8
fix mouse handling regression in Path
2013-12-18 13:20:01 -05:00
Vladimir Agafonkin
f2af995a10
tweak default vectors color
2013-12-18 12:03:24 -05:00
Vladimir Agafonkin
988dc3a27a
redraw partially when updating canvas layers (massive speedup)
2013-12-18 12:03:24 -05:00
Vladimir Agafonkin
e5d1ff6db2
fix dragging on canvas layer
2013-12-18 12:03:24 -05:00
Vladimir Agafonkin
811006adc5
cache circle bounds
2013-12-18 12:03:24 -05:00
Vladimir Agafonkin
eca9fe966e
fix retina canvas redraw bug
2013-12-18 12:03:23 -05:00
Vladimir Agafonkin
7bffd4924b
do stroke hit detection after polygon
2013-12-18 12:03:23 -05:00
Vladimir Agafonkin
f930588bca
simpler Circle._containsPoint, remove accidental debug
2013-12-18 12:03:23 -05:00
Vladimir Agafonkin
f4f8c06c75
fix adding/removal of vectors and renderers
2013-12-18 12:03:23 -05:00
Vladimir Agafonkin
f750b76e04
fix addLatLng not affecting bounds
2013-12-18 12:03:23 -05:00
Vladimir Agafonkin
2e9141fa98
better style defaults for vector features
2013-12-18 12:03:23 -05:00
Vladimir Agafonkin
518b82b755
fix GeoJSON resetStyle in case no style was specified
2013-12-18 12:03:23 -05:00
Vladimir Agafonkin
508a75f7a8
make Circle inherit from CircleMarker and not the other way
2013-12-18 12:03:23 -05:00
Vladimir Agafonkin
fe5cd4b127
tweaks to renderer instancing
2013-12-18 12:03:23 -05:00
Vladimir Agafonkin
fdae94ce34
fix test with empty polyline
2013-12-18 12:03:23 -05:00
Vladimir Agafonkin
46c279c88f
various IE vectors fixes
2013-12-18 12:03:22 -05:00
Vladimir Agafonkin
4e33ce3e0a
cache getBounds and optimize Canvas events
2013-12-18 12:03:22 -05:00
Vladimir Agafonkin
f045742a28
add Polyline and Polygon getCenter, openPopup in centroid
2013-12-18 12:03:22 -05:00
Vladimir Agafonkin
674d9ae4d3
Retina support and better default renderer handling
2013-12-18 12:03:22 -05:00
Vladimir Agafonkin
e35095fcf9
fix CircleMarker setStyle
2013-12-18 12:03:22 -05:00
Vladimir Agafonkin
05054a1088
fix Popup regression
2013-12-18 12:03:22 -05:00
Vladimir Agafonkin
dc5151b81a
fix GeoJSON roundtripping
2013-12-18 12:03:22 -05:00
Vladimir Agafonkin
04addb791e
fix choosing default renderer
2013-12-18 12:03:22 -05:00
Vladimir Agafonkin
d0eedd3f52
rename vectors2 folder into vectors, update deps
2013-12-18 12:03:22 -05:00
Vladimir Agafonkin
2ac898654a
minor clean up
2013-12-18 12:03:21 -05:00
Vladimir Agafonkin
21510e6100
add CircleMarker
2013-12-18 12:03:21 -05:00
Vladimir Agafonkin
1e04f5feba
add Circle implementation
2013-12-18 12:03:21 -05:00
Vladimir Agafonkin
fd98197556
require ctx in DomEvent off if on had it (breaking!!!)
2013-12-18 12:03:21 -05:00
Vladimir Agafonkin
6f9d05fc40
implement Canvas events and SVG click-through
2013-12-18 12:03:21 -05:00
Vladimir Agafonkin
41a576b930
minor clean up
2013-12-18 12:03:21 -05:00
Vladimir Agafonkin
ddb9a376be
flatten poly latlngs into rings, proper clipping
2013-12-18 12:03:21 -05:00
Vladimir Agafonkin
6543fe50bc
fix jshint errors
2013-12-18 12:03:21 -05:00
Vladimir Agafonkin
6aa605f606
clean up lineJoin/lineCap
2013-12-18 12:03:21 -05:00
Vladimir Agafonkin
08028b7a7a
add VML implementation (not tested yet)
2013-12-18 12:03:21 -05:00
Vladimir Agafonkin
5d8e7279b2
remove vector stuff that's already ported
2013-12-18 12:03:21 -05:00
Vladimir Agafonkin
b2eee96d5c
remove MultiPoly classes (unnecessary)
2013-12-18 12:03:20 -05:00
Vladimir Agafonkin
48a3c34702
add Path Popup implementation
2013-12-18 12:03:20 -05:00
Vladimir Agafonkin
919b862c15
add MultiPolyline and MultiPolygon implementations
2013-12-18 12:03:20 -05:00
Vladimir Agafonkin
b19fd8d1cd
proper Canvas redraw & setStyle
2013-12-18 12:03:20 -05:00
Vladimir Agafonkin
7976b1f284
add basic Canvas implementation
2013-12-18 12:03:20 -05:00
Vladimir Agafonkin
3c5cf0fd2b
fix stroke appearing on polygon clip edges
2013-12-18 12:03:20 -05:00
Vladimir Agafonkin
1bd0ee2dd5
SVG.js minor cleanup
2013-12-18 12:03:20 -05:00
Vladimir Agafonkin
274e1559b7
fix "error parsing z" error in SVG
2013-12-18 12:03:20 -05:00
Vladimir Agafonkin
cea35a35e5
add SVG mouse events support
2013-12-18 12:03:20 -05:00
Vladimir Agafonkin
f3b376f599
add Path setStyle
2013-12-18 12:03:20 -05:00
Vladimir Agafonkin
d3426d557b
fix Polygon getBounds and factory
2013-12-18 12:03:20 -05:00
Vladimir Agafonkin
d983464ab5
SVG bringToFront and bringToBack
2013-12-18 12:03:19 -05:00
Vladimir Agafonkin
7cd67edf71
copy Rectangle implementation
2013-12-18 12:03:19 -05:00
Vladimir Agafonkin
33f4e72cc4
add working Polygon implementation
2013-12-18 12:03:19 -05:00
Vladimir Agafonkin
eade171b7e
fix renderers not updating bounds before path updates
2013-12-18 12:03:19 -05:00
Vladimir Agafonkin
3c8dd353a8
manage renderer automatically
2013-12-18 12:03:19 -05:00
Vladimir Agafonkin
076255f33f
initial working Path/Polyline implementation
2013-12-18 12:03:19 -05:00
Vladimir Agafonkin
568fd154e2
initial Renderer/SVG implementations
2013-12-18 12:03:19 -05:00
Vladimir Agafonkin
7b9bedb497
Merge pull request #2311 from Leaflet/propagate
...
Fast universal event propagation
2013-12-18 08:30:45 -08:00
Vladimir Agafonkin
0876b51bc9
remove DomUtil.getViewportOffset as unnecessary
2013-12-18 00:51:01 -05:00
Vladimir Agafonkin
f631513acc
fast event propagation (10x FeatureGroup layer add speedup)
2013-12-17 17:08:21 -05:00
Vladimir Agafonkin
1cc9ecdded
clean up Class.js
2013-12-17 15:53:52 -05:00
Vladimir Agafonkin
4e2c097c5f
Merge pull request #2310 from Leaflet/evented
...
Evented base class to use in favor of mixing in event methods
2013-12-17 12:52:50 -08:00
Vladimir Agafonkin
d662e005bb
no parseFloat in LatLng, faster factory (massive speedup)
...
see http://jsperf.com/leaflet-parsefloat-in-latlng
2013-12-17 15:38:49 -05:00
Vladimir Agafonkin
3469eb933d
Merge pull request #2296 from urbaniak/retina-tile-url
...
add {r} format to url, which returns @2x when retina detected and enabled
2013-12-17 11:41:33 -08:00
Vladimir Agafonkin
21cfd7f3d9
replace Events mixin with Evented inheritance
2013-12-17 14:07:21 -05:00
Vladimir Agafonkin
4a142af76d
make Evented longer names aliases instead of on/off
2013-12-17 14:06:54 -05:00
Vladimir Agafonkin
b22715a9e5
replace L.Mixin.Events with L.Evented class (bw-compat)
2013-12-17 13:55:39 -05:00
Vladimir Agafonkin
d0e72934d7
make instantiation faster by avoiding callInitHooks where not needed
2013-12-17 13:27:10 -05:00
Vladimir Agafonkin
18d0cf4dc1
made the logo pretty-printed for consistency
2013-12-16 19:09:22 -05:00
Vladimir Agafonkin
447b0aa35c
Merge pull request #2304 from jacobtoye/master
...
Adding Leaflet logo in svg format
2013-12-16 16:08:31 -08:00
jacobtoye
f0be7dcf0f
Run logo svg through svgo
2013-12-17 13:04:01 +13:00
Vladimir Agafonkin
e44b8d944e
use lighter extend in setOptions, simplify extend
2013-12-16 18:37:06 -05:00
jacobtoye
b675bbeecf
Adding Leaflet logo in svg format
2013-12-17 12:04:53 +13:00
John Firebaugh
f2b34cd012
Use L.Util.create for class extension
2013-12-15 14:35:02 -08:00
John Firebaugh
ad9d0f8c7f
Make options object prototype-inherited
...
Fixes #2294
2013-12-15 13:30:30 -08:00
Krzysztof Urbaniak
caa9d8622b
fix retina condition
2013-12-14 16:54:29 +01:00
Krzysztof Urbaniak
de1a62fa52
add {r} format to url, which returns @2x when retina detected and enabled
2013-12-14 16:40:19 +01:00
Vladimir Agafonkin
f619e3b242
bring this._map check back
2013-12-13 18:35:51 -05:00
John Firebaugh
af9302ce19
Make GridLayer methods safe to call pre-setView
2013-12-13 18:01:06 -05:00
John Firebaugh
5e0d343501
Fix build
2013-12-13 17:50:32 -05:00
Vladimir Agafonkin
773fa91d1e
fix old IE and stricter jshinting
2013-12-13 17:24:43 -05:00
Vladimir Agafonkin
69890a29cf
fix build
2013-12-13 17:21:39 -05:00
Vladimir Agafonkin
40a67a2113
fix LayerGroup hasLayer
2013-12-13 17:00:52 -05:00
Vladimir Agafonkin
de4f0353e1
fix Map hasLayer
2013-12-13 16:47:58 -05:00
Vladimir Agafonkin
8c3010ca88
fix FeatureGroup getBounds
2013-12-13 16:38:24 -05:00
Vladimir Agafonkin
4e9b8a42e9
call addLayers after initHooks where anim is detected, fixes #2281
2013-12-11 18:13:00 -05:00
danzel
27cd306e6b
Change touch detection check for ontouchstart in window like modernizr does. Fixes chrome touch emulation. Fixes #2277
2013-12-12 09:30:11 +13:00
Vladimir Agafonkin
f1d2b0d5df
revert commenting out watch for terser code #2274
2013-12-10 11:17:40 +01:00
Vladimir Agafonkin
4a42dc07d7
minor code readability fix
2013-12-10 01:53:22 +01:00
Yohan Boniface
369290d90d
Firefox has a Object.prototype.watch method
2013-12-09 15:59:20 +01:00
Vladimir Agafonkin
eec19a441b
add Control & Layer remove method
2013-12-06 16:49:50 +02:00
Vladimir Agafonkin
d53bc0e4f8
accept name in Layer getPane, make Marker panes configurable
2013-12-06 15:10:29 +02:00
Vladimir Agafonkin
7f03570b8d
move Layer-related Map code from Map.js to Layer.js
2013-12-06 15:10:29 +02:00
Vladimir Agafonkin
d55ffb07ec
cleaner and more consistent zoom animation options
2013-12-06 15:10:29 +02:00
Vladimir Agafonkin
d70d03dbe1
more implicit falsy options to save bytes / memory;
2013-12-06 15:10:29 +02:00
Vladimir Agafonkin
6e0e006209
add Layer getEvents and manage listeners on map automatically
2013-12-06 15:10:29 +02:00
Vladimir Agafonkin
64320fe3fa
remove Popup open/close (there are add/remove now)
2013-12-06 15:10:28 +02:00
Vladimir Agafonkin
edca4a6075
groups cleanup; fix getBounds when containing CircleMarkers
2013-12-06 15:10:28 +02:00
Vladimir Agafonkin
eeaec502ac
optimize layer add/remove with layers control present
2013-12-06 15:10:28 +02:00
Vladimir Agafonkin
57bfbc45e6
simpler Map getMinZoom
2013-12-06 15:10:28 +02:00
Vladimir Agafonkin
789c356017
fire add/remove events and manage _map in Layer
2013-12-06 15:10:28 +02:00
Vladimir Agafonkin
36b8c7cf4d
move zoom restricting logic to GridLayer
2013-12-06 15:10:28 +02:00
Vladimir Agafonkin
4011a6199f
move add/removeLayer logic to Layer; ditch tilelayersload event
2013-12-06 15:10:28 +02:00
Vladimir Agafonkin
a30a872a78
initial Layer commit (base class for all layers)
2013-12-06 15:10:28 +02:00
danzel
46a379adb7
A transitionEnd event only finished a zoom animation if it is for a transform. Fixes #2255
2013-12-06 14:54:48 +13:00
danzel
c287eccef3
Don't crash when double tap zooming on pointer if a property is null.
2013-12-06 14:36:56 +13:00
Vladimir Agafonkin
db8f888c17
significantly clean up DomEvent.Pointer code
2013-12-05 16:45:54 +02:00
Vladimir Agafonkin
a0ad7b6c0e
clean up Poly code
2013-12-05 16:44:50 +02:00
Vladimir Agafonkin
674b7cbc3f
clean up Path classes
2013-12-05 16:01:25 +02:00
Vladimir Agafonkin
42b39bf247
clean up GeoJSON.js
...
also changes geometryToLayer & coordsToLatLngs signatures
2013-12-05 15:14:52 +02:00
Vladimir Agafonkin
b0d6bcb0aa
clean up ImageOverlay
2013-12-05 14:57:18 +02:00
Vladimir Agafonkin
b8b6e3e852
clean up Marker.Drag.js
2013-12-05 14:43:41 +02:00
Vladimir Agafonkin
3b0e6d79b0
clean up Marker.js
2013-12-05 14:39:51 +02:00
Vladimir Agafonkin
6b9731283d
add and use DomUtil.remove
2013-12-05 14:35:39 +02:00
Vladimir Agafonkin
efba6b4d1c
clean up Icon code
2013-12-04 18:42:13 +02:00
Vladimir Agafonkin
5b77ec33de
optimize fire event in V8 when there are no context listeners
2013-12-04 18:01:52 +02:00
Vladimir Agafonkin
57a0866bcf
set empty options object if no options given, fixes build
2013-12-04 18:00:37 +02:00
Vladimir Agafonkin
3a0b1bf1d5
don't overwrite default options if not specified (faster construction)
2013-12-04 17:38:55 +02:00
Vladimir Agafonkin
5bc104237e
clean up Popup, add popup fade out animation
2013-12-04 16:43:24 +02:00
Vladimir Agafonkin
ee334476f7
clean up Control.Zoom
2013-12-04 14:51:18 +02:00
Vladimir Agafonkin
a00360bef6
clean up Control.Scale
2013-12-04 14:45:40 +02:00
Vladimir Agafonkin
14afb4fa8f
clean up Control.Layers
2013-12-04 14:18:00 +02:00
Vladimir Agafonkin
b151ceb63f
remove LatLng constants, add move maxMargin to equals arguments
2013-12-03 19:09:36 +02:00
Vladimir Agafonkin
3d7520ff27
clean up Browser.js, simplify old FF touch detection
2013-12-03 18:47:43 +02:00
Vladimir Agafonkin
f2da891ff2
clean up DomEvent.DoubleTap
2013-12-03 17:05:51 +02:00
Vladimir Agafonkin
fa69db1082
clean up DomEvent, remove now irrelevant legacy IE magic
2013-12-03 16:57:24 +02:00
Vladimir Agafonkin
ea0650b399
cleanup DomUtil code
2013-12-03 16:14:12 +02:00
Vladimir Agafonkin
bc686476fd
Merge pull request #2259 from danzel/fix2256
...
Don't fire dragend if a dragstart did not occur due to a multitouch action
2013-12-03 04:31:03 -08:00
Vladimir Agafonkin
9cb36d0a62
document refactoring in changelog, bump version
2013-12-02 20:05:31 +02:00
Vladimir Agafonkin
a1828f3f6a
change wrapNum signature, clean up
2013-12-02 19:18:07 +02:00
Vladimir Agafonkin
91a01a03da
move Projection namespace to Projection.LonLat.js
2013-12-02 19:18:07 +02:00
Vladimir Agafonkin
53d47af746
improve comments in CRS
2013-12-02 19:18:07 +02:00
Vladimir Agafonkin
a6517dac60
add CRS unproject, close #1560
2013-12-02 19:18:07 +02:00
Vladimir Agafonkin
49af3fda5c
merge spherical mercator / epsg3857 changes with some fixes
...
closes #2062
2013-12-02 19:18:07 +02:00
Vladimir Agafonkin
b9f9b285ee
fix build (jshint)
2013-12-02 19:16:02 +02:00
Vladimir Agafonkin
678a5cbd05
better wrapping/bounding, make projection bounds optional
2013-12-02 19:16:01 +02:00
Per Liedman
130e53d1cd
Use absolute upper tile bounds when calculating TMS row
2013-12-02 19:16:01 +02:00
Per Liedman
4dc66ccedd
Round tile bounds to integers
2013-12-02 19:16:01 +02:00
Per Liedman
ad9449e7cf
Replace getBounds() with property bounds, defaulting to normal lat/lng bounds
2013-12-02 19:16:01 +02:00
Vladimir Agafonkin
f92dcb3be6
cleanup, more comments and fix minor errors
2013-12-02 19:16:01 +02:00
Vladimir Agafonkin
5895abe93c
fix whitespace
2013-12-02 19:16:01 +02:00
Vladimir Agafonkin
7e20997e40
remove LatLng wrap and fix wrap tests
2013-12-02 19:16:01 +02:00
Vladimir Agafonkin
e43873298c
update wrapping/bounding logic to allow negative coords
2013-12-02 19:16:01 +02:00
Vladimir Agafonkin
a4fa618144
fix True Mercator & EPSG:3395
2013-12-02 19:16:01 +02:00
Vladimir Agafonkin
a03bfb753e
add CRS & Map wrapLatLng, fix GridLayer bounding
2013-12-02 19:16:01 +02:00
Vladimir Agafonkin
0305b593fe
clean up TileLayer.WMS
2013-12-02 19:16:00 +02:00
Vladimir Agafonkin
8c9a513857
fix GridLayer bounds
2013-12-02 19:16:00 +02:00
Vladimir Agafonkin
627ca511d0
add Map getWorldPixelSize, remove hardcode for worldCopyJump
2013-12-02 19:16:00 +02:00
Vladimir Agafonkin
00166b9c4f
proper EPSG:4326 with 2x1 root, fixes #1207
2013-12-02 19:16:00 +02:00
Vladimir Agafonkin
ce79ea1e81
remove TileLayer.Canvas in favor of GridLayer
2013-12-02 19:16:00 +02:00
Vladimir Agafonkin
5e6f95dc9c
implement TileLayer on top of GridLayer
2013-12-02 19:16:00 +02:00
Vladimir Agafonkin
88f21d01af
better bind, use native fn.bind if available
2013-12-02 19:16:00 +02:00
Per Liedman
294a7250d0
Added tests to verify size of EPSG3857 and 4326
2013-12-02 19:16:00 +02:00
Per Liedman
6c4d607e4d
Add bounds to Projection, to calculate size
2013-12-02 19:16:00 +02:00
Vladimir Agafonkin
7a3e63ea53
handle simple CRS in GridLayer
2013-12-02 19:16:00 +02:00
Vladimir Agafonkin
82e43019ee
proper GridLayer wrapping/bounding
2013-12-02 19:16:00 +02:00
Vladimir Agafonkin
8f97ca619e
easy async loading for GridLayer
2013-12-02 19:15:19 +02:00
Vladimir Agafonkin
e8c504b5f9
working GridLayer implementation, #1180
2013-12-02 19:15:19 +02:00
Calvin Metcalf
b2acd4e26d
update 3857 based on 3395
2013-12-02 19:15:19 +02:00
Calvin Metcalf
87520df2e2
Spherical Radius is used in Spherical Mercator
2013-12-02 19:15:18 +02:00
Vladimir Agafonkin
75c813305c
Merge pull request #2206 from radicalbiscuit/fix-circlemarker-setlatlng-return
...
Give L.CircleMarker.setLatLng a return statement.
2013-12-02 08:12:52 -08:00
Vladimir Agafonkin
78c934cbb2
revert #2207 (focusing popup close button) to fix #2254
2013-12-02 18:09:44 +02:00
Vladimir Agafonkin
5084cbf0b1
Merge pull request #2253 from gumballhead/event-layer
...
Use event.target as a default for event.layer
2013-12-02 08:07:29 -08:00
danzel
58551506f2
Don't fire dragend if a dragstart did not occur due to a multitouch action. fixes #2256
2013-12-02 14:06:47 +13:00
Andrew Kirkegaard
5a796c9897
Use event.target as a default for event.layer. Closes #2252
...
In 2464d13
, event.layer is overwritten to equal event.target. This
commit uses event.target as a default for event.layer.
2013-11-29 12:15:40 -05:00
Ilya Zverev
0859c48fbf
do not change internal properties in invalidateSize() when map is not loaded
2013-11-29 14:46:05 +04:00
nexushoratio
2e6e81e307
Minor spelling fix
2013-11-23 12:55:26 -08:00
Vladimir Agafonkin
769c2472de
Merge pull request #2207 from Zombienaute/master
...
Issue #2199 - Set focus to popup close button when popup is opened.
2013-11-22 05:18:24 -08:00
Vladimir Agafonkin
9ae30c0fd5
Merge pull request #2216 from danzel/android23
...
Disable webkit3d on android 2/3 because it is buggy as
2013-11-20 16:33:22 -08:00
Calvin Metcalf
4a0beebde3
Revert "' #1968 compiled interpolation'"
2013-11-20 15:42:06 -05:00
danzel
66282f14bc
Disable webkit3d on android 2/3 because it is buggy as. fixes #2198
2013-11-21 09:34:19 +13:00
Adam Bramley
5fec57d8ec
Adds a check to make sure the closeButton option is set before focusing
2013-11-21 09:16:10 +13:00
Bradley Gentry
9d2f90b508
Gave L.CircleMarker.setLatLng a return statement.
2013-11-20 13:37:30 -05:00
Adam Bramley
0b9918fe4e
Issue #2199 - Set focus to popup close button when popup is opened.
2013-11-20 16:09:14 +13:00
Vladimir Agafonkin
ff927cb42a
bump version in package.json and Leaflet.js
2013-11-15 16:41:34 +02:00
danzel
00e0dcf3e5
Fix spelling mistake in removeClass
2013-11-15 10:17:08 +13:00
danzel
b2959b4488
IE doesn't support e.target, use srcElement.
...
http://stackoverflow.com/questions/1143196/ie-e-target-id-is-not-working
2013-11-15 10:16:42 +13:00
Vladimir Agafonkin
81ae1794d3
fix world wrap with detectRetina, close #2190 , cc @perliedman
2013-11-14 18:58:16 +02:00
Vladimir Agafonkin
88e60af971
fix shift-double-click on maps with vector layers #2189
2013-11-14 18:50:29 +02:00
Vladimir Agafonkin
fab5c3b676
adjust whitespace and add some comments
2013-11-14 18:04:39 +02:00
Vladimir Agafonkin
507e6c7aa5
proper rounding of max bounds offsets
2013-11-14 17:52:31 +02:00
Vladimir Agafonkin
80607c6044
reimplement max bounds with proper zooming
2013-11-14 17:45:47 +02:00
Vladimir Agafonkin
be42f7a3b6
Merge branch 'patch-1' of https://github.com/kapouer/Leaflet into maxbounds
...
* 'patch-1' of https://github.com/kapouer/Leaflet :
test Map#setMaxBounds and Map#panInsideBounds
panInsideBounds: fit or center, pass options, remove boundsMinZoom
2013-11-14 14:13:45 +02:00
Vladimir Agafonkin
07e8198ef6
add shift-double-click to zoom out, close #2185
2013-11-13 22:13:39 +02:00
Vladimir Agafonkin
3618f404f5
Merge branch 'invalidateSize'
2013-11-13 21:50:02 +02:00
John Firebaugh
33263e537d
Add debounceMoveend option to invalidateSize
2013-11-13 10:53:34 -08:00
Vladimir Agafonkin
840be7a27a
fix maxNativeZoom on retina tile layer, close #1859 , ref #1798
2013-11-13 13:30:27 +02:00
Vladimir Agafonkin
9fc4e661d6
add multipoly openPopup, close #2046
2013-11-13 13:17:17 +02:00
Vladimir Agafonkin
db446f3e46
add leaflet-drag-target class to dragged elements, ref #2164 , #1902
2013-11-13 12:56:04 +02:00
Vladimir Agafonkin
c96384ef82
add Path className option
2013-11-12 22:57:21 +02:00
Vladimir Agafonkin
c500d5ac1f
make className utils work for SVG elements in IE9, ref #2164
2013-11-12 18:52:13 +02:00
Vladimir Agafonkin
9babc039f0
use classList for class ops where available; ref #2164
...
makes it much faster, and also makes adding/removing classes work for
SVG elements
2013-11-12 17:50:45 +02:00
Vladimir Agafonkin
edfa2acb70
capital case for backface tile hack (just in case); add comment
2013-11-12 13:07:16 +02:00
Vladimir Agafonkin
3797ac3ce7
Fix tiles bluriness regression in Chrome, ref #2078
2013-11-12 00:52:03 +02:00
John Firebaugh
248c5e7c8f
Don't delay moveend event on invalidateSize
...
This causes unnecessary nondeterminism in the sequence of
events emitted. Instead, the caller should be responsible for
throttling, as e.g. Map#_onResize does.
2013-11-11 14:02:00 -08:00
Steve Kashishian
d5383d24f7
handle any existing tilelayers when adding attribution control
2013-11-10 11:50:05 -06:00
Vladimir Agafonkin
45181ce40b
move old IE styles to leaflet.css, ditch leaflet.ie.css, close #2159
2013-11-08 16:44:14 +02:00
Vladimir Agafonkin
e45db4cd5b
drop ie6 png24 hack, drop Browser.ie6/7 props
2013-11-08 16:44:14 +02:00
Vladimir Agafonkin
60f5d46e53
Merge pull request #2171 from danzel/hack-2033
...
Fix layers control on firefox android
2013-11-07 16:45:39 -08:00
Vladimir Agafonkin
30e1e7eb55
fix build after #2167 fix
2013-11-07 21:46:50 +02:00
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