Forum Discussion
Power Bi - Leaflet tiles not showing properly
- 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.
Are you still facing issues with leaflet?
If so, please share the source code of your custom visual as a zip file for debugging.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
- Punya8 years agoFrequent Visitor
Dear Ignat,
Thank you for your response.
Please find attached source code for your reference.
Best regards,
Punya
- v-viig8 years ago
Community Champion
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
- Punya8 years agoFrequent Visitor
Thank you very much. It works.