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.
I am trying to import the following geojson file:
Any help would be greatly appreciated.
Are you able to see the map when adding/editing it in the settings? Like this:
I don't have a dataset that I can use with this but if you see it there and you select the correct properties it should work.
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?
What are the versions of metabase, your OS and your browser?
@tom I'm getting an error with that geojson as well w/ the mac app v0.22.
see attached screenshot.
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.
Same error here.I'm trying to load the GeoJSON (https://github.com/tbrugz/geodata-br/blob/master/geojson/geojs-100-mun.json) and it's giving this same error message:"Unexpected token I in JSON at position 0"Running on Elastic BeanStalk Metabase 0.24.1
@timoteo.alvarenga when I click that link I'm not taken to a JSON file. The link has to be to an actual JSON file, not an HTML page
You need to make sure your link is actually to a JSON file. If you use the link to "View Raw" on GitHub (https://raw.githubusercontent.com/tbrugz/geodata-br/master/geojson/geojs-100-mun.json for the link you posted above) you get a link to an actual JSON file. That should work
@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.
Thanks for your help @camsaulThat was a silly mistake of mineWorking now
Hi everyone,I have the same problem as the others and despite your advise it still doesn't work.I want to use this link : https://rawgit.com/larsbouwens/nl-geojson/master/nl.geojsonOr this one : https://raw.githubusercontent.com/larsbouwens/nl-geojson/master/nl.json
I checked all you said before but I have the error : "Unexpected token I in JSON at position 0"Someone could help me ?
Hi everyone, Congratulations for the excelent work!!!,I have the same error, now i try to import a map with colombian municipalities in this linkhttps://raw.githubusercontent.com/dsuarezn/colombia.geojson/master/mpio.jsoni verify the json with http://geojson.io and works ok but on import give me error, says "JSON.parse: unexpected character at line 1 column 1 of the JSON data" on firefox, in chrome says "Unexpected token I in JSON at position 0" On chrome console get thisPUT http: //localhost:3002/api/setting/custom-geojson 500 (Server Error) GuideDetailEditor.jsx:33 GET http: //localhost:3002/api/geojson/ea94070e-bb60-a353-ad7b-dd73a87e6595 400 (Bad Request) GuideDetail.jsx:107
The metabase version is v0.24.2
Same error one put europe geocode
Unexpected token I in JSON at position 0
I try to put json code but same error
metabase version is v0.24.2