| 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:33 | zedrckr[m] | Hello, it's me, again |
| 16:33 | zedrckr[m] | In the latest version of farmOS, how can I default to base layers of google hybrid? |
| 16:38 | mstenta[m] | zedrckr: good question! this was asked recently... let me find the link... |
| 16:38 | mstenta[m] | github.com/farmOS/farmOS/issues/254 |
| 16:43 | mstenta[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:44 | mstenta[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:44 | mstenta[m] | it is working for me in firefox |
| 16:44 | mstenta[m] | so i'm still waiting to hear back from them |
| 16:45 | zedrckr[m] | Yes, long story. |
| 16:45 | zedrckr[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:46 | mstenta[m] | oh hmm |
| 16:50 | * | uploaded an image: image.png (10KB) < matrix.org/_matrix/media/r0/download/mat > |
| 16:51 | zedrckr[m] | I navigate to another route |
| 16:51 | * | uploaded an image: image.png (17KB) < matrix.org/_matrix/media/r0/download/mat > |
| 16:51 | zedrckr[m] | y no muestra nada |
| 16:52 | zedrckr[m] | * I can not see anything |
| 18:03 | mstenta[m] | that's interesting thanks zedrckr |
| 18:03 | mstenta[m] | it looks like it IS saving the variables in localStorage |
| 18:03 | mstenta[m] | are there any errors in your javascript console? |
| 18:04 | mstenta[m] | do you have a github account? would you mind adding your clues to the issue? |
| 18:04 | mstenta[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:05 | zedrckr[m] | <mstenta[m] "do you have a github account? wo"> |
| 18:07 | mstenta[m] | and so: when you load the page and the map is blank, in your "base layers" - is there NO layer selected? |
| 18:08 | zedrckr[m] | Exactly that is what happens |
| 18:08 | mstenta[m] | hmm |
| 18:10 | mstenta[m] | zedrckr: this is the same map code deployed to github pages: farmos.github.io/farmOS-map/ |
| 18:11 | mstenta[m] | can you try that and see if the same issue happens to you there? |
| 18:11 | mstenta[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:11 | mstenta[m] | just try changing the base layer and reloading the page |
| 18:11 | zedrckr[m] | <mstenta[m] "can you try that and see if the "> |
| 18:11 | mstenta[m] | thanks |
| 18:12 | zedrckr[m] | <mstenta[m] "if so, then it's an issue in the"> |
| 18:15 | mstenta[m] | Yes this is one of the things that changed in the new version |
| 18:15 | mstenta[m] | Did the standalone map behave any differently? |
| 18:16 | * | uploaded an image: image.png (1190KB) < matrix.org/_matrix/media/r0/download/mat > |
| 18:16 | mstenta[m] | I'm testing right now on my phone in both chrome and Firefox and it is remembering the selected layer |
| 18:16 | zedrckr[m] | <mstenta[m] "Did the standalone map behave an"> all right |
| 18:18 | mstenta[m] | If you select a different base layer and refresh the page, does it remember the layer you selected? |
| 18:19 | zedrckr[m] | Does not remember her |
| 18:19 | mstenta[m] | Ok |
| 18:19 | mstenta[m] | You're using chrome? |
| 18:19 | mstenta[m] | Do you have Firefox? Can you see if it works differently? |
| 18:35 | jgaehring[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:12 | mstenta[m] | stackoverflow.com/questions/29560441/loc |
| 19:12 | mstenta[m] | Hmm two things that I see in that statckoverflow thread: |
| 19:12 | mstenta[m] | 1. localStorage must use strings... not booleans. we may be inadvertently saving a boolean instead of "true" or "false" |
| 19:13 | mstenta[m] | 2. farmOS-map is doing `localStorage.setItem()`, but maybe it needs to be `window.localStorage.setItem()` |
| 19:13 | mstenta[m] | ? |
| 20:45 | mstenta[m] | zedrckr - I am making a small change which may fix this. Can you test it for me in a moment? |
| 20:50 | mstenta[m] | Try the same test here: mstenta.github.io/farmOS-map/ |
| 20:50 | mstenta[m] | Open that URL, change the base layer, refresh the page... does it remember your selection now? |
| 20:51 | mstenta[m] | If that doesn't work... I may try one more thing... |
| 22:16 | zedrckr[m] | <mstenta[m] "If that doesn't work... I may tr"> Yes, now it works. |
| 22:17 | mstenta[m] | WOO HOO! |
| 22:18 | mstenta[m] | that was it! wow! |
| 22:18 | mstenta[m] | thanks for testing zedrckr |
| 22:18 | mstenta[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:27 | mstenta[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:52 | jgaehring[m] | <mstenta[m] "that was it! wow!"> what was it? did this commit do it? github.com/mstenta/farmOS-map/commit/278 |
| 22:54 | jgaehring[m] | ohhhh, I think I found the issue... |
| 22:54 | jgaehring[m] | I would revert that commit, actually, mstenta ... I'll explain in the GH issue |
| 22:57 | mstenta[m] | Uh oh :-) |
| 22:58 | mstenta[m] | K no worries I won't do anything until tomorrow |
| 22:58 | mstenta[m] | Family time |
| 23:01 | jgaehring[m] | my comments are here: github.com/farmOS/farmOS-map/issues/65#i |