<?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 Trouble vector basemap with d3 sample in Open Source Mapping Libraries Ques.</title>
    <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/trouble-vector-basemap-with-d3-sample/m-p/808478#M253</link>
    <description>&lt;P&gt;I found a really &lt;A href="http://bl.ocks.org/tnightingale/4718717" target="_blank"&gt;cool D3 sample&lt;/A&gt; that I want to include on a &lt;A href="http://vicroads-esriau.opendata.arcgis.com/pages/towards-zero" target="_blank"&gt;prototype Hub page&lt;/A&gt; that I will be showcasing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I managed to bash the script into using my hosted feature service, along with referring to a traditional tiled service.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://s3-ap-southeast-2.amazonaws.com/languagesofaustralia.com/SimonJacksonFiles/d3/d3_map.html" target="_blank"&gt;This can be seen here.&lt;/A&gt;&amp;nbsp; This is not using the Esri leaflet library.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, to match some of the other maps on my page, I need to include the Esri leaflet library so that I can incorporate the&lt;A href="http://www.arcgis.com/home/item.html?id=cc18790730a144ac8adf45d753abe852" target="_blank"&gt; Esri dark blue vector tile service.&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As soon as I switch from using&amp;nbsp;leaflet-0.5 to the&amp;nbsp;leaflet@1.2.0&amp;nbsp;(from &lt;A href="https://esri.github.io/esri-leaflet/examples/vector-basemap.html" target="_blank"&gt;the vector sample&lt;/A&gt;) in the header, along with the latest CSS then I get the following error in the console&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;
&lt;P&gt;leaflet.js:5 Uncaught Error: The provided object is not a Layer.&lt;BR /&gt;&amp;nbsp;at e.addLayer (leaflet.js:5)&lt;BR /&gt;&amp;nbsp;at e.addTo (leaflet.points-layer.js:44)&lt;BR /&gt;&amp;nbsp;at d3_map_vt.html:76&lt;BR /&gt;&amp;nbsp;at d3.v3.js:2011&lt;BR /&gt;&amp;nbsp;at Object.&amp;lt;anonymous&amp;gt; (d3.v3.js:1996)&lt;BR /&gt;&amp;nbsp;at Object.event (d3.v3.js:504)&lt;BR /&gt;&amp;nbsp;at XMLHttpRequest.respond (d3.v3.js:1949)&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Would love some help getting this resolved. &amp;nbsp; &amp;nbsp;I did try to replicate my sample in a &lt;A href="https://jsfiddle.net/ghyyaxzp/" target="_blank"&gt;JSFiddle&lt;/A&gt;, but could not get it to run.&lt;/P&gt;</description>
    <pubDate>Mon, 28 Aug 2023 13:17:57 GMT</pubDate>
    <dc:creator>SimonJackson</dc:creator>
    <dc:date>2023-08-28T13:17:57Z</dc:date>
    <item>
      <title>Trouble vector basemap with d3 sample</title>
      <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/trouble-vector-basemap-with-d3-sample/m-p/808478#M253</link>
      <description>&lt;P&gt;I found a really &lt;A href="http://bl.ocks.org/tnightingale/4718717" target="_blank"&gt;cool D3 sample&lt;/A&gt; that I want to include on a &lt;A href="http://vicroads-esriau.opendata.arcgis.com/pages/towards-zero" target="_blank"&gt;prototype Hub page&lt;/A&gt; that I will be showcasing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I managed to bash the script into using my hosted feature service, along with referring to a traditional tiled service.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://s3-ap-southeast-2.amazonaws.com/languagesofaustralia.com/SimonJacksonFiles/d3/d3_map.html" target="_blank"&gt;This can be seen here.&lt;/A&gt;&amp;nbsp; This is not using the Esri leaflet library.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, to match some of the other maps on my page, I need to include the Esri leaflet library so that I can incorporate the&lt;A href="http://www.arcgis.com/home/item.html?id=cc18790730a144ac8adf45d753abe852" target="_blank"&gt; Esri dark blue vector tile service.&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As soon as I switch from using&amp;nbsp;leaflet-0.5 to the&amp;nbsp;leaflet@1.2.0&amp;nbsp;(from &lt;A href="https://esri.github.io/esri-leaflet/examples/vector-basemap.html" target="_blank"&gt;the vector sample&lt;/A&gt;) in the header, along with the latest CSS then I get the following error in the console&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;
&lt;P&gt;leaflet.js:5 Uncaught Error: The provided object is not a Layer.&lt;BR /&gt;&amp;nbsp;at e.addLayer (leaflet.js:5)&lt;BR /&gt;&amp;nbsp;at e.addTo (leaflet.points-layer.js:44)&lt;BR /&gt;&amp;nbsp;at d3_map_vt.html:76&lt;BR /&gt;&amp;nbsp;at d3.v3.js:2011&lt;BR /&gt;&amp;nbsp;at Object.&amp;lt;anonymous&amp;gt; (d3.v3.js:1996)&lt;BR /&gt;&amp;nbsp;at Object.event (d3.v3.js:504)&lt;BR /&gt;&amp;nbsp;at XMLHttpRequest.respond (d3.v3.js:1949)&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Would love some help getting this resolved. &amp;nbsp; &amp;nbsp;I did try to replicate my sample in a &lt;A href="https://jsfiddle.net/ghyyaxzp/" target="_blank"&gt;JSFiddle&lt;/A&gt;, but could not get it to run.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2023 13:17:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/open-source-mapping-libraries-ques/trouble-vector-basemap-with-d3-sample/m-p/808478#M253</guid>
      <dc:creator>SimonJackson</dc:creator>
      <dc:date>2023-08-28T13:17:57Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble vector basemap with d3 sample</title>
      <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/trouble-vector-basemap-with-d3-sample/m-p/808479#M254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you're in luck. that great sample is plug and play in Leaflet 1.x by making &lt;EM&gt;one small tweak&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN class="" style="color: #6a737d;"&gt;// line 1 of leaflet.points-layer.js
