<?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: InfoWindow on Markers  in Java Maps SDK Questions</title>
    <link>https://community.esri.com/t5/java-maps-sdk-questions/infowindow-on-markers/m-p/230825#M644</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rodolfo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding your last question:&lt;/P&gt;&lt;P&gt;The PopupView is for editing attribute data for Features from a FeatureLayer. It is tightly bound to the FeatureLayer schema and editing workflows around that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the present time we don't have an easy way in the Runtime API to build your own ad-hoc form editor for generic , "in-memory" Graphic elements using popup dialogs, which is what I think you're getting at. You'd have to write your own dialog and apply the edits to your data outside of the Runtime framework and workflow, so to speak. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding your first question:&lt;/P&gt;&lt;P&gt;If I understand it correctly, you want to display custom HTML as content in your infoPopup. You can do this, but you won't be able to control the window size using the approach you described. It will scale your HTML content to what it decides best. Unfortunately. As a workaround, you may need to write a custom infowindow-like component to model the behavior you need. &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I hope this information is helpful to you in some way.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Aug 2015 00:14:38 GMT</pubDate>
    <dc:creator>EricBader</dc:creator>
    <dc:date>2015-08-05T00:14:38Z</dc:date>
    <item>
      <title>InfoWindow on Markers</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/infowindow-on-markers/m-p/230824#M643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, i have this working code bellow that display on makers a infoWindow on mouse click.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Map&amp;lt;String, String&amp;gt; attributes = new LinkedHashMap&amp;lt;String, String&amp;gt;();
attributes.put("Test:", "123");
attributes.put("Test2:", "456");

markers = new GraphicsLayer();
markers.addGraphic(new Graphic(point, symbol, attributes));
map.getLayers().add(markers);

final InfoPopupOverlay infoPopupOverlay = new InfoPopupOverlay();
infoPopupOverlay.setPopupTitle("InfoPopup");
map.addMapOverlay(infoPopupOverlay);

markers.addLayerInitializeCompleteListener(new LayerInitializeCompleteListener() {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @Override
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public void layerInitializeComplete(LayerInitializeCompleteEvent event) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; infoPopupOverlay.addLayer(event.getLayer());
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
});&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's working perfect and on infoWindows it shows the attributes content of markers like this:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Test: 123&lt;/P&gt;&lt;P&gt;Test2: 456&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;But now i need to show a HTML code or a JPainel inside this InfoWindow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;EM&gt;Can someone help me with this?&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;&lt;STRONG&gt;Using the code below, it accept html code on description, but i can't do many things like change size of infoWindow: &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;map.addMarkerGraphic(pLat, pLng, "test", "&amp;lt;html&amp;gt;&amp;lt;b&amp;gt;test&amp;lt;/b&amp;gt;&amp;lt;/html&amp;gt;");&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3a0699;"&gt;&lt;STRONG&gt;One other question:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;EM&gt;On this page: &lt;A href="https://developers.arcgis.com/java/guide/edit-using-the-toolkit.htm#ESRI_SECTION1_136CF29436004477A8F53B58DE2A2FB7" rel="nofollow noopener noreferrer" target="_blank"&gt; PopupView&lt;/A&gt;&amp;nbsp; it shows how to edit the attributes of Features, but how i can do the same with a Graphic?&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;on code below, &lt;EM&gt;PopupView.createEditView &lt;/EM&gt;just accept a FeatureLayes on its parameter.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;PopupView contentPanel = PopupView.createEditView("Edit Attributes", arcGISFeatureLayer);&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Really thank you for answers.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 11:12:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/infowindow-on-markers/m-p/230824#M643</guid>
      <dc:creator>rodolfobulati1</dc:creator>
      <dc:date>2021-12-11T11:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: InfoWindow on Markers</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/infowindow-on-markers/m-p/230825#M644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rodolfo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding your last question:&lt;/P&gt;&lt;P&gt;The PopupView is for editing attribute data for Features from a FeatureLayer. It is tightly bound to the FeatureLayer schema and editing workflows around that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the present time we don't have an easy way in the Runtime API to build your own ad-hoc form editor for generic , "in-memory" Graphic elements using popup dialogs, which is what I think you're getting at. You'd have to write your own dialog and apply the edits to your data outside of the Runtime framework and workflow, so to speak. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding your first question:&lt;/P&gt;&lt;P&gt;If I understand it correctly, you want to display custom HTML as content in your infoPopup. You can do this, but you won't be able to control the window size using the approach you described. It will scale your HTML content to what it decides best. Unfortunately. As a workaround, you may need to write a custom infowindow-like component to model the behavior you need. &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I hope this information is helpful to you in some way.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2015 00:14:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/infowindow-on-markers/m-p/230825#M644</guid>
      <dc:creator>EricBader</dc:creator>
      <dc:date>2015-08-05T00:14:38Z</dc:date>
    </item>
  </channel>
</rss>

