Add functions

Add the expand param in tools, Add the option to show layer before basemap. Set the right type (inter instead of string) for overview. Reorder the legend the opposite of the drawing order.