Well Known Text Read Example
The following code example takes a Well Known Text (WKT) string, parses it into a GeoJSON geometry, and encodes it into a code string, then adds it to the map.
Coordinates must be in WGS84 (EPSG:4326) — latitude/longitude in decimal degrees. WKT strings in projected coordinate systems (e.g., State Plane, UTM) must be reprojected before use.