<?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: Add an authenticated service from Portal or ArcGIS Server to an R code using leaflet.esri in R-ArcGIS Questions</title>
    <link>https://community.esri.com/t5/r-arcgis-questions/add-an-authenticated-service-from-portal-or-arcgis/m-p/846147#M229</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Giacomo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the report. The leaflet.esri package isn't something we wrote in house, it lives here on Github:&lt;BR /&gt;&lt;A class="link-titled" href="https://github.com/bhaskarvk/leaflet.esri/" title="https://github.com/bhaskarvk/leaflet.esri/"&gt;GitHub - bhaskarvk/leaflet.esri: ESRI Plugin for Leaflet R Package&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may be able to adapt the Esri Leaflet basic examples for authentication, for example following this example: &lt;A class="link-titled" href="https://esri.github.io/esri-leaflet/examples/arcgis-server-auth.html" title="https://esri.github.io/esri-leaflet/examples/arcgis-server-auth.html"&gt;ArcGIS Server username/password | Esri Leaflet&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We're also examining what handling authenticated services via the R-ArcGIS bridge package might look like for a future release.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Shaun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Aug 2019 19:07:40 GMT</pubDate>
    <dc:creator>ShaunWalbridge</dc:creator>
    <dc:date>2019-08-07T19:07:40Z</dc:date>
    <item>
      <title>Add an authenticated service from Portal or ArcGIS Server to an R code using leaflet.esri</title>
      <link>https://community.esri.com/t5/r-arcgis-questions/add-an-authenticated-service-from-portal-or-arcgis/m-p/846146#M228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to user the leaflet.esri library in R and I cannot find a way to add a layer from my Portal or ArcGIS Server.&lt;/P&gt;&lt;P&gt;The sample code I am using in the following and you can find it here:&amp;nbsp;&lt;A href="https://cran.r-project.org/web/packages/leaflet.esri/leaflet.esri.pdf"&gt;https://cran.r-project.org/web/packages/leaflet.esri/leaflet.esri.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;library(leaflet.esri)&lt;/P&gt;&lt;P&gt;popupFunc &amp;lt;- htmlwidgets::JS(&lt;BR /&gt; "function (error, featureCollection) {&lt;BR /&gt; if (error || featureCollection.features.length === 0) {&lt;BR /&gt; return false;&lt;BR /&gt; } else {&lt;BR /&gt; return \"Risk Level: \" + featureCollection.features[0].properties.CLASS_DESC;&lt;BR /&gt; }&lt;BR /&gt; }")&lt;BR /&gt;leaflet() %&amp;gt;% setView(-96.8, 38.5, 4) %&amp;gt;%&lt;BR /&gt; addEsriBasemapLayer(esriBasemapLayers$Gray, autoLabels = TRUE) %&amp;gt;%&lt;BR /&gt; addEsriDynamicMapLayer(&lt;BR /&gt; url = paste0("https://myArcGISServer.com/arcgis/rest/services/MapServices/MyLayer/MapServer/7"),&lt;BR /&gt; popupFunction = popupFunc)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jun 2019 12:42:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/r-arcgis-questions/add-an-authenticated-service-from-portal-or-arcgis/m-p/846146#M228</guid>
      <dc:creator>GiacomoFavaron</dc:creator>
      <dc:date>2019-06-28T12:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: Add an authenticated service from Portal or ArcGIS Server to an R code using leaflet.esri</title>
      <link>https://community.esri.com/t5/r-arcgis-questions/add-an-authenticated-service-from-portal-or-arcgis/m-p/846147#M229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Giacomo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the report. The leaflet.esri package isn't something we wrote in house, it lives here on Github:&lt;BR /&gt;&lt;A class="link-titled" href="https://github.com/bhaskarvk/leaflet.esri/" title="https://github.com/bhaskarvk/leaflet.esri/"&gt;GitHub - bhaskarvk/leaflet.esri: ESRI Plugin for Leaflet R Package&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may be able to adapt the Esri Leaflet basic examples for authentication, for example following this example: &lt;A class="link-titled" href="https://esri.github.io/esri-leaflet/examples/arcgis-server-auth.html" title="https://esri.github.io/esri-leaflet/examples/arcgis-server-auth.html"&gt;ArcGIS Server username/password | Esri Leaflet&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We're also examining what handling authenticated services via the R-ArcGIS bridge package might look like for a future release.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Shaun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Aug 2019 19:07:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/r-arcgis-questions/add-an-authenticated-service-from-portal-or-arcgis/m-p/846147#M229</guid>
      <dc:creator>ShaunWalbridge</dc:creator>
      <dc:date>2019-08-07T19:07:40Z</dc:date>
    </item>
  </channel>
</rss>

