<?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: Disable Editing Geometry of Features in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/disable-editing-geometry-of-features/m-p/622177#M58112</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;swingley:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The Attribute Inspector appears to be wonderful.&amp;nbsp; I would like to have 2 general Q's:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1)&amp;nbsp; It should be also applicable for JS Extension for Google Maps API's application.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If the layer is an esri.layers.FeatureLayer, this method used in the tool should be able to apply for.&amp;nbsp; True or false?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2)&amp;nbsp; If I add a .gpx file (converted from a shapefile, gpx is actually an xml file) on the map, can this be layer be defined as an esri.layers.FeatureLayer?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your attention.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yours,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Shaning&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Jul 2011 14:20:08 GMT</pubDate>
    <dc:creator>ShaningYu</dc:creator>
    <dc:date>2011-07-20T14:20:08Z</dc:date>
    <item>
      <title>Disable Editing Geometry of Features</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/disable-editing-geometry-of-features/m-p/622175#M58110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is there a simple way to disable the ability to edit the geometry of features in a FeatureLayer?&amp;nbsp; Essentially I want to load 3-5 layers in to my application, and disable the ability to add, delete, move, etc any of the features; however, I want the users to be able to update the attributes of the features.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am working with the following sample:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/EN/webapi/javascript/arcgis/help/jssamples_start.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/EN/webapi/javascript/arcgis/help/jssamples_start.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In this sample there is only one layer that is being edited.&amp;nbsp; How would you do more than one?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried the following to change the FeatureLayer, but the attributes do not show up in the InfoWindow after I switch the FL.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
FLEdit1 = "http://myserver.com/ArcGIS/rest/services/fledit1/0"
FLEdit2 = "http://myserver.com/ArcGIS/rest/services/fledit1/1"

function editSetLayer (strFeatureLayer){
 
 FL = new esri.layers.FeatureLayer(strFeatureLayer, {
&amp;nbsp; mode: esri.layers.FeatureLayer.MODE_SELECTION,
&amp;nbsp; outFields: ["*"]
 });
 
 markerSymbol = new esri.symbol.SimpleMarkerSymbol(esri.symbol.SimpleMarkerSymbol.STYLE_SQUARE, 15, new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID, new dojo.Color([0, 0, 255]), 0.5), new dojo.Color([0, 255, 255, 0.5]));

 FL.setSelectionSymbol(markerSymbol);
 
};

editSetLayer(FLEdit1);

&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help is greatly appreciated...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 02:31:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/disable-editing-geometry-of-features/m-p/622175#M58110</guid>
      <dc:creator>AaronDrake</dc:creator>
      <dc:date>2021-12-12T02:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: Disable Editing Geometry of Features</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/disable-editing-geometry-of-features/m-p/622176#M58111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, you can do this by using the attribute inspector. See this sample:&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples/ed_attribute_inspector.html"&gt;Using the Attribute Inspector&lt;/A&gt;&lt;SPAN&gt;. To edit multiple layers, add additional objects to the layerInfos array.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jul 2011 18:41:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/disable-editing-geometry-of-features/m-p/622176#M58111</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2011-07-19T18:41:22Z</dc:date>
    </item>
    <item>
      <title>Re: Disable Editing Geometry of Features</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/disable-editing-geometry-of-features/m-p/622177#M58112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;swingley:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The Attribute Inspector appears to be wonderful.&amp;nbsp; I would like to have 2 general Q's:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1)&amp;nbsp; It should be also applicable for JS Extension for Google Maps API's application.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If the layer is an esri.layers.FeatureLayer, this method used in the tool should be able to apply for.&amp;nbsp; True or false?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2)&amp;nbsp; If I add a .gpx file (converted from a shapefile, gpx is actually an xml file) on the map, can this be layer be defined as an esri.layers.FeatureLayer?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your attention.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yours,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Shaning&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 14:20:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/disable-editing-geometry-of-features/m-p/622177#M58112</guid>
      <dc:creator>ShaningYu</dc:creator>
      <dc:date>2011-07-20T14:20:08Z</dc:date>
    </item>
    <item>
      <title>Re: Disable Editing Geometry of Features</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/disable-editing-geometry-of-features/m-p/622178#M58113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was able to add a second layer to the layerInfos array; however, now I need to be able to select features in this second layer.&amp;nbsp; In the example it is set to select only from the petroFieldsFL.&amp;nbsp; It needs to select from all of the FL's I load into the map, or from a layer the user specifies.&amp;nbsp; I can manually change it from petroFieldsFL to myFL, and it works.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I just need to be able to do it dynamically...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 17:55:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/disable-editing-geometry-of-features/m-p/622178#M58113</guid>
      <dc:creator>AaronDrake</dc:creator>
      <dc:date>2011-07-20T17:55:04Z</dc:date>
    </item>
  </channel>
</rss>

