<?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: Labeling of features added via MessageProcessor (chemlight) in Java Maps SDK Questions</title>
    <link>https://community.esri.com/t5/java-maps-sdk-questions/labeling-of-features-added-via-messageprocessor/m-p/264503#M771</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Stefan,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you switch to using the new release 10.1.1 we have implemented a new selection capability for graphics which I think does what you are after.&amp;nbsp; When you select a graphic it adds a halo around it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So adding to the code we looked at yesterday to create a text symbol, you can select a graphic (which adds a halo) like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //select the highlight color (if you don't it defaults to cyan)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; labelsGL.setSelectionColor(Color.green);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //select the graphic so it has a halo&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; labelsGL.select(labelID);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]20829[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope that helps&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mark&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Jan 2013 08:14:49 GMT</pubDate>
    <dc:creator>MarkBaird</dc:creator>
    <dc:date>2013-01-18T08:14:49Z</dc:date>
    <item>
      <title>Labeling of features added via MessageProcessor (chemlight)</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/labeling-of-features-added-via-messageprocessor/m-p/264500#M768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Currently i am working with the Vehicle Commander Template and i want to set a label for incoming &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;chemlight&lt;/SPAN&gt;&lt;SPAN&gt; messages. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I found out that the MessageProcessor uses the message property "UniqueDesignation" to label a &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;trackrep&lt;/SPAN&gt;&lt;SPAN&gt; message. But for a &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;chemlight&lt;/SPAN&gt;&lt;SPAN&gt; message using this property does not work. Cause the MessageProcessor itself is just a blackbox, i don't know if it is even possible.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Within the afmchemlight.json configuration file i also saw the 2 properties &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;defaultLabel&lt;/SPAN&gt;&lt;SPAN&gt; and &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;label&lt;/SPAN&gt;&lt;SPAN&gt;, so i expected that labeling should somehow be possible, or that labeling is even planned for the &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;chemlight&lt;/SPAN&gt;&lt;SPAN&gt; messages.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any further documentation how to get it work?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A workaround would be to draw the chemlight in an own graphic layer and define a labeling, but it would be nice if the message processor could also handle this. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Stefan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jan 2013 14:03:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/labeling-of-features-added-via-messageprocessor/m-p/264500#M768</guid>
      <dc:creator>StefanP__Jung</dc:creator>
      <dc:date>2013-01-16T14:03:01Z</dc:date>
    </item>
    <item>
      <title>Re: Labeling of features added via MessageProcessor (chemlight)</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/labeling-of-features-added-via-messageprocessor/m-p/264501#M769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Internally the API renders Chem Lights using a unique value renderer.&amp;nbsp; Therefore this does not support labels out of the box.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The other symbols for 2525C use a DictionaryRenderer which as you point out accept a Unique Designation which is your labelling item.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want to have a label for a Chem Light, then you will need to render your own using a TextMarker in a graphics layer.&amp;nbsp; The following code shows how this can be done.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //graphics layer for labels&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GraphicsLayer labelsGL = new GraphicsLayer();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.getLayers().add(labelsGL);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Make a graphic for the label&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TextSymbol labelSymb = new TextSymbol(12, "ABC", Color.blue);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Point labelLocation = new Point(2191602.87,626172.13);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Graphic labelGraphic = new Graphic(labelLocation, labelSymb);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //add graphic to the graphics layer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; labelsGL.addGraphic(labelGraphic);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You will of course need to consider how you place your labels.&amp;nbsp; The location of the point may need to change slightly according to the zoom level of the map if your label is offset from the location of the chem light.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So in conclusion it's possible,but it might involve a little more work than expected.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2013 08:33:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/labeling-of-features-added-via-messageprocessor/m-p/264501#M769</guid>
      <dc:creator>MarkBaird</dc:creator>
      <dc:date>2013-01-17T08:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: Labeling of features added via MessageProcessor (chemlight)</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/labeling-of-features-added-via-messageprocessor/m-p/264502#M770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Mark, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thank you for the quick response. And good to know how it works under the hood. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I will use your approache and label the chemlights in a separat graphics layer if the message processor successfully proccessed the message and the type is chemlight.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've tested it quick &amp;amp; dirty - and it works like expected.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But with a TextSymbol I am not able to define a halo like the message processor does for labeling. I can only define the size and color, not even if it should be bold? I also used the Json syntax to set some more prameters (equald to JS API), but it looks like this parameters will be ignored.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Stefan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2013 06:48:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/labeling-of-features-added-via-messageprocessor/m-p/264502#M770</guid>
      <dc:creator>StefanP__Jung</dc:creator>
      <dc:date>2013-01-18T06:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: Labeling of features added via MessageProcessor (chemlight)</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/labeling-of-features-added-via-messageprocessor/m-p/264503#M771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Stefan,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you switch to using the new release 10.1.1 we have implemented a new selection capability for graphics which I think does what you are after.&amp;nbsp; When you select a graphic it adds a halo around it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So adding to the code we looked at yesterday to create a text symbol, you can select a graphic (which adds a halo) like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //select the highlight color (if you don't it defaults to cyan)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; labelsGL.setSelectionColor(Color.green);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //select the graphic so it has a halo&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; labelsGL.select(labelID);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]20829[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope that helps&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mark&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2013 08:14:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/labeling-of-features-added-via-messageprocessor/m-p/264503#M771</guid>
      <dc:creator>MarkBaird</dc:creator>
      <dc:date>2013-01-18T08:14:49Z</dc:date>
    </item>
    <item>
      <title>Re: Labeling of features added via MessageProcessor (chemlight)</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/labeling-of-features-added-via-messageprocessor/m-p/264504#M772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Mark,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i will test this when i've downloaded the new Java SDK. This morning i saw the post that it has been released. But the download was not yet available in the customer care. I am looking forward to see more features in the Runtime which are already available in the web apis &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot for your help. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Stefan&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Edit: I've just tested the selection and this solution will work for me. thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2013 08:58:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/labeling-of-features-added-via-messageprocessor/m-p/264504#M772</guid>
      <dc:creator>StefanP__Jung</dc:creator>
      <dc:date>2013-01-18T08:58:17Z</dc:date>
    </item>
  </channel>
</rss>

