<?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: SsnappingManager only snaps to map graphics in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/ssnappingmanager-only-snaps-to-map-graphics/m-p/550506#M51300</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ah, do I understand correctly then, that the snapping only works on feature layers added to the map?&amp;nbsp; I guess so&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;SPAN style="color: #000000; font-family: Lucida Grande;"&gt;Reference to a &lt;STRONG&gt;feature &lt;/STRONG&gt;or &lt;STRONG&gt;graphics&lt;/STRONG&gt; layer that will be a target snapping layer. The default option is to set all feature and graphics layers in the map to be target snapping layers.&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If so it would explain a lot as I have no feature layers, just dynamic ones.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, if&amp;nbsp; I add a feature layer to the map - does it have to be visible?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ACM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Apr 2013 16:29:36 GMT</pubDate>
    <dc:creator>AdrianMarsden</dc:creator>
    <dc:date>2013-04-17T16:29:36Z</dc:date>
    <item>
      <title>SsnappingManager only snaps to map graphics</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/ssnappingmanager-only-snaps-to-map-graphics/m-p/550504#M51298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a internal project about to go live, I really want to have snapping for measurements and user added graphics.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At the moment a simple&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.enableSnapping({ snapKey: dojo.keys.copyKey });&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;gets it on. However snapping only appears to work against already drawn graphics, not on any of my vector layers on my map.&amp;nbsp; My map is made up of four ArcGISDynamicMapServiceLayer - added like this&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var background = new esri.layers.ArcGISDynamicMapServiceLayer(mapservice1, { "id": "mainbasemaps" });&amp;nbsp;&amp;nbsp; // map.addLayer(background);&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; background.setDPI(150); &amp;nbsp;&amp;nbsp;&amp;nbsp; var altmaps = new esri.layers.ArcGISDynamicMapServiceLayer(altbasemaps, { "id": "altbasemaps" }); &amp;nbsp;&amp;nbsp; // map.addLayer(altmaps); &amp;nbsp;&amp;nbsp;&amp;nbsp; var aerials = new esri.layers.ArcGISDynamicMapServiceLayer(aerialservice, { "id": "aerialmaps" });&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; //map.addLayer(aerials); &amp;nbsp;&amp;nbsp;&amp;nbsp; dynamicMapServiceLayer = new esri.layers.ArcGISDynamicMapServiceLayer(mapservice2, { "id": "mainmap" }); &amp;nbsp;&amp;nbsp;&amp;nbsp; dynamicMapServiceLayer.setOpacity(0.9); &amp;nbsp;&amp;nbsp;&amp;nbsp; dynamicMapServiceLayer.setDPI(96) &amp;nbsp;&amp;nbsp;&amp;nbsp; map.addLayers([background],[altmaps],[aerials],[dynamicMapServiceLayer]);&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;from the API documentation&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;SPAN style="color: #000000; font-family: Lucida Grande;"&gt;Reference to a feature or graphics layer that will be a target snapping layer. The default option is to set all feature and graphics layers in the map to be target snapping layers.&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I would have thought it would snap to everything?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've tried defining a specific layer like&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;var snappinglayer = new esri.layers.FeatureLayer(mapservice2 + "/4", {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mode: esri.layers.FeatureLayer.MODE_ONDEMAND, &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; outFields: ["*"] &amp;nbsp;&amp;nbsp;&amp;nbsp; }); ... var layerInfos = [{ layer: snappinglayer }]; &amp;nbsp;&amp;nbsp;&amp;nbsp; snapManager.setLayerInfos(layerInfos);&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But that fails.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas what I've missed?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ACM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Apr 2013 13:13:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/ssnappingmanager-only-snaps-to-map-graphics/m-p/550504#M51298</guid>
      <dc:creator>AdrianMarsden</dc:creator>
      <dc:date>2013-04-17T13:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: SsnappingManager only snaps to map graphics</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/ssnappingmanager-only-snaps-to-map-graphics/m-p/550505#M51299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;im not sure i understand.&amp;nbsp; are you trying to snap to a featureLayer which hasn't been added to the map because youre already drawing it in a DynamicMapServiceLayer?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Apr 2013 15:45:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/ssnappingmanager-only-snaps-to-map-graphics/m-p/550505#M51299</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2013-04-17T15:45:03Z</dc:date>
    </item>
    <item>
      <title>Re: SsnappingManager only snaps to map graphics</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/ssnappingmanager-only-snaps-to-map-graphics/m-p/550506#M51300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ah, do I understand correctly then, that the snapping only works on feature layers added to the map?&amp;nbsp; I guess so&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;SPAN style="color: #000000; font-family: Lucida Grande;"&gt;Reference to a &lt;STRONG&gt;feature &lt;/STRONG&gt;or &lt;STRONG&gt;graphics&lt;/STRONG&gt; layer that will be a target snapping layer. The default option is to set all feature and graphics layers in the map to be target snapping layers.&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If so it would explain a lot as I have no feature layers, just dynamic ones.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, if&amp;nbsp; I add a feature layer to the map - does it have to be visible?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ACM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Apr 2013 16:29:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/ssnappingmanager-only-snaps-to-map-graphics/m-p/550506#M51300</guid>
      <dc:creator>AdrianMarsden</dc:creator>
      <dc:date>2013-04-17T16:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: SsnappingManager only snaps to map graphics</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/ssnappingmanager-only-snaps-to-map-graphics/m-p/550507#M51301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;i haven't done any testing with this at all, but my guess would be that only the graphics being drawn would be "snap enabled".&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Apr 2013 18:55:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/ssnappingmanager-only-snaps-to-map-graphics/m-p/550507#M51301</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2013-04-17T18:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: SsnappingManager only snaps to map graphics</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/ssnappingmanager-only-snaps-to-map-graphics/m-p/550508#M51302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, the featureLayer has to be added to the map and it has to be visible.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Ah, do I understand correctly then, that the snapping only works on feature layers added to the map?&amp;nbsp; I guess so&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If so it would explain a lot as I have no feature layers, just dynamic ones.&lt;BR /&gt;&lt;BR /&gt;So, if&amp;nbsp; I add a feature layer to the map - does it have to be visible?&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;&lt;BR /&gt;ACM&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Apr 2013 19:50:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/ssnappingmanager-only-snaps-to-map-graphics/m-p/550508#M51302</guid>
      <dc:creator>JianHuang</dc:creator>
      <dc:date>2013-04-17T19:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: SsnappingManager only snaps to map graphics</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/ssnappingmanager-only-snaps-to-map-graphics/m-p/550509#M51303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Cheers - I'm sure I tried that, but I'll have another go.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ACM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Apr 2013 07:32:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/ssnappingmanager-only-snaps-to-map-graphics/m-p/550509#M51303</guid>
      <dc:creator>AdrianMarsden</dc:creator>
      <dc:date>2013-04-18T07:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: snappingManager only snaps to map graphics</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/ssnappingmanager-only-snaps-to-map-graphics/m-p/550510#M51304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;sorted - thanks - I must have read the API notes several times without noticing it said feature.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ACM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Apr 2013 09:35:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/ssnappingmanager-only-snaps-to-map-graphics/m-p/550510#M51304</guid>
      <dc:creator>AdrianMarsden</dc:creator>
      <dc:date>2013-04-18T09:35:36Z</dc:date>
    </item>
  </channel>
</rss>

