Added options to hide or make the input field readonly.
Fixed bug with malformed WKT text.