#leaflet | Logs for 2012-09-04

Back
[00:06:48] -!- jp_1 has quit [Quit: Leaving]
[00:06:49] -!- logger[mah] has quit [Remote host closed the connection]
[00:19:50] -!- atom1 has quit [Changing host]
[00:21:41] -!- ink_ has quit [Ping timeout: 245 seconds]
[00:25:36] -!- ve7it has quit [Remote host closed the connection]
[00:27:13] -!- atom1 has quit [Quit: Leaving]
[00:27:22] -!- gmagno_ has quit [Read error: Connection reset by peer]
[00:34:54] -!- Loetmichel has quit [Ping timeout: 264 seconds]
[01:08:30] -!- WillenCMD has quit [Ping timeout: 264 seconds]
[01:20:50] -!- tlab has quit [Quit: Leaving]
[01:21:56] -!- phreak4257 has quit [Ping timeout: 248 seconds]
[01:33:33] -!- gmagno has quit [Quit: Leaving]
[01:43:00] -!- sumpfralle has quit [Ping timeout: 276 seconds]
[01:50:14] -!- mhaberler has quit [Quit: mhaberler]
[02:17:15] -!- frewsxcv has quit [Read error: Connection reset by peer]
[02:38:01] -!- JT-Shop has quit [Read error: Connection reset by peer]
[02:38:02] -!- jthornton has quit [Read error: Connection reset by peer]
[02:41:16] -!- FinboySlick has quit [Quit: Leaving.]
[02:50:46] -!- Tom_L has quit []
[02:56:28] -!- ve7it has quit [Remote host closed the connection]
[03:07:14] -!- karavanjo has quit [Quit: Leaving]
[03:15:18] -!- fatpandas has quit [Ping timeout: 276 seconds]
[03:18:20] -!- karavanjo [[email protected]] has joined #leaflet
[03:19:20] -!- karavanjo has quit [Client Quit]
[05:04:02] -!- Fox_Muldr has quit [Ping timeout: 265 seconds]
[05:05:00] -!- dimas_ has quit [Ping timeout: 240 seconds]
[05:22:50] -!- SWPadnos has quit [Ping timeout: 244 seconds]
[05:28:57] Cylly2 is now known as Loetmichel
[05:33:36] -!- SWPadnos has quit [Changing host]
[06:16:20] -!- karavanjoW [[email protected]] has joined #leaflet
[06:21:32] -!- psha[work] [psha[work][email protected]] has joined #leaflet
[06:27:00] -!- WillenCMD has quit [Remote host closed the connection]
[06:53:24] -!- mhaberler has quit [Read error: Connection reset by peer]
[06:56:22] -!- phreak has quit [Remote host closed the connection]
[07:10:34] -!- djcoin [[email protected]] has joined #leaflet
[07:25:10] -!- emel has quit [Excess Flood]
[07:25:31] -!- emel [[email protected]] has joined #leaflet
[07:27:51] -!- dhoovie has quit [Read error: Connection reset by peer]
[07:29:49] -!- PhoenixMage has quit [Read error: Connection reset by peer]
[07:33:07] -!- dhoovie|2 has quit [Ping timeout: 246 seconds]
[07:36:37] -!- dhoovie has quit [Ping timeout: 246 seconds]
[07:37:06] -!- dhoovie|2 has quit [Read error: Connection reset by peer]
[08:01:08] -!- mhaberler has quit [Read error: Connection reset by peer]
[08:04:10] -!- karavanjoW has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
[08:04:31] -!- karavanjoW [[email protected]] has joined #leaflet
[08:12:15] -!- mhaberler has quit [Read error: Connection reset by peer]
[08:23:29] -!- b_b [[email protected]] has joined #leaflet
[08:24:13] -!- dhoovie|2 has quit [Ping timeout: 246 seconds]
[08:31:55] -!- Adventsparky [[email protected]] has joined #leaflet
[08:59:34] -!- dhoovie has quit [Ping timeout: 246 seconds]
[09:09:32] -!- odogono [odogono!~mohiam@cpc20-king10-2-0-cust228.19-1.cable.virginmedia.com] has joined #leaflet
[09:10:32] -!- b_b [[email protected]] has parted #leaflet
[09:14:49] -!- dimas has quit [Ping timeout: 244 seconds]
[09:37:12] -!- b_b [[email protected]] has joined #leaflet
[09:45:24] -!- fatpandas has quit [Ping timeout: 248 seconds]
[09:46:10] -!- phreak has quit [Remote host closed the connection]
[09:53:37] -!- phreak has quit [Remote host closed the connection]
[10:00:28] -!- phreak has quit [Ping timeout: 246 seconds]
[10:26:30] -!- theos has quit [Ping timeout: 264 seconds]
[10:30:46] -!- b_b [[email protected]] has parted #leaflet
[10:35:56] -!- James628 has quit [Quit: Page closed]
[10:39:40] -!- fatpandas has quit [Ping timeout: 246 seconds]
[10:42:50] -!- raju_a2a [raju_a2a!cabfb98e@gateway/web/freenode/ip.202.191.185.142] has joined #leaflet
[10:42:55] <raju_a2a> Ho
[10:42:57] <raju_a2a> Hi
[10:43:13] <raju_a2a> How to develop the darggable markers using leaflet
[10:44:01] <Adventsparky> you can pass draggable as true, when creating the marker
[10:44:52] <Adventsparky> http://leaflet.cloudmade.com/reference.html#marker
[10:49:37] <raju_a2a> L.marker([51.5, -0.09],draggable = true).addTo(map) .bindPopup("<b>Picture animation</b><br />I am a popup.").openPopup();
[10:49:46] <raju_a2a> I have done like this but it is not working
[10:50:02] <raju_a2a> can u say what can we do?
[10:50:09] <Adventsparky> L.marker([51.5, -0.09],{draggable: true})
[10:50:19] <raju_a2a> thanks
[10:53:07] <raju_a2a> thanks for your reply and one more thing if i will move the marker to some random positions how can we get that postions
[10:53:33] <raju_a2a> i want to get the x and y postions of that marker
[10:54:16] <raju_a2a> #django
[10:56:03] <Adventsparky> you don't want latlng? but the x,y?
[10:56:03] <raju_a2a> adventsparky : do you know how to get the x and y postions of marker if i dragged to some random locations
[10:56:33] <raju_a2a> actually i will tel you my requirement
[10:56:52] <Adventsparky> to get the latlng you can just ask the marker for it, marker.getLatLng()
[10:56:55] <raju_a2a> Im implementing this using images not maps, i used imagelayer and performing this tasks
[10:57:09] <Adventsparky> you can get the x,y if you need it instead, like in this thread here http://goo.gl/6b57u
[10:58:18] <raju_a2a> ok thanks
[10:59:17] <raju_a2a> Adventsparky: instead of lat and long can we add the markers based on x and y coordinates also,
[11:03:01] <Adventsparky> I'm not sure, I imagine there is a way to transform the x,y into a latlng, but I don't know of it off the top of my head
[11:03:23] <raju_a2a> ok fine
[11:05:55] -!- dhoovie|2 has quit [Ping timeout: 246 seconds]
[11:07:32] -!- fatpandas has quit [Ping timeout: 245 seconds]
[11:08:01] -!- dhoovie has quit [Ping timeout: 246 seconds]
[11:25:53] -!- pingufan has quit [Quit: Konversation terminated!]
[11:43:37] -!- CIA-54 has quit [Ping timeout: 240 seconds]
[11:49:57] -!- skunkworks__ has quit [Remote host closed the connection]
[11:52:39] <raju_a2a> I was trying to get the lat and long postion of the marker how can get them
[11:55:38] <Adventsparky> if you have the marker, you can just getLatLng()
[11:58:52] <raju_a2a> L.marker([51.5, -0.09],{draggable:true}).addTo(map) .bindPopup("<b>Picture animation</b><br />First Annotation.").openPopup(); this is my marker or do we need to create any seperate markers
[11:59:26] <raju_a2a> I have seeen getlatlng() method but i dont know how to apply them to this
[12:02:08] <Adventsparky> Well the question is, when do you want to get the latlng? When you have clicked on it, finished dragging?
[12:03:25] <raju_a2a> both points i want actually
[12:03:49] <raju_a2a> when clicked on perticular location and after dragging as well.
[12:04:22] <Adventsparky> ok
[12:04:23] <Adventsparky> so
[12:04:34] <Adventsparky> after you have the map created
[12:04:38] <Adventsparky> *marker
[12:04:43] <Adventsparky> then bind the drag event
[12:04:47] <Adventsparky> like this:
[12:05:34] -!- factor has quit [Quit: Leaving]
[12:07:55] -!- raju_a2a has quit [Ping timeout: 245 seconds]
[12:09:15] <Adventsparky> sorry, phone, so like this map.on('click', function(e){ alert(e.latlng); }); <- for the click latlng
[12:10:19] <Adventsparky> and you can call the marker drag event the same way
[12:10:25] -!- Brandonian [[email protected]] has joined #leaflet
[12:10:56] <Adventsparky> marker.on('dragend',function(e){ //do stuff! });
[12:19:30] -!- dhoovie has quit [Read error: Connection reset by peer]
[12:46:26] MattyMatt_ is now known as MattyMatt
[12:51:56] -!- pingufan has quit [Quit: Konversation terminated!]
[12:58:13] -!- James628 has quit [Quit: Page closed]
[13:05:21] -!- emel has quit [Excess Flood]
[13:05:42] -!- emel [[email protected]] has joined #leaflet
[13:09:03] -!- WillenCMD has quit [Ping timeout: 252 seconds]
[13:20:01] -!- phreak has quit [Remote host closed the connection]
[13:33:06] -!- zzolo [[email protected]] has joined #leaflet
[13:43:38] -!- wboykinm [[email protected]] has joined #leaflet
[13:52:32] -!- phreak has quit [Ping timeout: 268 seconds]
[13:52:32] -!- JT-Shop has quit [Read error: Connection reset by peer]
[13:52:33] -!- jthornton has quit [Read error: Connection reset by peer]
[14:07:13] -!- phreak_ has quit [Remote host closed the connection]
[14:11:03] -!- zzolo has quit [Quit: zzolo]
[14:16:16] -!- syyl has quit [Ping timeout: 252 seconds]
[14:27:37] herron is now known as archivist_herron
[14:31:12] -!- carsten_de_ms_ [[email protected]] has joined #leaflet
[14:33:19] <carsten_de_ms_> hey guys, i'm having problems with a custom control that is an input-html-element. it gets shown, but i can't click on it to type text in. the only way to access it is using the tab-key, then it works. has anyone ever tried something like that?
[14:33:52] <carsten_de_ms_> if i try to click into it, i can pan the map, but not type text in it
[14:34:56] <Adventsparky> is it live, can we see it working somewhere?
[14:35:42] -!- paideia has quit [Quit: Leaving]
[14:40:01] -!- phreak_ has quit [Ping timeout: 245 seconds]
[14:40:34] -!- fatpandas has quit [Ping timeout: 246 seconds]
[14:52:42] <carsten_de_ms_> Adventsparky: yes, just a minute...
[14:53:56] -!- zzolo [[email protected]] has joined #leaflet
[14:56:47] <carsten_de_ms_> Adventsparky: http://www.rocktool.de/map.html
[14:57:10] <carsten_de_ms_> this is just a small version of the one i'm working on, but the problem still stays
[14:57:37] <Adventsparky> Ok I will take a look, 1min
[14:57:56] <carsten_de_ms_> i have already tried to use L.DomUtil.enableTextSelection(), but this didn't help either, or maybe I was using it wrong
[14:58:24] -!- zzolo has quit [Client Quit]
[15:00:22] <carsten_de_ms_> Adventsparky: the text input gets an autofocus on map load, and then you can type (german) cities in there to zoom the map to the typed city, but i can't click into it
[15:00:40] <carsten_de_ms_> the map just pans
[15:02:41] -!- zzolo [[email protected]] has joined #leaflet
[15:03:00] <carsten_de_ms_> the code for creating the control starts at line 106 in the map.js-file
[15:03:59] <carsten_de_ms_> it's a mixture of the example code and the zoom-control-code
[15:04:41] -!- mrsun has quit [Ping timeout: 268 seconds]
[15:06:49] <Adventsparky> hmm, interesting. ok, taking a look through it
[15:08:12] <carsten_de_ms_> thanks :-) so default behaviour of a custom input element should be that it's clickable/selectable with the mouse and then you can type text right in i guess?
[15:08:13] -!- Tom_itx has quit [Ping timeout: 244 seconds]
[15:08:46] -!- zlog has quit [Ping timeout: 245 seconds]
[15:24:18] -!- IchGuckLive has quit [Client Quit]
[15:25:24] <Adventsparky> sorry I was on a call, sometimes real work has to be done ;)
[15:26:11] <Adventsparky> So the first thing I would try, is add a line to stop the map taking over the click L.DomEvent.addListener(searchField, 'click', L.DomEvent.preventDefault)
[15:27:38] <Adventsparky> carsten_de_ms: stick it in before the "return container;" I think
[15:30:07] <carsten_de_ms_> Adventsparky: hm, does not help, i tried it before the "return container;" and before the "searchFieldElement"
[15:31:07] <carsten_de_ms_> but wait, maybe it would be better to create a jsfiddle? just a second...
[15:31:14] <Adventsparky> that would be awesome
[15:33:46] -!- djcoin has quit [Ping timeout: 246 seconds]
[15:36:03] -!- broofa has quit [Quit: Computer has gone to sleep.]
[15:36:18] <carsten_de_ms_> argh... browser crashed :-( takes a few secondes more now ;-)
[15:42:15] -!- djcoin [[email protected]] has joined #leaflet
[15:42:49] -!- gwint [gwint!620facb9@gateway/web/freenode/ip.98.15.172.185] has joined #leaflet
[15:44:56] <carsten_de_ms_> so here it is: http://jsfiddle.net/gZ5fE/1/
[15:45:10] <carsten_de_ms_> just a basic map with my custom control
[15:45:54] -!- emel has quit [Excess Flood]
[15:46:34] -!- emel [[email protected]] has joined #leaflet
[15:53:52] -!- b_b [[email protected]] has joined #leaflet
[16:00:05] -!- broofa [[email protected]] has joined #leaflet
[16:03:27] -!- phantoxe has quit [Remote host closed the connection]
[16:04:13] -!- phantoneD has quit [Ping timeout: 246 seconds]
[16:05:18] <Adventsparky> carsten_de_ms
[16:05:43] <Adventsparky> Add "L.DomEvent.disableClickPropagation(searchFieldElement);" right before you return the search element
[16:05:53] <Adventsparky> this will stop the map taking over when you hit the input
[16:06:21] <Adventsparky> http://jsfiddle.net/gZ5fE/3/
[16:07:58] -!- maximilian_h has quit [Quit: Leaving.]
[16:08:40] <carsten_de_ms_> yeah! thank you so much, that did the trick! i would have never thought of that :-)
[16:09:37] <Adventsparky> Great!
[16:09:58] <Adventsparky> bro-5 ,o/ \o,
[16:17:38] -!- djcoin has quit [Ping timeout: 252 seconds]
[16:26:30] -!- ve7it has quit [Remote host closed the connection]
[16:26:39] <gwint> is there a way to add a preview/navigation pane to a leaflet map? Similar to http://www.dimin.net/software/panojs/ ?
[16:28:44] -!- Jmaes628 has quit [Client Quit]
[16:29:19] <b_b> i've read some discussions about that in issues forum
[16:29:29] <b_b> but it seems that nobody have done it yet
[16:30:21] -!- phantoxe has quit []
[16:35:44] -!- Adventsparky has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
[16:43:54] -!- dimas_ has quit [Ping timeout: 264 seconds]
[16:47:02] -!- emel has quit [Excess Flood]
[16:47:23] -!- emel [[email protected]] has joined #leaflet
[16:49:55] -!- fatpandas has quit [Ping timeout: 272 seconds]
[17:03:35] -!- psha[work] has quit [Quit: Lost terminal]
[17:10:52] -!- baswazz [[email protected]] has parted #leaflet
[17:13:37] -!- b_b [[email protected]] has parted #leaflet
[17:42:32] -!- syyl_ws has quit [Quit: Verlassend]
[17:45:38] -!- IchGuckLive has quit [Ping timeout: 252 seconds]
[17:56:19] -!- pingufan has quit [Quit: Konversation terminated!]
[17:59:30] -!- tom3p has quit [Quit: Ex-Chat]
[18:10:46] -!- skorket has quit [Quit: Leaving]
[18:14:24] -!- _bwg_ has quit [Read error: Connection reset by peer]
[18:16:36] -!- karavanjo [[email protected]] has joined #leaflet
[18:23:18] -!- karavanjo has quit [Quit: Leaving]
[18:23:18] -!- karavanjo_ [[email protected]] has joined #leaflet
[18:24:55] -!- steves_logging has quit []
[18:50:43] -!- ScribbleJ has quit [Ping timeout: 246 seconds]
[19:07:10] -!- emel has quit [Quit: Terminated with extreme prejudice - dircproxy 1.0.5]
[19:11:37] -!- jpk [jpk!~jpk@unaffiliated/vorondil] has joined #leaflet
[19:30:30] -!- vladimirek has quit [Remote host closed the connection]
[19:34:46] -!- James628 has quit [Quit: Page closed]
[19:55:16] -!- carsten_de_ms_ has quit [Quit: Ex-Chat]
[20:01:52] -!- broofa has quit [Quit: Computer has gone to sleep.]
[20:10:52] -!- broofa [[email protected]] has joined #leaflet
[20:22:18] -!- odogono has quit [Quit: odogono]
[20:29:37] -!- FinboySlick has quit [Quit: Leaving.]
[20:30:49] -!- syyl_ has quit [Read error: Connection reset by peer]
[20:40:38] -!- skorket has quit [Quit: Leaving]
[20:41:24] -!- phreak__ has quit [Remote host closed the connection]
[20:56:05] -!- toastydeath has quit [Ping timeout: 246 seconds]
[20:59:33] -!- mhaberler has quit [Ping timeout: 244 seconds]
[21:02:05] -!- gwint has quit [Ping timeout: 245 seconds]
[21:15:28] -!- broofa has quit [Quit: Computer has gone to sleep.]
[21:17:22] -!- broofa [[email protected]] has joined #leaflet
[21:26:01] -!- DJ9DJ has quit [Quit: bye]
[21:32:55] -!- wboykinm has quit [Remote host closed the connection]
[21:35:21] -!- skunkworks has quit [Read error: Connection reset by peer]
[21:41:40] -!- sumpfralle has quit [Ping timeout: 248 seconds]
[21:47:34] -!- sumpfralle has quit [Client Quit]
[22:01:26] -!- bedah has quit [Quit: Ex-Chat]
[22:03:17] -!- micges has quit [Quit: Leaving]
[22:36:25] -!- rob_h has quit [Ping timeout: 255 seconds]
[22:39:57] -!- grummund has quit [Ping timeout: 252 seconds]
[22:42:00] -!- zzolo has quit [Quit: zzolo]
[23:09:43] -!- tronwizard has quit [Ping timeout: 246 seconds]
[23:18:27] -!- guest45674 has quit [Read error: Connection reset by peer]
[23:22:49] -!- guest45674 has quit [Read error: Connection reset by peer]
[23:22:49] -!- guest45674t has quit [Read error: Connection reset by peer]
[23:23:56] -!- zzolo [[email protected]] has joined #leaflet
[23:24:09] -!- zzolo has quit [Client Quit]
[23:30:05] -!- guest45674t has quit [Read error: Connection reset by peer]
[23:34:04] -!- guest45674 has quit [Read error: Connection reset by peer]
[23:42:25] -!- guest45674t has quit [Read error: Connection reset by peer]
[23:56:15] -!- guest45674t has quit [Read error: Connection reset by peer]