Coder Social home page Coder Social logo

Comments (4)

dm-p avatar dm-p commented on May 14, 2024

Hi there, and thanks for your question. <iframe> elements don't always work, but this is a limitation of custom visuals in Power BI. I have created #22 to explain this in a bit more detail and hopefully this clarifies things for you.

The short answer is: Desktop explicitly blocks <iframe> elements in any custom visual, so you need to test in the Service. It might work in the Service, depending on what the remote site allows.

Your case is one of the fortunate ones - when I publish to the Power BI Service, it will display:

image

This is not a guarantee that it will always work - govmap.il may choose to revoke the permission for origin-less <iframe> elements at any time (which is how custom visuals are rendered in Power BI).

from powerbi-visuals-html-content.

Brachalevin avatar Brachalevin commented on May 14, 2024

from powerbi-visuals-html-content.

dm-p avatar dm-p commented on May 14, 2024

Apologies for the delay - I'm currently on vacation and am not regularly looking at my personal projects. Unfortunately I don't know enough about your data model or use case to answer fully and would need more detail. One thing I would suggest is that <iframe/> tags should be self-closing, that is, don't write them like:

<iframe id = 'ifrMap' ...> </iframe>

but rather:

<iframe id = 'ifrMap' ... />

e.g. for the test I did in my above comment, the column expression was as follows:

<iframe id='ifrMap' frameborder= '0' scrolling= 'no' marginheight= '0' marginwidth= '0' width='350px' height='350px'src= 'https://www.govmap.gov.il/map.html?bb=1&zb=1&in=1&c=204000,595000&z=0' />

Regarding filtering, if your data going into the <iframe/> URI should filter the map (depending on however govmap implement their embed) then it likely will. However as I don't support govmap, or have any knowledge of this service or your data model, then that would be something you'd need to check with them. If you wish for me to investigate then my services can be engaged professionally, but it's a little outside the scope of supporting this particular visual.

To round out the subject of filtering, this visual cannot filter other visuals, much like the built-in R or Python visuals can't either.

from powerbi-visuals-html-content.

Brachalevin avatar Brachalevin commented on May 14, 2024

from powerbi-visuals-html-content.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.