Moved the map point functionality over to the api