#leaflet | Logs for 2012-11-12

Back
[00:13:25] -!- logger[mah] has quit [Remote host closed the connection]
[00:13:58] -!- Valen has quit [Quit: Leaving.]
[00:23:01] -!- skunkworks has quit [Remote host closed the connection]
[00:26:13] -!- gambakufu has quit [Ping timeout: 265 seconds]
[00:26:30] -!- asdfasd has quit [Ping timeout: 264 seconds]
[00:31:15] -!- archivist has quit [Ping timeout: 240 seconds]
[00:31:43] -!- rob__H has quit [Ping timeout: 260 seconds]
[00:32:21] -!- the_wench has quit [Ping timeout: 248 seconds]
[00:38:30] -!- moonlite [moonlite!~moonlite@gbg01.kartena.se] has joined #leaflet
[00:51:26] -!- factor has quit [Read error: Connection reset by peer]
[00:57:29] -!- alpha1125 has quit [Read error: Connection reset by peer]
[01:03:40] -!- syyl_ has quit [Quit: Leaving]
[01:03:47] -!- adb has quit [Ping timeout: 245 seconds]
[01:15:06] -!- asdfasd has quit [Ping timeout: 240 seconds]
[01:40:44] -!- tjb1 has quit [Quit: tjb1]
[01:44:47] -!- markvandenborre has quit [Ping timeout: 256 seconds]
[01:47:26] -!- gambakufu has quit [Ping timeout: 246 seconds]
[01:50:21] -!- ybon has quit [Quit: WeeChat 0.3.8]
[01:51:16] -!- andypugh has quit [Quit: andypugh]
[01:54:19] -!- paideia has quit [Ping timeout: 260 seconds]
[02:05:41] -!- Keknom has quit [Quit: Leaving.]
[02:09:18] -!- i_tarzan has quit [Ping timeout: 276 seconds]
[02:21:40] -!- servos4ever has quit [Quit: ChatZilla 0.9.85 [SeaMonkey 2.0.11/20101206162726]]
[02:23:10] -!- defaultro has quit [Ping timeout: 252 seconds]
[02:44:17] -!- sumpfralle has quit [Ping timeout: 246 seconds]
[03:09:15] -!- JT-Shop has quit [Read error: Connection reset by peer]
[03:09:15] -!- jthornton has quit [Read error: Connection reset by peer]
[03:11:51] -!- Newtonianb [Newtonianb!~Newtonian@208.71.36.3] has joined #leaflet
[04:01:31] -!- Thetawaves has quit [Quit: This computer has gone to sleep]
[04:18:12] -!- toastydeath has quit [Read error: Connection timed out]
[04:55:18] -!- asdfasd has quit [Ping timeout: 264 seconds]
[05:09:35] -!- postaL has quit [Ping timeout: 240 seconds]
[05:14:07] -!- FinboySlick has quit [Quit: Leaving.]
[05:30:22] -!- ve7it has quit [Remote host closed the connection]
[05:35:49] -!- Nick001 has quit [Ping timeout: 248 seconds]
[05:41:53] -!- ve7it has quit [Remote host closed the connection]
[06:03:09] -!- Fox_Muldr has quit [Ping timeout: 260 seconds]
[06:06:09] -!- karavanjoW [karavanjoW!~karavanjo@178.124.148.114] has joined #leaflet
[06:30:02] -!- tjb1 has quit [Ping timeout: 246 seconds]
[06:30:02] tjb1_ is now known as tjb1
[06:31:38] -!- dhoovie has quit [Ping timeout: 246 seconds]
[06:46:09] -!- theos has quit [Read error: Operation timed out]
[06:51:22] -!- tjb1 has quit [Quit: tjb1]
[07:30:10] -!- Newtonianb has quit []
[07:57:15] -!- vladimirek has quit [Remote host closed the connection]
[07:59:15] -!- herron has quit [Ping timeout: 240 seconds]
[08:11:58] -!- psha[work] [psha[work]!~psha@195.135.238.205] has joined #leaflet
[08:13:50] -!- wavesounds [wavesounds!~wavesound@cpe-66-74-163-141.socal.res.rr.com] has joined #leaflet
[08:21:16] <wavesounds> Hi does anyone have any ideas on why my map is loading uncentered? Ie lots of grey area
[08:24:24] -!- emel has quit [Excess Flood]
[08:24:44] -!- emel [emel!~emel@sd-22438.dedibox.fr] has joined #leaflet
[08:26:09] <wavesounds> nm
[08:42:58] -!- Connor has quit [Quit: Leaving.]
[08:43:14] -!- ybon [ybon!~ybon@80.214.1.23] has joined #leaflet
[08:44:24] <ybon> wavesounds: does your map element display:block when you instantiate map?
[08:45:09] <wavesounds> ybon: the problem is im using bootstrap-tab.js which loads the map in a different place then moves it when you select the tab
[08:45:55] <wavesounds> so im thinking of calling setView after the tab is clicked - does that sound right?
[08:46:46] <ybon> yes, I think
[08:49:46] <wavesounds> ybon: Im getting an error 'map container is already initalized' - maybe theres a different method I could use?
[08:50:01] <ybon> humm
[08:50:04] <ybon> let met think
[08:50:14] <ybon> invalidateSize maybe?
[08:52:30] <wavesounds> same error "map container is already initalized"
[08:52:51] <ybon> duh
[08:59:12] <ybon> can you show some code?
[09:00:11] <wavesounds> I think i might have figured it out actually
[09:00:25] <wavesounds> this im currently doing on page load:
[09:00:36] <wavesounds> function loadMapScript() {
[09:00:37] <wavesounds> // create default image path
[09:00:37] <wavesounds> L.Icon.Default.imagePath = 'packages/leaflet/images';
[09:00:38] <wavesounds> //create a map in the map div, set the view to a given place and zoom
[09:00:40] <wavesounds> window.map = L.map('map').setView([Session.get("lat"), Session.get("long")], 10);
[09:00:42] <wavesounds> // add a CloudMade tile layer with style #997 - use your own cloudmade api key
[09:00:44] <wavesounds> L.tileLayer("http://{s}.tile.cloudmade.com/c4a736d8b67045d989cad6c2be79697b/997/256/{z}/{x}/{y}.png", {
[09:00:46] <wavesounds> attribution: 'Map data &copy; <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, Imagery © <a href="http://cloudmade.com">CloudMade</a>',
[09:00:48] <wavesounds> maxZoom: 18
[09:00:50] <wavesounds> }).addTo(window.map);
[09:00:52] <wavesounds> };
[09:00:56] <wavesounds> I just need to move all of that to run once the tab is clicked instead
[09:09:31] -!- racycle has quit [Quit: racycle]
[09:10:47] -!- grummund has quit [Ping timeout: 252 seconds]
[09:13:31] <wavesounds> weird it works from the console but from code it still loads off center
[09:18:55] <ybon> certainly a timing problem between every events
[09:20:56] <wavesounds> yeah doesnt help that im using Meteor which is complicating things
[09:20:58] <wavesounds> :-)
[09:22:23] <ybon> KISS... ;)
[09:24:42] -!- Loetmichel has quit [Ping timeout: 264 seconds]
[09:25:52] -!- djheinzNO has quit [Ping timeout: 245 seconds]
[09:28:06] -!- b_b [b_b!ejabberd@81.18.178.14] has joined #leaflet
[09:29:51] <wavesounds> tru dat
[09:36:43] -!- Cylly has quit []
[09:37:29] -!- wavesounds has quit [Remote host closed the connection]
[09:38:21] -!- bmwyss [bmwyss!~bmwyss@fw-eucentre.unipv.it] has joined #leaflet
[09:55:09] -!- mattions [mattions!~mattions@cpc3-cmbg14-2-0-cust446.5-4.cable.virginmedia.com] has joined #leaflet
[09:59:45] -!- b_b [b_b!ejabberd@81.18.178.14] has parted #leaflet
[09:59:53] -!- b_b [b_b!ejabberd@81.18.178.14] has joined #leaflet
[10:30:08] -!- mattions has quit [Ping timeout: 246 seconds]
[10:41:44] -!- pingufan has quit [Quit: Konversation terminated!]
[10:57:36] -!- sumpfralle has quit [Read error: Operation timed out]
[11:10:45] -!- phantoxe has quit [Read error: Connection reset by peer]
[11:31:57] -!- mattions [mattions!~mattions@cpc3-cmbg14-2-0-cust446.5-4.cable.virginmedia.com] has joined #leaflet
[11:53:26] -!- Nick001 has quit [Ping timeout: 246 seconds]
[12:00:33] jthornton_ is now known as jthornton
[12:01:51] -!- dhoovie|2 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
[12:17:55] -!- cncbasher has quit [Quit: time to make some more scrap]
[12:18:47] -!- lhapaipai [lhapaipai!4eecf37b@gateway/web/freenode/ip.78.236.243.123] has joined #leaflet
[12:19:26] -!- lhapaipai has quit [Client Quit]
[12:26:40] -!- holst has quit [Quit: Leaving]
[12:29:54] -!- herron has quit [Ping timeout: 240 seconds]
[12:39:39] -!- factor has quit [Read error: Connection reset by peer]
[12:40:39] -!- KimK_laptop has quit [Ping timeout: 260 seconds]
[12:45:55] -!- Simooon has quit [Ping timeout: 240 seconds]
[13:02:56] -!- theorbtwo has quit [Ping timeout: 246 seconds]
[13:13:46] -!- chillly [chillly!~chris@adsl-212-50-170-31.karoo.KCOM.COM] has joined #leaflet
[13:23:03] -!- Brandonian [Brandonian!~bmorrison@c-71-229-81-179.hsd1.in.comcast.net] has joined #leaflet
[13:36:31] -!- Valen has quit [Quit: Leaving.]
[13:50:20] -!- markvandenborre has quit [Changing host]
[13:51:14] -!- chillly has quit [Quit: Leaving]
[13:53:31] -!- ybon has quit [Quit: WeeChat 0.3.8]
[13:54:16] -!- ybon [ybon!~ybon@80.214.1.23] has joined #leaflet
[14:35:48] -!- mk0 has quit [Quit: Looking for access to www.icdd.com bases.]
[14:35:54] -!- zzolo [zzolo!~zzolo@c-75-72-229-64.hsd1.mn.comcast.net] has joined #leaflet
[14:53:43] -!- psha[work] has quit [Quit: Lost terminal]
[14:58:14] -!- rasmus_ has quit [Client Quit]
[15:04:33] -!- wboykinm [wboykinm!~quassel@132.198.159.96] has joined #leaflet
[15:06:14] -!- maximilian_h has quit [Quit: Leaving.]
[15:21:42] -!- Tom_itx has quit [Ping timeout: 264 seconds]
[15:22:16] -!- Simooon has quit [Remote host closed the connection]
[15:22:35] -!- zlog has quit [Ping timeout: 260 seconds]
[15:26:01] -!- holst has quit [Ping timeout: 252 seconds]
[15:27:14] -!- karavanjo [karavanjo!~karavanjo@213.184.242.183] has joined #leaflet
[15:36:45] -!- horatio_cromwell [horatio_cromwell!~hickin@cpc10-salf5-2-0-cust242.10-2.cable.virginmedia.com] has joined #leaflet
[15:37:23] <horatio_cromwell> i have just started using leaflet but am having problems, when I place a marker, when I zoom the marker moves
[15:39:26] <horatio_cromwell> it doesn;t seem to be anchire
[15:39:30] <horatio_cromwell> anchored
[15:39:32] <horatio_cromwell> to a location
[15:44:06] <ybon> weird
[15:44:20] <ybon> is the code testable/visible?
[15:45:24] -!- zzolo has quit [Quit: zzolo]
[15:50:21] <horatio_cromwell> this.map = new L.Map(element);
[15:50:21] <horatio_cromwell>
[15:50:21] <horatio_cromwell> var osmUrl='http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png';
[15:50:21] <horatio_cromwell> var osmAttrib='Map data © OpenStreetMap contributors';
[15:50:21] <horatio_cromwell> var osm = new L.TileLayer(osmUrl, {attribution: osmAttrib});
[15:50:22] <horatio_cromwell>
[15:50:22] <horatio_cromwell> this.map.setView(new L.LatLng(51.3, 0.7),9);
[15:50:22] <horatio_cromwell> this.map.addLayer(osm);
[15:50:23] <horatio_cromwell> this.map.invalidateSize();
[15:50:23] <horatio_cromwell> L.marker([51.5, -0.09]).addTo(this.map).bindPopup('A pretty CSS3 popup. <br> Easily customizable.');
[15:51:03] -!- theorbtwo has quit [Ping timeout: 260 seconds]
[15:51:07] <horatio_cromwell> ybon: http://pastebin.com/TeEzN0kg
[15:51:56] <ybon> humm
[15:52:05] <ybon> can you make it work on jsfiddle?
[15:52:18] <ybon> it's better to have something working to debug and help
[16:01:02] -!- chillly [chillly!~chris@adsl-212-50-170-31.karoo.KCOM.COM] has joined #leaflet
[16:08:12] spiderdi1on is now known as spiderdijon
[16:19:32] -!- erictheise [erictheise!~mataro@c-68-35-140-196.hsd1.nm.comcast.net] has joined #leaflet
[16:38:35] -!- mhaberler has quit [Quit: mhaberler]
[16:39:35] -!- paideia has quit [Ping timeout: 240 seconds]
[16:42:11] -!- the_wench has quit [Ping timeout: 246 seconds]
[16:42:55] -!- archivist has quit [Ping timeout: 240 seconds]
[16:49:51] -!- zzolo [zzolo!~zzolo@mail.minnpost.com] has joined #leaflet
[16:55:16] -!- ktchk has quit [Ping timeout: 245 seconds]
[16:56:20] -!- bmwyss has quit [Quit: bmwyss]
[16:57:13] -!- Yarl [Yarl!~Yarl@89-78-61-173.dynamic.chello.pl] has joined #leaflet
[17:01:29] -!- racycle [racycle!~racycle@75-25-129-128.lightspeed.sjcpca.sbcglobal.net] has joined #leaflet
[17:04:30] -!- logger[psha] has quit [Ping timeout: 260 seconds]
[17:06:09] -!- logger[psha] [logger[psha]!~loggerpsh@195.135.238.205] has joined #leaflet
[17:26:43] -!- karavanjo has quit [Read error: Connection reset by peer]
[17:33:23] -!- paideia has quit [Quit: Leaving]
[17:39:53] JT-Shop-2 is now known as JT-Shop
[17:43:26] -!- karavanjo [karavanjo!~karavanjo@213.184.242.183] has joined #leaflet
[17:50:04] -!- mattions has quit [Ping timeout: 246 seconds]
[18:10:03] -!- pjm__ has quit [Read error: No route to host]
[18:17:21] -!- b_b [b_b!ejabberd@81.18.178.14] has parted #leaflet
[18:40:20] -!- rizo has quit [Quit: Leaving]
[18:40:21] -!- logger[psha] has quit [Ping timeout: 248 seconds]
[18:41:35] -!- logger[psha] [logger[psha]!~loggerpsh@195.135.238.205] has joined #leaflet
[18:44:10] -!- psha has quit [Quit: Lost terminal]
[18:54:12] -!- phantone has quit []
[18:54:12] -!- logger[psha] has quit [Ping timeout: 276 seconds]
[18:56:54] -!- logger[psha] [logger[psha]!~loggerpsh@195.135.238.205] has joined #leaflet
[19:17:01] -!- b_b [b_b!ejabberd@81.18.178.14] has joined #leaflet
[19:17:25] -!- IchGuckLive has quit [Quit: ChatZilla 0.9.87 [Firefox 16.0.2/20121025205401]]
[19:18:03] -!- syyl_ws has quit [Quit: Verlassend]
[19:30:56] -!- joru [joru!~joru@31.44.230.51] has joined #leaflet
[19:59:39] -!- Tom_L has quit [Client Quit]
[20:17:33] -!- L84Supper has quit [Quit: <puff of smoke>]
[20:25:50] -!- wavesounds [wavesounds!~wavesound@cpe-66-74-163-141.socal.res.rr.com] has joined #leaflet
[20:26:12] <wavesounds> Hi, can anyone tell me how I can check to see if my map has already been initialized in javascript?
[20:26:27] -!- gurumelo [gurumelo!~mari@unaffiliated/gurumelo] has joined #leaflet
[20:30:03] -!- tjb1 has quit [Quit: tjb1]
[20:37:37] -!- gurumelo has quit [Remote host closed the connection]
[20:38:19] -!- wavesounds has quit [Remote host closed the connection]
[20:39:57] -!- kwallace has quit [Ping timeout: 268 seconds]
[20:42:38] -!- gurumelo [gurumelo!~mari@li270-85.members.linode.com] has joined #leaflet
[20:43:28] -!- Caanon_work has quit [Quit: Caanon_work]
[20:44:22] -!- gurumelo has quit [Client Quit]
[20:45:40] -!- wboykinm has quit [Remote host closed the connection]
[20:54:25] -!- vladimirek has quit [Remote host closed the connection]
[21:05:26] -!- mazafaka has quit [Read error: Connection reset by peer]
[21:07:32] -!- djheinz has quit [Ping timeout: 255 seconds]
[21:14:39] -!- joe9 has quit [Quit: leaving]
[21:20:49] -!- pjm__ has quit [Ping timeout: 252 seconds]
[21:23:33] -!- amaldo has quit [Remote host closed the connection]
[21:23:35] -!- b_b [b_b!ejabberd@81.18.178.14] has parted #leaflet
[21:41:24] -!- gmouer has quit []
[21:44:04] theorb_ is now known as theorbtwo
[21:45:34] -!- wavesounds [wavesounds!~wavesound@cpe-66-74-163-141.socal.res.rr.com] has joined #leaflet
[21:51:05] -!- morfic has quit [Ping timeout: 246 seconds]
[21:51:39] -!- Flipp has quit [Read error: Connection reset by peer]
[22:02:43] -!- FinboySlick has quit [Quit: Leaving.]
[22:12:17] -!- DJ9DJ has quit [Quit: bye]
[22:12:30] -!- Caanon_work has quit [Quit: Caanon_work]
[22:16:02] -!- Yarl has quit [Ping timeout: 265 seconds]
[22:38:10] -!- chillly has quit [Quit: Leaving]
[22:47:19] -!- oyildirim has quit []
[22:53:46] -!- horatio_cromwell has quit [Quit: Leaving.]
[23:00:24] -!- tjb1 has quit [Quit: tjb1]
[23:15:16] -!- joru has quit [Remote host closed the connection]
[23:20:01] -!- andypugh has quit [*.net *.split]
[23:20:01] -!- archivist has quit [*.net *.split]
[23:20:01] -!- Brandonian has quit [*.net *.split]
[23:20:01] -!- Connor has quit [*.net *.split]
[23:20:02] -!- GargantuaSauce has quit [*.net *.split]
[23:20:02] -!- Theta9 has quit [*.net *.split]
[23:20:02] -!- capricorn_1 has quit [*.net *.split]
[23:20:02] -!- log_ybon has quit [*.net *.split]
[23:20:02] -!- hm2-buildmaster_ has quit [*.net *.split]
[23:20:03] -!- uwe_ has quit [*.net *.split]
[23:20:03] -!- aude has quit [*.net *.split]
[23:21:05] -!- Caanon_work has quit [Quit: Caanon_work]
[23:26:16] -!- panasync has quit [Ping timeout: 255 seconds]
[23:29:19] -!- Brandonian [Brandonian!~bmorrison@c-71-229-81-179.hsd1.in.comcast.net] has joined #leaflet
[23:29:19] -!- log_ybon [log_ybon!~ybon@the-doors.enix.org] has joined #leaflet
[23:29:19] -!- aude [aude!~filbertkm@li137-250.members.linode.com] has joined #leaflet
[23:40:45] -!- racycle has quit [Quit: racycle]
[23:51:48] -!- L84Supper has quit [Ping timeout: 245 seconds]