Select to view content in your preferred language

error: undefined method "featurelayer1_graphicAddHandler"

592
1
02-08-2012 03:50 AM
HannesRömer
Occasional Contributor
Hello,


i would like to make changes to the symbology of my feature layer (feature layer 1). Hence I tried to use and adopt one of your samples from the resource center: feature layer --> based on map service layer, to apply this to my own feature layer. However, an error occurs with the  "featurelayer1_graphicAddHandler" and I don't know why.
error message: original in german: Error 1180: call to a possibly undefined method "featurelayer1_graphicAddHandler"

Thank you for your help!

Hannes

here a part of my script:

<esri:FeatureLayer graphicAdd="featurelayer1_graphicAddHandler(event)"
         outFields="[free]"
         url="http://columbus/ArcGIS/rest/services/vabene_temp/vabene_test_01022012/MapServer/1">
   <esri:renderer>
    <esri:ClassBreaksRenderer field="free">
     <esri:ClassBreakInfo maxValue="0.5" symbol="{symbol1}"/>
     <esri:ClassBreakInfo maxValue="0.499"
           minValue="0"
           symbol="{symbol2}"/>
Tags (2)
0 Kudos
1 Reply
RobertScheitlin__GISP
MVP Emeritus
Hannes,

   Do you actually have a featurelayer1_graphicAddHandler function in your script section?

Don't forget to click the Mark as answer check and to click the top arrow (promote) as shown below:
0 Kudos