Improve tooltip's position

It will prevent the tooltip to go outside the map area by the left.