<?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: Opening infowindow on marker click in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/opening-infowindow-on-marker-click/m-p/108867#M2468</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sam,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Here is a code snippet fro that:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import com.esri.ags.portal.PopUpRenderer;
import com.esri.ags.portal.supportClasses.PopUpInfo;
private var popUpRenderer:PopUpRenderer = new PopUpRenderer();
var infoWindowRenderer:ClassFactory = new ClassFactory(PopUpRenderer);
var popUpInfo:PopUpInfo = new PopUpInfo;
popUpInfo.title = "My popup info title";
popUpInfo.description = "my popup info content";
infoWindowRenderer.properties = {popUpInfo:popUpInfo};
graphic.infoWindowRenderer = infoWindowRenderer;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 06:33:39 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2021-12-11T06:33:39Z</dc:date>
    <item>
      <title>Opening infowindow on marker click</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/opening-infowindow-on-marker-click/m-p/108866#M2467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi everyone,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using this code to display my markers and polylines, but now i stuck in opening infowindow on click of these marker&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
protected function getLocation1_resultHandler(event:ResultEvent):void
{
 if(event.result.information.rmk != "error")
 {
&amp;nbsp; filterXML = event.result as XML;

&amp;nbsp; var testPoint:MapPoint;
&amp;nbsp; var projParams:ProjectParameters = new ProjectParameters();
&amp;nbsp; for each(table2 in filterXML.information)
&amp;nbsp; {
&amp;nbsp;&amp;nbsp; testPoint = new MapPoint(table2.lng, table2.lat);
&amp;nbsp;&amp;nbsp; testPoint.spatialReference = new SpatialReference(4326);
&amp;nbsp;&amp;nbsp; projParams.geometries = [testPoint];
&amp;nbsp;&amp;nbsp; projParams.outSpatialReference = map.spatialReference;
&amp;nbsp;&amp;nbsp; geometryService1.project(projParams);
&amp;nbsp; }
 }
}
&amp;nbsp;&amp;nbsp; 
protected function geometryService_projectCompleteHandler1(event:GeometryServiceEvent):void
{
 try
 {
&amp;nbsp;&amp;nbsp; var pt:MapPoint = (event.result as Array)[0]as MapPoint;
&amp;nbsp;&amp;nbsp; var ptGraphic:Graphic = new Graphic(null, new SimpleMarkerSymbol(SimpleMarkerSymbol.STYLE_CIRCLE, 5, 0x0000FF));
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ptGraphic.geometry = pt;
&amp;nbsp;&amp;nbsp; myGraphicsLayer.add(ptGraphic);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; data1.push(pt);
&amp;nbsp;&amp;nbsp; myPolyline = new Polyline([data1]);
&amp;nbsp;&amp;nbsp; var myGraphicLine:Graphic = new Graphic(myPolyline);
&amp;nbsp;&amp;nbsp; myGraphicLine.symbol = new SimpleLineSymbol(SimpleLineSymbol.STYLE_SOLID, 0xFF0000, 0.1, 5);
 myGraphicsLayer.add(myGraphicLine);
 }
 catch (error:Error)
 {
 }
 map.center = pt;
 map.level = 8;
}
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2014 09:20:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/opening-infowindow-on-marker-click/m-p/108866#M2467</guid>
      <dc:creator>SamarthGupta</dc:creator>
      <dc:date>2014-05-30T09:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: Opening infowindow on marker click</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/opening-infowindow-on-marker-click/m-p/108867#M2468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sam,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Here is a code snippet fro that:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import com.esri.ags.portal.PopUpRenderer;
import com.esri.ags.portal.supportClasses.PopUpInfo;
private var popUpRenderer:PopUpRenderer = new PopUpRenderer();
var infoWindowRenderer:ClassFactory = new ClassFactory(PopUpRenderer);
var popUpInfo:PopUpInfo = new PopUpInfo;
popUpInfo.title = "My popup info title";
popUpInfo.description = "my popup info content";
infoWindowRenderer.properties = {popUpInfo:popUpInfo};
graphic.infoWindowRenderer = infoWindowRenderer;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 06:33:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/opening-infowindow-on-marker-click/m-p/108867#M2468</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-11T06:33:39Z</dc:date>
    </item>
  </channel>
</rss>

