Geomap: legend enhancements

len-- is much slower than the for loop that was used previously (about 50% slower). Please restore the previous for loop.