< 262020-02-27⋎28 >

farmOS (farmos.org) is a free and open source, web-based farm management system. User guide: farmos.org/guide/ - Feature requests and bug reports: github.com/farmOS/farmOS/issuesSet by ChanServ on 2018-08-16 at 14:32
05:13*JustTB has quit (Ping timeout: 258 seconds)
10:41*JustTB has joined
11:55*JustTB has quit (Quit: Leaving.)
11:59*JustTB has joined
13:30*JustTB has quit (Ping timeout: 260 seconds)
13:43*JustTB has joined
14:29*JustTB has quit (Ping timeout: 258 seconds)
14:48*JustTB has joined
14:58*JustTB has quit (Ping timeout: 240 seconds)
16:33zedrckr[m]Hello, it's me, again
16:33zedrckr[m]In the latest version of farmOS, how can I default to base layers of google hybrid?
16:38mstenta[m]zedrckr: good question! this was asked recently... let me find the link...
16:38mstenta[m]github.com/farmOS/farmOS/issues/254
16:43mstenta[m]long story short: it should save your selected base layer in your browser's localStorage and remember that next time you load a page
16:44mstenta[m]in that issue they reported that something was not working for them in that regard, however... in firefox... although they tried it in chrome and it worked
16:44mstenta[m]it is working for me in firefox
16:44mstenta[m]so i'm still waiting to hear back from them
16:45zedrckr[m]Yes, long story.
16:45zedrckr[m]The same thing happens to me, I am using google chrome, and it doesn't remember the layer that I selected, when navigating to another one it returns to the default
16:46mstenta[m]oh hmm
16:50*uploaded an image: image.png (10KB) < matrix.org/_matrix/media/r0/download/mat >
16:51zedrckr[m]I navigate to another route
16:51*uploaded an image: image.png (17KB) < matrix.org/_matrix/media/r0/download/mat >
16:51zedrckr[m]y no muestra nada
16:52zedrckr[m] * I can not see anything
18:03mstenta[m]that's interesting thanks zedrckr
18:03mstenta[m]it looks like it IS saving the variables in localStorage
18:03mstenta[m]are there any errors in your javascript console?
18:04mstenta[m]do you have a github account? would you mind adding your clues to the issue?
18:04mstenta[m]so we can keep track of it together
18:05*uploaded an image: image.png (12KB) < matrix.org/_matrix/media/r0/download/mat >
18:05zedrckr[m]<mstenta[m] "do you have a github account? wo">
18:07mstenta[m]and so: when you load the page and the map is blank, in your "base layers" - is there NO layer selected?
18:08zedrckr[m]Exactly that is what happens
18:08mstenta[m]hmm
18:10mstenta[m]zedrckr: this is the same map code deployed to github pages: farmos.github.io/farmOS-map/
18:11mstenta[m]can you try that and see if the same issue happens to you there?
18:11mstenta[m]if so, then it's an issue in the farmOS-map.js, if not, then it might be an issue in farmOS itself
18:11mstenta[m]just try changing the base layer and reloading the page
18:11zedrckr[m]<mstenta[m] "can you try that and see if the ">
18:11mstenta[m]thanks
18:12zedrckr[m]<mstenta[m] "if so, then it's an issue in the">
18:15mstenta[m]Yes this is one of the things that changed in the new version
18:15mstenta[m]Did the standalone map behave any differently?
18:16*uploaded an image: image.png (1190KB) < matrix.org/_matrix/media/r0/download/mat >
18:16mstenta[m]I'm testing right now on my phone in both chrome and Firefox and it is remembering the selected layer
18:16zedrckr[m]<mstenta[m] "Did the standalone map behave an"> all right
18:18mstenta[m]If you select a different base layer and refresh the page, does it remember the layer you selected?
18:19zedrckr[m]Does not remember her
18:19mstenta[m]Ok
18:19mstenta[m]You're using chrome?
18:19mstenta[m]Do you have Firefox? Can you see if it works differently?
18:35jgaehring[m]it would probably be helpful to know which browser and its version number you're using, zedrckr... you can typically get the version # for most browsers by going to Help > About
19:12mstenta[m]stackoverflow.com/questions/29560441/loc
19:12mstenta[m]Hmm two things that I see in that statckoverflow thread:
19:12mstenta[m]1. localStorage must use strings... not booleans. we may be inadvertently saving a boolean instead of "true" or "false"
19:13mstenta[m]2. farmOS-map is doing `localStorage.setItem()`, but maybe it needs to be `window.localStorage.setItem()`
19:13mstenta[m]?
20:45mstenta[m]zedrckr - I am making a small change which may fix this. Can you test it for me in a moment?
20:50mstenta[m]Try the same test here: mstenta.github.io/farmOS-map/
20:50mstenta[m]Open that URL, change the base layer, refresh the page... does it remember your selection now?
20:51mstenta[m]If that doesn't work... I may try one more thing...
22:16zedrckr[m]<mstenta[m] "If that doesn't work... I may tr"> Yes, now it works.
22:17mstenta[m]WOO HOO!
22:18mstenta[m]that was it! wow!
22:18mstenta[m]thanks for testing zedrckr
22:18mstenta[m]so... what i will do is package up a v1.0.1 of the farmOS-map.js library - which you can then download and drop into the `profiles/farm/libraries/farmOS-map` directory on your server
22:27mstenta[m]i won't have a chance to do that until tomorrow - but i will let you know when it's available - and will close that github issue, so you can either watch the chat or that issue
22:52jgaehring[m]<mstenta[m] "that was it! wow!"> what was it? did this commit do it? github.com/mstenta/farmOS-map/commit/278
22:54jgaehring[m]ohhhh, I think I found the issue...
22:54jgaehring[m]I would revert that commit, actually, mstenta ... I'll explain in the GH issue
22:57mstenta[m]Uh oh :-)
22:58mstenta[m]K no worries I won't do anything until tomorrow
22:58mstenta[m]Family time
23:01jgaehring[m]my comments are here: github.com/farmOS/farmOS-map/issues/65#i

< 262020-02-27⋏28 >