Geomap: legend enhancements

Change <code>i &lt; len</code> to <code>i !== len</code> and change <code>++i</code> to <code>i += 1</code> because they run quicker.