Back
[00:13:14] -!- BJfreeman has quit [Ping timeout: 252 seconds]
[00:25:15] -!- tjb1 has quit [Client Quit]
[00:44:39] -!- Laremere has quit [Ping timeout: 256 seconds]
[01:03:48] -!- lyzidiamond [[email protected]] has joined #leaflet
[01:22:31] -!- c-bob| has quit [Ping timeout: 276 seconds]
[01:36:18] -!- Roguish has quit [Remote host closed the connection]
[02:05:30] -!- i_tarzan_ has quit [Ping timeout: 264 seconds]
[02:10:57] -!- jerryitt has quit [Read error: Connection reset by peer]
[02:11:25] _BJFreeman is now known as BJfreeman
[02:19:18] -!- L33TG33KG34R has quit [Ping timeout: 256 seconds]
[02:40:59] -!- BJfreeman has quit [Ping timeout: 252 seconds]
[02:42:42] -!- AR_ has quit [Ping timeout: 264 seconds]
[02:43:06] -!- Laremere [[email protected]] has joined #leaflet
[02:49:27] _BJFreeman is now known as BJfreeman
[02:53:58] -!- andypugh has quit [Quit: andypugh]
[02:56:07] -!- lyzidiamond has quit [Quit: lyzidiamond]
[03:05:24] -!- Loetmichel has quit [Ping timeout: 268 seconds]
[03:10:34] -!- AR__ has quit [Ping timeout: 256 seconds]
[03:13:11] BJfreeman is now known as Guest84243
[03:13:14] -!- Guest84243 has quit [Ping timeout: 252 seconds]
[03:13:20] _BJFreeman is now known as BJfreeman
[03:28:27] -!- Servos4ever has quit [Quit: ChatZilla 0.9.90 [SeaMonkey 2.14.1/20121129191050]]
[03:38:07] -!- PetefromTn has quit [Quit: Bye]
[03:51:00] -!- BJfreeman has quit [Ping timeout: 252 seconds]
[04:08:13] _BJFreeman is now known as BJfreeman
[04:09:34] -!- mattiasb has quit [Ping timeout: 276 seconds]
[04:10:30] -!- mattiasb [mattiasb!~mattiasb@c-f7c9e253.217-7-64736c12.cust.bredbandsbolaget.se] has joined #leaflet
[04:25:20] -!- postaL has quit [Read error: Connection reset by peer]
[04:34:21] -!- AR__ has quit [Ping timeout: 264 seconds]
[04:34:22] -!- BJfreeman has quit [Quit: had a good time]
[04:41:25] -!- dgarr has quit [Ping timeout: 276 seconds]
[05:03:31] -!- Fox_Muldr has quit [Ping timeout: 276 seconds]
[05:13:50] -!- skorasaurus has quit [Ping timeout: 256 seconds]
[05:27:55] -!- skorasaurus [[email protected]] has joined #leaflet
[05:29:58] -!- Laremere has quit [Ping timeout: 256 seconds]
[06:03:30] -!- kwallace has quit [Read error: Connection reset by peer]
[06:21:56] -!- vladimirek has quit [Read error: Connection reset by peer]
[06:38:32] -!- vax_ [[email protected]] has joined #leaflet
[06:38:34] -!- karavanjo has quit [Remote host closed the connection]
[06:38:54] -!- juxta [[email protected]] has joined #leaflet
[06:43:45] -!- L33TG33KG34R has quit [*.net *.split]
[06:43:45] -!- c-bob|| has quit [*.net *.split]
[06:43:45] -!- Tecan has quit [*.net *.split]
[06:43:46] -!- juxta_ has quit [*.net *.split]
[06:43:46] -!- uwe__ has quit [*.net *.split]
[06:43:46] -!- vax__ has quit [*.net *.split]
[06:43:46] -!- mle has quit [*.net *.split]
[06:43:46] -!- pjm has quit [*.net *.split]
[06:43:46] -!- shurshur has quit [*.net *.split]
[06:50:52] -!- shurshur [[email protected]] has joined #leaflet
[07:10:06] -!- mourner [[email protected]] has joined #leaflet
[07:30:35] -!- tjtr33 has quit [Quit: Leaving]
[07:31:24] -!- mourner has quit [Quit: mourner]
[07:38:00] Cylly is now known as Loetmichel
[08:03:23] -!- stsydow [[email protected]] has joined #leaflet
[08:10:34] -!- lyzidiamond [[email protected]] has joined #leaflet
[08:18:37] -!- mourner [[email protected]] has joined #leaflet
[08:38:41] -!- cpresser has quit [Quit: Lost terminal]
[08:48:45] <ybon> mourner: hey :) Sounds like the stable branch is not up to date, isn't it?
[08:49:06] <mourner> not sure, it should be...
[08:51:40] <ybon> seems like the 0.6.2 stuff is not merged
[09:02:26] -!- mourner has quit [Quit: mourner]
[09:04:18] -!- mourner [[email protected]] has joined #leaflet
[10:07:04] -!- Nickparker has quit [Ping timeout: 256 seconds]
[10:14:15] -!- lyzidiamond has quit [Quit: lyzidiamond]
[10:36:08] -!- Simooon has quit [Read error: Connection reset by peer]
[10:45:23] -!- i_tarzan has quit [Read error: Operation timed out]
[10:57:47] -!- mhaberler has quit [Quit: mhaberler]
[11:09:06] -!- stsydow has quit [Remote host closed the connection]
[11:12:11] -!- mourner has quit [Quit: mourner]
[11:19:36] _BJFreeman is now known as BJfreeman
[11:21:12] -!- maximilian_h has quit [Quit: Leaving.]
[11:25:15] -!- BJfreeman has quit [Ping timeout: 252 seconds]
[11:26:26] _BJFreeman is now known as BJfreeman
[11:32:33] -!- xxoxx has quit [Ping timeout: 264 seconds]
[11:35:37] -!- Valen has quit [Quit: Leaving.]
[11:42:52] -!- Heinz_60 has quit [Ping timeout: 246 seconds]
[12:02:54] -!- BJfreeman has quit [Quit: had a good time]
[12:49:32] -!- stsydow [[email protected]] has joined #leaflet
[12:54:42] -!- gambakufu has quit [Ping timeout: 264 seconds]
[12:55:33] -!- martin__ has quit [Ping timeout: 248 seconds]
[13:03:01] -!- Heinz_60 has quit [Ping timeout: 246 seconds]
[13:40:22] -!- stsydow has quit [Remote host closed the connection]
[13:43:48] -!- gregory [[email protected]] has joined #leaflet
[13:44:13] <gregory> hi all
[13:44:33] <gregory> i'm looking for the best way to achieve it :
[13:45:02] <gregory> I need to add multiple polygon on a map. The thing is i need to do it in a layer.
[13:45:19] <gregory> i tried to extend the layerGroup class to modify the on add method.
[13:45:26] <gregory> What do you think about it ?
[13:53:21] <gregory> is there anyone here ?
[13:53:38] <ybon> gregory:
http://leafletjs.com/examples/layers-control.html
[13:55:16] <gregory> ybon: thanks for the link, i know that it already, the point is i need to encapsulate all of this in one layergroup in order to reuse it.
[13:55:49] <ybon> this is exactly what is done there, no?
[13:55:54] <gregory> ybon : For example : my company ask me to group some town in one layer. Then they want me to be able to reuse this group in another map
[13:56:16] <gregory> something dynamical without rewriting all each time
[13:56:28] <ybon> what is your data source?
[13:56:35] <gregory> mysql
[13:57:18] <ybon> so you just need to loop into your rows somewhere in the chain, create markers, and add them to you layer
[13:57:19] <gregory> i receive lat,lon for town needed to be displayed
[13:57:38] <gregory> yes i agree. sorry, it's hard to explain in english i will try to reformulate.
[13:58:02] <gregory> my problem is not to display markers or circle on the map, i achieved it.
[13:58:16] <gregory> in fact,
[13:58:23] <ybon> create your layergroup before looping
[13:58:50] <ybon> then in the loop, create your feature (marker...), and so: mylayer.addLayer(myfeature)
[13:58:57] <ybon> en then add mylayer to the map
[14:00:25] <gregory> ok, my main idea was to encapsulate this loop into a class to be able to reuse it without rewriting loop.
[14:00:45] <gregory> i made it in openlayers. I created a layer, and put all its bbeahvior into it
[14:01:03] <gregory> because i can have a map with multiple layers, which have different behavior
[14:01:37] <gregory> do you understand my problem ?
[14:02:24] <ybon> you can add methods to LayerGroup by using LayerGroup.include()
[14:02:38] <ybon> or extending it with MyLayerClass = LayerGroup.extends({})
[14:02:53] <gregory> ybon there we are...
[14:03:16] <gregory> i extended LayerGroup but i got an error which is annoying me..
[14:03:41] <gregory> can i just show in a pastebin my class ? (it's very short) maybe can you notice something wrong in my code ?
[14:04:08] <ybon> yep
[14:06:26] <gregory> here is my new class :
[14:06:27] <gregory> http://pastebin.com/7ycA2Z3b
[14:07:14] <gregory> when i do :
[14:07:14] <gregory> var rssi = L.layerGroup.signalCoverage();
[14:07:15] <gregory> rssi.addTo(this);
[14:07:20] <gregory> i get this javascript error :
[14:07:39] <gregory> SyntaxError: invalid property id
[14:07:39] <gregory> [Stopper sur une erreur]
[14:07:40] <gregory> tile.src = this.getTileUrl(tilePoint);
[14:08:17] <ybon> humm
[14:08:27] <ybon> you should call parent initialize, maybe
[14:08:29] <gregory> it's in the _loadTile method of the TileLayer
[14:08:55] <gregory> ybon : let me try...
[14:09:22] <ybon> watch out, missing var in self = this;
[14:09:59] <gregory> oh yes thanks
[14:10:20] <ybon> can't you use proper json instead of self._hexagones = eval('('+msg+')'); ?
[14:12:54] <gregory> ok tried to add parent initialize with L.LayerGroup.prototype.initialize.call(this);
[14:13:01] <gregory> no progress
[14:13:10] <ybon> and btw you should use geojson and then you will be able to use the GeoJSON layer
[14:13:12] <gregory> ybon : what do you mean ? in eval, it's a json string
[14:13:44] <ybon> so do JSON.parse
[14:14:09] <gregory> oh i read on internet that eval do the trick .. but JSON.parse seems clearer
[14:14:33] <ybon> be careful on what you read on Internet ;)
[14:15:33] <gregory> ybon: yeah ;)
[14:16:21] <gregory> ybon : however you told me that i can add a method with .include() ? how does it work ?
[14:18:52] <ybon> just like extend, but you don't create a new class
[14:20:37] <gregory> mmmh .. ok try it.
[14:21:03] <gregory> However , no tips for why my new class don't work ? i'm driving crazy to look for my error :(
[14:23:44] <ybon> have a look at this, for a lazygeojson class:
https://github.com/yohanboniface/Leaflet.Storage/blob/master/src/js/leaflet.lazygeojson.js
[14:24:07] <ybon> using sync calls is not a user friendly idea
[14:26:40] -!- Laremere [[email protected]] has joined #leaflet
[14:31:08] <gregory> ybon : great your lazy class !!
[14:32:11] -!- Connor has quit [Read error: Operation timed out]
[14:40:31] -!- pcw_home has quit [Quit: ChatZilla 0.9.90 [Firefox 21.0/20130512194440]]
[14:42:21] -!- chillly [[email protected]] has joined #leaflet
[14:42:52] -!- zzolo [[email protected]] has joined #leaflet
[14:47:50] -!- jerryitt [[email protected]] has joined #leaflet
[14:51:47] -!- stsydow [[email protected]] has joined #leaflet
[14:51:57] <gregory> ybon : what's your geojson_getter params in your initialization method ?
[14:55:20] <ybon> the method that will be called to get the geojson
[14:55:32] <ybon> in your case, should be a jQuery thing
[14:56:37] <gregory> ok got it but i don't see where you use it in your code ?
[14:58:45] -!- kwallace has quit [Ping timeout: 248 seconds]
[14:59:14] <ybon> just add this layer to the map, as usually
[14:59:26] <ybon> and when it will be added to the map, so the geojson will be fetched
[15:05:35] <gregory> ybon : why do you fetch data only the first time ? i mean , this layer could added multiple time ? or maybe that if you uncheck the checkbox in the LayerControl it remove it then ?
[15:06:17] <ybon> it's cached
[15:06:26] <ybon> and then will be fetched only once
[15:06:44] <ybon> but it's fetched only if you do add it to the map
[15:06:56] <ybon> for example if the used check it on the layer control
[15:07:20] <ybon> so you can add 100 layers unchecked, nothing will be done until the user click on one
[15:08:03] <gregory> oh understood :)
[15:18:28] -!- zzolo has quit [Quit: zzolo]
[15:30:09] -!- AR__ has quit [Ping timeout: 264 seconds]
[15:34:37] -!- zzolo [[email protected]] has joined #leaflet
[15:41:53] _BJFreeman is now known as BJfreeman
[15:42:09] -!- jerryitt has quit [Quit: Leaving.]
[15:44:48] -!- Laremere has quit [Ping timeout: 256 seconds]
[15:45:08] -!- erasmo has quit [Remote host closed the connection]
[15:49:37] -!- gregory has quit [Ping timeout: 276 seconds]
[15:52:23] -!- gregory [[email protected]] has joined #leaflet
[15:52:25] -!- stsydow has quit [Remote host closed the connection]
[15:56:26] -!- Laremere [[email protected]] has joined #leaflet
[16:14:08] -!- Heinz_60 has quit [Ping timeout: 246 seconds]
[16:21:23] -!- skunkworks has quit [Remote host closed the connection]
[16:35:07] -!- capricorn_one has quit [Ping timeout: 276 seconds]
[16:39:45] -!- mattiasb has quit [Ping timeout: 264 seconds]
[16:40:32] -!- mattiasb [mattiasb!~mattiasb@c-f7c9e253.217-7-64736c12.cust.bredbandsbolaget.se] has joined #leaflet
[16:48:05] -!- stsydow [[email protected]] has joined #leaflet
[16:55:56] -!- Laremere_AFK [[email protected]] has joined #leaflet
[16:57:10] -!- mattiasb has quit [Ping timeout: 246 seconds]
[16:57:35] -!- stsy [[email protected]] has joined #leaflet
[16:59:10] -!- Laremere has quit [Ping timeout: 276 seconds]
[17:01:44] -!- zzolo has quit [Quit: zzolo]
[17:03:58] -!- mattiasb [mattiasb!~mattiasb@c-f7c9e253.217-7-64736c12.cust.bredbandsbolaget.se] has joined #leaflet
[17:08:24] -!- zzolo [[email protected]] has joined #leaflet
[17:10:13] -!- Laremere_AFK has quit [Ping timeout: 276 seconds]
[17:12:58] -!- gregory has quit [Quit: Quitte]
[17:13:12] -!- mattiasb has quit [Ping timeout: 256 seconds]
[17:19:44] -!- mattiasb [mattiasb!~mattiasb@c-f7c9e253.217-7-64736c12.cust.bredbandsbolaget.se] has joined #leaflet
[17:19:57] -!- i_tarzan has quit [Ping timeout: 264 seconds]
[17:28:47] -!- mattiasb has quit [Ping timeout: 256 seconds]
[17:30:58] -!- Laremere [[email protected]] has joined #leaflet
[17:32:54] -!- mattiasb [mattiasb!~mattiasb@c-f7c9e253.217-7-64736c12.cust.bredbandsbolaget.se] has joined #leaflet
[17:36:26] -!- bdiu [[email protected]] has joined #leaflet
[17:46:34] -!- IchGuckLive has quit [Quit: ChatZilla 0.9.87 [Firefox 20.0/20130329043827]]
[17:48:27] -!- Heinz_60 has quit [Quit: Bye]
[17:49:58] -!- syyl_ws has quit [Quit: Verlassend]
[17:51:47] -!- [1]Heinz_60 has quit [Ping timeout: 246 seconds]
[17:54:07] -!- bdiu has quit [Remote host closed the connection]
[18:27:49] -!- Laremere has quit [Ping timeout: 246 seconds]
[18:27:56] -!- zzolo has quit [Quit: zzolo]
[18:49:44] -!- stsydow has quit [Remote host closed the connection]
[18:51:31] -!- lyzidiamond [[email protected]] has joined #leaflet
[18:57:43] -!- stsydow [[email protected]] has joined #leaflet
[19:03:19] -!- lyzidiamond has quit [Quit: lyzidiamond]
[19:09:35] -!- syyl_ws has quit [Quit: Verlassend]
[19:15:40] -!- mattiasb has quit [Ping timeout: 276 seconds]
[19:16:20] -!- zzolo [[email protected]] has joined #leaflet
[19:16:31] -!- zzolo has quit [Client Quit]
[19:19:58] -!- mattiasb [mattiasb!~mattiasb@c-f7c9e253.217-7-64736c12.cust.bredbandsbolaget.se] has joined #leaflet
[19:22:00] -!- stsydow has quit [Remote host closed the connection]
[19:26:33] -!- mattiasb has quit [Ping timeout: 264 seconds]
[19:30:38] -!- mattiasb [mattiasb!~mattiasb@c-f7c9e253.217-7-64736c12.cust.bredbandsbolaget.se] has joined #leaflet
[19:31:30] -!- zzolo [[email protected]] has joined #leaflet
[19:36:35] -!- mattiasb has quit [Ping timeout: 256 seconds]
[19:51:59] -!- mattiasb [mattiasb!~mattiasb@c-f7c9e253.217-7-64736c12.cust.bredbandsbolaget.se] has joined #leaflet
[19:53:35] -!- sharpen047 has quit [Ping timeout: 250 seconds]
[19:58:30] BJfreeman is now known as Guest60223
[19:58:36] _BJFreeman is now known as BJfreeman
[19:58:54] -!- Guest60223 has quit [Ping timeout: 252 seconds]
[20:04:41] -!- erictheise [[email protected]] has joined #leaflet
[20:39:54] -!- arekm has quit [Ping timeout: 268 seconds]
[20:47:27] -!- arekm has quit [Read error: Operation timed out]
[21:14:00] -!- DJ9DJ has quit [Quit: bye]
[21:15:57] -!- Heinz_60 has quit [Quit: HydraIRC -> http://www.hydrairc.com <- Go on, try it!]
[21:24:08] -!- chillly has quit [Quit: Leaving]
[21:34:44] -!- Tom_itx has quit [Ping timeout: 256 seconds]
[21:34:53] Tom_garage is now known as Tom_itx
[21:34:57] -!- mhaberler has quit [Ping timeout: 264 seconds]
[21:43:58] -!- Tom_itx has quit [Disconnected by services]
[21:44:04] Tom_garage is now known as Tom_itx
[21:52:08] -!- zzolo has quit [Quit: zzolo]
[21:57:27] -!- stsy has quit [Read error: Operation timed out]
[21:59:29] -!- mourner [[email protected]] has joined #leaflet
[22:11:07] -!- bedah has quit [Quit: Ex-Chat]
[22:14:23] -!- mhaberler has quit [Quit: mhaberler]
[22:28:04] -!- Tecan has quit [Ping timeout: 276 seconds]
[22:37:14] -!- mourner has quit [Quit: mourner]
[22:53:21] -!- mhaberler has quit [Quit: mhaberler]
[22:53:45] BJfreeman is now known as Guest52991
[22:53:52] _BJFreeman is now known as BJfreeman
[22:55:15] -!- Guest52991 has quit [Ping timeout: 252 seconds]
[22:57:00] -!- stsydow [[email protected]] has joined #leaflet
[22:58:00] -!- stsydow has quit [Client Quit]
[23:05:33] -!- Nick001-Shop has quit [Ping timeout: 264 seconds]
[23:05:48] Nick001-Shop_ is now known as Nick001-Shop
[23:06:31] -!- rob_h has quit [Ping timeout: 240 seconds]
[23:19:04] -!- BJfreeman has quit [Ping timeout: 252 seconds]
[23:25:23] -!- zzolo [[email protected]] has joined #leaflet
[23:27:01] -!- syyl_ has quit [Ping timeout: 248 seconds]
[23:31:19] -!- atom1 has quit [Changing host]
[23:32:53] -!- mhaberler has quit [Quit: mhaberler]
[23:47:55] -!- andypugh has quit [Quit: andypugh]
[23:52:25] -!- Nick001-Shop has quit [Remote host closed the connection]
[23:57:05] -!- Laremere [[email protected]] has joined #leaflet