Map and proxy

Hi,

I’m trying to use maps but I can’t load the open street map url.
I am using a proxy and the jar file and here is how I’ve tried to launch metabase :
java –Dhttp.proxyHost=MyUrlProxy -Dhttp.proxyPort=8095 -jar metabase.jar

Thanks in advance

Hi @Livier
You need to set the https proxy:

java –Dhttps.proxyHost=MyUrlProxy -Dhttps.proxyPort=8095 -jar metabase.jar

Thanks for your answer.
now when I try to load/add a map, I get this message :

Unable to parse resource at URL https://www.openstreetmap.org/#map=11/-21.1341/55.5379 as JSON

@Livier
Post “Diagnostic Info” from Admin > Troubleshooting.
And then provide more context of what you’re doing to end up with that error - steps-to-reproduce.

Here is the diagnostic info from Admin > Troubleshooting

{
“browser-info”: {
“language”: “fr”,
“platform”: “Win32”,
“userAgent”: “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:81.0) Gecko/20100101 Firefox/81.0”,
“vendor”: “”
},
“system-info”: {
“file.encoding”: “UTF-8”,
“java.runtime.name”: “OpenJDK Runtime Environment”,
“java.runtime.version”: “1.8.0_181-b13”,
“java.vendor”: “Oracle Corporation”,
“java.vendor.url”: “http://java.oracle.com/”,
“java.version”: “1.8.0_181”,
“java.vm.name”: “OpenJDK 64-Bit Server VM”,
“java.vm.version”: “25.181-b13”,
“os.name”: “Linux”,
“os.version”: “3.10.0-957.el7.x86_64”,
“user.language”: “fr”,
“user.timezone”: “Indian/Reunion”
},
“metabase-info”: {
“databases”: [
“mysql”
],
“hosting-env”: “unknown”,
“application-database”: “mysql”,
“application-database-details”: {
“database”: {
“name”: “MariaDB”,
“version”: “10.3.13-MariaDB”
},
“jdbc-driver”: {
“name”: “MariaDB Connector/J”,
“version”: “2.5.1”
}
},
“run-mode”: “prod”,
“version”: {
“tag”: “v0.36.4”,
“date”: “2020-08-17”,
“branch”: “release-0.36.x”,
“hash”: “196c1f6”
},
“settings”: {
“report-timezone”: “Asia/Baku”
}
}
}

To get this error :

  1. Admin > Maps
  2. Add a map
  3. Custom Maps --> Add a map
  4. URL for the GeoJSON file you want to use : https://www.openstreetmap.org/#map=11/-21.1341/55.5379
  5. Load

I’d like to use the map of La Reunion. I may be wrong in the way I try to do it

@Livier But that isn’t a GeoJSON file.
I would recommend that you read this:
https://www.metabase.com/blog/map-visualization/index.html

I thought that I could use maps on OpenStreetMap to visualize my data.
Could you please tell me how can I get a GeoJSON file to add a custom map ?

@Livier Please read the article. There’s two types of maps - there’s Pin maps, which uses OSM already by default, and Region maps, which uses GeoJSON.

Thank you.