<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Need help getting D3 charts on Leaflet map in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Need-help-getting-D3-charts-on-Leaflet-map/m-p/367589#M10961</link>
    <description>&lt;P&gt;What exactly&amp;nbsp;issue have you faced? Can you sahre source code as a zip file?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Ignat Vilesov,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Software Engineer&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Microsoft Power BI Custom Visuals&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;A href="mailto:pbicvsupport@microsoft.com" target="_blank"&gt;&lt;SPAN&gt;pbicvsupport@microsoft.com&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 01 Mar 2018 07:31:51 GMT</pubDate>
    <dc:creator>v-viig</dc:creator>
    <dc:date>2018-03-01T07:31:51Z</dc:date>
    <item>
      <title>Need help getting D3 charts on Leaflet map</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Need-help-getting-D3-charts-on-Leaflet-map/m-p/367155#M10938</link>
      <description>&lt;P&gt;I'm creating a custom visual which requires doughnut chart to be displayed over a map. To start with I'm trying to replicate this.&lt;/P&gt;&lt;P&gt;&lt;A href="http://bl.ocks.org/d3noob/9267535" target="_blank"&gt;http://bl.ocks.org/d3noob/9267535&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It has circles over a leaflet map. I got the leaflet map working but D3 part doesn't work. Please help me with this. If I get the circles on the map I can later replace them with doughnuts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Visual.ts&lt;/P&gt;&lt;PRE&gt;module powerbi.extensibility.visual {
    
    
    export interface Data{
        lat: number;
        lng: number;
        latlng: {};
        status: string[];
        itemCnt: number[];
    }

    export class Visual implements IVisual {
        private target: HTMLElement;
        private divMap: HTMLElement;
        private divTable: HTMLElement;
        private map: L.Map;
        private basemap: L.TileLayer;
        private layer: L.TileLayer;

        constructor(options: VisualConstructorOptions) {
            console.log('Visual constructor', options);
            this.target = options.element;
            this.divMap = document.createElement("div");
            this.divMap.id = "map";
            this.divMap.style.height = "100%";   
            this.divMap.style.width = "100%";
            options.element.appendChild(this.divMap);

            var L = typeof L !== 'undefined' ? L : window['L'];
            
            this.map = L.map('map');
            this.map.setView([-41.28,174.77], 11); 
            var mapLink = '&amp;lt;a href="http://openstreetmap.org"&amp;gt;OpenStreetMap&amp;lt;/a&amp;gt;';
            this.layer = L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { attribution: '&amp;amp;copy; ' + mapLink + ' Contributors', maxZoom: 18, });
            this.map.addLayer(this.layer);
        }


        public update(options: VisualUpdateOptions) {
            //update map size
            this.divMap.style.height = options.viewport.height.toString() + "px";
            this.divMap.style.width = options.viewport.width.toString() + "px";
            
            var svg = d3.select("#map").select("svg"),
            g = svg.append("g");
            
            var data: Data[] = [ 
                {lat:-41.28, lng:174.77, latlng:{}, status:['Under','Over','Normal'], itemCnt: [30,40,50]},
                {lat:-41.29, lng:174.76, latlng:{}, status:['Under','Over','Normal'], itemCnt: [30,30,60]},
                {lat:-41.23, lng:174.79, latlng:{}, status:['Under','Over','Normal'], itemCnt: [30,70,10]} 
            ];

            data.forEach(function(d) {
                d.latlng = new L.LatLng(&amp;lt;number&amp;gt;d.lat, &amp;lt;number&amp;gt;d.lng);
            })
            
            var circle= g.selectAll("circle")
                .data(data)
                .enter().append("circle")
                .style("stroke", "black")  
                .style("opacity", .6) 
                .style("fill", "red")
                .attr("r", 20)
                
            this.map.on("viewreset", update);
            update();

            function update() {
                circle.attr("transform", 
                function(d)  { 
                        return "translate("+ 
                        this.map.latLngToLayerPoint(new L.LatLng(d.lat, d.lng)).x +","+ 
                        this.map.latLngToLayerPoint(new L.LatLng(d.lat, d.lng)).y +")";
                        }
                )
            }
        }


    }
}&lt;/PRE&gt;&lt;P&gt;Visual.less&lt;/P&gt;&lt;PRE&gt;@import (less) "node_modules/leaflet/dist/leaflet.css";&lt;/PRE&gt;&lt;P&gt;Package.JSON&lt;/P&gt;&lt;PRE&gt;{
  "name": "visual",
  "version": "1.1",
  "dependencies": {
    "@types/d3": "^3.5.40",
    "d3": "^3.5.17",
    "geojson": "^0.5.0",
    "leaflet": "^1.3.1",
    "powerbi-visuals-utils-dataviewutils": "1.2.0"
  },
  "devDependencies": {
    "typescript": "^2.6.2"
  }
}&lt;/PRE&gt;&lt;P&gt;pbiviz.JSON&lt;/P&gt;&lt;PRE&gt;{
  "visual": {
    "name": "customMap",
    "displayName": "Custom Map",
    "guid": "custommap5A89ADFB5F694F71AB6D00C94383BB2B",
    "visualClassName": "Visual",
    "version": "1.0.0",
    "description": "",
    "supportUrl": "",
    "gitHubUrl": ""
  },
  "apiVersion": "1.10.0",
  "author": {
    "name": "",
    "email": ""
  },
  "assets": {
    "icon": "assets/icon.png"
  },
  "externalJS": [
    "node_modules/powerbi-visuals-utils-dataviewutils/lib/index.js",
    "node_modules/d3/d3.min.js",
    "node_modules/leaflet/dist/leaflet.js"
  ],
  "style": "style/visual.less",
  "capabilities": "capabilities.json",
  "dependencies": "dependencies.json",
  "stringResources": []
}&lt;/PRE&gt;</description>
      <pubDate>Wed, 28 Feb 2018 15:35:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Need-help-getting-D3-charts-on-Leaflet-map/m-p/367155#M10938</guid>
      <dc:creator>satishr</dc:creator>
      <dc:date>2018-02-28T15:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: Need help getting D3 charts on Leaflet map</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Need-help-getting-D3-charts-on-Leaflet-map/m-p/367589#M10961</link>
      <description>&lt;P&gt;What exactly&amp;nbsp;issue have you faced? Can you sahre source code as a zip file?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Ignat Vilesov,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Software Engineer&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Microsoft Power BI Custom Visuals&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;A href="mailto:pbicvsupport@microsoft.com" target="_blank"&gt;&lt;SPAN&gt;pbicvsupport@microsoft.com&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Mar 2018 07:31:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Need-help-getting-D3-charts-on-Leaflet-map/m-p/367589#M10961</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2018-03-01T07:31:51Z</dc:date>
    </item>
    <item>
      <title>Re: Need help getting D3 charts on Leaflet map</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Need-help-getting-D3-charts-on-Leaflet-map/m-p/367806#M10968</link>
      <description>&lt;P&gt;I'm trying to create D3 circles on a leaflet map for a custom visual. I'm able to get the map but the D3 circles are not working. I have sent you my code.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Mar 2018 11:30:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Need-help-getting-D3-charts-on-Leaflet-map/m-p/367806#M10968</guid>
      <dc:creator>satishr</dc:creator>
      <dc:date>2018-03-01T11:30:00Z</dc:date>
    </item>
    <item>
      <title>Re: Need help getting D3 charts on Leaflet map</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Need-help-getting-D3-charts-on-Leaflet-map/m-p/368482#M10991</link>
      <description>&lt;P&gt;We replied with the fixed version of your code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please post the fixed code here if you are ok with sharing?&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 12.0pt;"&gt;&lt;SPAN style="font-weight: bold;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Ignat Vilesov,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Software Engineer&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Microsoft Power BI Custom Visuals&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;A href="mailto:pbicvsupport@microsoft.com" target="_blank"&gt;&lt;SPAN&gt;pbicvsupport@microsoft.com&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2018 07:44:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Need-help-getting-D3-charts-on-Leaflet-map/m-p/368482#M10991</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2018-03-02T07:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: Need help getting D3 charts on Leaflet map</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Need-help-getting-D3-charts-on-Leaflet-map/m-p/369263#M11009</link>
      <description>&lt;P&gt;Thanks,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="17823" data-lia-user-login="v-viig" class="lia-mention lia-mention-user"&gt;v-viig&lt;/a&gt;. You fix works. Here is the fixed visual.ts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;module powerbi.extensibility.visual {


    export interface Data {
        lat: number;
        lng: number;
        latlng: {};
        status: string[];
        itemCnt: number[];
    }

    var L = typeof L !== 'undefined' ? L : window['L'];

    export class Visual implements IVisual {
        private target: HTMLElement;
        private divMap: HTMLElement;
        private divTable: HTMLElement;
        private map: L.Map;
        private basemap: L.TileLayer;
        private layer: L.TileLayer;

        constructor(options: VisualConstructorOptions) {
            console.log('Visual constructor', options);
            this.target = options.element;
            this.divMap = document.createElement("div");
            this.divMap.id = "map";
            this.divMap.style.height = "100%";
            this.divMap.style.width = "100%";
            options.element.appendChild(this.divMap);

            this.map = L.map('map');
            this.map.setView([-41.28, 174.77], 11);
            var mapLink = '&amp;lt;a href="http://openstreetmap.org"&amp;gt;OpenStreetMap&amp;lt;/a&amp;gt;';
            this.layer = L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { attribution: '&amp;amp;copy; ' + mapLink + ' Contributors', maxZoom: 18, });
            this.map.addLayer(this.layer);

            L.svg().addTo(this.map);
        }


        public update(options: VisualUpdateOptions) {
            debugger;
            //update map size
            this.divMap.style.height = options.viewport.height.toString() + "px";
            this.divMap.style.width = options.viewport.width.toString() + "px";

            var svg = d3.select("#map").select("svg"),
                g = svg.append("g");

            var data: Data[] = [
                { lat: -41.28, lng: 174.77, latlng: {}, status: ['Under', 'Over', 'Normal'], itemCnt: [30, 40, 50] },
                { lat: -41.29, lng: 174.76, latlng: {}, status: ['Under', 'Over', 'Normal'], itemCnt: [30, 30, 60] },
                { lat: -41.23, lng: 174.79, latlng: {}, status: ['Under', 'Over', 'Normal'], itemCnt: [30, 70, 10] }
            ];

            data.forEach(function (d) {
                d.latlng = new L.LatLng(&amp;lt;number&amp;gt;d.lat, &amp;lt;number&amp;gt;d.lng);
            })

            var circle = g.selectAll("circle")
                .data(data)
                .enter().append("circle")
                .style("stroke", "black")
                .style("opacity", .6)
                .style("fill", "red")
                .attr("r", 20)

            const map = this.map;

            function update() {
                circle.attr("transform",
                    function (d) {
                        return "translate(" +
                            map.latLngToLayerPoint(d.latlng as any).x + "," +
                            map.latLngToLayerPoint(d.latlng as any).y + ")";
                    }
                )
            }

            this.map.on("viewreset", update);&lt;BR /&gt;            this.map.on("zoom", update);
            update();
        }


    }
}&lt;/PRE&gt;</description>
      <pubDate>Mon, 05 Mar 2018 10:11:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Need-help-getting-D3-charts-on-Leaflet-map/m-p/369263#M11009</guid>
      <dc:creator>satishr</dc:creator>
      <dc:date>2018-03-05T10:11:40Z</dc:date>
    </item>
    <item>
      <title>Re: Need help getting D3 charts on Leaflet map</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Need-help-getting-D3-charts-on-Leaflet-map/m-p/573896#M17735</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="17823" data-lia-user-login="v-viig" class="lia-mention lia-mention-user"&gt;v-viig&lt;/a&gt;&amp;nbsp;hi there, I came across this and followed the steps you guys took but I got an error Invalid API version 1.10.0 Anyway idea how to fix this please?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Pedzilla&lt;/P&gt;</description>
      <pubDate>Tue, 27 Nov 2018 20:13:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Need-help-getting-D3-charts-on-Leaflet-map/m-p/573896#M17735</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-27T20:13:31Z</dc:date>
    </item>
    <item>
      <title>Re: Need help getting D3 charts on Leaflet map</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Need-help-getting-D3-charts-on-Leaflet-map/m-p/574211#M17738</link>
      <description>&lt;P&gt;What version of pbiviz do you ($ pbiviz --version)?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might try updating API version by running &lt;STRONG&gt;pbiviz update 1.13.0&lt;/STRONG&gt; in the directory where you visual is locatted.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Ignat Vilesov,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Software Engineer&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Microsoft Power BI Custom Visuals&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;A href="mailto:pbicvsupport@microsoft.com" target="_blank"&gt;pbicvsupport@microsoft.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Nov 2018 06:58:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Need-help-getting-D3-charts-on-Leaflet-map/m-p/574211#M17738</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2018-11-28T06:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: Need help getting D3 charts on Leaflet map</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Need-help-getting-D3-charts-on-Leaflet-map/m-p/574433#M17741</link>
      <description>&lt;P&gt;Thank you &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="17823" data-lia-user-login="v-viig" class="lia-mention lia-mention-user"&gt;v-viig&lt;/a&gt;&amp;nbsp;Ive done that but got the error&lt;/P&gt;&lt;P&gt;TYPESCRIPT&amp;nbsp;&amp;nbsp; File 'C:/viz/d3leaflet/src/Clients/Typedefs/d3/d3.d.ts' not found&lt;/P&gt;&lt;P&gt;&amp;nbsp;error&amp;nbsp; TYPESCRIPT&amp;nbsp;&amp;nbsp; File 'C:/viz/d3leaflet/src/Clients/Typedefs/jquery-visible/&lt;BR /&gt;jquery-visible.d.ts' not found.&lt;BR /&gt;&amp;nbsp;error&amp;nbsp; TYPESCRIPT&amp;nbsp;&amp;nbsp; File 'C:/viz/d3leaflet/src/Clients/Typedefs/jquery/jquery.d&lt;BR /&gt;.ts' not found.&lt;BR /&gt;&amp;nbsp;error&amp;nbsp; TYPESCRIPT&amp;nbsp;&amp;nbsp; File 'C:/viz/d3leaflet/src/Clients/Typedefs/leaflet/leaflet&lt;BR /&gt;.d.ts' not found.&lt;BR /&gt;&amp;nbsp;error&amp;nbsp; TYPESCRIPT&amp;nbsp; /src/visual.ts : (18,22) Cannot find namespace 'L'.&lt;BR /&gt;&amp;nbsp;error&amp;nbsp; TYPESCRIPT&amp;nbsp; /src/visual.ts : (19,26) Cannot find namespace 'L'.&lt;BR /&gt;&amp;nbsp;error&amp;nbsp; TYPESCRIPT&amp;nbsp; /src/visual.ts : (20,24) Cannot find namespace 'L'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what have i done wrong please?&lt;BR /&gt;Thanks so much&lt;/P&gt;</description>
      <pubDate>Wed, 28 Nov 2018 10:46:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Need-help-getting-D3-charts-on-Leaflet-map/m-p/574433#M17741</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-28T10:46:08Z</dc:date>
    </item>
    <item>
      <title>Re: Need help getting D3 charts on Leaflet map</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Need-help-getting-D3-charts-on-Leaflet-map/m-p/575212#M17752</link>
      <description>&lt;P&gt;Can you share the source code? Did you generate a custom visual by using &lt;STRONG&gt;pbiviz new&amp;nbsp;&lt;/STRONG&gt;command?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Ignat Vilesov,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Software Engineer&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Microsoft Power BI Custom Visuals&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;A href="mailto:pbicvsupport@microsoft.com" target="_blank"&gt;pbicvsupport@microsoft.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Nov 2018 06:59:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Need-help-getting-D3-charts-on-Leaflet-map/m-p/575212#M17752</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2018-11-29T06:59:08Z</dc:date>
    </item>
    <item>
      <title>Re: Need help getting D3 charts on Leaflet map</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Need-help-getting-D3-charts-on-Leaflet-map/m-p/575306#M17756</link>
      <description>&lt;P&gt;Hey there &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="17823" data-lia-user-login="v-viig" class="lia-mention lia-mention-user"&gt;v-viig&lt;/a&gt;&lt;/P&gt;&lt;P&gt;Thanks for replying...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used exact codes shown in this thread actually.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I started off with pbiviz new command then I used your solution as per above.&lt;/P&gt;&lt;P&gt;Then run pbiviz start and got following error Invalid API version&lt;/P&gt;&lt;P&gt;Then tried again with pbiviz update as per your suggestion then got the final error Typescript etc...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much - I feel like its not far off...&lt;/P&gt;</description>
      <pubDate>Thu, 29 Nov 2018 09:00:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Need-help-getting-D3-charts-on-Leaflet-map/m-p/575306#M17756</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-29T09:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: Need help getting D3 charts on Leaflet map</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Need-help-getting-D3-charts-on-Leaflet-map/m-p/575992#M17767</link>
      <description>&lt;P&gt;Can you share the source code to debug it from our side?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Ignat Vilesov,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Software Engineer&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Microsoft Power BI Custom Visuals&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;A href="mailto:pbicvsupport@microsoft.com" target="_blank"&gt;pbicvsupport@microsoft.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Nov 2018 06:20:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Need-help-getting-D3-charts-on-Leaflet-map/m-p/575992#M17767</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2018-11-30T06:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: Need help getting D3 charts on Leaflet map</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Need-help-getting-D3-charts-on-Leaflet-map/m-p/576022#M17769</link>
      <description>&lt;P&gt;tsconfig.json&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{
  "compilerOptions": {
      "allowJs": true,
      "emitDecoratorMetadata": true,
      "experimentalDecorators": true,
      "target": "ES5",
      "sourceMap": true,
      "out": "./.tmp/build/visual.js"
  },
  "files": [
      ".api/v1.10.0/PowerBI-visuals.d.ts",
      "src/Clients/Typedefs/d3/d3.d.ts",
      "src/Clients/Typedefs/jquery/jquery.d.ts",
      "src/Clients/Typedefs/jquery-visible/jquery-visible.d.ts",
      "src/Clients/Typedefs/leaflet/leaflet.d.ts",
      "src/visual.ts"
  ]
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;pbiviz.json&lt;/P&gt;&lt;PRE&gt;{
  "visual": {
    "name": "customMap",
    "displayName": "Custom Map",
    "guid": "custommap5A89ADFB5F694F71AB6D00C94383BB2B",
    "visualClassName": "Visual",
    "version": "1.0.0",
    "description": "",
    "supportUrl": "",
    "gitHubUrl": ""
  },
  "apiVersion": "1.10.0",
  "author": {
    "name": "",
    "email": ""
  },
  "assets": {
    "icon": "assets/icon.png"
  },
  "externalJS": [
    "node_modules/powerbi-visuals-utils-dataviewutils/lib/index.js",
    "node_modules/d3/d3.min.js",
    "node_modules/fix.js",
    "node_modules/leaflet/dist/leaflet.js"
  ],
  "style": "style/visual.less",
  "capabilities": "capabilities.json",
  "dependencies": "dependencies.json",
  "stringResources": []
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;package.json&lt;/P&gt;&lt;PRE&gt;{
  "name": "visual",
  "version": "1.1",
  "dependencies": {
    "@types/d3": "^3.5.41",
    "d3": "^3.5.17",
    "geojson": "^0.5.0",
    "leaflet": "^1.3.1",
    "powerbi-visuals-utils-dataviewutils": "1.2.0"
  },
  "devDependencies": {
    "typescript": "^2.6.2"
  }
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;visual.less&lt;/P&gt;&lt;PRE&gt;@import (less) "node_modules/leaflet/dist/leaflet.css";&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="17823" data-lia-user-login="v-viig" class="lia-mention lia-mention-user"&gt;v-viig&lt;/a&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Nov 2018 07:14:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Need-help-getting-D3-charts-on-Leaflet-map/m-p/576022#M17769</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-30T07:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: Need help getting D3 charts on Leaflet map</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Need-help-getting-D3-charts-on-Leaflet-map/m-p/577078#M17788</link>
      <description>&lt;P&gt;Do you all of required files in&amp;nbsp;&lt;STRONG&gt;src/Clients/Typedefs/&lt;/STRONG&gt; ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It would be better if you could share source code as a zip file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Ignat Vilesov,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Software Engineer&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Microsoft Power BI Custom Visuals&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;A href="mailto:pbicvsupport@microsoft.com" target="_blank"&gt;pbicvsupport@microsoft.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Dec 2018 07:02:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Need-help-getting-D3-charts-on-Leaflet-map/m-p/577078#M17788</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2018-12-03T07:02:54Z</dc:date>
    </item>
    <item>
      <title>Re: Need help getting D3 charts on Leaflet map</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Need-help-getting-D3-charts-on-Leaflet-map/m-p/577196#M17791</link>
      <description>&lt;P&gt;&lt;A href="https://github.com/nujcharee/PowerBI/blob/master/d3leaflet.zip" target="_blank"&gt;https://github.com/nujcharee/PowerBI/blob/master/d3leaflet.zip&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi there, hope this is what you are looking for? Thank you so much hope you can help me &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="17823" data-lia-user-login="v-viig" class="lia-mention lia-mention-user"&gt;v-viig&lt;/a&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Dec 2018 09:06:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Need-help-getting-D3-charts-on-Leaflet-map/m-p/577196#M17791</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-12-03T09:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: Need help getting D3 charts on Leaflet map</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Need-help-getting-D3-charts-on-Leaflet-map/m-p/578051#M17804</link>
      <description>&lt;P&gt;Some files do not exist. This is why you face the errors.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Ignat Vilesov,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Software Engineer&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Microsoft Power BI Custom Visuals&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;A href="mailto:pbicvsupport@microsoft.com" target="_blank"&gt;pbicvsupport@microsoft.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Dec 2018 07:00:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Need-help-getting-D3-charts-on-Leaflet-map/m-p/578051#M17804</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2018-12-04T07:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: Need help getting D3 charts on Leaflet map</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Need-help-getting-D3-charts-on-Leaflet-map/m-p/579414#M17819</link>
      <description>&lt;P&gt;It still doesnt work and maybe i didnt do something right. I undestand from the thread that you have provided the final fix to the other users I wonder if this custom visual can be shared please? I think I have tried and failed in building it and if there's solution out there already and is open source - I will be most&amp;nbsp;grateful.&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;Pedzilla&lt;/P&gt;</description>
      <pubDate>Wed, 05 Dec 2018 12:03:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Need-help-getting-D3-charts-on-Leaflet-map/m-p/579414#M17819</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-12-05T12:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: Need help getting D3 charts on Leaflet map</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Need-help-getting-D3-charts-on-Leaflet-map/m-p/579432#M17820</link>
      <description>&lt;P&gt;Hi Anonymous&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You need to do several things to get the visual properly running. If I alter the following things I got the visual running like &lt;A href="http://bl.ocks.org/d3noob/9267535" target="_self"&gt;http://bl.ocks.org/d3noob/9267535&lt;/A&gt;:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;pbiviz.json&lt;/FONT&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I removed the &lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;"node_modules/fix.js"&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN&gt;, reference as it was causing errors&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;tsconfig.json&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;Remove all the &lt;FONT face="courier new,courier"&gt;Clients/Typedefs&lt;/FONT&gt; references as these files are not needed during run time&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;package.json&lt;/FONT&gt; - 'nice to have'&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&amp;nbsp;Move &lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;"@types/d3"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"^3.5.41"&lt;/SPAN&gt;,&lt;/FONT&gt; to the &lt;FONT face="courier new,courier"&gt;devDependencies&lt;/FONT&gt; part as typings (Intelligence) are only needed during development.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;Last step: open a command prompt and navigate to the base directory of the visual and enter &lt;FONT face="courier new,courier"&gt;npm install --save-dev&amp;nbsp;@types/leaflet&lt;/FONT&gt; to install the typings files&amp;nbsp;to correct the errors:&amp;nbsp;&lt;EM&gt;Cannot find namespace 'L'.&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Dec 2018 12:45:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Need-help-getting-D3-charts-on-Leaflet-map/m-p/579432#M17820</guid>
      <dc:creator>jppp</dc:creator>
      <dc:date>2018-12-05T12:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: Need help getting D3 charts on Leaflet map</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Need-help-getting-D3-charts-on-Leaflet-map/m-p/580370#M17834</link>
      <description>&lt;P&gt;Hi there&lt;/P&gt;&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="3821" data-lia-user-login="jppp" class="lia-mention lia-mention-user"&gt;jppp&lt;/a&gt;&amp;nbsp;I followed that and I finally had a visual! Many thanks for this much appreciated.&lt;/P&gt;&lt;P&gt;However, one last question from me I hope - how come my map is default to New Zealand? There must be somewhere in the data that I didnt remove before running pbiviz package command. Must be rookie mistake but hope you could help please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ped&lt;/P&gt;</description>
      <pubDate>Thu, 06 Dec 2018 10:26:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Need-help-getting-D3-charts-on-Leaflet-map/m-p/580370#M17834</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-12-06T10:26:35Z</dc:date>
    </item>
  </channel>
</rss>

