<?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: Issue with MapTitle in ArcObjects Java 10.1 in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/issue-with-maptitle-in-arcobjects-java-10-1/m-p/347073#M9177</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sorry, I was thinking the map title was a type of text element but it isn't.&amp;nbsp; You might try using a standard text element instead of a map title.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Jan 2013 13:00:19 GMT</pubDate>
    <dc:creator>NeilClemmons</dc:creator>
    <dc:date>2013-01-21T13:00:19Z</dc:date>
    <item>
      <title>Issue with MapTitle in ArcObjects Java 10.1</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/issue-with-maptitle-in-arcobjects-java-10-1/m-p/347070#M9174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In my MapViewer I want to add a MapTitle, MarkerNorthArrow, AlternatingScaleBar &amp;amp; ScaleText.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am not being able to position the title correctly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I zoom the title disappears! but North arrow, scale bar etc remains.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am following this &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/arcobjects-java/concepts/engine/index.html#/How_to_interact_with_map_surrounds/0001000006mm000000/" rel="nofollow noopener noreferrer" target="_blank"&gt;http://resources.arcgis.com/en/help/arcobjects-java/concepts/engine/index.html#/How_to_interact_with_map_surrounds/0001000006mm000000/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;IEnvelope env1 = new Envelope();
env1.putCoords(7, 25, 12, 20);

UID titleUID = new UID();
titleUID.setValue("esriCarto.MapTitle");
MapTitle title = new MapTitle();
title.setMapByRef(docMap);
IMapSurroundFrame titleMapSurroundFrame = docMapFrame.createSurroundFrame(titleUID, null);
String name = DEM.getName();
if (DEM.getName().contains(".")) {
 name = DEM.getName().substring(0, DEM.getName().lastIndexOf("."));
} 
titleMapSurroundFrame.getMapSurround().setName(name.toUpperCase());
IElement titleElement = (IElement)titleMapSurroundFrame;
titleElement.setGeometry(env1);
titleElement.activate(docActiveView.getScreenDisplay());
docGraphicsContainer.addElement(titleElement, 1);&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Avishek&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 16:21:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/issue-with-maptitle-in-arcobjects-java-10-1/m-p/347070#M9174</guid>
      <dc:creator>AvishekDutta</dc:creator>
      <dc:date>2021-12-11T16:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with MapTitle in ArcObjects Java 10.1</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/issue-with-maptitle-in-arcobjects-java-10-1/m-p/347071#M9175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Try positioning the element with a point geometry instead of an envelope.&amp;nbsp; You can set the horizontal and vertical alignment properties on the element so that it aligns itself on the point the way you want it to.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jan 2013 12:08:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/issue-with-maptitle-in-arcobjects-java-10-1/m-p/347071#M9175</guid>
      <dc:creator>NeilClemmons</dc:creator>
      <dc:date>2013-01-21T12:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with MapTitle in ArcObjects Java 10.1</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/issue-with-maptitle-in-arcobjects-java-10-1/m-p/347072#M9176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello Neil,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On changing it to:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Point titlePt = new Point();
titlePt.putCoords((mainEnv.getXMax() - mainEnv.getXMin())/2, mainEnv.getYMax -1);
.
.
.
titleElement.setGeometry(titlePt);&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I get AutomationException: &lt;/SPAN&gt;&lt;STRONG&gt;Missing raster band wavelength properties&lt;/STRONG&gt;&lt;SPAN&gt; in line &lt;/SPAN&gt;&lt;STRONG&gt;docGraphicContainer,addElement(titleElement,1)&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I also saw that this zoom problem with the title &lt;/SPAN&gt;&lt;STRONG&gt;only happens&lt;/STRONG&gt;&lt;SPAN&gt; when there is a ScaleBar and/or ScaleText also added to the GraphicsContainer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Try positioning the element with a point geometry instead of an envelope.&amp;nbsp; You can set the horizontal and vertical alignment properties on the element so that it aligns itself on the point the way you want it to.&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 16:21:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/issue-with-maptitle-in-arcobjects-java-10-1/m-p/347072#M9176</guid>
      <dc:creator>AvishekDutta</dc:creator>
      <dc:date>2021-12-11T16:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with MapTitle in ArcObjects Java 10.1</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/issue-with-maptitle-in-arcobjects-java-10-1/m-p/347073#M9177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sorry, I was thinking the map title was a type of text element but it isn't.&amp;nbsp; You might try using a standard text element instead of a map title.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jan 2013 13:00:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/issue-with-maptitle-in-arcobjects-java-10-1/m-p/347073#M9177</guid>
      <dc:creator>NeilClemmons</dc:creator>
      <dc:date>2013-01-21T13:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with MapTitle in ArcObjects Java 10.1</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/issue-with-maptitle-in-arcobjects-java-10-1/m-p/347074#M9178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Neil,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Making it a text element solved the issue. However on different systems(screens) the Title, scale bar etc are taking up different positions. I noticed that the pagelayout bean is getting assigned a height and width (maybe it depends on the screen resolution), but I am unable to override it using pagelayout.setSize(,).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am positioning using the height &amp;amp; width of the MapFrame which in turn depends on that of the pagelayout.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Avishek&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Sorry, I was thinking the map title was a type of text element but it isn't.&amp;nbsp; You might try using a standard text element instead of a map title.&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jan 2013 20:11:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/issue-with-maptitle-in-arcobjects-java-10-1/m-p/347074#M9178</guid>
      <dc:creator>AvishekDutta</dc:creator>
      <dc:date>2013-01-21T20:11:13Z</dc:date>
    </item>
  </channel>
</rss>

