#leaflet | Logs for 2014-06-10

Back
[00:02:27] -!- a_morale has quit [Read error: Connection reset by peer]
[00:08:38] -!- rob_h has quit [Ping timeout: 240 seconds]
[00:11:14] -!- terabyte- has quit [Quit: terabyte-]
[00:22:28] -!- skorasaurus has quit [Ping timeout: 260 seconds]
[00:26:37] -!- asdfasd has quit [Ping timeout: 276 seconds]
[00:33:07] -!- Tugge has quit [Ping timeout: 245 seconds]
[00:33:07] -!- sudobangbang has quit [Ping timeout: 245 seconds]
[00:38:08] -!- i_tarzan has quit [Ping timeout: 260 seconds]
[00:53:23] -!- Tecan has quit [Changing host]
[00:56:20] -!- anth0ny [anth0ny!~anth0ny@unaffiliated/anth0ny] has joined #leaflet
[01:05:09] -!- Tecan has quit [Ping timeout: 252 seconds]
[01:09:35] -!- skorasaurus [skorasaurus!~skors@cpe-75-187-158-200.neo.res.rr.com] has joined #leaflet
[01:18:00] -!- grummund has quit [Ping timeout: 258 seconds]
[01:30:04] -!- lyzidiamond [lyzidiamond!~lyzidiamo@12.180.47.153] has joined #leaflet
[01:31:35] -!- zlog has quit [Remote host closed the connection]
[01:31:40] -!- Tom_itx has quit []
[01:32:08] -!- i_tarzan has quit [Ping timeout: 265 seconds]
[01:35:30] -!- AR_ has quit [Read error: Connection reset by peer]
[01:59:34] -!- likevinyl has quit [Ping timeout: 276 seconds]
[02:01:10] -!- PetefromTn_ has quit [Quit: Depression is merely anger without enthusiasm]
[02:07:18] -!- Tom_itx has quit [Ping timeout: 240 seconds]
[02:14:31] -!- skorasaurus has quit [Ping timeout: 276 seconds]
[02:16:40] -!- lyzidiamond has quit []
[02:27:50] -!- Servos4ever has quit [Quit: ChatZilla 0.9.90.1 [SeaMonkey 2.26/20140428215651]]
[02:30:59] -!- tjb1 has quit [Read error: Connection reset by peer]
[02:31:13] -!- likevinyl has quit [Changing host]
[02:36:03] -!- skorasaurus [skorasaurus!~skors@cpe-75-187-158-200.neo.res.rr.com] has joined #leaflet
[02:58:43] -!- syyl has quit [Ping timeout: 276 seconds]
[02:58:58] -!- AR_ has quit [Ping timeout: 240 seconds]
[02:59:39] -!- anth0ny has quit [Quit: anth0ny]
[03:05:10] -!- anth0ny [anth0ny!~anth0ny@unaffiliated/anth0ny] has joined #leaflet
[03:19:08] -!- witnit has quit [Ping timeout: 260 seconds]
[03:41:21] -!- AgMEEN has quit [Ping timeout: 252 seconds]
[04:00:56] -!- jerryitt has quit [Quit: Connection closed for inactivity]
[04:09:19] -!- dybskiy has quit [Remote host closed the connection]
[04:09:53] -!- dybskiy [dybskiy!~dybskiy@c-98-207-93-218.hsd1.ca.comcast.net] has joined #leaflet
[04:11:55] -!- FinboySlick has quit [Quit: Leaving.]
[04:14:32] -!- dybskiy has quit [Ping timeout: 265 seconds]
[04:18:59] -!- dybskiy [dybskiy!~dybskiy@c-98-207-93-218.hsd1.ca.comcast.net] has joined #leaflet
[04:21:13] -!- anth0ny has quit [Quit: anth0ny]
[04:23:44] -!- dybskiy has quit [Ping timeout: 260 seconds]
[04:27:53] -!- anth0ny [anth0ny!~anth0ny@unaffiliated/anth0ny] has joined #leaflet
[04:33:56] -!- dybskiy [dybskiy!~dybskiy@c-98-207-93-218.hsd1.ca.comcast.net] has joined #leaflet
[04:38:40] -!- dybskiy has quit [Ping timeout: 260 seconds]
[04:48:58] -!- dybskiy [dybskiy!~dybskiy@c-98-207-93-218.hsd1.ca.comcast.net] has joined #leaflet
[04:53:41] -!- dybskiy has quit [Ping timeout: 265 seconds]
[04:59:21] -!- The_Ball has quit [Remote host closed the connection]
[05:01:58] -!- Fox_Muldr has quit [Ping timeout: 240 seconds]
[05:03:57] -!- dybskiy [dybskiy!~dybskiy@c-98-207-93-218.hsd1.ca.comcast.net] has joined #leaflet
[05:08:32] -!- dybskiy has quit [Ping timeout: 245 seconds]
[05:08:39] -!- ries has quit [Quit: ries]
[05:19:11] -!- dybskiy [dybskiy!~dybskiy@c-98-207-93-218.hsd1.ca.comcast.net] has joined #leaflet
[05:19:17] -!- Tecan has quit [Changing host]
[05:20:56] -!- tjb1 has quit [Ping timeout: 260 seconds]
[05:23:44] -!- dybskiy has quit [Ping timeout: 260 seconds]
[05:27:24] -!- tjb1 has quit [Read error: Connection reset by peer]
[05:33:56] -!- dybskiy [dybskiy!~dybskiy@c-98-207-93-218.hsd1.ca.comcast.net] has joined #leaflet
[05:39:16] -!- dybskiy has quit [Ping timeout: 276 seconds]
[05:48:56] -!- dybskiy [dybskiy!~dybskiy@c-98-207-93-218.hsd1.ca.comcast.net] has joined #leaflet
[05:52:14] -!- mhaberler has quit [Quit: mhaberler]
[05:53:18] -!- dybskiy has quit [Ping timeout: 240 seconds]
[06:14:36] -!- i_tarzan has quit [Ping timeout: 260 seconds]
[06:18:24] -!- GJdan has quit [Quit: WeeChat 1.0-dev]
[06:18:57] -!- dybskiy [dybskiy!~dybskiy@c-98-207-93-218.hsd1.ca.comcast.net] has joined #leaflet
[06:21:02] -!- anth0ny has quit [Quit: anth0ny]
[06:23:32] -!- dybskiy has quit [Ping timeout: 245 seconds]
[06:25:34] -!- patrickarlt [patrickarlt!~patrickar@c-50-139-80-222.hsd1.or.comcast.net] has joined #leaflet
[06:29:57] -!- patrickarlt has quit [Client Quit]
[06:33:57] -!- dybskiy [dybskiy!~dybskiy@c-98-207-93-218.hsd1.ca.comcast.net] has joined #leaflet
[06:39:03] -!- dybskiy has quit [Ping timeout: 265 seconds]
[06:48:59] -!- dybskiy [dybskiy!~dybskiy@c-98-207-93-218.hsd1.ca.comcast.net] has joined #leaflet
[06:49:29] -!- larryone [larryone!~larryone@176.61.1.155] has joined #leaflet
[06:53:29] -!- dybskiy has quit [Ping timeout: 252 seconds]
[06:55:57] -!- dan2k3k4 [dan2k3k4!~dan2k3k4@unaffiliated/dan2k3k4] has joined #leaflet
[07:03:55] -!- dybskiy [dybskiy!~dybskiy@c-98-207-93-218.hsd1.ca.comcast.net] has joined #leaflet
[07:04:51] -!- larryone has quit [Ping timeout: 252 seconds]
[07:08:31] -!- dybskiy has quit [Ping timeout: 252 seconds]
[07:18:57] -!- dybskiy [dybskiy!~dybskiy@c-98-207-93-218.hsd1.ca.comcast.net] has joined #leaflet
[07:21:20] -!- anth0ny [anth0ny!~anth0ny@unaffiliated/anth0ny] has joined #leaflet
[07:23:18] -!- dybskiy has quit [Ping timeout: 240 seconds]
[07:26:00] -!- anth0ny has quit [Ping timeout: 260 seconds]
[07:33:58] -!- dybskiy [dybskiy!~dybskiy@c-98-207-93-218.hsd1.ca.comcast.net] has joined #leaflet
[07:34:28] -!- mle [mle!~mle@mir31-1-82-224-13-158.fbx.proxad.net] has joined #leaflet
[07:38:36] -!- dybskiy has quit [Ping timeout: 260 seconds]
[07:44:39] -!- terabyte- has quit [Quit: terabyte-]
[07:48:54] -!- dybskiy [dybskiy!~dybskiy@c-98-207-93-218.hsd1.ca.comcast.net] has joined #leaflet
[07:50:01] -!- md-2 [md-2!~md-2@host86-143-201-145.range86-143.btcentralplus.com] has joined #leaflet
[07:53:18] -!- dybskiy has quit [Ping timeout: 240 seconds]
[07:55:46] -!- dybskiy [dybskiy!~dybskiy@c-98-207-93-218.hsd1.ca.comcast.net] has joined #leaflet
[07:59:58] -!- dybskiy has quit [Ping timeout: 240 seconds]
[08:04:12] -!- dybskiy [dybskiy!~dybskiy@c-98-207-93-218.hsd1.ca.comcast.net] has joined #leaflet
[08:07:52] -!- mhaberler has quit [Quit: mhaberler]
[08:09:21] -!- Tecan has quit [Quit: Live Long And Phosphor!]
[08:33:31] -!- quiqua [quiqua!~quiqua@port-212-202-227-184.static.qsc.de] has joined #leaflet
[08:34:09] -!- Thetawaves has quit [Quit: This computer has gone to sleep]
[08:34:20] -!- archivist_herron has quit [Ping timeout: 260 seconds]
[08:34:54] -!- micrypt [micrypt!~micrypt@oftn/member/micrypt] has joined #leaflet
[08:35:17] <micrypt> Hi, folks. Is there a way to show a preloader while loading a somewhat large dataset?
[08:36:01] -!- larryone [larryone!~larryone@185.32.152.150] has joined #leaflet
[08:40:57] <liedman> micrypt: nothing builtin, but you can do whatever you want with normal html
[08:41:28] <liedman> micrypt: there are also at least one plugin: https://github.com/makinacorpus/Leaflet.Spin
[08:43:52] <micrypt> liedman: I'll check that out. Many thanks. :)
[08:56:54] -!- dybskiy has quit [Remote host closed the connection]
[09:00:44] -!- grummund has quit [Ping timeout: 260 seconds]
[09:02:07] -!- syyl has quit [Ping timeout: 265 seconds]
[09:26:36] -!- witnit has quit [Ping timeout: 260 seconds]
[09:27:25] -!- anth0ny [anth0ny!~anth0ny@unaffiliated/anth0ny] has joined #leaflet
[09:32:37] -!- anth0ny has quit [Ping timeout: 276 seconds]
[09:49:31] -!- syyl_ws has quit [Quit: Verlassend]
[09:49:40] -!- dybskiy [dybskiy!~dybskiy@c-98-207-93-218.hsd1.ca.comcast.net] has joined #leaflet
[09:51:25] -!- dybskiy_ [dybskiy_!~dybskiy@c-98-207-93-218.hsd1.ca.comcast.net] has joined #leaflet
[09:54:19] -!- dybskiy has quit [Ping timeout: 265 seconds]
[09:56:15] -!- dybskiy_ has quit [Ping timeout: 265 seconds]
[09:58:33] amnesic is now known as amnesic_away
[09:59:02] -!- Deejay has quit [Quit: bbl]
[10:35:40] -!- skunkworks_ has quit [Ping timeout: 276 seconds]
[10:40:37] -!- skorasaurus has quit [Ping timeout: 245 seconds]
[10:43:32] -!- larryone1 [larryone1!~larryone@185.32.152.150] has joined #leaflet
[10:46:02] -!- larryone has quit [Ping timeout: 265 seconds]
[10:46:43] -!- tronwizard has quit [Ping timeout: 276 seconds]
[10:49:45] -!- dybskiy [dybskiy!~dybskiy@c-98-207-93-218.hsd1.ca.comcast.net] has joined #leaflet
[10:53:58] -!- dybskiy has quit [Ping timeout: 240 seconds]
[11:05:45] -!- wemaflo has quit [Ping timeout: 252 seconds]
[11:06:29] -!- WyrM has quit [Ping timeout: 252 seconds]
[11:10:46] -!- archivist_herron has quit [Ping timeout: 276 seconds]
[11:16:01] -!- balestrino has quit [Ping timeout: 252 seconds]
[11:27:17] -!- Valen has quit [Quit: Leaving.]
[11:44:58] -!- skunkworks has quit [Ping timeout: 240 seconds]
[11:49:37] -!- dybskiy [dybskiy!~dybskiy@c-98-207-93-218.hsd1.ca.comcast.net] has joined #leaflet
[11:53:44] -!- anth0ny [anth0ny!~anth0ny@unaffiliated/anth0ny] has joined #leaflet
[11:54:20] -!- dybskiy has quit [Ping timeout: 260 seconds]
[11:55:14] -!- spatialbrew [spatialbrew!~spatialbr@173-21-66-192.client.mchsi.com] has joined #leaflet
[11:58:11] -!- anth0ny has quit [Ping timeout: 252 seconds]
[12:00:19] -!- jerryitt [jerryitt!uid17132@gateway/web/irccloud.com/x-btjindiqztqdpokh] has joined #leaflet
[12:00:44] amnesic_away is now known as amnesic
[12:15:01] -!- acdha [acdha!~acdha@shell.improbable.org] has joined #leaflet
[12:26:50] ries_ is now known as ries
[12:30:37] -!- syyl has quit [Ping timeout: 245 seconds]
[12:33:45] -!- grummund has quit [Ping timeout: 252 seconds]
[12:36:40] -!- terabyte- has quit [Client Quit]
[12:49:35] -!- dybskiy [dybskiy!~dybskiy@c-98-207-93-218.hsd1.ca.comcast.net] has joined #leaflet
[12:50:02] -!- acdha has quit [Quit: Textual IRC Client: www.textualapp.com]
[12:51:23] -!- dybskiy_ [dybskiy_!~dybskiy@c-98-207-93-218.hsd1.ca.comcast.net] has joined #leaflet
[12:54:36] -!- dybskiy has quit [Ping timeout: 265 seconds]
[12:56:02] -!- dybskiy_ has quit [Ping timeout: 245 seconds]
[13:01:33] -!- acdha [acdha!~acdha@shell.improbable.org] has joined #leaflet
[13:04:24] -!- FinboySlick has quit [Client Quit]
[13:05:11] -!- ravenlock has quit [Quit: Leaving]
[13:36:52] -!- thomaslindstr_m [thomaslindstr_m!~thomaslin@ti0043a400-2479.bb.online.no] has joined #leaflet
[13:49:36] -!- dybskiy [dybskiy!~dybskiy@c-98-207-93-218.hsd1.ca.comcast.net] has joined #leaflet
[13:54:03] -!- dybskiy has quit [Ping timeout: 252 seconds]
[13:59:50] -!- karavanjo [karavanjo!~kvirc@178.124.108.12] has joined #leaflet
[14:14:23] -!- skorasaurus [skorasaurus!~skors@70.239.10.196] has joined #leaflet
[14:15:44] -!- anth0ny [anth0ny!~anth0ny@unaffiliated/anth0ny] has joined #leaflet
[14:21:56] -!- skorasaurus2 [skorasaurus2!~skors@adsl-70-239-10-196.dsl.bcvloh.sbcglobal.net] has joined #leaflet
[14:23:52] -!- pcw_home has quit [Quit: ChatZilla 0.9.90.1 [Firefox 26.0/20131206152524]]
[14:25:28] -!- skorasaurus has quit [Ping timeout: 265 seconds]
[14:29:13] -!- sudobangbang [sudobangbang!~chatzilla@75-151-97-182-Washington.hfc.comcastbusiness.net] has joined #leaflet
[14:32:55] -!- tumdedum has quit [Ping timeout: 252 seconds]
[14:36:44] -!- skorasaurus2 has quit [Remote host closed the connection]
[14:37:08] -!- skorasaurus2 [skorasaurus2!~skors@70.239.10.196] has joined #leaflet
[14:42:28] -!- Tecan has quit [Changing host]
[14:42:35] -!- mhaberler has quit [Quit: mhaberler]
[14:44:35] -!- skors [skors!~skors@adsl-70-239-10-196.dsl.bcvloh.sbcglobal.net] has joined #leaflet
[14:44:39] -!- patrickarlt [patrickarlt!~patrickar@12.180.47.153] has joined #leaflet
[14:47:13] -!- skorasaurus2 has quit [Ping timeout: 252 seconds]
[14:49:33] -!- dybskiy [dybskiy!~dybskiy@c-98-207-93-218.hsd1.ca.comcast.net] has joined #leaflet
[14:49:44] larryone1 is now known as larryone
[14:51:19] asheppard is now known as sheppard
[14:54:12] -!- dybskiy has quit [Ping timeout: 260 seconds]
[14:55:29] -!- skorasaurus [skorasaurus!~skors@adsl-70-239-10-196.dsl.bcvloh.sbcglobal.net] has joined #leaflet
[14:56:27] -!- skunkworks_ has quit [Ping timeout: 245 seconds]
[14:56:38] -!- skunkworks has quit [Ping timeout: 240 seconds]
[14:57:40] -!- narogon has quit [Ping timeout: 246 seconds]
[14:58:32] -!- skors has quit [Ping timeout: 245 seconds]
[14:59:11] -!- mapitpk [mapitpk!~chatzilla@146.129.24.9] has joined #leaflet
[15:00:45] -!- kwallace has quit [Ping timeout: 265 seconds]
[15:06:17] -!- dzzig_nz_ has quit [Ping timeout: 252 seconds]
[15:06:37] -!- denelius [denelius!~chatzilla@38.104.188.130] has joined #leaflet
[15:09:16] -!- skorasaurus2 [skorasaurus2!~skors@adsl-70-239-10-196.dsl.bcvloh.sbcglobal.net] has joined #leaflet
[15:09:27] -!- skorasaurus has quit [Remote host closed the connection]
[15:11:52] -!- mle has quit [Ping timeout: 265 seconds]
[15:15:50] -!- anth0ny has quit [Quit: anth0ny]
[15:16:16] -!- anth0ny [anth0ny!~anth0ny@unaffiliated/anth0ny] has joined #leaflet
[15:17:45] -!- skorasaurus2 has quit [Remote host closed the connection]
[15:18:01] -!- skorasaurus2 [skorasaurus2!~skors@adsl-70-239-10-196.dsl.bcvloh.sbcglobal.net] has joined #leaflet
[15:19:10] -!- anth0ny has quit [Client Quit]
[15:23:31] -!- george2 has quit [Quit: No Ping reply in 180 seconds.]
[15:23:58] -!- george2 [george2!~42@unaffiliated/george2] has joined #leaflet
[15:25:38] -!- skorasaurus2 has quit [Remote host closed the connection]
[15:25:54] -!- skorasaurus2 [skorasaurus2!~skors@adsl-70-239-10-196.dsl.bcvloh.sbcglobal.net] has joined #leaflet
[15:26:56] -!- quiqua has quit [Quit: quiqua]
[15:32:38] -!- skorasaurus2 has quit [Remote host closed the connection]
[15:33:03] -!- skorasaurus2 [skorasaurus2!~skors@adsl-70-239-10-196.dsl.bcvloh.sbcglobal.net] has joined #leaflet
[15:39:52] -!- amiri [amiri!~amiri@cpe-76-95-109-253.socal.res.rr.com] has joined #leaflet
[15:40:14] -!- skorasaurus2 has quit [Remote host closed the connection]
[15:40:33] -!- skorasaurus2 [skorasaurus2!~skors@adsl-70-239-10-196.dsl.bcvloh.sbcglobal.net] has joined #leaflet
[15:41:20] -!- dan2k3k4 has quit [Ping timeout: 260 seconds]
[15:43:00] -!- amiri_ has quit [Ping timeout: 260 seconds]
[15:45:48] -!- zzolo [zzolo!~zzolo@c-75-72-166-46.hsd1.mn.comcast.net] has joined #leaflet
[15:48:35] -!- larryone has quit [Quit: This computer has gone to sleep]
[15:49:35] -!- dybskiy [dybskiy!~dybskiy@c-98-207-93-218.hsd1.ca.comcast.net] has joined #leaflet
[15:52:54] -!- skorasaurus2 has quit [Remote host closed the connection]
[15:53:01] -!- larryone [larryone!~larryone@185.32.152.150] has joined #leaflet
[15:53:11] -!- skorasaurus2 [skorasaurus2!~skors@70.239.10.196] has joined #leaflet
[15:54:19] -!- dybskiy has quit [Ping timeout: 252 seconds]
[16:00:25] -!- skors [skors!~skors@adsl-70-239-10-196.dsl.bcvloh.sbcglobal.net] has joined #leaflet
[16:00:56] -!- jerryitt has quit [Quit: Connection closed for inactivity]
[16:03:07] -!- skorasaurus2 has quit [Ping timeout: 252 seconds]
[16:06:27] -!- skorasaurus [skorasaurus!~skors@70.239.10.196] has joined #leaflet
[16:08:57] -!- skors has quit [Ping timeout: 245 seconds]
[16:11:21] -!- skorasaurus2 [skorasaurus2!~skors@adsl-70-239-10-196.dsl.bcvloh.sbcglobal.net] has joined #leaflet
[16:14:29] -!- skorasaurus has quit [Ping timeout: 252 seconds]
[16:18:14] -!- skorasaurus2 has quit [Remote host closed the connection]
[16:18:31] -!- skorasaurus2 [skorasaurus2!~skors@adsl-70-239-10-196.dsl.bcvloh.sbcglobal.net] has joined #leaflet
[16:21:52] -!- jerryitt [jerryitt!uid17132@gateway/web/irccloud.com/x-zsjcekwrqygctiuo] has joined #leaflet
[16:23:01] amnesic is now known as amnesic_away
[16:26:32] -!- skors [skors!~skors@70.239.10.196] has joined #leaflet
[16:26:38] -!- spatialbrew has quit [Ping timeout: 240 seconds]
[16:26:44] -!- skorasaurus2 has quit [Remote host closed the connection]
[16:27:53] <denelius> I am looking for a way to temporarily override a polygon click event listener while a tool is active. For example i have a map click tool that returns lat lon but I am unable to click on the map area covered by the polygon because the polygon click listener is called. I have tried to turn the listener off but it appears that I have only turned the function off and the polygon listener is...
[16:27:55] <denelius> ...preventing the map click from firing
[16:32:40] <patrickarlt> denelius: couldn't you just check if the tool is active when the polygon gets clicked? https://gist.github.com/patrickarlt/83a6edd66273b10551c4
[16:32:59] -!- GJdan [GJdan!~dan@d154-20-234-134.bchsia.telus.net] has joined #leaflet
[16:33:31] -!- skors has quit [Remote host closed the connection]
[16:33:43] <patrickarlt> your problem is the SVG element will still receive the click event in the browser even if there are no listeners.
[16:33:57] -!- skors [skors!~skors@70.239.10.196] has joined #leaflet
[16:42:20] <patrickarlt> the other option would be to set pointer event to none when your tool is active like "map.getPanes().overlayPane.style.pointerEvents = 'none';" which disables click events for everything in the overlay pane
[16:42:35] <denelius> patrickarlt: you are correct, in D3 there is a style setting .style("pointer-events", "none") that allows for events on a particular feature to be ignored
[16:43:07] -!- Komzpa has quit [Ping timeout: 245 seconds]
[16:43:28] <patrickarlt> pointer event support sucks though http://caniuse.com/#feat=pointer-events
[16:43:53] -!- skorasaurus [skorasaurus!~skors@adsl-70-239-10-196.dsl.bcvloh.sbcglobal.net] has joined #leaflet
[16:45:03] <patrickarlt> browser support wise its probably easier to structure it like my gist above and check if the tool is active in the click handler on the polygon
[16:46:07] -!- larryone has quit [Ping timeout: 265 seconds]
[16:46:23] -!- skors has quit [Ping timeout: 252 seconds]
[16:47:15] <denelius> patrickarlt: so as you said I can check if tool is active but this is a bit of a hack because i then have to re-direct polygon click handler to do the same thing as my original click handler but its actually handled separately?
[16:49:21] -!- miss0r has quit []
[16:49:31] <patrickarlt> you could also just change line 14 to alert(e.latlng); if manually firing the click event feels dirty to you, its not using any private methods and 'e' is already a MouseEvent (since it came from a click handler) so i think you should be fine
[16:49:36] -!- dybskiy [dybskiy!~dybskiy@c-98-207-93-218.hsd1.ca.comcast.net] has joined #leaflet
[16:49:52] -!- thomaslindstr_m has quit [Quit: Leaving...]
[16:49:54] <patrickarlt> personally i dont think its a hack
[16:50:20] -!- zzolo has quit [Quit: zzolo]
[16:53:52] <denelius> patrickarlt: thank you. - the lat lon alert i can redirect that way but how about the measure tool? as long as a polygon is on the map i cannot use the measure tool click inside it, this is a little harder to redirect
[16:53:58] -!- skorasaurus2 [skorasaurus2!~skors@adsl-70-239-10-196.dsl.bcvloh.sbcglobal.net] has joined #leaflet
[16:54:02] -!- skorasaurus has quit [Remote host closed the connection]
[16:54:05] -!- dybskiy has quit [Ping timeout: 252 seconds]
[16:55:38] -!- zlog has quit [Ping timeout: 240 seconds]
[16:55:41] <patrickarlt> i dont see how the same technique couldn't be used for that as well, your measure tool just listens for clicks on the map too. this way the map still gets the click events it wants unless some other thing is active
[16:57:13] -!- Tom_itx has quit [Ping timeout: 276 seconds]
[16:58:39] <denelius> patrickarlt: thanks - I will try your advice and see what I can come up with
[17:01:00] -!- skorasaurus2 has quit [Remote host closed the connection]
[17:01:22] -!- skorasaurus2 [skorasaurus2!~skors@adsl-70-239-10-196.dsl.bcvloh.sbcglobal.net] has joined #leaflet
[17:02:09] -!- aniM [aniM!~aniM@cpe-71-67-103-164.cinci.res.rr.com] has joined #leaflet
[17:11:24] -!- skorasaurus2 has quit [Remote host closed the connection]
[17:11:53] -!- skorasaurus2 [skorasaurus2!~skors@adsl-70-239-10-196.dsl.bcvloh.sbcglobal.net] has joined #leaflet
[17:14:58] -!- zeeshan-laptop has quit [Ping timeout: 240 seconds]
[17:21:33] -!- md-2 has quit [Quit: Leaving...]
[17:22:31] -!- skorasaurus2 has quit [Remote host closed the connection]
[17:23:01] -!- skorasaurus2 [skorasaurus2!~skors@adsl-70-239-10-196.dsl.bcvloh.sbcglobal.net] has joined #leaflet
[17:23:25] -!- bertrik has quit [Ping timeout: 252 seconds]
[17:26:59] -!- Tom_L has quit [Client Quit]
[17:32:33] -!- skorasaurus2 has quit [Remote host closed the connection]
[17:32:47] -!- skorasaurus2 [skorasaurus2!~skors@adsl-70-239-10-196.dsl.bcvloh.sbcglobal.net] has joined #leaflet
[17:32:52] -!- dybskiy [dybskiy!~dybskiy@c-98-207-93-218.hsd1.ca.comcast.net] has joined #leaflet
[17:33:18] -!- balestrino has quit [Ping timeout: 240 seconds]
[17:34:15] -!- chillly [chillly!~chris@static-87-102-95-199.karoo.kcom.com] has joined #leaflet
[17:38:52] -!- dan2k3k4 [dan2k3k4!~dan2k3k4@unaffiliated/dan2k3k4] has joined #leaflet
[17:38:59] -!- skorasaurus2 has quit [Remote host closed the connection]
[17:39:30] -!- skorasaurus2 [skorasaurus2!~skors@70.239.10.196] has joined #leaflet
[17:42:55] -!- anth0ny [anth0ny!~anth0ny@unaffiliated/anth0ny] has joined #leaflet
[17:45:50] -!- Loetmichel has quit [Disconnected by services]
[17:45:51] Cylly is now known as Loetmichel
[17:46:56] -!- aniM has quit [Remote host closed the connection]
[17:49:49] -!- chillly has quit [Ping timeout: 252 seconds]
[17:50:34] -!- chillly [chillly!~chris@static-87-102-95-199.karoo.kcom.com] has joined #leaflet
[17:51:05] -!- skors [skors!~skors@adsl-70-239-10-196.dsl.bcvloh.sbcglobal.net] has joined #leaflet
[17:52:30] -!- dan2k3k4 has quit [Quit: Leaving]
[17:54:13] -!- skorasaurus2 has quit [Ping timeout: 252 seconds]
[18:01:02] -!- skorasaurus [skorasaurus!~skors@adsl-70-239-10-196.dsl.bcvloh.sbcglobal.net] has joined #leaflet
[18:01:12] -!- skors has quit [Remote host closed the connection]
[18:01:27] -!- likevinyl has quit [Changing host]
[18:03:53] -!- zzolo [zzolo!~zzolo@c-75-72-166-46.hsd1.mn.comcast.net] has joined #leaflet
[18:07:28] -!- skorasaurus has quit [Remote host closed the connection]
[18:08:31] -!- skorasaurus [skorasaurus!~skors@adsl-70-239-10-196.dsl.bcvloh.sbcglobal.net] has joined #leaflet
[18:09:38] -!- chillly has quit [Ping timeout: 240 seconds]
[18:11:56] -!- chillly [chillly!~chris@static-87-102-95-199.karoo.kcom.com] has joined #leaflet
[18:12:50] -!- IchGuckLive has quit [Quit: ChatZilla 0.9.87 [Firefox 20.0/20130329043827]]
[18:15:48] -!- patricka_ [patricka_!~patrickar@12.180.47.153] has joined #leaflet
[18:18:44] -!- skorasaurus2 [skorasaurus2!~skors@adsl-70-239-10-196.dsl.bcvloh.sbcglobal.net] has joined #leaflet
[18:18:57] -!- patrickarlt has quit [Ping timeout: 245 seconds]
[18:21:52] -!- skorasaurus has quit [Ping timeout: 245 seconds]
[18:23:19] -!- zzolo has quit [Quit: zzolo]
[18:26:43] -!- skors [skors!~skors@adsl-70-239-10-196.dsl.bcvloh.sbcglobal.net] has joined #leaflet
[18:30:04] -!- skorasaurus2 has quit [Ping timeout: 260 seconds]
[18:31:34] -!- skorasaurus [skorasaurus!~skors@70.239.10.196] has joined #leaflet
[18:34:47] -!- skors has quit [Ping timeout: 245 seconds]
[18:40:38] -!- skorasaurus has quit [Remote host closed the connection]
[18:41:02] -!- skorasaurus [skorasaurus!~skors@adsl-70-239-10-196.dsl.bcvloh.sbcglobal.net] has joined #leaflet
[18:45:38] -!- Komzpa [Komzpa!~kom@86.57.185.101] has joined #leaflet
[18:52:42] -!- skorasaurus has quit [Ping timeout: 245 seconds]
[18:53:34] -!- karavanjo has quit [Remote host closed the connection]
[19:00:56] -!- jerryitt has quit [Quit: Connection closed for inactivity]
[19:06:38] -!- syyl has quit [Ping timeout: 240 seconds]
[19:08:39] -!- FrankZappa has quit []
[19:10:43] _BJFreeman is now known as BJfreeman
[19:11:45] -!- jbr_ [jbr_!~chatzilla@c-75-69-128-208.hsd1.nh.comcast.net] has joined #leaflet
[19:18:49] -!- BJfreeman has quit [Quit: had a good time]
[19:20:01] -!- _methods has quit [Quit: leaving]
[19:22:40] -!- kfoltman has quit [Quit: Ex-Chat]
[19:25:13] amnesic_away is now known as amnesic
[19:32:14] -!- larryone [larryone!~larryone@89.100.23.131] has joined #leaflet
[19:33:04] -!- micges has quit [Ping timeout: 260 seconds]
[19:36:19] -!- almccon [almccon!~textual@cpe-76-168-3-3.socal.res.rr.com] has joined #leaflet
[19:41:11] -!- almccon_ [almccon_!~textual@cpe-76-168-3-3.socal.res.rr.com] has joined #leaflet
[19:42:09] -!- ravenlock has quit [Quit: Leaving]
[19:43:32] -!- almccon has quit [Ping timeout: 260 seconds]
[19:47:44] -!- gonzo_ has quit [Ping timeout: 260 seconds]
[19:49:35] -!- MacGalempsy_ has quit [Remote host closed the connection]
[19:50:01] -!- jerryitt [jerryitt!uid17132@gateway/web/irccloud.com/x-lsnwomtvudyyaghc] has joined #leaflet
[19:50:10] -!- zeeshan-laptop has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
[19:56:37] -!- gonzo__ has quit [Ping timeout: 276 seconds]
[19:59:06] -!- skunkworks has quit [Read error: Connection reset by peer]
[20:00:12] -!- skunkworks_ has quit [Ping timeout: 245 seconds]
[20:04:20] -!- modulo has quit [Client Quit]
[20:06:03] amnesic is now known as amnesic_away
[20:17:18] -!- Deejay has quit [Ping timeout: 240 seconds]
[20:20:21] -!- patricka_ has quit [Quit: Leaving...]
[20:23:36] -!- patrickarlt [patrickarlt!~patrickar@12.180.47.153] has joined #leaflet
[20:33:18] -!- schimmi has quit [*.net *.split]
[20:33:20] -!- renesis has quit [*.net *.split]
[20:33:22] -!- kanzure has quit [*.net *.split]
[20:33:22] -!- jepler has quit [*.net *.split]
[20:33:23] -!- KGB-linuxcnc has quit [*.net *.split]
[20:33:24] -!- GlennS has quit [*.net *.split]
[20:33:24] -!- DaViruz has quit [*.net *.split]
[20:33:24] -!- WalterN has quit [*.net *.split]
[20:33:31] -!- schimmi [schimmi!~schimmi@limoia.com] has joined #leaflet
[20:36:17] -!- Komzpa has quit [Ping timeout: 252 seconds]
[20:36:57] -!- GlennS [GlennS!~quassel@ec2-54-211-136-77.compute-1.amazonaws.com] has joined #leaflet
[20:38:52] -!- jsskangas has quit [Ping timeout: 276 seconds]
[20:54:22] -!- syyl has quit [*.net *.split]
[20:54:22] -!- dybskiy has quit [*.net *.split]
[20:54:23] -!- tjb11 has quit [*.net *.split]
[20:54:23] -!- the_wench has quit [*.net *.split]
[20:54:24] -!- FreezingCold has quit [*.net *.split]
[20:54:24] -!- KimK has quit [*.net *.split]
[20:55:08] -!- FinboySlick has quit [Quit: Leaving.]
[21:00:49] -!- skorasaurus [skorasaurus!~skors@adsl-70-239-10-196.dsl.bcvloh.sbcglobal.net] has joined #leaflet
[21:04:51] -!- acdha has quit [Quit: Textual IRC Client: www.textualapp.com]
[21:05:11] -!- skorasaurus has quit [Remote host closed the connection]
[21:05:33] -!- skorasaurus [skorasaurus!~skors@adsl-70-239-10-196.dsl.bcvloh.sbcglobal.net] has joined #leaflet
[21:07:25] -!- chillly has quit [Quit: Leaving]
[21:09:19] -!- thomaslindstr_m [thomaslindstr_m!~thomaslin@ti0043a400-2479.bb.online.no] has joined #leaflet
[21:10:57] -!- skorasaurus2 [skorasaurus2!~skors@70.239.10.196] has joined #leaflet
[21:11:15] -!- dybskiy [dybskiy!~dybskiy@c-98-207-93-218.hsd1.ca.comcast.net] has joined #leaflet
[21:13:19] -!- micges1 has quit [Read error: Connection reset by peer]
[21:13:41] -!- skorasaurus has quit [Ping timeout: 252 seconds]
[21:13:58] -!- larryone has quit [Ping timeout: 240 seconds]
[21:20:21] -!- skors [skors!~skors@adsl-70-239-10-196.dsl.bcvloh.sbcglobal.net] has joined #leaflet
[21:22:00] -!- syyl has quit [Ping timeout: 260 seconds]
[21:23:04] -!- skorasaurus2 has quit [Ping timeout: 265 seconds]
[21:24:47] -!- fogl has quit [Ping timeout: 245 seconds]
[21:27:33] <denelius> I am using GeoJSON.AJAX to load a layer into leaflet followed by layer.addTo(map); then map.fitBounds(layer.getBounds()); layer is displayiing ok but fitBounds is not working - it does work if I attach to a function and call after layer is loaded - how do i get this to fit to bounds without getting user to click button, do i need a callback?
[21:28:16] -!- skorasaurus [skorasaurus!~skors@adsl-70-239-10-196.dsl.bcvloh.sbcglobal.net] has joined #leaflet
[21:30:38] -!- skors has quit [Ping timeout: 240 seconds]
[21:36:58] -!- skorasaurus has quit [Remote host closed the connection]
[21:37:24] -!- skorasaurus [skorasaurus!~skors@adsl-70-239-10-196.dsl.bcvloh.sbcglobal.net] has joined #leaflet
[21:39:28] -!- MrSunshine has quit [Quit: Leaving]
[21:41:10] <denelius> or in short, how do I call map.fitBounds(layer.getBounds()); immediately after a layer has been added to the map?
[21:42:42] -!- skorasaurus has quit [Ping timeout: 245 seconds]
[21:42:43] <patrickarlt> denelius: look at the bottom of https://github.com/calvinmetcalf/leaflet-ajax i think L.geoJson.ajax returns a promise
[21:45:35] -!- balestrino has quit [Ping timeout: 252 seconds]
[21:46:11] <denelius> patrickarlt: thanks, I am afraid I am not familiar with how to use that but will research
[21:51:53] -!- thomaslindstr_m has quit [Quit: Leaving...]
[21:52:07] -!- Tecan has quit [Quit: Live Long And Phosphor!]
[21:55:33] -!- larryone [larryone!~larryone@176.61.1.155] has joined #leaflet
[21:58:08] -!- Komzpa [Komzpa!~kom@86.57.189.101] has joined #leaflet
[22:10:40] -!- dybskiy has quit [Remote host closed the connection]
[22:27:54] -!- almccon_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
[22:36:34] -!- denelius has quit [Quit: ChatZilla 0.9.90.1 [Firefox 29.0.1/20140506152807]]
[22:37:52] -!- Komzpa has quit [Ping timeout: 260 seconds]
[22:47:31] -!- dybskiy [dybskiy!~dybskiy@64-21-212-196.static-ip.telepacific.net] has joined #leaflet
[22:47:55] -!- jthornton has quit [Ping timeout: 252 seconds]
[22:47:55] -!- JT-Shop has quit [Ping timeout: 252 seconds]
[22:55:17] -!- mapitpk has quit [Remote host closed the connection]
[22:58:21] -!- theorbtwo has quit [Remote host closed the connection]
[23:07:57] -!- i_tarzan has quit [Ping timeout: 265 seconds]
[23:14:18] -!- i_tarzan has quit [Ping timeout: 240 seconds]
[23:16:54] -!- bertrik has quit [Remote host closed the connection]
[23:25:51] -!- a_morale has quit [Ping timeout: 260 seconds]
[23:28:38] -!- andypugh has quit [Quit: andypugh]
[23:32:25] -!- patrickarlt has quit [Remote host closed the connection]
[23:32:48] -!- patrickarlt [patrickarlt!~patrickar@12.180.47.153] has joined #leaflet
[23:34:03] -!- almccon [almccon!~textual@w182.z208036023.sjc-ca.dsl.cnc.net] has joined #leaflet
[23:42:30] tjb11 is now known as tjb1