{"action":"created","issue":{"url":"https://api.github.com/repos/ckan/ckan/issues/2387","labels_url":"https://api.github.com/repos/ckan/ckan/issues/2387/labels{/name}","comments_url":"https://api.github.com/repos/ckan/ckan/issues/2387/comments","events_url":"https://api.github.com/repos/ckan/ckan/issues/2387/events","html_url":"https://github.com/ckan/ckan/issues/2387","id":66311590,"number":2387,"title":"recline_map_view does not recognize GeoJSON fileds","user":{"login":"u10313335","id":276250,"avatar_url":"https://avatars.githubusercontent.com/u/276250?v=3","gravatar_id":"","url":"https://api.github.com/users/u10313335","html_url":"https://github.com/u10313335","followers_url":"https://api.github.com/users/u10313335/followers","following_url":"https://api.github.com/users/u10313335/following{/other_user}","gists_url":"https://api.github.com/users/u10313335/gists{/gist_id}","starred_url":"https://api.github.com/users/u10313335/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/u10313335/subscriptions","organizations_url":"https://api.github.com/users/u10313335/orgs","repos_url":"https://api.github.com/users/u10313335/repos","events_url":"https://api.github.com/users/u10313335/events{/privacy}","received_events_url":"https://api.github.com/users/u10313335/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"amercader","id":200230,"avatar_url":"https://avatars.githubusercontent.com/u/200230?v=3","gravatar_id":"","url":"https://api.github.com/users/amercader","html_url":"https://github.com/amercader","followers_url":"https://api.github.com/users/amercader/followers","following_url":"https://api.github.com/users/amercader/following{/other_user}","gists_url":"https://api.github.com/users/amercader/gists{/gist_id}","starred_url":"https://api.github.com/users/amercader/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amercader/subscriptions","organizations_url":"https://api.github.com/users/amercader/orgs","repos_url":"https://api.github.com/users/amercader/repos","events_url":"https://api.github.com/users/amercader/events{/privacy}","received_events_url":"https://api.github.com/users/amercader/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-04-04T12:15:35Z","updated_at":"2015-07-16T11:18:23Z","closed_at":null,"body":"If we try to create a recline_map_view (CKAN 2.3+) for data stored in the DataStore, the GeoJSON fields can not be listed since they are \"text\" fields rather than \"numeric\" fields.\r\n\r\nIt can be fixed by adding \"text\" type to the ReclineMapView extension (tested in my CKAN instance):\r\n\r\n```diff\r\ndiff --git a/ckanext/reclineview/plugin.py b/ckanext/reclineview/plugin.py\r\nindex 20e204b..cc59163 100644\r\n--- a/ckanext/reclineview/plugin.py\r\n+++ b/ckanext/reclineview/plugin.py\r\n@@ -178,7 +178,7 @@ class ReclineMapView(ReclineViewBase):\r\n\r\n     datastore_fields = []\r\n\r\n-    datastore_field_types = ['numeric']\r\n+    datastore_field_types = ['numeric', 'text']\r\n\r\n     def list_map_field_types(self):\r\n         return [t['value'] for t in self.map_field_types]\r\n```\r\n\r\nIf the above solution is right, I will send a PR then."},"comment":{"url":"https://api.github.com/repos/ckan/ckan/issues/comments/121928855","html_url":"https://github.com/ckan/ckan/issues/2387#issuecomment-121928855","issue_url":"https://api.github.com/repos/ckan/ckan/issues/2387","id":121928855,"user":{"login":"amercader","id":200230,"avatar_url":"https://avatars.githubusercontent.com/u/200230?v=3","gravatar_id":"","url":"https://api.github.com/users/amercader","html_url":"https://github.com/amercader","followers_url":"https://api.github.com/users/amercader/followers","following_url":"https://api.github.com/users/amercader/following{/other_user}","gists_url":"https://api.github.com/users/amercader/gists{/gist_id}","starred_url":"https://api.github.com/users/amercader/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amercader/subscriptions","organizations_url":"https://api.github.com/users/amercader/orgs","repos_url":"https://api.github.com/users/amercader/repos","events_url":"https://api.github.com/users/amercader/events{/privacy}","received_events_url":"https://api.github.com/users/amercader/received_events","type":"User","site_admin":false},"created_at":"2015-07-16T11:18:23Z","updated_at":"2015-07-16T11:18:23Z","body":"Fix in #2537 "}}