Finishing the Map Legend

Calculating the number of x ticks based on the width.
CSS tweaks.