added legend
added polygon drawer