#leaflet | Logs for 2012-07-25

Back
[00:05:37] -!- rob_h has quit [Ping timeout: 240 seconds]
[00:14:11] -!- Tom_L has quit []
[00:23:49] hans is now known as hans_r
[00:34:58] -!- draig_ has quit [Read error: Connection reset by peer]
[00:37:09] -!- andypugh has quit [Quit: andypugh]
[00:39:24] -!- hans_r has quit [Quit: Lost terminal]
[00:40:11] -!- geografa has quit [Quit: geografa]
[00:40:31] <moonlite> Just pushed some fixes to Leaflet.zoomslider (https://github.com/kartena/Leaflet.zoomslider). Please test! :)
[00:41:50] <moonlite> disclaimer: not tested at all with anything but Chrome 21, Firefox 13 and Gnome Web 3.4
[00:42:14] <moonlite> (so success reports from IE users would be much appreciated :P)
[01:13:09] -!- dimas has quit [Ping timeout: 260 seconds]
[01:20:14] -!- sendoushi has quit [Remote host closed the connection]
[01:30:42] -!- ve7it has quit [Remote host closed the connection]
[02:03:38] -!- pjm has quit [Read error: Connection reset by peer]
[02:16:34] -!- Guthur has quit [Remote host closed the connection]
[02:32:23] -!- phaedrusbjb has quit [Ping timeout: 246 seconds]
[02:32:46] -!- pjm__ has quit [Read error: Connection reset by peer]
[02:32:56] -!- draig has quit [Read error: Connection reset by peer]
[02:32:56] draig_ is now known as draig
[02:33:26] -!- phaedrusbjb_ has quit [Ping timeout: 246 seconds]
[02:34:29] -!- phaedrusbjb__ has quit [Ping timeout: 246 seconds]
[02:35:11] -!- phaedrusbjb___ has quit [Ping timeout: 246 seconds]
[02:35:27] <moonlite> apparently it just worked with IE9 (and pushed some fixes for IE7 and 8).
[02:40:46] -!- phaedrusbjb has quit [Read error: Connection reset by peer]
[02:50:15] -!- phaedrusbjb has quit [Read error: Connection reset by peer]
[02:50:37] -!- demacus_ has quit [Ping timeout: 240 seconds]
[02:54:47] -!- phaedrusbjb has quit [Ping timeout: 246 seconds]
[02:55:50] -!- phaedrusbjb_ has quit [Ping timeout: 246 seconds]
[02:57:56] -!- phaedrusbjb__ has quit [Ping timeout: 246 seconds]
[03:06:20] -!- phaedrusbjb has quit [Ping timeout: 246 seconds]
[03:11:14] -!- phaedrusbjb has quit [Ping timeout: 246 seconds]
[03:11:56] -!- phaedrusbjb_ has quit [Ping timeout: 246 seconds]
[03:14:44] -!- phaedrusbjb__ has quit [Ping timeout: 246 seconds]
[03:15:26] -!- phaedrusbjb has quit [Ping timeout: 246 seconds]
[03:16:29] -!- phaedrusbjb_ has quit [Ping timeout: 246 seconds]
[03:19:54] -!- erictheise has quit [Ping timeout: 264 seconds]
[03:22:05] -!- phaedrusbjb has quit [Ping timeout: 246 seconds]
[03:22:14] -!- karavanjo has quit [Quit: Leaving]
[03:23:08] -!- phaedrusbjb_ has quit [Ping timeout: 246 seconds]
[03:27:41] -!- phaedrusbjb has quit [Ping timeout: 246 seconds]
[03:28:44] -!- phaedrusbjb_ has quit [Ping timeout: 246 seconds]
[03:29:26] -!- phaedrusbjb__ has quit [Ping timeout: 246 seconds]
[03:47:36] -!- skunkworks__ has quit [Remote host closed the connection]
[04:00:50] -!- kb8wmc has quit [Quit: ChatZilla 0.9.88.2 [Firefox 14.0.1/20120713225625]]
[04:18:20] -!- erictheise_ [erictheise_!~erictheis@75.101.62.3] has joined #leaflet
[04:21:41] -!- draig has quit [Read error: Connection reset by peer]
[04:21:42] draig_ is now known as draig
[04:24:55] -!- sumpfralle has quit [Ping timeout: 244 seconds]
[04:33:31] -!- awallin has quit [Ping timeout: 250 seconds]
[04:37:34] michael is now known as Guest24867
[04:38:28] -!- erictheise_ has quit [Ping timeout: 252 seconds]
[04:38:39] -!- Guest24867 has quit [Client Quit]
[04:59:52] -!- tjb1 has quit [Quit: tjb1]
[05:03:25] -!- Fox_Muldr has quit [Ping timeout: 265 seconds]
[05:15:57] -!- karavanjo [karavanjo!~karavanjo@213.184.242.183] has joined #leaflet
[05:24:31] -!- karavanjo has quit [Remote host closed the connection]
[05:51:25] -!- karavanjoW [karavanjoW!~karavanjo@178.124.148.114] has joined #leaflet
[05:54:15] -!- jpk has quit [Ping timeout: 248 seconds]
[07:13:11] -!- mhaberler has quit [Quit: mhaberler]
[07:23:46] -!- vladimirek has quit [Remote host closed the connection]
[08:03:41] -!- sendoushi has quit [Remote host closed the connection]
[08:19:37] -!- DJ9DJ has quit [Quit: bye]
[08:20:52] -!- Adventsparky [Adventsparky!~kvirc@hanleys.temetra.com] has joined #leaflet
[08:43:26] -!- Thetawaves has quit [Quit: This computer has gone to sleep]
[08:46:07] -!- maximilian_h has quit [Quit: Leaving.]
[08:46:08] -!- mhaberler has quit [Read error: Connection reset by peer]
[09:02:52] -!- b_b [b_b!ejabberd@81.18.178.14] has joined #leaflet
[09:06:02] -!- sendoushi has quit [Remote host closed the connection]
[09:13:47] -!- adb has quit [Ping timeout: 245 seconds]
[10:09:51] -!- mhaberler has quit [Ping timeout: 276 seconds]
[10:11:17] -!- draig has quit [Read error: Connection reset by peer]
[10:11:17] draig_ is now known as draig
[10:29:34] -!- Mourner [Mourner!c3148201@gateway/web/freenode/ip.195.20.130.1] has joined #leaflet
[10:29:38] <Mourner> hey guys
[10:29:47] <b_b> hi Mourner ;)
[10:30:18] <Adventsparky> o/
[10:30:21] * b_b have seen a spoiler for 0.4 release date on github
[10:30:26] <b_b> good news
[10:33:32] <Mourner> hehe, it's just a stub :)
[10:33:42] <Mourner> not sure I'll make it in time
[10:34:15] <Mourner> 9 issues still open for 0.4 https://github.com/CloudMade/Leaflet/issues?milestone=10&state=open
[10:34:59] <Mourner> also need to do some final docs polishing and updating tutorials
[10:35:14] <Mourner> and of course write a blog post and prepare everything
[10:42:27] -!- odogono has quit [Ping timeout: 252 seconds]
[10:58:53] -!- mhaberler has quit [Read error: Connection reset by peer]
[11:01:51] -!- WillenCMD has quit [Ping timeout: 276 seconds]
[11:21:52] -!- Fox_Muldr has quit [Ping timeout: 265 seconds]
[11:35:12] -!- odogono [odogono!~mohiam@cpc20-king10-2-0-cust228.19-1.cable.virginmedia.com] has joined #leaflet
[11:43:19] -!- mhaberler has quit [Read error: Connection reset by peer]
[11:45:53] -!- paideia has quit [Read error: Operation timed out]
[11:49:56] -!- dhoovie has quit [Read error: Connection reset by peer]
[11:55:45] -!- Brandonian [Brandonian!~bmorrison@c-98-212-46-24.hsd1.in.comcast.net] has joined #leaflet
[12:12:14] -!- ybon [ybon!~ybon@the-doors.enix.org] has joined #leaflet
[12:12:44] -!- factor has quit [Quit: Leaving]
[12:26:19] <ybon> Hi all :)
[12:26:27] <ybon> I'm thinking about implementing a "LazyGeoJSON" layer
[12:26:40] <ybon> Basically, my idea is something like:
[12:26:47] <ybon> - a LazyGeoJSON that extends GeoJSON
[12:26:55] <ybon> - the intialize method, instead of taking the GeoJSON parameter, expects some geojson_getter, which is a callable that knows how to get the geojson
[12:27:07] <ybon> - at first time the geojson data is used, call the geojson_getter, and maybe cache it for next use (I imagine that this caching is already done by Leaflet)
[12:27:21] <ybon> Someone is able to point me the right way to do this or knows if something like this has been already implemented?
[12:27:26] <ybon> Thanks! :)
[12:35:27] -!- odogono has quit [Read error: Connection reset by peer]
[12:36:14] -!- sumpfralle has quit [Ping timeout: 252 seconds]
[12:36:33] -!- odogono [odogono!~mohiam@cpc20-king10-2-0-cust228.19-1.cable.virginmedia.com] has joined #leaflet
[12:39:28] -!- chillly [chillly!~chris@213.249.226.170] has joined #leaflet
[12:54:31] -!- r00t4rd3d has quit [Quit: Leaving]
[13:05:20] -!- phantoxe has quit [Read error: Operation timed out]
[13:18:42] -!- Tom_itx has quit [Ping timeout: 264 seconds]
[13:25:04] <Mourner> ybon: what would be the main use case for this? I think it's straightforward enough already, calling geojson.addData(geojson) in the callback of a getter function
[13:27:00] <ybon> Mourner: I'd like to create all my overlay layer at page loading time, but request the geojson to build each of them only if someone click on the overlay control
[13:28:08] <ybon> the geojson data is requested by ajax, btw
[13:35:06] <Mourner> I've documented Leaflet class system recently http://leaflet.cloudmade.com/reference.html#class - you can use it as a reference to extend from L.GeoJSON without much problem
[13:36:36] <ybon> oh nice :)
[13:36:38] <ybon> thanks :)
[13:38:46] <ybon> Mourner: the main "problem", is to determine which API call is made to the Layer to get the data ; I'm digging in the code, but you have some ref to give, it could help me :)
[13:40:11] <Mourner> there's no call for getting data at all, it simply accepts the data itself in addData method
[13:40:49] <ybon> I'm right if I understand that the addData call the addLayer, who create the layer property, and then .layer is used ?
[13:40:57] <ybon> ah ok
[13:42:31] -!- karavanjoW_ [karavanjoW_!~karavanjo@178.124.148.114] has joined #leaflet
[13:42:36] -!- karavanjoW has quit [Ping timeout: 252 seconds]
[13:44:10] -!- karavanjoW_ has quit [Client Quit]
[13:47:27] -!- zzolo [zzolo!~zzolo@c-75-72-229-64.hsd1.mn.comcast.net] has joined #leaflet
[13:49:07] <ybon> I'm trying to determine wich API call I've to use to trigger the getter
[13:49:30] <ybon> Something like (guess the trigger is .layer)
[13:49:30] <ybon> layer: function () {
[13:49:30] <ybon> if (!this._layer)
[13:49:30] <ybon> //do the job of getting the data and populating _layer
[13:49:30] <ybon> return this._layer
[13:49:32] <ybon> }
[13:50:05] <ybon> It's an example, the idea is that the first time some other code ask for the layer the geodata is requested, the addData is called, and so on ;
[13:50:37] -!- odogono has quit [Read error: Connection reset by peer]
[13:51:16] -!- odogono [odogono!~mohiam@cpc20-king10-2-0-cust228.19-1.cable.virginmedia.com] has joined #leaflet
[13:52:13] -!- sumpfralle has quit [Ping timeout: 244 seconds]
[14:01:44] -!- mhaberler has quit [Quit: mhaberler]
[14:03:21] <ybon> hummm, I think I can do the trick overriding the addLayer, i'm gonna try this
[14:11:02] -!- zzolo has quit [Quit: zzolo]
[14:11:38] -!- zzolo [zzolo!~zzolo@c-75-72-229-64.hsd1.mn.comcast.net] has joined #leaflet
[14:12:07] -!- toastyde1th has quit [Ping timeout: 245 seconds]
[14:15:44] -!- zzolo has quit [Client Quit]
[14:17:34] <jakerie> Is it possible to set the upper-left corner to 0,0 instead of the center of my map tile layer?
[14:22:38] <ybon> (humm, no, I'm still missing the trigger, the API really seems to be .layer, which is a property, so not extendable with a dynamical function, unless using getters and setters :( )
[14:36:02] -!- joe9 has quit [Quit: Lost terminal]
[14:37:07] <Mourner> ybon: GeoJSON inherits from FeatureGroup, which in turn inherits from LayerGroup, which has addLayer(layer) which is used by GeoJSON, and the latter can have many layers
[14:37:32] -!- seb_kuzminsky has quit [Ping timeout: 245 seconds]
[14:37:47] <Mourner> what exactly do you need to do? check if you've already got the data?
[14:39:10] <ybon> Mourner: the final scope is to load the data from a getter onlythe first time this data is needed to display it on the map
[14:39:14] <ybon> I'm digging
[14:40:59] <ybon> I could create my own control pane, but it first seemed to me that using the builtin one was cleaner
[14:41:11] <Mourner> that depends on what you mean by "when the data is needed" - if it's when the layer is added to the map, then do the request in a onAdd method override (additionally calling the parent method), and if you need to check whether the data is in the current viewport, then you need to put a listener on moveend inside the onAdd, and check it there
[14:41:21] <ybon> And this give me a good occasion to dig into leaflet :)
[14:41:55] <ybon> the first option, thanks :)
[14:45:40] -!- sumpfralle has quit [Read error: Connection reset by peer]
[14:54:48] -!- raja has quit [Quit: raja]
[14:58:54] -!- tjb1 has quit [Quit: tjb1]
[15:01:04] -!- psha[work] has quit [Quit: Lost terminal]
[15:02:10] -!- leafquestion [leafquestion!9b3844d9@gateway/web/freenode/ip.155.56.68.217] has joined #leaflet
[15:02:18] <leafquestion> hi
[15:03:30] <leafquestion> is it possbile to make with leaflet a http request. I hava a geojson file on my webserver but i dont know how to access it with leaflet
[15:07:03] <ybon> I don't think so, you'll have to use ageneric framework for this, I think
[15:07:09] <ybon> http://api.jquery.com/jQuery.ajax/ for example
[15:15:17] -!- e-ndy has quit [Quit: ZNC - http://znc.sourceforge.net]
[15:21:03] -!- paideia has quit [Read error: Operation timed out]
[15:21:49] <leafquestion> ybon: I tried this, but it dont work. Do you have some sampe code? (I think the proble is, that the jquery request ist asynchron)
[15:23:04] <ybon> Therer are some samples is the jQuery documentation
[15:23:25] <ybon> you can use also http://api.jquery.com/jQuery.get/ which is a shortcut
[15:23:49] <ybon> And can you define "it dont work" ? :)
[15:24:49] <leafquestion> ybon: nothing happend, no error. I dont know how to debug this problem. Is it a problem, if i add a layer async. to the leaflet map?
[15:25:12] <chillly> leafquestion, I wrote a blog about just that. http://chris-osm.blogspot.co.uk/2012/06/leaflet-vectors.html
[15:27:48] -!- zzolo [zzolo!~zzolo@mail.minnpost.com] has joined #leaflet
[15:36:03] <leafquestion> chillly: so you make the http request with php? Ant not with javascript?
[15:38:08] -!- jakerie has quit [Quit: Page closed]
[15:38:52] <chillly> no, the php returns the data that was requested from an ajax-style call.
[15:40:11] <chillly> You need some kind of scripting language, like PHP, to return the geojson because it has to respond to any bounding box
[15:40:40] <chillly> The process is to display the base map with an (empty) geojson layer ...
[15:41:04] <leafquestion> chillly: why is it not pssibile to make it with javascript, what is the problem
[15:41:10] <chillly> Then work out the bounding box and request the geojson data based on that
[15:41:49] <chillly> the request calls PHP (in my case) to get the data and turn it into geojson ...
[15:42:10] <chillly> the geojson is processed in javascript to display the layer
[15:42:42] <chillly> whenever the map is moved or zoomed a new geojson layer is requested to fit the new bounds area
[15:43:27] <chillly> leafquestion, You can't do this with javascript in the client because it has no access to the data in the database on the server - that is what AJAX helps you do
[15:43:57] <leafquestion> chilly, i hava access to the data
[15:44:38] <chillly> then you don't need ajax, just add it to the geojson layer
[15:45:05] <chillly> debugging this stuff is much easier with something like firebug
[15:45:57] <leafquestion> i dont know how. i have it on my lokal wfs server. if i access the server i get a small json file. And i dont know how to put it on the layer
[15:46:45] <chillly> if you have looked at my code, look at the function stateChanged - it is mostly in there
[15:47:15] <leafquestion> chillly: okay thank you, i will try it tomorrow i think i need a break :)
[15:48:09] <leafquestion> i am leaving now. cya
[15:51:05] -!- wsjr has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
[15:52:30] -!- leafquestion has quit [Ping timeout: 245 seconds]
[15:59:50] -!- rdunklau has quit [Ping timeout: 246 seconds]
[16:00:44] -!- zzolo has quit [Read error: No route to host]
[16:02:31] -!- mhaberler has quit [Quit: mhaberler]
[16:02:33] -!- zzolo [zzolo!~zzolo@mail.minnpost.com] has joined #leaflet
[16:07:19] -!- odogono has quit [Ping timeout: 252 seconds]
[16:08:07] -!- servos4ever has quit [Ping timeout: 255 seconds]
[16:16:05] -!- odogono [odogono!~mohiam@cpc20-king10-2-0-cust228.19-1.cable.virginmedia.com] has joined #leaflet
[16:21:22] -!- karavanjo [karavanjo!~karavanjo@213.184.242.183] has joined #leaflet
[16:26:07] -!- sendoushi has quit [Read error: Connection reset by peer]
[16:42:01] -!- BenceKovi11114 has quit [Read error: Connection reset by peer]
[16:48:00] -!- b_b [b_b!ejabberd@81.18.178.14] has parted #leaflet
[16:51:16] -!- Skurlat has quit [Read error: Operation timed out]
[16:51:20] -!- Mourner has quit [Quit: Page closed]
[16:51:54] -!- Skurlat [Skurlat!~Skurlat@ks383693.kimsufi.com] has joined #leaflet
[16:59:37] -!- LeelooMinai has quit [Remote host closed the connection]
[17:00:58] -!- maximilian_h has quit [Quit: Leaving.]
[17:25:20] -!- erictheise [erictheise!~mataro@108-248-234-253.lightspeed.sntcca.sbcglobal.net] has joined #leaflet
[17:37:30] Tom_shop is now known as Tom_itxs
[17:37:33] Tom_itxs is now known as Tom_itx
[17:37:35] -!- phantoxe has quit []
[17:57:12] -!- Loetmichel has quit [Read error: Connection reset by peer]
[18:01:33] -!- maximilian_h has quit [Client Quit]
[18:20:01] -!- IchGuckLive has quit [Quit: ChatZilla 0.9.87 [Firefox 13.0/20120601201853]]
[18:23:37] -!- psha has quit [Read error: Operation timed out]
[18:29:01] -!- mhaberler has quit [Ping timeout: 255 seconds]
[18:31:13] -!- motioncontrol has quit [Ping timeout: 244 seconds]
[18:33:26] -!- psha has quit [Read error: Operation timed out]
[18:34:27] -!- Loetmichel has quit [Read error: Connection reset by peer]
[18:36:11] -!- BenceKovi11114 has quit [Read error: Connection reset by peer]
[18:36:54] -!- BenceKovi11115 has quit [Read error: Connection reset by peer]
[18:39:34] -!- jpk [jpk!~jpk@unaffiliated/vorondil] has joined #leaflet
[18:42:40] -!- gallenat0r has quit [Quit: This computer has gone to sleep]
[18:51:54] -!- ries has quit [Ping timeout: 260 seconds]
[18:52:28] -!- dgarr has quit [Ping timeout: 246 seconds]
[18:55:36] -!- draig has quit [Read error: Connection reset by peer]
[19:05:25] -!- motioncontrol has quit [Quit: Sto andando via]
[19:06:09] -!- XofP [XofP!~xof@75-101-3-103.dsl.dynamic.sonic.net] has joined #leaflet
[19:14:50] -!- BenceKovi11115 has quit [Read error: Connection reset by peer]
[19:22:42] -!- psha has quit [Quit: Lost terminal]
[19:39:59] -!- karavanjo has quit [Remote host closed the connection]
[19:43:33] -!- Loetmichel has quit [Ping timeout: 244 seconds]
[19:44:42] cylly is now known as Loetmichel
[19:55:17] -!- ve7it has quit [Remote host closed the connection]
[19:58:07] -!- Skurlat has quit [Ping timeout: 244 seconds]
[19:58:07] -!- logger[psha] has quit [Ping timeout: 240 seconds]
[19:59:20] -!- logger[psha] [logger[psha]!~loggerpsh@195.135.238.205] has joined #leaflet
[20:00:03] -!- syyl has quit [Ping timeout: 276 seconds]
[20:00:29] -!- Skurl` [Skurl`!~Skurlat@ks383693.kimsufi.com] has joined #leaflet
[20:07:33] -!- sendoushi has quit [Remote host closed the connection]
[20:08:03] -!- Tom_itx has quit [Ping timeout: 255 seconds]
[20:23:28] -!- pjm has quit [Ping timeout: 245 seconds]
[20:57:22] -!- skunkworks has quit [Read error: Connection reset by peer]
[21:03:35] -!- DJ9DJ has quit [Remote host closed the connection]
[21:06:07] -!- FinboySlick has quit [Quit: Leaving.]
[21:10:44] -!- gene77 has quit [Read error: Connection reset by peer]
[21:16:29] -!- syyl_ has quit [Ping timeout: 255 seconds]
[21:23:48] -!- draig_ has quit [Quit: draig_]
[21:24:07] -!- WillenCMD has quit [Quit: Bye]
[21:26:28] -!- toastydeath has quit [Read error: No route to host]
[21:34:25] -!- chillly has quit [Quit: Leaving]
[22:10:22] -!- odogono has quit [Read error: Connection reset by peer]
[22:10:47] -!- odogono [odogono!~mohiam@cpc20-king10-2-0-cust228.19-1.cable.virginmedia.com] has joined #leaflet
[22:15:39] -!- WillenCMD has quit [Quit: WillenCMD]
[22:40:56] -!- odogono has quit [Read error: Connection reset by peer]
[22:41:22] -!- odogono [odogono!~mohiam@cpc20-king10-2-0-cust228.19-1.cable.virginmedia.com] has joined #leaflet
[22:47:56] -!- Tom_L has quit []
[22:58:00] -!- mhaberler has quit [Quit: mhaberler]
[22:59:06] -!- frallzor has quit []
[23:03:20] -!- taiden has quit [Quit: Leaving.]
[23:10:34] -!- gmagno has quit [Ping timeout: 252 seconds]
[23:11:56] -!- vladimirek has quit [Read error: Operation timed out]
[23:41:45] -!- odogono has quit [Read error: Connection reset by peer]
[23:42:24] -!- odogono [odogono!~mohiam@cpc20-king10-2-0-cust228.19-1.cable.virginmedia.com] has joined #leaflet
[23:53:22] -!- servos4ever has quit [Quit: ChatZilla 0.9.85 [SeaMonkey 2.0.11/20101206162726]]
[23:56:28] -!- odogono has quit [Read error: Connection reset by peer]
[23:57:04] -!- odogono [odogono!~mohiam@cpc20-king10-2-0-cust228.19-1.cable.virginmedia.com] has joined #leaflet
[23:59:54] -!- demacus_ has quit [Ping timeout: 276 seconds]