#leaflet | Logs for 2013-12-25

Back
[00:07:57] -!- jfire has quit [Quit: Leaving.]
[00:11:47] -!- cmorley1 has quit [Ping timeout: 263 seconds]
[00:12:58] -!- atom1 has quit [Changing host]
[00:13:17] -!- atom1 has quit [Client Quit]
[00:22:48] -!- Tecan has quit [Ping timeout: 259 seconds]
[00:23:50] -!- Thetawaves has quit [Quit: This computer has gone to sleep]
[00:49:28] -!- arvidkahl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
[00:58:20] -!- PetefromTn has quit [Remote host closed the connection]
[00:59:51] -!- voxadam has quit [Ping timeout: 240 seconds]
[01:07:40] -!- JT-Shop has quit [Read error: Connection reset by peer]
[01:07:40] -!- jthornton has quit [Read error: Connection reset by peer]
[01:19:05] -!- voxadam has quit [Ping timeout: 240 seconds]
[01:21:01] -!- asdfasd has quit [Ping timeout: 252 seconds]
[01:26:39] -!- Tecan has quit [Changing host]
[01:44:30] -!- micges has quit [Quit: Leaving]
[01:51:27] -!- voxadam has quit [Ping timeout: 240 seconds]
[02:09:50] -!- robh__ has quit [Ping timeout: 264 seconds]
[02:21:55] c-bob| is now known as c-bob|afk
[02:22:26] -!- c-bob has quit [Ping timeout: 264 seconds]
[02:22:40] -!- wboykinm [wboykinm!~wboykinm@c-71-233-111-111.hsd1.ma.comcast.net] has joined #leaflet
[02:38:52] -!- tjb1 has quit [Ping timeout: 252 seconds]
[02:47:42] -!- nsp has quit [Ping timeout: 272 seconds]
[02:54:55] -!- Nekosan has quit [Quit: later folks...]
[03:11:57] -!- zeeshan has quit [Read error: Connection reset by peer]
[03:14:22] -!- sudobangbang has quit [Quit: ChatZilla 0.9.90.1 [Firefox 26.0/20131205075310]]
[03:16:05] -!- zeeshan has quit [Client Quit]
[03:39:26] -!- Tecan has quit [Ping timeout: 240 seconds]
[03:43:31] -!- skorasaurus has quit [Quit: WeeChat 0.4.2]
[03:44:31] -!- Servos4ever has quit [Quit: ChatZilla 0.9.90.1 [SeaMonkey 2.22.1/20131113180410]]
[03:45:04] -!- voxadam has quit [Ping timeout: 240 seconds]
[03:47:09] -!- sumpfralle1 has quit [Ping timeout: 272 seconds]
[03:56:16] -!- wboykinm has quit [Remote host closed the connection]
[04:15:01] -!- GuShH_Lap has quit [Ping timeout: 272 seconds]
[04:16:01] -!- FreezingCold has quit [Ping timeout: 272 seconds]
[04:36:29] -!- jfire [jfire!~Adium@c-174-62-79-245.hsd1.ca.comcast.net] has joined #leaflet
[04:40:35] -!- kwallace2 has quit [Ping timeout: 252 seconds]
[04:43:18] -!- jfire has quit [Quit: Leaving.]
[04:43:30] -!- voxadam has quit [Remote host closed the connection]
[04:53:56] -!- AR_ has quit [Ping timeout: 260 seconds]
[05:23:48] -!- steves_logging has quit [Ping timeout: 260 seconds]
[05:27:08] -!- voxadam has quit [Remote host closed the connection]
[05:32:26] -!- r00t4rd3d has quit [Quit: Leaving]
[05:49:07] -!- MacGalempsy has quit [Remote host closed the connection]
[05:57:00] -!- zeeshan has quit [Read error: Connection reset by peer]
[06:01:47] -!- Fox_Muldr has quit [Ping timeout: 272 seconds]
[06:05:42] -!- voxadam has quit [Remote host closed the connection]
[07:33:23] -!- terabyte- has quit [Client Quit]
[07:36:57] -!- tjb1 has quit [Quit: tjb1]
[08:13:51] -!- voxadam has quit [Ping timeout: 240 seconds]
[08:19:19] Cylly is now known as Loetmichel
[08:22:54] -!- tjb11 has quit [Ping timeout: 240 seconds]
[08:29:30] -!- Deejay has quit [Client Quit]
[08:32:25] -!- KimK has quit [Ping timeout: 265 seconds]
[08:47:41] -!- motioncontrol has quit [Client Quit]
[08:48:52] -!- GuShH_Lap has quit [Read error: Connection reset by peer]
[08:56:58] -!- arvidkahl [arvidkahl!~textual@195.76.40.194] has joined #leaflet
[08:59:51] -!- arvidkahl has quit [Client Quit]
[09:04:16] -!- NickParker has quit [Ping timeout: 240 seconds]
[09:04:25] -!- odogono [odogono!~odogono@cpc14-king9-2-0-cust212.19-1.cable.virginm.net] has joined #leaflet
[09:15:53] alosindustrials is now known as JesusAlos
[09:16:03] JesusAlos is now known as JeAl
[09:22:45] -!- |1li_ has quit [Read error: Connection reset by peer]
[09:23:14] -!- |1li_ [|1li_!~|1li@108-201-65-149.lightspeed.ftwotx.sbcglobal.net] has joined #leaflet
[09:41:58] -!- maximilian_h has quit [Client Quit]
[09:52:07] -!- syyl- has quit [Ping timeout: 260 seconds]
[09:54:57] -!- JeAl has quit [Quit: ChatZilla 0.9.90.1 [Firefox 20.0/20130329043827]]
[10:00:32] -!- zeeshan has quit [Read error: Connection reset by peer]
[10:01:08] -!- zeeshan has quit [Client Quit]
[11:06:51] -!- mrsun_ has quit [Remote host closed the connection]
[11:09:53] mrsun is now known as Guest23386
[11:11:00] -!- jepler has quit [Ping timeout: 260 seconds]
[11:20:50] -!- chillly [chillly!~chris@adsl-77-86-15-53.karoo.KCOM.COM] has joined #leaflet
[11:21:23] -!- chillly has quit [Client Quit]
[11:45:02] -!- voxadam has quit [Ping timeout: 240 seconds]
[11:47:32] -!- gaute [gaute!6df717c9@gateway/web/freenode/ip.109.247.23.201] has joined #leaflet
[11:49:46] <gaute> One question, I have a let say 80 cirkleMarkers on a map, need to change the status for 2-3 of them, same location. Do I remove the markers? update with new status, ie add a new one on same place, or delete layer and redraw all 80 markers, please advice
[11:54:39] -!- schimi_ has quit [Ping timeout: 240 seconds]
[11:59:47] <Lekensteyn> for only 2 or 3 out of 80 I would just delete the markers without clearing layers
[12:03:34] <gaute> Is there and delete function or argument for circleMarker? I did not see any..
[12:13:26] -!- tom_R2E3 has quit [Ping timeout: 264 seconds]
[12:35:28] -!- Lekensteyn has quit [Ping timeout: 260 seconds]
[12:37:01] Guest23386 is now known as MrSun
[12:37:33] MrSun is now known as Guest3351
[12:45:22] -!- Komzzpa has quit [Ping timeout: 240 seconds]
[12:45:52] -!- y3pp3r [y3pp3r!uid22583@gateway/web/irccloud.com/x-gabggjkhtdhazznf] has joined #leaflet
[12:47:00] <y3pp3r> hi guys, merry christmass from the Netherlands!
[12:47:14] <y3pp3r> a great time to do some devving at home :p
[12:48:26] <y3pp3r> is it possible to put a popup on every circle marker when I have a GeoJSON file with a FeatureCollection with GeometryCollections of Points?
[12:49:49] <gaute> please check www.offtrail.no - something like this?
[12:51:31] <y3pp3r> yea, looks like I'm doing the right thing, but the circles are not clickable :(
[12:52:25] <gaute> function onEachFeature(feature, layer) { if (feature.properties && feature.properties.radio ) { layer.bindPopup(feature.properties.radio); }
[12:53:33] <gaute> layer.bindPopup(feature.properties.radio); -> I got data from the selected property
[12:54:01] <gaute> who is shown when clicking on the item / circle
[12:54:07] <y3pp3r> I got it
[12:54:11] <y3pp3r> typo in property name
[12:54:11] <gaute> great!
[12:54:12] <y3pp3r> :X
[12:54:14] <y3pp3r> sshhh
[12:55:03] <y3pp3r> Thanks a lot!
[12:55:55] <gaute> as you see from my map - I would like to update 1 og 3 of the circles with some other info ( swich color) but currently I am lost -
[12:56:21] -!- wboykinm [wboykinm!~wboykinm@c-71-233-111-111.hsd1.ma.comcast.net] has joined #leaflet
[12:56:24] <y3pp3r> I got color switching working somehow
[12:56:28] <y3pp3r> maybe I can help you with that
[12:56:55] <gaute> if you have some leads - reading the data from db and the db data changes once in a while...
[12:57:23] <y3pp3r> you want to change the fill color based on what?
[12:57:40] <gaute> based on the property
[12:57:57] <gaute> I am able to change the property on the server side
[12:58:44] <gaute> if (feature.properties.radio){ return L.circleMarker(latlng, on_mill); }else{ return L.circleMarker(latlng, off_mill); }
[12:59:22] <gaute> off_mill/on_mill gives different color
[13:00:21] <y3pp3r> did you try to change color? I'm not using fillcolor in my code
[13:01:09] <gaute> Yes - my basic idea works...
[13:01:12] <gaute> one sec
[13:01:43] <y3pp3r> you can also remove color and fillcolor from the on/off_mill styles, and set it like this:
[13:01:47] <y3pp3r> style: function (feature) {
[13:01:47] <y3pp3r> return {color: colors[featureIndex++]};
[13:01:47] <y3pp3r> }
[13:02:08] <y3pp3r> another function in the GeoJSON method call
[13:02:44] <y3pp3r> colors is a 'color ramp' I found online, an array with orthogonal colors, and featureIndex is an integer starting at 0 i put before the method call
[13:02:54] <y3pp3r> but you could check for your property there
[13:03:00] <gaute> if you check the page now - I have another json file I use
[13:03:40] <gaute> ie - I will just update the changes - not everything...
[13:04:13] <gaute> on the file only properties has been changed
[13:04:29] <y3pp3r> if this works, and the other doesn't, then it sounds like a y3pp3r mistake too: check the bodyContent format?
[13:06:10] <gaute> I have been a little unclear here... Both examples work. What I want to do is to redraw only one circle if the property has changed...
[13:06:20] <gaute> for that property!
[13:06:32] <y3pp3r> ooooh
[13:06:49] <y3pp3r> I'm sorry small difference :P
[13:07:16] <y3pp3r> I think you need to store a ref to every point somewhere and update that ref, but I do not know if that is possible
[13:07:53] <y3pp3r> from the top of my head, the GeoJSON docs don't specify 'retrieve by id' functions or something like that...
[13:08:11] <y3pp3r> maybe you need to process the json yourself and add points manually
[13:08:31] <gaute> Yes, and put it into an array...
[13:08:42] <gaute> and then do some array juggling ...
[13:08:52] <y3pp3r> :/
[13:09:38] <gaute> I will first redraw all circles - brut force - and then fine tune later on..
[13:10:17] <y3pp3r> as I am taught: don't think about performance, just write good code :P
[13:11:17] <gaute> Or - something working is always better than fancy bells and whistles
[13:11:42] <y3pp3r> sounds agile to me
[13:14:10] -!- Komzzpa [Komzzpa!~kom@host-26-152-66-217.spbmts.ru] has joined #leaflet
[13:15:38] -!- Thetawaves has quit [Quit: This computer has gone to sleep]
[13:25:41] -!- Komzzzpa [Komzzzpa!~kom@host-116-158-66-217.spbmts.ru] has joined #leaflet
[13:25:45] -!- Komzzpa has quit [Ping timeout: 272 seconds]
[13:29:49] -!- jepler has quit [Ping timeout: 272 seconds]
[13:30:27] -!- tjb1 has quit [Ping timeout: 272 seconds]
[13:30:58] -!- Komzzzpa has quit [Remote host closed the connection]
[13:31:21] -!- Komzzzpa [Komzzzpa!~kom@host-116-158-66-217.spbmts.ru] has joined #leaflet
[13:39:36] -!- Komzzzpa has quit [Read error: Connection reset by peer]
[13:39:57] -!- Komzzzpa [Komzzzpa!~kom@host-116-158-66-217.spbmts.ru] has joined #leaflet
[13:42:51] -!- arvidkahl [arvidkahl!~textual@195.76.40.194] has joined #leaflet
[13:44:15] -!- Komzzzpa has quit [Ping timeout: 240 seconds]
[13:45:35] -!- h0st1le has quit [K-Lined]
[14:04:40] -!- maximilian_h has quit [Client Quit]
[14:18:15] -!- mozmck has quit [Quit: Leaving.]
[14:34:01] <Reventlov> Hello. I must display a lot of markers on a map (and I don't want to use markercluster since it makes the "visualization" useless)
[14:34:17] <Reventlov> Currently, the map crashes safari on any Idevice.
[14:34:29] <Reventlov> http://raildar.volcanis.me/ Any idea on what to improve ? (for visibility/usability)
[14:51:43] <gaute> Hi, What's a lot of markers? How many?
[14:52:36] <Reventlov> from 1500 to 5000.
[14:53:24] <Reventlov> more something like from 4000 to 5000
[14:53:35] <gaute> ok - I see
[14:53:44] <Reventlov> (2800 railway station that won't move, and up to 2000 train that will move every 10 seconds)
[14:57:12] <Reventlov> gaute: idea ? :)
[14:58:47] <gaute> Hi, I have similar issue - but in a small scale compare to you - The location of trains are read from a db I guess... and you just want to update the trains who has moved since last update
[14:59:05] <Reventlov> from json file
[14:59:50] <gaute> Are you able to plot the stations on the map, or does is crash ?
[15:00:37] <Reventlov> I am, look at the link :)
[15:00:54] <Reventlov> but, on any idevice (ipad, ipod) or mobile device, it crashes or is not usable
[15:02:05] <gaute> I looked but on my Chrome I did not see any.. let me try again
[15:02:16] <gaute> Now I see
[15:04:30] -!- Lekensteyn [Lekensteyn!~Lekenstey@arpi.lekensteyn.nl] has joined #leaflet
[15:08:10] <gaute> it works ok on my smartphone - Samsung
[15:08:28] <gaute> but you are right about the markerCluster
[15:14:50] -!- CaptHindsight has quit [Quit: gone]
[15:40:44] -!- Lekensteyn has quit [Ping timeout: 260 seconds]
[15:46:15] -!- wboykinm has quit [Remote host closed the connection]
[15:46:55] -!- sumpfralle has quit [Read error: Operation timed out]
[15:58:34] -!- wboykinm_ [wboykinm_!~wboykinm@c-71-233-111-111.hsd1.ma.comcast.net] has joined #leaflet
[15:59:14] -!- skorasaurus [skorasaurus!~skors@cpe-65-185-69-50.neo.res.rr.com] has joined #leaflet
[16:00:50] -!- kwallace has quit [Ping timeout: 264 seconds]
[16:12:39] -!- schimi_ has quit [Ping timeout: 240 seconds]
[16:17:03] -!- schimi_ has quit [Ping timeout: 240 seconds]
[16:38:01] -!- Lekensteyn [Lekensteyn!~Lekenstey@arpi.lekensteyn.nl] has joined #leaflet
[16:39:01] -!- jeremy79 has quit [Ping timeout: 246 seconds]
[16:40:58] -!- gaute has quit [Quit: Page closed]
[16:41:01] -!- Reventlov has quit [Quit: Reconnecting]
[16:41:08] -!- |1li_ has quit [Read error: Connection reset by peer]
[16:41:08] -!- Reventlov [Reventlov!~my@volcanis.me] has joined #leaflet
[16:41:27] -!- Reventlov has quit [Changing host]
[16:41:27] -!- Reventlov [Reventlov!~my@unaffiliated/reventlov] has joined #leaflet
[16:41:54] -!- |1li_ [|1li_!~|1li@108-201-65-149.lightspeed.ftwotx.sbcglobal.net] has joined #leaflet
[16:42:47] -!- Lekensteyn has quit [Ping timeout: 249 seconds]
[16:48:50] -!- jeremy791 has quit [Ping timeout: 264 seconds]
[16:51:13] -!- tom_R2E3 has quit [Ping timeout: 261 seconds]
[17:01:51] -!- FreezingCold has quit [Ping timeout: 240 seconds]
[17:03:37] -!- pibear has quit [Ping timeout: 272 seconds]
[17:11:50] -!- Lekensteyn [Lekensteyn!~Lekenstey@2a02:2308::360:fd03:36c7] has joined #leaflet
[17:21:42] -!- arvidkahl has quit [Quit: Textual IRC Client: www.textualapp.com]
[17:22:27] -!- i_tarzan_ has quit [Ping timeout: 257 seconds]
[17:33:35] -!- motioncontrol has quit [Client Quit]
[17:34:40] -!- sumpfralle1 has quit [Ping timeout: 246 seconds]
[17:37:14] -!- arvidkahl [arvidkahl!~textual@195.76.40.194] has joined #leaflet
[17:38:35] -!- arvidkahl has quit [Client Quit]
[17:41:20] -!- Servos4ever has quit [Quit: ChatZilla 0.9.90.1 [SeaMonkey 2.22.1/20131113180410]]
[17:53:34] -!- i_tarzan has quit [Ping timeout: 246 seconds]
[17:57:21] -!- gaute [gaute!6df717c9@gateway/web/freenode/ip.109.247.23.201] has joined #leaflet
[17:59:21] -!- pibear has quit [Ping timeout: 272 seconds]
[18:07:18] <gaute> Hi - I am calling a db every 5 sec in order to update map - I use removeLayers(circleMarker) before i call the db over again. Is this the right way of doing it?
[18:08:02] <gaute> seems like map is getting slower ... :-(
[18:10:45] -!- i_tarzan has quit [Ping timeout: 272 seconds]
[18:14:11] -!- AR_ has quit [Ping timeout: 272 seconds]
[18:20:21] -!- i_tarzan_ has quit [Ping timeout: 248 seconds]
[18:20:38] -!- schimi_ has quit [Ping timeout: 240 seconds]
[18:21:30] -!- Tecan has quit [Read error: Connection timed out]
[18:24:15] -!- PetefromTn has quit [Remote host closed the connection]
[18:28:40] -!- eric_unterhausen has quit [Ping timeout: 240 seconds]
[18:39:50] -!- skorasaurus has quit [Ping timeout: 264 seconds]
[18:44:13] -!- i_tarzan has quit [Ping timeout: 240 seconds]
[18:48:04] -!- IchGuckLive has quit [Quit: ChatZilla 0.9.87 [Firefox 20.0/20130329043827]]
[18:51:33] -!- Loetmichel has quit [Ping timeout: 272 seconds]
[18:52:19] -!- i_tarzan has quit [Read error: Connection reset by peer]
[18:52:43] -!- kwallace2 has quit [Ping timeout: 252 seconds]
[19:01:04] -!- FinboySlick1 has quit [Client Quit]
[19:01:38] -!- FinboySlick has quit [Quit: Leaving.]
[19:02:03] -!- pibear has quit [Ping timeout: 272 seconds]
[19:03:34] -!- Komzzzpa [Komzzzpa!~kom@host-90-152-66-217.spbmts.ru] has joined #leaflet
[19:06:14] -!- Cylly has quit [Ping timeout: 240 seconds]
[19:16:26] -!- i_tarzan has quit [Ping timeout: 264 seconds]
[19:20:39] -!- MacGalempsy has quit [Read error: Connection reset by peer]
[19:27:10] -!- chillly [chillly!~chris@adsl-77-86-15-53.karoo.KCOM.COM] has joined #leaflet
[19:27:44] -!- Komzzzpa has quit [Remote host closed the connection]
[19:28:18] -!- Komzzzpa [Komzzzpa!~kom@host-90-152-66-217.spbmts.ru] has joined #leaflet
[19:28:26] -!- i_tarzan_ has quit [Ping timeout: 264 seconds]
[19:38:07] -!- Komzpa [Komzpa!~kom@host-116-158-66-217.spbmts.ru] has joined #leaflet
[19:38:33] -!- Komzzzpa has quit [Ping timeout: 252 seconds]
[19:48:27] -!- Lathe_newbie has quit [Ping timeout: 252 seconds]
[19:50:08] -!- arvidkahl [arvidkahl!~textual@195.76.40.194] has joined #leaflet
[19:50:55] -!- Komzpa has quit [Ping timeout: 240 seconds]
[20:07:13] -!- syyl_ws has quit [Quit: Verlassend]
[20:09:32] -!- sumpfralle has quit [Read error: Operation timed out]
[20:22:38] -!- voxadam has quit [Ping timeout: 240 seconds]
[20:23:01] -!- wboykinm_ has quit [Ping timeout: 248 seconds]
[20:24:14] -!- schimi_ has quit [Ping timeout: 240 seconds]
[20:26:04] -!- _BJFreeman has quit [Client Quit]
[20:26:39] -!- jepler has quit [Ping timeout: 240 seconds]
[20:27:39] _BJFreeman is now known as BJfreeman
[20:30:07] -!- cmorley has quit [Quit: Leaving.]
[20:35:47] -!- pibear has quit [Ping timeout: 272 seconds]
[20:35:56] -!- rob_h has quit [Ping timeout: 240 seconds]
[20:48:48] -!- wboykinm [wboykinm!~wboykinm@c-71-233-111-111.hsd1.ma.comcast.net] has joined #leaflet
[20:49:38] -!- maximilian_h has quit [Client Quit]
[20:55:25] -!- Tecan has quit [Ping timeout: 272 seconds]
[21:02:29] <gaute> I have currently not found how to prevent memory loss by calling a db - json data every 5 sec - tried to remove layers - only drity methond who is working is a meta refresh in the header... but it stinks...
[21:03:29] <gaute> any one who has some more experience with keeping the system from chewing memory like a happy cow on the field springtime...
[21:05:02] -!- sumpfralle has quit [Ping timeout: 264 seconds]
[21:09:16] -!- BJfreeman has quit [Quit: had a good time]
[21:12:33] -!- pcw_home has quit [Remote host closed the connection]
[21:23:06] -!- chillly has quit [Quit: Leaving]
[21:25:16] -!- eric_u_cnc has quit [Remote host closed the connection]
[21:35:57] -!- cmorley has quit [Quit: Leaving.]
[21:46:04] -!- terabyte- has quit [Quit: terabyte-]
[21:46:26] -!- AR_ has quit [Read error: Connection reset by peer]
[21:56:40] -!- voxadam has quit [Ping timeout: 240 seconds]
[22:03:41] -!- Tecan has quit [Changing host]
[22:05:05] -!- Servos4ever has quit [Ping timeout: 272 seconds]
[22:05:15] Servos4ever_ is now known as Servos4ever
[22:06:11] -!- motioncontrol has quit [Quit: Sto andando via]
[22:12:11] -!- afiber__ has quit [Quit: Konversation terminated!]
[22:15:06] -!- gaute has quit [Quit: Page closed]
[22:23:58] -!- eric_unterhausen has quit [Remote host closed the connection]
[22:25:21] -!- Servos4ever has quit [Ping timeout: 272 seconds]
[22:25:30] Servos4ever_ is now known as Servos4ever
[22:33:49] -!- GuShH_Lap has quit [Ping timeout: 252 seconds]
[22:45:25] -!- tom_R2E3 has quit [Ping timeout: 248 seconds]
[22:47:54] -!- tjb1 has quit [Disconnected by services]
[22:47:54] tjb1_ is now known as tjb1
[22:49:15] -!- eric_u_cnc has quit [Client Quit]
[23:04:19] -!- Deejay has quit [Quit: bye]
[23:21:21] -!- GuShH_Lap has quit [Quit: ????]
[23:22:19] -!- odogono has quit [Ping timeout: 260 seconds]
[23:23:11] -!- kwallace1 has quit [Ping timeout: 260 seconds]
[23:24:36] -!- eric_u_cnc has quit [Remote host closed the connection]
[23:29:38] -!- mhaberler has quit [Ping timeout: 264 seconds]
[23:37:28] -!- voxadam has quit [Ping timeout: 240 seconds]
[23:39:01] -!- Thetawaves has quit [Quit: This computer has gone to sleep]
[23:51:50] -!- voxadam has quit [Ping timeout: 240 seconds]