We are trying to create a custom visual using leaflet for PowerBI to use in our application. The visual works perfectly on the PowerBI desktop, however, when the visual is uploaded to PowerBI embedded, the images for plugins such as leaflet-measure are not loaded. The functions in the plugin such as measurements etc., however, works as intended.
Originally, the images for the leaflet-measure plugin did not show on the PowerBI desktop as well. We reached out to the custom visual team at Microsoft and they suggested to use the 'base64' encoding of the images in the file 'leaflet-measure.css'. This made the plugins to start working on PBI desktop, but, publishing online on PowerBI embedded still has the issue with the images like 'rulers.png' etc. not being able to render correctly.
Here's how the Leaflet measure looks on PBI desktop
The leaflet measure when published on PowerBI.com or embedded
Can you please help so that the images are rendered properly when the custoembedded?s uploaded to PowerBI.com or embedded ?