Select to view content in your preferred language

InfoWindowRenderer Bug

733
4
07-25-2011 04:03 AM
MarkHorsell
Emerging Contributor
Fairly certain this is now a bug. I have added my own custom infoWindowRender, but this only works the second time you click on an item.
I think i know what its doing, it seems like when the layer is clicked it shows the original callout box, now the layer is in focus subsequent clicks do show the customRenderer. Is there any chance that this will be either fixed or can anyone suggest a work around?



<s:HGroup x="3" y="0" width="{splitX}" height="400" color="0x000000" fontSize="10">
 

<components:ExtendedEditor id="myEditor" height="400" width="{splitX-10}"geometryService="{new GeometryService('http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer')}"
  map="{myMap}"
 
toolbarVisible="true"/>
 
 
 
</s:HGroup>
 
<esri:Map id="myMap" x="{splitX}" width="{916-splitX}" height="398" wrapAround180="true" mapClick="onMapClick(event)">
 
 
  <esri:extent>
   <esri:Extent id="sheepfire"
       xmin="-13144000" ymin="4033000" xmax="-13066000" ymax="4099000">
    <esri:SpatialReference wkid="102100"/>
   </esri:Extent>
  </esri:extent>
 
  <esri:ArcGISTiledMapServiceLayer url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer"  />
  <esri:FeatureLayer  id="fireAreas"
          mode="onDemand"
          outFields="*"
       infoWindowRenderer="com.helyx.components.CustomInfoWindowRenderer" 
       url="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Fire/Sheep/FeatureServer/2">
       </esri:FeatureLayer>
 
  <esri:FeatureLayer id="points"
         mode="onDemand"
         outFields="*"
         infoWindowRenderer="com.helyx.components.CustomInfoWindowRenderer"
         url="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Fire/Sheep/FeatureServer/0">
  
  
       
       
  </esri:FeatureLayer>

  <esri:GraphicsLayer id="myGraphicsLayer" />
 
</esri:Map>





Thanks
Tags (2)
0 Kudos
4 Replies
MarkHorsell
Emerging Contributor
hmmm, so i parked that project, awaiting a response as i couldnt spend anymore time on it.
And made the decision to see if i build my application with the viewer. However it seems to have the very same "BUG"?! Maybe i'm missing something obvious, but this seems to be at the very core of the functionality you'd require to edit items on a map. Using the Edit widget in flex i sometimes get the popup allowing me to change or delete a feature and other times i get an info box with the zoomto functionality. Am i missing the logic here? Maybe users expect this functionality?
0 Kudos
MarkHorsell
Emerging Contributor
Ok, will answer my own question in case another newbie get stuck. Turns out that what i was looking for was the Attribute Inspector, which i beleive is automatically invoked if the editor is active. In my app the editor is always active. So in the end i have turned off the infoWindow.
Am now looking at fieldInspectors and ClassFactorys to create the renderer objects.

Next i think i need to create my own skin, but i think the skin for the Attribute Inspector, is in the compiled swc, so not sure how i can make any edits?
0 Kudos
DasaPaddock
Esri Regular Contributor
0 Kudos
MarkHorsell
Emerging Contributor
Thanks. Also i found the skins. doh!!! Sorry about that.
0 Kudos