| 04:20 | * | farmBOT has joined |
| 05:18 | * | svenn has quit (K-Lined) |
| 14:33 | symbioquine[m] | <symbioquine[m] "I can take a look tomorrow - abo"> I think the changes may be slightly broken/fragile in that they don't set weights on the behaviors, but `farmOS.map.behaviors.asset_type_layers` depends on side-effects from `farmOS.map.behaviors.popup` github.com/farmOS/farmOS/blob/46c70131ff |
| 14:33 | symbioquine[m] | Not absolutely sure about the determinism of JS object key iteration, but I suspect that's non-deterministic... |
| 14:35 | mstenta[m] | ah so to summarize we could end up seeing `asset_type_layers` load before `popup` |
| 14:35 | mstenta[m] | in which case `instance.popup` would not be set |
| 14:36 | symbioquine[m] | I think so. Just checking whether JS guarantees the object key iteration order... |
| 14:36 | mstenta[m] | (my internal questions to investigate later: did we have weights in 1.x? we haven't seen that happen, but would it happen now in 2.x + farmOS-map 1.x, and/or with 2.x + farmOS-map 2.x) |
| 14:36 | mstenta[m] | * (my internal questions to investigate later: did we have weights configured on these two behaviors explicitly for this in 1.x? we haven't seen that happen, but would it happen now in 2.x + farmOS-map 1.x, and/or with 2.x + farmOS-map 2.x) |
| 14:37 | mstenta[m] | (my head is in something else so i can't dig in at the moment - just sharing thoughts/questions that come to mind) |
| 14:37 | symbioquine[m] | Yeah, no rush :) I'll see if I can find any answers in the meantime. |
| 14:41 | mstenta[m] | did you experience this issue in testing? or just came to mind looking at code? |
| 14:41 | symbioquine[m] | Just from looking at the code |
| 14:43 | mstenta[m] | that logic was carried over pretty much unchanged from 1.x FWIW |
| 14:43 | mstenta[m] | although the weights is an open question |
| 14:43 | symbioquine[m] | It looks like it will probably always work because JS seems to iterate over Object keys in insertion order for non-numeric keys: stackoverflow.com/questions/5525795/does |
| 14:44 | mstenta[m] | interesting! didn't even think about that consideration |
| 14:44 | symbioquine[m] | I don't think we should depend on that, but that's a different question. |
| 14:44 | mstenta[m] | yea |
| 14:44 | symbioquine[m] | github.com/farmOS/farmOS-map/blob/04a360 (and JS sort is stable too) |
| 14:45 | mstenta[m] | doesn't look like we had weights on those behaviors in 1.x either... |
| 14:45 | symbioquine[m] | yep |
| 14:45 | mstenta[m] | popup: github.com/farmOS/farmOS/blob/7.x-1.x/mo |
| 14:45 | mstenta[m] | area details: github.com/farmOS/farmOS/blob/7.x-1.x/mo |
| 14:45 | symbioquine[m] | so it was just depending on the order in which the JS got loaded :) |
| 14:46 | mstenta[m] | (here's an example where we DID use weight: github.com/farmOS/farmOS/blob/2b64bc8e7c) |
| 19:46 | * | svenn has joined |
| 22:32 | JSimonGoodall[m] | Hello good people, any idea why I would get this message "Uncaught TypeError: i.elementFromPoint is not a function" when I try to change background map to google? I have already inserted a valid API key. I am using a docker container |
| 22:44 | mstenta[m] | Hi J.Simon Goodall - hmm haven't encountered this before. What browser/version are you using? |
| 22:44 | JSimonGoodall[m] | firefox 89.0 |
| 22:45 | JSimonGoodall[m] | good idea :( will try it in another browser |
| 22:45 | mstenta[m] | Found this: stackoverflow.com/questions/2904753/docu |
| 22:47 | mstenta[m] | I use Firefox and haven't encountered this |
| 22:47 | mstenta[m] | But definitely worth trying in another browser |
| 22:47 | mstenta[m] | Sounds like a client side browser issue |
| 22:48 | JSimonGoodall[m] | Chromium and Opera give me the same error |
| 22:48 | mstenta[m] | Huh |
| 22:49 | JSimonGoodall[m] | with the API key it is only the key itself I asume, you don't have to feed it key=..... |
| 22:49 | JSimonGoodall[m] | and the javascript console does not mention anything of the key anyway |
| 22:57 | JSimonGoodall[m] | Solved, sorry for wasting your time, created the key but did not enable it... |
| 23:08 | mstenta[m] | Oh good! |