Commit Graph

3110 Commits

Author SHA1 Message Date
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
cd84d75005 minor changelog update [skip ci] 2013-12-18 16:54:38 -05:00
Vladimir Agafonkin
7a4c59680e add vectors 2.0 PR link [skip ci] 2013-12-18 16:18:20 -05:00
Vladimir Agafonkin
c99d4b11e7 Merge pull request #2290 from Leaflet/vectors2
Vectors 2.0
2013-12-18 13:12:29 -08:00
Vladimir Agafonkin
9de557df9c update changelog about vectors 2.0 2013-12-18 16:11:57 -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
5d4e77627a fix PolyUtil spec (we now round poly clipping) 2013-12-18 14:56:23 -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
65ae546fa0 make canvas be underneath svg by default 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
33e23a69e7 fix specs for polygon holes 2013-12-18 12:03:22 -05:00
Vladimir Agafonkin
dc5151b81a fix GeoJSON roundtripping 2013-12-18 12:03:22 -05:00
Vladimir Agafonkin
87bf1ff144 fix GeoJSON deps 2013-12-18 12:03:22 -05:00