#leaflet | Logs for 2013-08-08

Back
[17:03:29] -!- logger[psha] [logger[psha]!~loggerpsh@195.135.238.205] has joined #leaflet
[17:11:49] -!- logger[psha] [logger[psha]!~loggerpsh@195.135.238.205] has joined #leaflet
[17:11:49] -hobana.freenode.net:#leaflet- [freenode-info] why register and identify? your IRC nick is how people know you. http://freenode.net/faq.shtml#nicksetup
[17:13:47] -!- BJfreeman has quit [Quit: had a good time]
[17:26:31] -!- tmcw [tmcw!~tmcw@50-198-132-58-static.hfc.comcastbusiness.net] has joined #leaflet
[17:32:40] -!- md-2 has quit [Remote host closed the connection]
[17:40:18] -!- DaViruz has quit [Read error: Connection reset by peer]
[17:41:41] -!- jithin [jithin!6a42bfcf@gateway/web/freenode/ip.106.66.191.207] has joined #leaflet
[17:42:46] <jithin> hai I am new to leaflet.. is anybody know how to create resizable polygonlayer in leaflet
[17:45:58] <tmcw> jithin: resizable? the Leaflet.draw plugin might fit that need
[17:46:39] <jithin> hi I mean that layer should be draggable and resizable currently it is draggable
[17:49:48] <jithin> hai could you please check this. Currently have hardcoded values http://plnkr.co/edit/n5OjF71AUHPghFS2pADc?p=catalogue
[17:50:57] <tmcw> yes, check out Leaflet.draw.
[17:51:08] <tmcw> If that doesn't suit it, you'll need to write the code yourself
[17:53:53] <jithin> I don't want to create polygon instead need to resize and drag a polygon layer. Can I use that plugin for this purpose
[17:55:21] <tmcw> no, you'll have to build this yourself
[17:57:16] <jithin> tmcw: I am new to leaflet. How can I do that. is there any example?
[17:57:31] <tmcw> nope, it will be quite hard to do
[17:59:42] <jithin> I have tried openlayers but in open layers it is easy to create draggable and resizable vector layers. but fitto a fixed extent is not accurate in ol. In Leaflet is there any method to restrict dragging of polygon layer within a given bounds
[18:02:42] -!- jd896 has quit [Remote host closed the connection]
[18:16:39] -!- IchGuckLive has quit [Quit: ChatZilla 0.9.87 [Firefox 20.0/20130329043827]]
[18:17:02] -!- NickATX has quit [Ping timeout: 240 seconds]
[18:17:05] -!- mackerski has quit [Quit: mackerski]
[18:22:06] -!- mrsun has quit [Ping timeout: 256 seconds]
[18:28:54] -!- sumpfralle has quit [Ping timeout: 264 seconds]
[18:34:43] -!- nikola_ has quit [Quit: Page closed]
[18:34:56] -!- ler_hydra has quit [Remote host closed the connection]
[18:53:44] -!- zzolo has quit [Quit: zzolo]
[19:06:47] -!- zzolo [zzolo!~zzolo@63.231.245.97] has joined #leaflet
[19:11:26] -!- zzolo has quit [Ping timeout: 240 seconds]
[19:14:09] -!- Xfriend has quit [Quit: Leaving]
[19:16:21] -!- zzolo [zzolo!~zzolo@63.231.245.97] has joined #leaflet
[19:39:26] -!- jithin has quit [Quit: Page closed]
[19:54:54] -!- slimjimflim [slimjimflim!~slimjimfl@unaffiliated/slimjimflim] has joined #leaflet
[19:55:29] <slimjimflim> hi, does anyone know if it's possible to use an image to fill a polygon?
[19:55:56] <slimjimflim> or any other way to make the fill striped?
[19:58:35] -!- skunkworks_ has quit [Quit: Leaving]
[19:59:44] <tom_o_t> interesting question - I'd like to know the answer too
[20:00:40] <slimjimflim> or maybe add a css class so i could use background-image
[20:01:50] <slimjimflim> i'd like to still be able to set the opacity too so i can see the map
[20:04:04] -!- martin__ has quit [Ping timeout: 264 seconds]
[20:04:05] <tom_o_t> pretty sure it's not possible unfortunately
[20:05:03] <tom_o_t> Tilemill lets you create textured fills though
[20:05:08] <tom_o_t> http://www.mapbox.com/tilemill/docs/guides/styling-polygons/
[20:05:16] <slimjimflim> anything is possible, it's just a matter of how hard and how much time
[20:05:18] <slimjimflim> hmm
[20:05:29] <tom_o_t> absolutely
[20:06:05] <slimjimflim> wait, is tilemill different from leaflet?
[20:06:59] -!- vladimirek has quit [Remote host closed the connection]
[20:07:00] <slimjimflim> cause i've spent a good chunk of time building leaflet polygons. at this point it'd probably be easier to just write a module for leaflet to make it work
[20:07:45] <tom_o_t> yeah, tilemill's different
[20:07:52] <slimjimflim> D:
[20:09:42] <tom_o_t> Convoluted way would be to use svg patterns via d3 js
[20:09:58] <slimjimflim> what's d3?
[20:10:33] <tom_o_t> http://bl.ocks.org/mbostock/4060606
[20:10:36] <tom_o_t> is an example
[20:10:48] <tom_o_t> it's a js library for data visualization
[20:11:11] <slimjimflim> hm. you gonna be here a minute? gotta step out for a smoke
[20:11:32] <tom_o_t> I'll be here
[20:11:34] <slimjimflim> k
[20:11:50] -!- gimps_ has quit [Ping timeout: 240 seconds]
[20:12:26] -!- Owner has quit [Remote host closed the connection]
[20:12:53] <tom_o_t> slimjimflim, for when you're back: http://bost.ocks.org/mike/leaflet/
[20:19:09] -!- sumpfralle has quit [Ping timeout: 276 seconds]
[20:22:51] -!- hendrik_ has quit [Client Quit]
[20:24:28] -!- sumpfralle1 has quit [Ping timeout: 264 seconds]
[20:24:45] -!- stsydow [stsydow!~stsydow@dslb-088-072-097-032.pools.arcor-ip.net] has joined #leaflet
[20:26:46] <slimjimflim> tom_o_t: after a quick skim it looks like that'll let me add new layers with a custom css class
[20:27:06] <slimjimflim> er add new polygons
[20:27:19] <slimjimflim> and from there i should be able to define a background image and opacity, right?
[20:27:41] <slimjimflim> which would mean that it's safe to continue working and do that part later
[20:27:44] <slimjimflim> you think?
[20:29:51] <tom_o_t> slimjimflim, hard to say. I don't know anyone other than Mike Bostock who's done leaflet & d3 js integration, so if I were relying on that feature I'd want to get a proof-of-concept working early on
[20:30:05] <slimjimflim> yea
[20:30:18] <slimjimflim> *sigh*
[20:30:21] <slimjimflim> the fun never ends
[20:30:26] <tom_o_t> :)
[20:31:15] <slimjimflim> what's the other js library for osm? that's supposed to be a harder api. i think that's my only other option
[20:31:39] <tom_o_t> openlayers?
[20:31:42] <slimjimflim> yep
[20:32:00] <tom_o_t> there's modest maps too, but I've not looked into that much
[20:32:16] <slimjimflim> well i think d3 + leaflet is worth a try
[20:32:23] <slimjimflim> i'm gonna see if i can get it running
[20:33:11] <tom_o_t> let me know how it goes - I'm interested
[20:33:55] <slimjimflim> k. i can't show you the page i'm working on, but i'll give you a snippet if i get it working
[20:34:06] <tom_o_t> great
[20:43:49] -!- hashfail_ has quit [Ping timeout: 248 seconds]
[20:55:38] <slimjimflim> tom_o_t: not sure if i'm even gonna try this. just emailed the boss. we'll see what happens.
[20:55:47] <tom_o_t> :)
[20:56:05] -!- gimps_ has quit [Ping timeout: 248 seconds]
[20:58:10] <slimjimflim> oh and did i mention that once this is all done, i get to make it into a drupal module that lets users input marker attributes that get stored in a db?
[20:58:14] <slimjimflim> so much fun
[21:01:32] -!- servos4ever has quit [Quit: ChatZilla 0.9.85 [SeaMonkey 2.0.11/20101206162726]]
[21:04:27] <tom_o_t> nice
[21:04:58] <tom_o_t> you using Drupal's existing leaflet integration? Or custom?
[21:07:09] <slimjimflim> haven't thought about that
[21:08:43] -!- FinboySlick has quit [Quit: Leaving.]
[21:09:40] <tom_o_t> Leaflet integration in Drupal has come on a long way since I last looked into it (~1 1/2 yrs ago)
[21:10:39] <slimjimflim> well i have to be able to input my polygons somehow
[21:10:57] -!- DJ9DJ has quit [Quit: bye]
[21:10:59] <slimjimflim> it's all hardcoded atm
[21:11:16] <slimjimflim> there's no way i'm gonna input it through a web interface
[21:11:19] <slimjimflim> wayyyy too much data
[21:15:26] -!- chillly has quit [Quit: Leaving]
[21:17:55] -!- bsilvereagle has quit [Ping timeout: 245 seconds]
[21:19:37] -!- odogono has quit [Quit: odogono]
[21:26:09] -!- mrsun has quit [Ping timeout: 240 seconds]
[22:08:20] -!- alex_joni has quit [Ping timeout: 245 seconds]
[22:15:11] -!- sparr_ has quit [Ping timeout: 240 seconds]
[22:15:25] -!- stsydow has quit [Remote host closed the connection]
[22:15:39] -!- zzolo has quit [Quit: zzolo]
[22:22:05] -!- Laremere [Laremere!~quassel@74-36-106-22.dr02.apvy.mn.frontiernet.net] has joined #leaflet
[22:30:28] -!- slimjimflim has quit [Ping timeout: 264 seconds]
[22:30:49] -!- slimjimflim [slimjimflim!~slimjimfl@unaffiliated/slimjimflim] has joined #leaflet
[22:31:50] -!- Laremere has quit [Ping timeout: 240 seconds]
[22:34:48] -!- zzolo [zzolo!~zzolo@75.72.229.64] has joined #leaflet
[22:42:47] -!- Laremere [Laremere!~quassel@74-36-106-22.dr02.apvy.mn.frontiernet.net] has joined #leaflet
[22:45:19] -!- Laremere_AFK [Laremere_AFK!~quassel@74-36-106-22.dr02.apvy.mn.frontiernet.net] has joined #leaflet
[22:45:31] -!- Laremere_AFK has quit [Remote host closed the connection]
[22:48:06] -!- Laremere has quit [Ping timeout: 264 seconds]
[23:02:42] -!- Logxen has quit [Quit: Doom]
[23:04:28] -!- tmcw has quit [Remote host closed the connection]
[23:04:45] -!- adb has quit [Remote host closed the connection]
[23:07:15] -!- Nick001-Shop has quit [Read error: Connection reset by peer]
[23:07:18] Nick001-Shop_ is now known as Nick001-Shop
[23:09:55] -!- erasmo has quit [Quit: Leaving]
[23:37:26] -!- rob_h has quit [Ping timeout: 240 seconds]
[23:43:40] -!- sumpfralle has quit [Ping timeout: 264 seconds]
[23:59:44] _BJFreeman is now known as BJfreeman