Drawing squares and circles in the legend taking account the scale of the map