+ Reply to Thread
Results 1 to 6 of 6

Thread: onMapClick event and query feature

  1. #1
    Aimei Chen
    Join Date
    Apr 2010
    Posts
    62
    Points
    4
    Answers Provided
    1


    0

    Default onMapClick event and query feature

    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

  2. #2
    Aimei Chen
    Join Date
    Apr 2010
    Posts
    62
    Points
    4
    Answers Provided
    1


    0

    Default Re: onMapClick event and query feature

    Quote Originally Posted by achen70 View Post
    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.
    Attached Files

  3. #3
    Robert Scheitlin

    Join Date
    Mar 2010
    Posts
    9,241
    Points
    5578
    Answers Provided
    938


    1

    Lightbulb Re: onMapClick event and query feature

    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:
    Attached Files
    Just because it's not the answer you want, does not mean that it is not the answer.

    Robert Scheitlin

    GIS Manager
    Calhoun County, Alabama


  4. #4
    Aimei Chen
    Join Date
    Apr 2010
    Posts
    62
    Points
    4
    Answers Provided
    1


    0

    Default Re: onMapClick event and query feature

    Quote Originally Posted by rscheitlin View Post
    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

  5. #5
    Robert Scheitlin

    Join Date
    Mar 2010
    Posts
    9,241
    Points
    5578
    Answers Provided
    938


    0

    Lightbulb Re: onMapClick event and query feature

    Amy,

    How did you do that in the 1.3 version of the widget?
    Just because it's not the answer you want, does not mean that it is not the answer.

    Robert Scheitlin

    GIS Manager
    Calhoun County, Alabama


  6. #6
    Aimei Chen
    Join Date
    Apr 2010
    Posts
    62
    Points
    4
    Answers Provided
    1


    0

    Default Re: onMapClick event and query feature

    Quote Originally Posted by rscheitlin View Post
    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
    Attached Files

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts