<?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: Geofencing in ArcGIS AppStudio Questions</title>
    <link>https://community.esri.com/t5/arcgis-appstudio-questions/geofencing/m-p/813592#M1693</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you still working on this. There is a similar question which has been answered here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/205748-issue-with-github-offline-geodatabase-example"&gt;https://community.esri.com/thread/205748-issue-with-github-offline-geodatabase-example&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Dec 2017 19:20:10 GMT</pubDate>
    <dc:creator>nakulmanocha</dc:creator>
    <dc:date>2017-12-20T19:20:10Z</dc:date>
    <item>
      <title>Geofencing</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/geofencing/m-p/813591#M1692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;DIV data-object-id="204555" data-object-type="1"&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;P&gt;I'm stuck. I'm trying to create geofencing offline. So I am trying get the location on PositionChanged (below) =&amp;gt; but for geom I get null. Why?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, how would I create geom for a geodatabase? As I said its offline =&amp;gt; code is also below. Geodatabase is working. I just want that if we enter this polygon, the user gets a warning message. Thanks for help in advance!&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;SPAN style="color: #c0c0c0;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;onPositionChanged&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;{&lt;/P&gt;&lt;PRE&gt;&lt;PRE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #808000;"&gt;var&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #2985c7;"&gt;newPoint&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;=&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;positionSource&lt;/SPAN&gt;.position.coordinate&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN style="color: #0055af;"&gt;console&lt;/SPAN&gt;.log(&lt;SPAN style="color: #2985c7;"&gt;newPoint&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;PRE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN style="color: #808000;"&gt;var&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #2985c7;"&gt;geom&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;=&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;GeometryEngine&lt;/SPAN&gt;.project(&lt;SPAN style="color: #2985c7;"&gt;newPoint&lt;/SPAN&gt;,&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;SpatialReference&lt;/SPAN&gt;.createWebMercator())&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN style="color: #0055af;"&gt;console&lt;/SPAN&gt;.log(&lt;SPAN style="color: #2985c7;"&gt;geom&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//-------------------------------------------------------------------------------------------------------------------------------------------------------//&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;FeatureLayer&lt;/SPAN&gt;{&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN style="color: #800000;"&gt;id&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;featureLayer&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;featureTable&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;featureTable&lt;/SPAN&gt;.geodatabaseFeatureTablesByTableName[&lt;SPAN style="color: #008000;"&gt;"TestFencingHoff"&lt;/SPAN&gt;]&lt;/PRE&gt;&lt;PRE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;//&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;create&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;the&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;geodatabase&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;Geodatabase&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;{&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;id&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;featureTable&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN style="color: #c0c0c0;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;path&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;AppFramework&lt;/SPAN&gt;.resolvedPathUrl(&lt;SPAN style="color: #000000;"&gt;copyLocalData&lt;/SPAN&gt;(&lt;SPAN style="color: #000000;"&gt;inputGeofencing&lt;/SPAN&gt;,&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;outputGeofencing&lt;/SPAN&gt;))&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;}&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN style="color: #c0c0c0;"&gt;&amp;nbsp; &lt;/SPAN&gt;}&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Nov 2017 21:25:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/geofencing/m-p/813591#M1692</guid>
      <dc:creator>AneeqaAbrar1</dc:creator>
      <dc:date>2017-11-19T21:25:52Z</dc:date>
    </item>
    <item>
      <title>Re: Geofencing</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/geofencing/m-p/813592#M1693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you still working on this. There is a similar question which has been answered here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/205748-issue-with-github-offline-geodatabase-example"&gt;https://community.esri.com/thread/205748-issue-with-github-offline-geodatabase-example&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Dec 2017 19:20:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/geofencing/m-p/813592#M1693</guid>
      <dc:creator>nakulmanocha</dc:creator>
      <dc:date>2017-12-20T19:20:10Z</dc:date>
    </item>
  </channel>
</rss>

