Infowindow Renderer is not getting displayed on click

410
3
03-23-2012 02:25 AM
MohammedIsmail
New Contributor
hi

Below is the code for infowindowrenderer

am trying display the infowindow on click but i could not get it

can u tell me what could be the reason



<esri:Map id="MyML" x="15" y="17" width="858" height="687" logoVisible="false"
     zoomSliderVisible="true" openHandCursorVisible="false" >

<esri:ArcGISDynamicMapServiceLayer id="la"   url="http://gis-server/ArcGis/rest/services/Bijapur/MapServer" />

<esri:FeatureLayer id="fLayer"
        mode="onDemand"
        outFields="[t_code,t_name]"
        url="http://gis-server/ArcGis/rest/services/Bijapur/MapServer">
  <esri:symbol>
   <esri:SimpleFillSymbol id="fillsym" style="null">
    <esri:SimpleLineSymbol width="3" color="0xFF0000"/>
   </esri:SimpleFillSymbol>
  </esri:symbol>
  <esri:infoWindowRenderer>
   <fx:Component>
    <mx:VBox backgroundColor="0xffffff"
       color="0x444444"
       >
     <mx:Label text="T Code: {data.t_code}"/>
     <mx:Label text="T Name: {data.t_name}"/>
    </mx:VBox>
   </fx:Component>
  </esri:infoWindowRenderer>
</esri:FeatureLayer>
</esri:Map>



Thanks & Regards
Be happy and keep smiling
ISMAIL
Tags (2)
0 Kudos
3 Replies
JinnanZhang
New Contributor
Hi ISMAIL,

I think the problem is associated with the URL of your FeatureLayer.

The correct URL should look like this: url="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Earthquakes/Since_1970/MapServer/0" , that means you have to put an URL for an exact layer instead of put URL for entire map service.

I don't know which layer you should use but you can try to modify your URL to someting like:

"http://gis-server/ArcGis/rest/services/Bijapur/MapServer/0" or "http://gis-server/ArcGis/rest/services/Bijapur/MapServer/1"

See if that works.

Best,

Jinnan Zhang
0 Kudos
MohammedIsmail
New Contributor
hi

i tried but its not working how can i do this now


pls if u can help me to solve then it will be great


thanks
ISmail
0 Kudos
MohammedIsmail
New Contributor
hi


its working with vector files but it is not working with rasters

what could be the problem


Thanks
Ismail
0 Kudos