I am trying to import a custom map by using a geojson. When I import the geojson file metabase is able to parse the file and am able to select the tag as the display name. However, I am unable to see any map.
No I am not able to. Then is there a problem with the way the instance has been setup? Is there come config flag that I have to setup to use the custom map feature?
I get the exact same error message as @sameer when uploading a custom GeoJSON file, running v0.22 on Linux and browsing through Chrome. I know it’s valid JSON since I’ve used it with other applications. Other files seem to work fine though.
@shubhamgupta731 when I try to follow that link I get an AWS access denied page. Make sure the link you’re trying to use links to a valid raw GeoJSON file. If you can’t access it from your browser, it won’t work on Metabase either.
error: Value does not match schema: {:54af425d-6da4-18b9-67ee-5eb53d4a4cce {:url (throws? (“URL must point to a valid JSON file.” a-java.lang.String))}}
In my case the custom map only shows in a shared dashboard if the user has previously logged in to Metabase in other web browser window. If you use another web browser it fails. Let’s say you are in Edge (let’s just say you are), you log in and go to dashbaords, the map shows perfectly then you copy the public link and open another Edge window. It works but if you go to Chrome or Firefox it will fail.
First I thought it was a file permission issue and since I’m running Ubuntu and all the json files are placed in /var/www/html I made sure I can watch the file by opening http://myserver/json.file which I can.
So, apparently you need to be logged in order to use a custom map in a public dashboard.
The error is:
“Value does not match schema: {:dfbd0a90-3f25-8e70-7296-1aa18e392be5 {:url (throws? (“URL must point to a valid JSON file.” a-java.lang.String))}}”
This is on Metabase v0.25.2. I’ve had the same problem for months on several different versions.
The json file was generated using Python’s json module, and is readable by geojson.io.