Open nfreear opened 9 years ago
Having thought about it more, the part of this bug that relates to new functionality, for example #47 and #50 are completely justifiable. The part relating to legacy code (that works!) is not high priority, and I (probably) won't have time in this work-package for LACE (finish, end of May).
Hi,
At the moment a number of the JS files expose a lot of global variables, which can potentially conflict and introduce bugs... For example:
In a recent commit, for issue #47, I introduced a super global, named
OERRH
(it could beOEREH
I supposed - doesn't matter...),The idea is that the PHP code adds configuration to this one global, and it is then accessed by the included Javascript files. I wonder if there is a way to gradually add to this variable, without clobbering previously added data? Example:
External Javascript - eg.
leaflet-map.js
:Does this make sense, and is it OK to add this gradually?
Ta,
Nick