Modified loading function in visibility.js to be less sensitive to order of map layers.
Nautical Chart issue fixed.