<?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 Adding a label next to static point on map in Java Maps SDK Questions</title>
    <link>https://community.esri.com/t5/java-maps-sdk-questions/adding-a-label-next-to-static-point-on-map/m-p/252840#M735</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P dir="ltr" style="text-align: left;"&gt;Hi,&lt;/P&gt;&lt;P dir="ltr" style="text-align: left;"&gt;&lt;/P&gt;&lt;P dir="ltr" style="text-align: left;"&gt;I have static points on a map.&lt;/P&gt;&lt;P dir="ltr" style="text-align: left;"&gt;I use this code to draw them:&lt;/P&gt;&lt;P dir="ltr" style="text-align: left;"&gt;&lt;/P&gt;&lt;P dir="ltr" style="text-align: left;"&gt;&lt;SPAN style="color: #6a3e3e; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; point&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; = GeometryEngine.&lt;EM&gt;project&lt;/EM&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: 10pt;"&gt;longitude&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: 10pt;"&gt;latitude&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;mapSR&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;); &lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr" style="text-align: left;"&gt;&lt;SPAN style="color: #6a3e3e; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pointGraphic&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="; color: #7f0055; font-size: 10pt;"&gt;&lt;STRONG&gt;new&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; Graphic(&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: 10pt;"&gt;point&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;symbol&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr" style="text-align: left;"&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; graphicsLayer&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;.addGraphic(&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: 10pt;"&gt;pointGraphic&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr" style="text-align: left;"&gt;&lt;/P&gt;&lt;P dir="ltr" style="text-align: left;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;The point is drawed on the map. &lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr" style="text-align: left;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;Now I want to add a label(?) to it - show under the drawn point it's longitude and latitude.&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr" style="text-align: left;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;I can do it using text adding, but then when I resize the map, the text placement changes.&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr" style="text-align: left;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;I want to put it like a label - let's say on the bottom right from the point.&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr" style="text-align: left;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;I want it to be sensitive for zooming, and binded to the Point&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr" style="text-align: left;"&gt;&lt;/P&gt;&lt;P dir="ltr" style="text-align: left;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;I read about dinamic labels, but it seems very complex for such a simple request.&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr" style="text-align: left;"&gt;&lt;/P&gt;&lt;P dir="ltr" style="text-align: left;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;How can I do this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr" style="text-align: left;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Feb 2016 14:21:29 GMT</pubDate>
    <dc:creator>AvivDinitz</dc:creator>
    <dc:date>2016-02-08T14:21:29Z</dc:date>
    <item>
      <title>Adding a label next to static point on map</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/adding-a-label-next-to-static-point-on-map/m-p/252840#M735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P dir="ltr" style="text-align: left;"&gt;Hi,&lt;/P&gt;&lt;P dir="ltr" style="text-align: left;"&gt;&lt;/P&gt;&lt;P dir="ltr" style="text-align: left;"&gt;I have static points on a map.&lt;/P&gt;&lt;P dir="ltr" style="text-align: left;"&gt;I use this code to draw them:&lt;/P&gt;&lt;P dir="ltr" style="text-align: left;"&gt;&lt;/P&gt;&lt;P dir="ltr" style="text-align: left;"&gt;&lt;SPAN style="color: #6a3e3e; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; point&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; = GeometryEngine.&lt;EM&gt;project&lt;/EM&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: 10pt;"&gt;longitude&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: 10pt;"&gt;latitude&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;mapSR&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;); &lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr" style="text-align: left;"&gt;&lt;SPAN style="color: #6a3e3e; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pointGraphic&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="; color: #7f0055; font-size: 10pt;"&gt;&lt;STRONG&gt;new&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; Graphic(&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: 10pt;"&gt;point&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;symbol&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr" style="text-align: left;"&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; graphicsLayer&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;.addGraphic(&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: 10pt;"&gt;pointGraphic&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr" style="text-align: left;"&gt;&lt;/P&gt;&lt;P dir="ltr" style="text-align: left;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;The point is drawed on the map. &lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr" style="text-align: left;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;Now I want to add a label(?) to it - show under the drawn point it's longitude and latitude.&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr" style="text-align: left;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;I can do it using text adding, but then when I resize the map, the text placement changes.&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr" style="text-align: left;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;I want to put it like a label - let's say on the bottom right from the point.&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr" style="text-align: left;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;I want it to be sensitive for zooming, and binded to the Point&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr" style="text-align: left;"&gt;&lt;/P&gt;&lt;P dir="ltr" style="text-align: left;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;I read about dinamic labels, but it seems very complex for such a simple request.&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr" style="text-align: left;"&gt;&lt;/P&gt;&lt;P dir="ltr" style="text-align: left;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;How can I do this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr" style="text-align: left;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2016 14:21:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/adding-a-label-next-to-static-point-on-map/m-p/252840#M735</guid>
      <dc:creator>AvivDinitz</dc:creator>
      <dc:date>2016-02-08T14:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a label next to static point on map</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/adding-a-label-next-to-static-point-on-map/m-p/252841#M736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use TextSymbol and set offset accordingly. Another option is to use FeatureLayer (from SQLite local geodatabase), edit data with Labels set and enabled. I did not try the second approach, but it should work.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps a bit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Adma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2016 20:06:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/adding-a-label-next-to-static-point-on-map/m-p/252841#M736</guid>
      <dc:creator>nita14</dc:creator>
      <dc:date>2016-02-08T20:06:42Z</dc:date>
    </item>
  </channel>
</rss>

