New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Embed dashboard does not display Map charts #5338
Comments
I found that if I login the metabase site, the embeded dashboard on the other site shows the map chart correctly. If I logout the metabase site, then the map chart on the other site is gone ( the other charts are still fine). |
Exactly same problem here. @becca0330 you was able to find a workaround without requiring user to log in metabase? |
Can I ask you how do you add china map?I add a geojson url but it isn't work |
Same issue here. Any workaround? |
Thanks to @flamber for posting this! Had I seen this post before I probably wouldn't have posted my own: This is a serious issue, maps are an absolute "must have"! |
GeoJsons do in fact resolve in vintage FireFox 52.9.0 albeit with "peek-a-boo" labels. See the illustrations in the Metabase Discussion forum topic Embedded GeoJson Maps Not Resolving scrolling about half-way down. Notice the labels peeking out from behind the Map Question Embeds. Curiously Dashboards with the same Questions resolved without any label problems at all! That was then, whenever FireFox 52.9.0 was released. Today with FireFox 64+, Chrome 71+, IE 11+, etc. -- nothing, GeoJsons do not resolve in Embedded Questions or Dashboards at all! So something changed, for it to have largely worked in the past is a very good indicator that it can be made to work again. The culprit is probably in the Embed generation code... |
if you haven't found one for the china geojson, this url should works: |
A "very ugly and not secured" workaround for those who really need to embed the map.... Since I guess this is an authentication issue ( error I got from chrome developer tools says "Unauthorized"), I try to load the page as a metabase logged user in the background by calling metabase api ( your-metabase-url/api/session ) and setting cookie and session, then the embedded map is displayed. Again, there is strong security risk by doing so, if your application is not for internal use, I don't recommend you to do this way. |
Honestly a shame that it's been open for 1year+!!! |
any perspective? I'm evaluating the metabase to use with whitelabel and show the maps without authentication is essential :/ |
@ricardobaehr Check this post comment out if you haven't already, #6593. Evidently the auth issue can be cleared up by changing one line of clj code. Haven't tried it myself yet, I have to learn how to use Docker first to get it on AWS. But it sounds doable. |
Easy fix |
Easy fix for bug preventing people not-logged in Metabase to see custom maps. In the metabase/api/routes.clj file
change to
|
Fixed by #9807 |
Hi everyone, this is fixed in Metabase 0.32.5 which has just been released. |
My map charts shows correctly on the dashboard, however if I embed the dashboard to my own site it keeps loading and never get the map shown. (Other chart types works fine, and also if I change to use public iframe, it works, too. Only the "embeded" one didn't. )
Please see the attached images.
The correct map chart on the metabase dashboard:
The keep-loading map chart on the embeded dashboard:
Error I got from chrome developer tools
Could anyone help me with this or give some hint?
The text was updated successfully, but these errors were encountered: