<?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: Showing Label OR TextSymbol in NA RouteResult in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/showing-label-or-textsymbol-in-na-routeresult/m-p/635900#M59397</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Adding it seems to break the initialization of my dropdowns, but this is probably due to my inexperience with the JS api.&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&lt;BR /&gt;Thanks again!&lt;BR /&gt;Greg&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cool, start another thread if you can't get it figured out.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Feb 2012 15:51:04 GMT</pubDate>
    <dc:creator>derekswingley1</dc:creator>
    <dc:date>2012-02-09T15:51:04Z</dc:date>
    <item>
      <title>Showing Label OR TextSymbol in NA RouteResult</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/showing-label-or-textsymbol-in-na-routeresult/m-p/635895#M59392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We Currently have a Network Analyst routing application in ArcGIS Server 10 that will return a PictureMarkerSymbol for each barrier along a route.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible to call a textsymbol or "label" displaying atop this PictureMarkerSymbol?&amp;nbsp; We would like to show the ID number (from a feature class) of each barrier in the routing result.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It looks like it can only return graphics?&amp;nbsp; Any thoughts would be helpful.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2012 17:37:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/showing-label-or-textsymbol-in-na-routeresult/m-p/635895#M59392</guid>
      <dc:creator>GregoryMeyer</dc:creator>
      <dc:date>2012-02-08T17:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: Showing Label OR TextSymbol in NA RouteResult</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/showing-label-or-textsymbol-in-na-routeresult/m-p/635896#M59393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Is it possible to call a textsymbol or "label" displaying atop this PictureMarkerSymbol?&amp;nbsp; We would like to show the ID number (from a feature class) of each barrier in the routing result.&amp;nbsp; &lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If I understand correctly, you want to put some text above a picture marker symbol? You can use a &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/textsymbol.htm"&gt;TextSymbol&lt;/A&gt;&lt;SPAN&gt; to do this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, you marked your post as an answer. I'm not sure why you're even allowed to do that (forum software, not your fault) but can you see if you can undo that?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2012 20:35:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/showing-label-or-textsymbol-in-na-routeresult/m-p/635896#M59393</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2012-02-08T20:35:14Z</dc:date>
    </item>
    <item>
      <title>Re: Showing Label OR TextSymbol in NA RouteResult</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/showing-label-or-textsymbol-in-na-routeresult/m-p/635897#M59394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;If I understand correctly, you want to put some text above a picture marker symbol? You can use a &lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/textsymbol.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;TextSymbol&lt;/A&gt; to do this.&lt;BR /&gt;&lt;BR /&gt;Also, you marked your post as an answer. I'm not sure why you're even allowed to do that (forum software, not your fault) but can you see if you can undo that?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your reply. That's exactly what I'm trying to do. I came across the TextSymbol class but wasn't exactly sure on how to impliment it in the routeresult. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Would it be placed in the esri.symbol.PictureMarkerSymbol code below? Could you provide an example? (new to javascript api). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
var overviewMapDijit = new esri.dijit.OverviewMap({
map: map,
visible: true
});
overviewMapDijit.startup();

routeTask = new esri.tasks.RouteTask(naURL);

//setup the route parameters
routeParams = new esri.tasks.RouteParameters();
routeParams.stops = new esri.tasks.FeatureSet();
routeParams.outSpatialReference = { "wkid": mapWKID };

dojo.connect(routeTask, "onSolveComplete", showRoute);
dojo.connect(routeTask, "onError", errorHandler);

startSymbol = new esri.symbol.PictureMarkerSymbol('images/marker_start.png', 20, 34)
startSymbol.setOffset(0, 14);

stopSymbol = new esri.symbol.PictureMarkerSymbol('images/marker_stop.png', 20, 34)
stopSymbol.setOffset(0, 14);

barrierSymbol = new esri.symbol.PictureMarkerSymbol('images/barrier.png', 30, 46)
barrierSymbol.setOffset(0, 0);

highlightSymbol = new esri.symbol.SimpleMarkerSymbol(esri.symbol.SimpleMarkerSymbol.STYLE_SQUARE, 46, new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID, new dojo.Color("#FF00FFFF"), 2), new dojo.Color([0, 255, 0, 0]))

routeSymbol = new esri.symbol.SimpleLineSymbol().setColor(new dojo.Color([0, 0, 255, 0.5])).setWidth(5);
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:02:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/showing-label-or-textsymbol-in-na-routeresult/m-p/635897#M59394</guid>
      <dc:creator>GregoryMeyer</dc:creator>
      <dc:date>2021-12-12T03:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: Showing Label OR TextSymbol in NA RouteResult</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/showing-label-or-textsymbol-in-na-routeresult/m-p/635898#M59395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You would add a new symbol along with the other symbols you're adding. My &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://servicesbeta.esri.com/demos/graphics-performance/points.html" rel="nofollow" target="_blank"&gt;point graphic performance demo&lt;/A&gt;&lt;SPAN&gt; has some code to create text symbols. Specifically:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;symbols.text = new esri.symbol.TextSymbol("Text", font, new dojo.Color([128, 0, 0, 1])).setAngle(0).setOffset(0, 0);&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The first parameter to the TextSymbol constructor is a string specifying the text to be displayed.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2012 22:00:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/showing-label-or-textsymbol-in-na-routeresult/m-p/635898#M59395</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2012-02-08T22:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: Showing Label OR TextSymbol in NA RouteResult</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/showing-label-or-textsymbol-in-na-routeresult/m-p/635899#M59396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;You would add a new symbol along with the other symbols you're adding. My &lt;A href="http://servicesbeta.esri.com/demos/graphics-performance/points.html" rel="nofollow noopener noreferrer" target="_blank"&gt;point graphic performance demo&lt;/A&gt; has some code to create text symbols. Specifically:&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
symbols.text = new esri.symbol.TextSymbol("Text", font, new dojo.Color([128, 0, 0, 1])).setAngle(0).setOffset(0, 0);
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;The first parameter to the TextSymbol constructor is a string specifying the text to be displayed.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Okay, I'll work with this.&amp;nbsp; Adding it seems to break the initialization of my dropdowns, but this is probably due to my inexperience with the JS api.&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Greg&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:02:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/showing-label-or-textsymbol-in-na-routeresult/m-p/635899#M59396</guid>
      <dc:creator>GregoryMeyer</dc:creator>
      <dc:date>2021-12-12T03:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: Showing Label OR TextSymbol in NA RouteResult</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/showing-label-or-textsymbol-in-na-routeresult/m-p/635900#M59397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Adding it seems to break the initialization of my dropdowns, but this is probably due to my inexperience with the JS api.&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&lt;BR /&gt;Thanks again!&lt;BR /&gt;Greg&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cool, start another thread if you can't get it figured out.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2012 15:51:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/showing-label-or-textsymbol-in-na-routeresult/m-p/635900#M59397</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2012-02-09T15:51:04Z</dc:date>
    </item>
  </channel>
</rss>

