onMapClick event and query feature

2748
5
04-19-2012 11:15 AM
AimeiChen
Occasional Contributor
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
Tags (2)
0 Kudos
5 Replies
AimeiChen
Occasional Contributor
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.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
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:
0 Kudos
AimeiChen
Occasional Contributor
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
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Amy,

   How did you do that in the 1.3 version of the widget?
0 Kudos
AimeiChen
Occasional Contributor
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
0 Kudos