Forum Discussion
Punya
8 years agoFrequent Visitor
Power Bi - Leaflet tiles not showing properly
I am having issues with displaying leaflet tiles in power bi custom visuals. I mainly followed the example from https://community.powerbi.com/t5/Developer/Power-BI-Cannot-set-height/td-p/140854 ...
- 8 years ago
Please include leaflet's CSS into your custom visual by adding the import to style.less:
@import (less) "node_modules/leaflet/dist/leaflet.css";
Please also note you should specify width and height explicitly for #map div element (you might use 100% size).
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
- 8 years ago
Thank you very much. It works.
Punya
8 years agoFrequent Visitor
Dear Ignat,
Thank you for your response.
Please find attached source code for your reference.
Best regards,
Punya
v-viig
Community Champion
8 years agoPlease include leaflet's CSS into your custom visual by adding the import to style.less:
@import (less) "node_modules/leaflet/dist/leaflet.css";
Please also note you should specify width and height explicitly for #map div element (you might use 100% size).
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
- Punya8 years agoFrequent Visitor
Thank you very much. It works.