Back
[00:04:17] -!- Valen has quit [Ping timeout: 255 seconds]
[00:06:18] -!- Keknom has quit [Quit: Leaving.]
[00:35:19] -!- asdfasd has quit [Ping timeout: 246 seconds]
[00:43:24] -!- hdokes has quit [Ping timeout: 264 seconds]
[00:43:27] -!- andypugh has quit [Read error: Connection reset by peer]
[00:45:51] -!- rob_h has quit [Ping timeout: 276 seconds]
[00:46:17] -!- servos4ever has quit [Quit: ChatZilla 0.9.85 [SeaMonkey 2.0.11/20101206162726]]
[00:49:41] -!- zzolo [zzolo!~zzolo@c-75-72-229-64.hsd1.mn.comcast.net] has joined #leaflet
[00:53:23] -!- Nick001-Shop has quit [Remote host closed the connection]
[00:53:54] -!- zzolo has quit [Client Quit]
[00:57:22] -!- jfire has quit [Quit: Leaving.]
[01:07:28] -!- cncbasher has quit [Remote host closed the connection]
[01:27:31] -!- JT-Shop has quit [Ping timeout: 245 seconds]
[01:27:32] -!- jthornton has quit [Read error: Connection reset by peer]
[01:36:40] -!- andypugh has quit [Quit: andypugh]
[01:39:55] -!- stsy [stsy!~stsydow@p548779F9.dip.t-dialin.net] has joined #leaflet
[01:42:39] -!- stsy has quit [Client Quit]
[01:43:20] -!- stsydow has quit [Ping timeout: 244 seconds]
[01:46:22] -!- johnyoutsider has quit [Remote host closed the connection]
[01:51:59] -!- dzon has quit [Ping timeout: 260 seconds]
[02:09:04] -!- phantoxeD has quit [Read error: Connection reset by peer]
[02:41:55] -!- Wildhoney has quit [Ping timeout: 260 seconds]
[03:04:04] s1dev is now known as johann
[03:04:13] johann is now known as s1dev
[03:24:17] -!- adb has quit [Ping timeout: 252 seconds]
[03:25:50] -!- jpk has quit [Ping timeout: 260 seconds]
[03:25:54] -!- tayy_ [tayy_!~tayy@203.126.171.206] has joined #leaflet
[03:26:25] -!- mattswe has quit [Read error: Operation timed out]
[03:27:14] -!- tayy_ has quit [Remote host closed the connection]
[03:28:18] -!- beawesomeinstead has quit [Ping timeout: 264 seconds]
[03:56:20] -!- Keknom has quit [Quit: Leaving.]
[04:03:53] -!- skorasaurus has quit [Ping timeout: 245 seconds]
[04:13:17] -!- Gene34 has quit []
[04:22:28] -!- mikegg has quit [Ping timeout: 246 seconds]
[04:32:43] -!- sumpfralle has quit [Quit: Leaving.]
[04:37:59] -!- Valen has quit [Quit: Leaving.]
[04:54:10] -!- wholepair has quit [Quit: Page closed]
[05:03:43] -!- FinboySlick has quit [Quit: Leaving.]
[05:10:08] R2E4 is now known as R2E4_away
[05:19:29] -!- pikeaero has quit [Remote host closed the connection]
[05:25:25] -!- beawesomeinstead [beawesomeinstead!uid1643@gateway/web/irccloud.com/x-otrmgmpucizepmce] has joined #leaflet
[05:25:30] -!- mattswe [mattswe!uid4809@gateway/web/irccloud.com/x-rktbwggsbqidwury] has joined #leaflet
[05:38:05] -!- psha[work] [psha[work]!~psha@195.135.238.205] has joined #leaflet
[05:47:32] -!- R2E4_away has quit [Ping timeout: 252 seconds]
[05:59:47] -!- AR_ has quit [Ping timeout: 255 seconds]
[06:01:50] -!- Fox_Muldr has quit [Ping timeout: 252 seconds]
[06:24:14] -!- karavanjoW [karavanjoW!~karavanjo@178.124.148.114] has joined #leaflet
[06:41:15] -!- tjb1 has quit [Ping timeout: 260 seconds]
[06:41:15] tjb1_ is now known as tjb1
[06:47:15] -!- capricorn_1 has quit [Quit: Konversation terminated!]
[06:51:40] -!- Valen has quit [Quit: Leaving.]
[07:05:31] -!- kwallace1 has quit [Ping timeout: 256 seconds]
[07:29:01] -!- tjb1 has quit [Quit: tjb1]
[07:34:03] -!- mhaberler has quit [Quit: mhaberler]
[08:19:19] -!- Nick001 has quit []
[08:19:54] -!- ktchk has quit [Client Quit]
[08:50:10] -!- racycle has quit [Quit: racycle]
[09:05:21] -!- Adventsparky [Adventsparky!~kvirc@dw.hccl.ie] has joined #leaflet
[09:08:16] -!- Adventsparky has quit [Client Quit]
[09:16:36] -!- emel has quit [Excess Flood]
[09:16:57] -!- emel [emel!~emel@sd-22438.dedibox.fr] has joined #leaflet
[09:21:22] -!- Wildhoney [Wildhoney!Wildhoney@cpc1-stap3-0-0-cust930.12-2.cable.virginmedia.com] has joined #leaflet
[09:27:20] -!- andypugh has quit [Quit: andypugh]
[09:28:01] -!- Wildhoney has quit []
[09:28:46] -!- mackerski [mackerski!~dermot@193.120.146.234] has joined #leaflet
[09:33:05] -!- Wildhoney [Wildhoney!Wildhoney@cpc1-stap3-0-0-cust930.12-2.cable.virginmedia.com] has joined #leaflet
[09:40:50] -!- b_b [b_b!ejabberd@81.18.178.14] has joined #leaflet
[09:41:04] -!- b_b has quit [Changing host]
[09:41:04] -!- b_b [b_b!ejabberd@unaffiliated/b-b/x-7659960] has joined #leaflet
[10:35:32] -!- Simooon has quit [Remote host closed the connection]
[10:40:36] -!- jpk [jpk!~jpk@unaffiliated/vorondil] has joined #leaflet
[10:44:43] -!- Wildhoney has quit []
[11:19:56] jthornton_ is now known as jthornton
[11:21:44] -!- skunkworks has quit [Remote host closed the connection]
[11:38:45] -!- mephux has quit [Ping timeout: 260 seconds]
[12:00:44] -!- Brandonian [Brandonian!~bmorrison@c-71-229-70-68.hsd1.in.comcast.net] has joined #leaflet
[12:22:47] -!- dhoovie has quit [Read error: Connection reset by peer]
[12:29:02] -!- holst has quit [Ping timeout: 255 seconds]
[12:36:08] -!- dway [dway!~dway@gas45-2-82-239-0-32.fbx.proxad.net] has joined #leaflet
[12:39:10] -!- Valen has quit [Quit: Leaving.]
[12:53:31] -!- ciluu has quit [Quit: leaving]
[12:57:54] -!- Brandonian has quit [Quit: Brandonian]
[12:59:54] -!- dway has quit [Quit: NOOOOOOooooooooo……]
[13:00:22] -!- dway [dway!~dway@gas45-2-82-239-0-32.fbx.proxad.net] has joined #leaflet
[13:14:52] -!- skorasaurus [skorasaurus!~blahblahb@65.185.64.11] has joined #leaflet
[13:27:06] -!- pjm has quit [Ping timeout: 264 seconds]
[13:54:56] -!- Valen has quit [Quit: Leaving.]
[13:58:28] -!- Guest60953 [Guest60953!~mephux@li246-165.members.linode.com] has joined #leaflet
[14:03:58] Guest60953 is now known as mephux_
[14:04:11] -!- mephux_ has quit [Changing host]
[14:04:11] -!- mephux_ [mephux_!~mephux@unaffiliated/mephux] has joined #leaflet
[14:05:29] -!- psha[work] has quit [Quit: Lost terminal]
[14:17:37] -!- mackerski_ [mackerski_!~dermot@193.120.146.234] has joined #leaflet
[14:21:12] -!- mackerski has quit [Ping timeout: 264 seconds]
[14:21:12] mackerski_ is now known as mackerski
[14:46:15] R2E4 is now known as R2E4_awy
[14:53:39] -!- mackerski has quit [Remote host closed the connection]
[14:54:00] -!- mackerski [mackerski!~dermot@193.120.146.234] has joined #leaflet
[14:54:04] -!- tmcw [tmcw!~tmcw@c-98-218-228-75.hsd1.dc.comcast.net] has joined #leaflet
[15:02:10] -!- zzolo [zzolo!~zzolo@c-75-72-229-64.hsd1.mn.comcast.net] has joined #leaflet
[15:06:32] -!- AR_ has quit [Ping timeout: 255 seconds]
[15:16:06] -!- Wildhoney [Wildhoney!~Wildhoney@cpc1-stap3-0-0-cust930.12-2.cable.virginmedia.com] has joined #leaflet
[15:39:38] -!- holst has quit [Ping timeout: 256 seconds]
[15:47:39] -!- guift has quit [Quit: Page closed]
[15:49:50] -!- adb has quit [Ping timeout: 256 seconds]
[16:07:41] -!- Spida has quit [Ping timeout: 252 seconds]
[16:13:04] -!- zzolo has quit [Quit: zzolo]
[16:14:54] -!- hashfail_ has quit [Read error: Connection reset by peer]
[16:15:59] -!- mazafaka has quit [Ping timeout: 244 seconds]
[16:29:25] -!- Tecan has quit [Quit: Ex-Chat]
[16:31:52] -!- mephux_ has quit [Excess Flood]
[16:33:29] -!- mephux [mephux!~mephux@unaffiliated/mephux] has joined #leaflet
[16:34:44] -!- zzolo [zzolo!~zzolo@mail.minnpost.com] has joined #leaflet
[16:34:51] -!- Tecan has quit [Changing host]
[16:43:50] -!- racycle [racycle!~racycle@75-25-129-128.lightspeed.sjcpca.sbcglobal.net] has joined #leaflet
[16:54:52] -!- zzolo has quit [Ping timeout: 252 seconds]
[16:58:23] R2E4_awy is now known as R2E4
[17:03:02] JT-Shop-2 is now known as JT-Shop
[17:11:10] -!- zzolo [zzolo!~zzolo@mail.minnpost.com] has joined #leaflet
[17:16:23] -!- frysteev has quit [Ping timeout: 245 seconds]
[17:16:57] R2E4 is now known as R2E4_LUNCH
[17:20:39] -!- wboykinm [wboykinm!~quassel@2620:104:e001:3020:aed4:a6e6:7380:de22] has joined #leaflet
[17:22:37] -!- bradsimantel [bradsimantel!~simantel@c-76-115-129-49.hsd1.or.comcast.net] has joined #leaflet
[17:23:08] -!- wboykinm has quit [Remote host closed the connection]
[17:29:27] R2E4_LUNCH is now known as R2E4
[17:40:32] -!- putnik [putnik!~putnik@wikimedia/putnik] has joined #leaflet
[17:54:20] -!- dway has quit [Quit: NOOOOOOooooooooo……]
[17:54:29] -!- sumpfralle has quit [Ping timeout: 255 seconds]
[17:55:02] -!- Brandonian [Brandonian!~bmorrison@c-71-229-70-68.hsd1.in.comcast.net] has joined #leaflet
[18:04:44] -!- AR_ has quit [Ping timeout: 256 seconds]
[18:08:47] -!- jpk has quit [Ping timeout: 245 seconds]
[18:10:56] -!- loomie [loomie!~loomie@b0ff55f4.bb.sky.com] has joined #leaflet
[18:11:00] <loomie> Hello
[18:11:38] <loomie> I would need some help regarding Leaflet and the use of JSON (not GeoJSON) and displaying the map. Anyone up for a qry?
[18:12:26] <ybon> loomie: just ask, don't ask to ask ;)
[18:12:59] <loomie> Sorry, didn't want to spam the main channel. :b
[18:13:24] <tmcw> loomie: what's up
[18:14:45] <loomie> Well, i got my index page, where I load the map in a init() function which gets loaded by body onload. Now I have also an input field. When I type a city in there and submit the form it gets coordinates via ajax and json. this works fine, also the alert gives me the correct coordinates. But anything map related done in this function doesn't work. I wanted to set the view to these coordinates
[18:14:45] <loomie> but it just keeps at the same spot. I also tried just for testing to change the layerOSM when this function gets called, but nothing happens. Everything NON-map related works in that function, the coordinates are correct, too. But when I want to change something on the map it doesn't work.
[18:16:16] <ybon> are you able to make a jsfiddle with your code?
[18:16:23] <loomie> Yes sure, give me a second
[18:16:45] <b_b> this sounds like a closure problem...
[18:17:12] <ybon> hey, b_b, you're there, it's been a while :)
[18:17:15] <b_b> (hi ybon and tmcw )
[18:17:21] <loomie> http://jsfiddle.net/tQapU/
[18:17:23] <loomie> here you go
[18:17:33] <b_b> yes ybon :) i've been in south america for two months ;)
[18:17:59] <tmcw> loomie: map.setView(response[0].lat, response[0], 13);
[18:18:19] <tmcw> this seems wrong, should be more like map.setView(response[0], response[0], 13);
[18:18:26] <ybon> b_b: wow, nice :)
[18:18:27] <tmcw> or, well, no that's not merged yet, so
[18:18:46] <tmcw> map.setView([response[0].lat, response[0].lon], response[0], 13);
[18:19:36] <loomie> Well, it gives me the right coordinates, but the map view still doeosn't change
[18:20:53] <loomie> alert(region+response[0].lat+response[0].lon); gives me NY and 40.75 and -74
[18:21:41] <b_b> i only got a js error loomie
[18:21:42] <b_b> no map
[18:22:13] <loomie> Wait, I upload the complete document instead of just the parts where I'm doing sth
[18:22:39] <b_b> but the problem seems simple
[18:23:00] <b_b> you try to play with map var but this one is not available in changeView()
[18:23:41] <b_b> if you define map outside of init you can play with it in changeview()
[18:23:55] -!- Loetmichel has quit [Disconnected by services]
[18:23:57] Cylly is now known as Loetmichel
[18:26:00] <loomie> http://jsfiddle.net/JXMNK/ Here is now the complete. But somehow it doesn't show a map there
[18:26:29] <loomie> Well b_b but when I define it outside of the init() it doesn't load when I call this page
[18:26:49] <loomie> I tried to define var map; outside and then map = new L.Map ("map1"); inside, but this doesn't solve the problem either.
[18:26:57] <b_b> still got this error loomie
[18:27:01] <b_b> ReferenceError: init is not defined
[18:27:01] <b_b> http://fiddle.jshell.net/JXMNK/show//event/seq/2/onload
[18:27:01] <b_b> Line 2
[18:28:02] <loomie> Your link gives me a Error 404
[18:28:21] <loomie> But that doesn't make sense, since i have the function in the js. And on my local server I don't have such a problem
[18:28:22] <loomie> Hmmm
[18:28:53] <b_b> try this way loomie
http://jsfiddle.net/JXMNK/3/
[18:29:21] <loomie> Ye, that's what I already tried, but it didn't change the result
[18:31:28] <loomie> What is also strange is that when I type the City in and press enter the map reloads, but it doesn't give me any alerts. But when I press the Button it gives me the alerts but doesn't reload
[18:32:39] <ybon> loomie: sounds like the jsfiddle is not operationnal as is, you may add you event listener programmatically maybe
[18:33:47] -!- JesusAlos has quit [Remote host closed the connection]
[18:33:48] <loomie> Well, I entered all files and linked the script sources etc. What do you mean by adding event listener programmatically?
[18:34:29] <ybon> something like el.addEventListener('click', fn)
[18:35:03] -!- gasbakid_ [gasbakid_!~gasbakid@41.96.59.28] has joined #leaflet
[18:35:53] <loomie> Hmm
[18:36:50] <ybon> tmcw, you geo-js ninja, while you are around: do you have an opinion on this (annoying) date-line issue and solving proposal:
https://github.com/Leaflet/Leaflet/pull/1293 ?
[18:38:08] <tmcw> oh man, I don't go near the dateline
[18:38:16] <ybon> :)
[18:39:08] <loomie> It seems like I have some general problems
[18:39:21] <loomie> I just tried out the simple onMapClick function and even this function doesn't work
[18:39:55] <ybon> (btw for the event, you can just use the Leaflet utils, L.Event.on(element, fn, context))
[18:40:23] <loomie> For which event?
[18:40:52] <ybon> the click listener on the button
[18:41:00] <loomie> Ok, this is strange. It tells me that map hasn't been defined and therefore map.on('click', onMapClick); doesn't work.
[18:41:02] <loomie> Ah ok
[18:41:54] <ybon> "it" generally doesn't tell lies ;)
[18:42:13] <loomie> Ye, but I defined it :o
[18:42:17] <loomie> outside of any function
[18:43:04] <loomie> Now my Error console tells me that there is a problem in the leaflet.js
[18:43:08] <loomie> lololol.
[18:44:40] <loomie> Ok, this works now
[18:58:04] -!- gasbakid_ has quit [Quit: Quitte]
[18:58:17] -!- tjb1 has quit [Quit: tjb1]
[18:58:26] -!- gasbakid_ [gasbakid_!~gasbakid@41.96.59.28] has joined #leaflet
[18:58:51] -!- gasbakid__ [gasbakid__!~gasbakid@41.96.59.28] has joined #leaflet
[18:59:30] -!- gasbakid_ has quit [Read error: Connection reset by peer]
[18:59:50] -!- gasbakid__ has quit [Client Quit]
[19:00:11] -!- gasbakid_ [gasbakid_!~gasbakid@41.96.59.28] has joined #leaflet
[19:00:39] -!- gasbakid_ has quit [Read error: Connection reset by peer]
[19:01:39] -!- mackerski has quit [Quit: mackerski]
[19:02:36] -!- gasbakid_ [gasbakid_!~gasbakid@41.96.59.28] has joined #leaflet
[19:17:13] -!- loomie has quit []
[19:33:54] -!- SWPLinux has quit [Changing host]
[19:38:17] -!- Thetawaves_ has quit [Quit: This computer has gone to sleep]
[19:44:06] -!- peroht [peroht!~peroht@31.44.230.51] has joined #leaflet
[19:46:24] -!- hdokes has quit [Ping timeout: 264 seconds]
[20:03:16] -!- psha has quit [Quit: Lost terminal]
[20:04:23] -!- b_b [b_b!ejabberd@unaffiliated/b-b/x-7659960] has parted #leaflet
[20:06:50] -!- IchGuckLive has quit [Quit: ChatZilla 0.9.87 [Firefox 18.0/20130108033621]]
[20:12:09] -!- JesusAlos has quit [Quit: ChatZilla 0.9.90 [Firefox 11.0/20120310193829]]
[20:14:13] -!- R2E4 has quit [Read error: Connection reset by peer]
[20:16:29] -!- syyl_ws has quit [Quit: Verlassend]
[20:19:27] -!- bradsimantel has quit [Quit: bradsimantel]
[20:26:02] -!- norbert has quit [Quit: Verlassend]
[20:30:42] -!- tronwizard has quit [Ping timeout: 244 seconds]
[20:35:50] -!- mephux has quit [Excess Flood]
[20:36:00] -!- mephux [mephux!~mephux@unaffiliated/mephux] has joined #leaflet
[20:36:42] R2E4 is now known as R2E4_awy
[20:51:26] ta1clg is now known as ekolojik
[21:00:23] -!- gasbakid_ has quit [Read error: Connection reset by peer]
[21:02:02] -!- AR_ has quit [Ping timeout: 255 seconds]
[21:20:48] -!- skunkworks has quit [Read error: Connection reset by peer]
[21:22:26] -!- phantoxeD has quit [Read error: Connection reset by peer]
[21:28:56] -!- toner has quit [Ping timeout: 240 seconds]
[21:58:17] R2E4_away is now known as R2E4
[21:58:47] -!- R2E4 has quit [Client Quit]
[22:02:01] -!- jmkelly [jmkelly!~chatzilla@pix.midway-pl.com.au] has joined #leaflet
[22:05:05] -!- peroht has quit [Remote host closed the connection]
[22:12:47] -!- mhaberler has quit [Quit: mhaberler]
[22:18:19] -!- DJ9DJ has quit [Quit: bye]
[22:18:41] -!- holst has quit [Ping timeout: 256 seconds]
[22:22:51] -!- jacobroufa [jacobroufa!32c937e6@gateway/web/freenode/ip.50.201.55.230] has joined #leaflet
[22:23:10] <jacobroufa> hey room
[22:25:10] <jacobroufa> im trying to reorganize my code a bit and take a bunch of stuff out of my doc.ready()
[22:26:08] <jacobroufa> is there a way that i can define a map and then only run that code when an init function is called?
[22:26:16] <jacobroufa> it seems like as soon as i try to define it, it gets run
[22:26:43] <jacobroufa> and unless its scoped inside doc.ready() i get a "cannot read property _leaflet of null"
[22:33:10] -!- FinboySlick has quit [Quit: Leaving.]
[22:33:36] <tmcw> jacobroufa: er
[22:33:52] <tmcw> the nouveau technique is to just put js code at the bottom of the page
[22:33:59] <tmcw> then it will run after window.onload
[22:34:08] -!- JesusAlos has quit [Quit: ChatZilla 0.9.90 [Firefox 11.0/20120310193829]]
[22:35:06] <jacobroufa> hrm
[22:35:06] <jacobroufa> k
[22:39:43] -!- R2E4 has quit [Ping timeout: 245 seconds]
[22:47:01] -!- SWPLinux has quit [Ping timeout: 256 seconds]
[23:03:51] -!- bedah has quit [Quit: Ex-Chat]
[23:05:28] -!- vax__ has quit [Ping timeout: 256 seconds]
[23:05:44] -!- vax__ [vax__!~vax@46-236-85-246.customer.t3.se] has joined #leaflet
[23:05:53] -!- adb has quit [Remote host closed the connection]
[23:07:48] -!- toxx has quit [Ping timeout: 256 seconds]
[23:22:54] -!- cmorley has quit [Ping timeout: 264 seconds]
[23:26:01] -!- cmorley1 has quit [Ping timeout: 276 seconds]
[23:29:14] -!- zzolo has quit [Quit: zzolo]
[23:30:56] -!- johnyoutsider has quit [Ping timeout: 240 seconds]
[23:31:55] -!- jacobroufa has quit [Quit: Page closed]
[23:31:59] -!- cmorley has quit [Ping timeout: 255 seconds]
[23:34:42] -!- cmorley1 has quit [Ping timeout: 252 seconds]
[23:47:58] -!- asdfasd has quit [Ping timeout: 246 seconds]