<?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: Routing - road blocks in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/routing-road-blocks/m-p/641957#M59940</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alex,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; That is for point layers there is a separate property for line and polygon barriers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Mar 2017 22:51:15 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2017-03-09T22:51:15Z</dc:date>
    <item>
      <title>Routing - road blocks</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/routing-road-blocks/m-p/641954#M59937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have points feature layer that represent road blocks. I would like to allow users to be using the &lt;A href="https://developers.arcgis.com/javascript/3/sandbox/sandbox.html?sample=widget_directions_basic"&gt;direction widget &lt;/A&gt;to be rerouted. Is it possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Mar 2017 16:40:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/routing-road-blocks/m-p/641954#M59937</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2017-03-09T16:40:53Z</dc:date>
    </item>
    <item>
      <title>Re: Routing - road blocks</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/routing-road-blocks/m-p/641955#M59938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alex,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Sure, you would just have to add the features from your roadblock layer to the directions dijit using the esri private object called&amp;nbsp;_barriersLayer&lt;/P&gt;&lt;P&gt;So it would look like:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; directions &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;Directions&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp; map&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; map
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"dir"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
directions&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;startup&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
directions&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;_barriersLayer &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; yourBarriersLayer&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:17:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/routing-road-blocks/m-p/641955#M59938</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-12T03:17:05Z</dc:date>
    </item>
    <item>
      <title>Re: Routing - road blocks</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/routing-road-blocks/m-p/641956#M59939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cool, can this barrier layer be point (road blocks layer) or does it have to be a line feature.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Mar 2017 18:15:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/routing-road-blocks/m-p/641956#M59939</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2017-03-09T18:15:26Z</dc:date>
    </item>
    <item>
      <title>Re: Routing - road blocks</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/routing-road-blocks/m-p/641957#M59940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alex,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; That is for point layers there is a separate property for line and polygon barriers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Mar 2017 22:51:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/routing-road-blocks/m-p/641957#M59940</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-03-09T22:51:15Z</dc:date>
    </item>
  </channel>
</rss>

