lod_and_effect: Add legend
lod_and_effect: Fix some marker clicking weirdness

 - This code is a mess!