<?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: Labelling Feature class on Web Application in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/labelling-feature-class-on-web-application/m-p/528622#M49286</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That's in the plan that JavaScript API will support labeling on client. But we don't have a specific timeline at this moment.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Sep 2012 21:37:35 GMT</pubDate>
    <dc:creator>JianHuang</dc:creator>
    <dc:date>2012-09-13T21:37:35Z</dc:date>
    <item>
      <title>Labelling Feature class on Web Application</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/labelling-feature-class-on-web-application/m-p/528620#M49284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I made a web application for a campus. Each building has name and what I want to do is to show name of building on each polygon.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I know it is simple by using .mxd file, because .mxd file will contains symbology and labelling. However, feature class doesn't contain label.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any JavaScript code which I can choose a field from building's attribute like "name", and show them on my website?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2012 15:03:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/labelling-feature-class-on-web-application/m-p/528620#M49284</guid>
      <dc:creator>MaziyarBoustani</dc:creator>
      <dc:date>2012-09-13T15:03:18Z</dc:date>
    </item>
    <item>
      <title>Re: Labelling Feature class on Web Application</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/labelling-feature-class-on-web-application/m-p/528621#M49285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I assume the buildings are a feature layer and it's MODE_ONDEMAND. You could:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1) create a graphic layer for the labels&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) connect to the feature layer's onUpdateStart() method to clear any existing labels on the label graphic layer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3) connect to the the feature layer's onUpdateEnd(error, info), iterate through the features, and:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; a) get the center of the feature&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; b) create a POINT on the label graphic layer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; c) instead of a point symbol, give it a text symbol using the attribute of your choice for the label text&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You'll probably want to set the label graphic layer's display scales. If you haven't worked with text symbols they can be tricky to format properly. The api reference has the basics but I suggest checking out a text symbol in the DOM for unreferenced variables and functionality. The hazard to this approach is the label will be on top of the polygons and will accept a click over the polygon if the user clicks on the label. If there is no info template, onclick etc associated with the polygon it's not a problem.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2012 19:12:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/labelling-feature-class-on-web-application/m-p/528621#M49285</guid>
      <dc:creator>BenFousek</dc:creator>
      <dc:date>2012-09-13T19:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: Labelling Feature class on Web Application</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/labelling-feature-class-on-web-application/m-p/528622#M49286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That's in the plan that JavaScript API will support labeling on client. But we don't have a specific timeline at this moment.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2012 21:37:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/labelling-feature-class-on-web-application/m-p/528622#M49286</guid>
      <dc:creator>JianHuang</dc:creator>
      <dc:date>2012-09-13T21:37:35Z</dc:date>
    </item>
    <item>
      <title>Re: Labelling Feature class on Web Application</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/labelling-feature-class-on-web-application/m-p/528623#M49287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I find GeometryService.labelPoints() method which make a point on each polygon and will label the polygon.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the link:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://resources.esri.com/help/9.3/arcgisserver/apis/javascript/arcgis/help/jssamples_start.htm#jssamples/util_label_point.html"&gt;http://resources.esri.com/help/9.3/arcgisserver/apis/javascript/arcgis/help/jssamples_start.htm#jssamples/util_label_point.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Sep 2012 21:49:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/labelling-feature-class-on-web-application/m-p/528623#M49287</guid>
      <dc:creator>MaziyarBoustani</dc:creator>
      <dc:date>2012-09-14T21:49:33Z</dc:date>
    </item>
  </channel>
</rss>

