5 Replies Latest reply on Apr 27, 2012 6:35 AM by achen70

    onMapClick event and query feature

    achen70
      I am working on migrate a customized widget from flex API 1.3 to 2.4, this feature label widget will allow users to pick a feature layer first then select the field(s) to be labeled, when click on the selected feature on the map, a callout lable will be displayed on the screen. I have trouble with the mapmouse event --it returns "source not found". Help please if you can! thanks

      Amy
        • Re: onMapClick event and query feature
          achen70
          I am working on migrate a customized widget from flex API 1.3 to 2.4, this feature label widget will allow users to pick a feature layer first then select the field(s) to be labeled, when click on the selected feature on the map, a callout lable will be displayed on the screen. I have trouble with the mapmouse event --it returns "source not found". Help please if you can! thanks

          Amy

          Sorry, I forgot to attach the source code.
          • Re: onMapClick event and query feature
            rscheitlin
            Aimei,

               It will help you greatly to post Flex Viewer/Widget question to the Flex Viewer forum and not here on the Flex API forum.

            There is a lot about this widget that is not compatible with the new API. I believe that I have it updated to achieve what it was originally intended to do in 1.3.

            Don't forget to click the Mark as answer check on this post and to click the top arrow (promote) as shown below:
            • Re: onMapClick event and query feature
              achen70
              Aimei,

                 It will help you greatly to post Flex Viewer/Widget question to the Flex Viewer forum and not here on the Flex API forum.

              There is a lot about this widget that is not compatible with the new API. I believe that I have it updated to achieve what it was originally intended to do in 1.3.

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


              Hi, Robert
              Thanks for your help. It works now but how can I change the label background color and set up label placement property?

              Amy
              • Re: onMapClick event and query feature
                rscheitlin
                Amy,

                   How did you do that in the 1.3 version of the widget?
                • Re: onMapClick event and query feature
                  achen70
                  Amy,

                     How did you do that in the 1.3 version of the widget?


                  Hi, Robert
                  I attached the source code of the 1.3 version. Please take a look when you get any chance. Please change map service in the xml file for testing.

                  Thanks,
                  Amy