<?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: Is there an example on how to get drivetime polygons for a time greater than 15 minutes using esri.leaflet?  in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-an-example-on-how-to-get-drivetime/m-p/398197#M36688</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you look at the service you are referencing it has 3 options.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Default Value:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL style="padding: 0px 0px 0px 30px;"&gt;&lt;UL style="padding: 0px 0px 0px 30px;"&gt;&lt;UL style="padding: 0px 0px 0px 30px;"&gt;5 10 15&lt;/UL&gt;&lt;UL style="padding: 0px 0px 0px 30px;"&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;A class="link-titled" href="https://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Network/ESRI_DriveTime_US/GPServer/CreateDriveTimePolygons" title="https://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Network/ESRI_DriveTime_US/GPServer/CreateDriveTimePolygons"&gt;CreateDriveTimePolygons (Network/ESRI_DriveTime_US)&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You would need to publish your own drive time service.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Apr 2017 21:25:13 GMT</pubDate>
    <dc:creator>RickeyFight</dc:creator>
    <dc:date>2017-04-05T21:25:13Z</dc:date>
    <item>
      <title>Is there an example on how to get drivetime polygons for a time greater than 15 minutes using esri.leaflet?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-an-example-on-how-to-get-drivetime/m-p/398196#M36687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there an example on how to get drivetime polygons for a time greater than 15 minutes using esri.leaflet?&lt;/P&gt;&lt;P&gt;I can use the sample code pretty much as is to generate single polygons for any time up to 15 minutes, &lt;BR /&gt;but greater than that the response seems to default to 5 minutes. I have a routine that gives me a token based on &lt;BR /&gt;the client ID and secret from the app I registered with Esri and use this as shown in code below. I am thinking it is an&lt;BR /&gt;authentication problem dis-allowing times greater than 15 minutes but I am not sure. If anyone has a suggestion PLEASE HELP!!!&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I create a service as follows:&lt;BR /&gt; var gpService = L.esri.GP.service({&lt;BR /&gt;&lt;SPAN&gt; url: "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fsampleserver1.arcgisonline.com%2FArcGIS%2Frest%2Fservices%2FNetwork%2FESRI_DriveTime_US%2FGPServer%2FCreateDriveTimePolygons" rel="nofollow" target="_blank"&gt;https://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Network/ESRI_DriveTime_US/GPServer/CreateDriveTimePolygons&lt;/A&gt;&lt;SPAN&gt;",&lt;/SPAN&gt;&lt;BR /&gt; useCors: false&lt;BR /&gt; });&lt;BR /&gt; gpService.on('authenticationrequired', function (e) {&lt;BR /&gt; e.retry(esriToken);&lt;BR /&gt; });&lt;BR /&gt; gpService.authenticate(esriToken);&lt;BR /&gt; gpTask = gpService.createTask(); &lt;BR /&gt; gpTask.token(esriToken);&lt;BR /&gt; driveTimes = L.featureGroup();&lt;BR /&gt; leafMap.addLayer(driveTimes);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Later on I call this function to create the polygon after a user enters time in minutes and clicks a button:&lt;/P&gt;&lt;P&gt;function drawDriveTimePolygon(lat, lon, minutes) {&lt;BR /&gt; driveTimes.clearLayers();&lt;BR /&gt; gpTask.setParam("Drive_Times", minutes);&lt;BR /&gt; gpTask.setParam("Input_Location", L.latLng(lat, lon));&lt;BR /&gt; gpTask.token(esriToken);&lt;BR /&gt; gpTask.run(driveTimeCallback);&lt;BR /&gt; function driveTimeCallback(error, response, raw) {&lt;BR /&gt; driveTimes.addLayer(L.geoJSON(response.Output_Drive_Time_Polygons));&lt;BR /&gt; var points = response.Output_Drive_Time_Polygons.features[0].geometry.coordinates[0];&lt;BR /&gt; var arrayLength = points.length;&lt;BR /&gt; var vertices = [];&lt;BR /&gt; for (var i = 0; i &amp;lt; arrayLength; i++) {&lt;BR /&gt; vertices.push(new L.latLng(points&lt;I&gt;[0], points&lt;I&gt;[1]));&lt;BR /&gt; }&lt;BR /&gt; var polygon = new L.Polygon(vertices)&lt;BR /&gt; .setStyle({ color: shapeColor })&lt;BR /&gt; .addTo(leafMap);&lt;BR /&gt; }&lt;BR /&gt;}&lt;/I&gt;&lt;/I&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Apr 2017 21:18:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-an-example-on-how-to-get-drivetime/m-p/398196#M36687</guid>
      <dc:creator>DanielArmstrong</dc:creator>
      <dc:date>2017-04-05T21:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an example on how to get drivetime polygons for a time greater than 15 minutes using esri.leaflet?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-an-example-on-how-to-get-drivetime/m-p/398197#M36688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you look at the service you are referencing it has 3 options.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Default Value:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL style="padding: 0px 0px 0px 30px;"&gt;&lt;UL style="padding: 0px 0px 0px 30px;"&gt;&lt;UL style="padding: 0px 0px 0px 30px;"&gt;5 10 15&lt;/UL&gt;&lt;UL style="padding: 0px 0px 0px 30px;"&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;A class="link-titled" href="https://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Network/ESRI_DriveTime_US/GPServer/CreateDriveTimePolygons" title="https://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Network/ESRI_DriveTime_US/GPServer/CreateDriveTimePolygons"&gt;CreateDriveTimePolygons (Network/ESRI_DriveTime_US)&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You would need to publish your own drive time service.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Apr 2017 21:25:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-an-example-on-how-to-get-drivetime/m-p/398197#M36688</guid>
      <dc:creator>RickeyFight</dc:creator>
      <dc:date>2017-04-05T21:25:13Z</dc:date>
    </item>
  </channel>
</rss>

