Geomap: legend enhancements

Replaces #5857