mapboxgl-powerBI
mapboxgl-powerBI copied to clipboard
Mapbox GL location and map custom visual for Microsoft PowerBI
Hey, what's the latest version of this Mapbox Visual for Power BI?
This repository is archived.
Check out the lastest code and disribution version (on the Microsoft Office Store!) https://github.com/mapbox/mapboxgl-powerbi
Mapbox GL Extension for PowerBI
Work in progress - Aiming to add to the Office Store in January 2018
High performance, endlessly customizable, open-source tool based Mapbox GL location visuals for your PowerBI reports and dashboards.
Status
In active development!
- Only point geometry sources are currently supported
- Only a dark map style is currently supported
- Only one color ramp is currently supported
Adding MapboxGL Viz to a PowerBI Report
On PowerBI Online, add the dist/mapboxGLMap.pbiviz
file in this repository as a custom visual in your report.
Developing
-
npm install -g powerbi-visuals-tools
- Follow Steps on https://github.com/Microsoft/PowerBI-visuals/blob/master/tools/CertificateSetup.md to setup your PowerBI live visual
-
npm install
- Log into your PowerBI web UI and enable dev tools https://github.com/Microsoft/PowerBI-visuals/blob/master/tools/DebugVisualSetup.md
-
pbiviz start
- Add a custom visual using the PowerBI custom viz options, using a latitude and longitude variable.
Building
npm run package
The package command uses the flags --no-minify and --resources to prevent ES6 errors from magnification in uglifyjs
.
Issues
-
Nested Window object - see https://github.com/ryanbaumann/mapboxgl-powerBI/blob/master/src/js/mapboxglAdaptor.js
- Workaround - altered the Mapbox GL js library to use the function
window.window.devicePixelRatio
in place ofwindow.devicePixelRatio
. - The custom version of the Mapbox GL js library is packaged with this repository and will need to be manually checked and validated for new mapboxgl JS version upgrades.
- Workaround - altered the Mapbox GL js library to use the function