Creating visualisation from groovy scripted field

I have created a groovy scripted field, which is a geo_point. I would like to use this field in a tile map but I'm not sure how.

First how do i get this field listed in the Geo coordinates field? I have added the field to the mapping.

Can i add a groovy scripted (indexed, inline or file) field under Kibana scripted fields as below? Getting compilation errors, might be missing key fields

Any help would be much appreciated.