&lt;/SPAN&gt;&lt;SPAN class="" style="color: #005cc5;"&gt;L&lt;/SPAN&gt;.&lt;SPAN class="" style="color: #24292e;"&gt;PointsLayer&lt;/SPAN&gt; &lt;SPAN class="" style="color: #d73a49;"&gt;=&lt;/SPAN&gt; &lt;SPAN class="" style="color: #005cc5;"&gt;L&lt;/SPAN&gt;.&lt;SPAN class="" style="color: #24292e;"&gt;Layer&lt;/SPAN&gt;.&lt;SPAN class="" style="color: #6f42c1;"&gt;extend&lt;/SPAN&gt;({ &lt;SPAN class="" style="color: #6a737d;"&gt;// instead of L.Class&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp; includes&lt;SPAN class="" style="color: #d73a49;"&gt;:&lt;/SPAN&gt; &lt;SPAN class="" style="color: #005cc5;"&gt;L&lt;/SPAN&gt;.&lt;SPAN class="" style="color: #24292e;"&gt;Evented&lt;/SPAN&gt;.&lt;SPAN class="" style="color: #005cc5;"&gt;prototype&lt;/SPAN&gt;, &lt;SPAN class="" style="color: #6a737d;"&gt;// instead of L.Mixin.Events&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 09:28:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/open-source-mapping-libraries-ques/trouble-vector-basemap-with-d3-sample/m-p/808479#M254</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2021-12-12T09:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble vector basemap with d3 sample</title>
      <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/trouble-vector-basemap-with-d3-sample/m-p/808480#M255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Massive&amp;nbsp;thanks John - would have taken me 20x as long to have spotted that. &amp;nbsp;&lt;/P&gt;&lt;P&gt;The new version using the dark blue canvas&amp;nbsp;can be seen &lt;A href="http://s3-ap-southeast-2.amazonaws.com/languagesofaustralia.com/SimonJacksonFiles/d3/d3_map_vt.html"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A follow on question. &amp;nbsp;I know this is an experimental add-in for the Esri Leaflet library, but the vector basemap appears to perform slower than the previous 'traditional' tiled service did. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any tips on how I could speed things up in the sample?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Aug 2017 23:51:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/open-source-mapping-libraries-ques/trouble-vector-basemap-with-d3-sample/m-p/808480#M255</guid>
      <dc:creator>SimonJackson</dc:creator>
      <dc:date>2017-08-09T23:51:19Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble vector basemap with d3 sample</title>
      <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/trouble-vector-basemap-with-d3-sample/m-p/808481#M256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&amp;gt; Any tips on how I could speed things up in the sample?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;i wish i did. i've noticed startup times that are slower than i'd expect with esri vector tile sources before and i don't know what causes it. and&amp;nbsp;&lt;/SPAN&gt;the 300kb wrapped plugin certainly helping.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2017 01:42:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/open-source-mapping-libraries-ques/trouble-vector-basemap-with-d3-sample/m-p/808481#M256</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2017-08-10T01:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble vector basemap with d3 sample</title>
      <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/trouble-vector-basemap-with-d3-sample/m-p/808482#M257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thats all good - load times are probably ok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I notice I have lost the popups by switching out to using an esri vector basemap. &amp;nbsp;Any quick tips for that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I put a watchpoint on line 134, it does not seem to fire when I click a circle, when previously without bringing in the esri-leaflet library and using the vector layer, it did.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;circles.on('click', function (d, i)&amp;nbsp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The previous sample let me interact&amp;nbsp;with the graphics that I am displaying on the map. &amp;nbsp;I saw some of the esri-leaflet samples that work with the featurelayers that you add to the map, but hoping I can avoid reworking too much of the existing code. &amp;nbsp;Perhaps there is something I need to disable on the map properties?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2017 04:51:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/open-source-mapping-libraries-ques/trouble-vector-basemap-with-d3-sample/m-p/808482#M257</guid>
      <dc:creator>SimonJackson</dc:creator>
      <dc:date>2017-08-10T04:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble vector basemap with d3 sample</title>
      <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/trouble-vector-basemap-with-d3-sample/m-p/808483#M258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;happy to look at a simplified repro case if you can log a new issue in the esri-leaflet-vector github repo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i don't see any problems with popups&amp;nbsp;when using L.esri.featureLayer&lt;/P&gt;&lt;P&gt;&lt;A class="link-bare" href="http://jsbin.com/pudiyih/edit?html,output" title="http://jsbin.com/pudiyih/edit?html,output"&gt;http://jsbin.com/pudiyih/edit?html,output&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2017 05:02:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/open-source-mapping-libraries-ques/trouble-vector-basemap-with-d3-sample/m-p/808483#M258</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2017-08-10T05:02:17Z</dc:date>
    </item>
  </channel>
</rss>

