Select to view content in your preferred language

Maptips in Live Layer Widget

1216
8
07-23-2010 12:50 PM
JasonHancheruk
Emerging Contributor
I am using the code from myLiveLayerWidget as posted in:

http://forums.esri.com/thread.asp?t=287049&f=2421&c=158 by Robert Scheitlin.

Upon building the mxml I get error "1118: Implicit coercion of a value with static type flash.display: DisplayObject to a possibly unrelated type mx.core:UIComponent", as shown in the attached file.

I have tried a few different things, but nothing has worked.

Help is appreciated. Thanks,
Tags (2)
0 Kudos
8 Replies
RobertScheitlin__GISP
MVP Emeritus
Jason,


   I have not tested anything yet but the first thing I would try is this:
map.infoWindow.content = setTipContent(graphic) as UIComponent;
0 Kudos
JasonHancheruk
Emerging Contributor
No go, as the first error is still present and a new error is given,

"1120: Access of undefined property UIComponent"

This is occurring in Flash Builder 4, with SFV 1.3 and the 3.5 SDK.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Jason,

   Did you import UIComponent?

import mx.core.UIComponent
0 Kudos
JasonHancheruk
Emerging Contributor
Tried that when testing, but never added the "as UIComponent;", so the FB errors are gone. But now the widget gives:

[RPC Fault faultString="" faultCode="400" faultDetail="Unable to perform query. Please check your parameters."]
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Jason,

    Can you get that exact query to run in the REST Service page for that layer?
0 Kudos
JasonHancheruk
Emerging Contributor
Yes, the Query Layer operation works through the Rest Services page.

In the application, it also works using the standard Live Layer Widget that comes with the SFV.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Jason,

  Please attach your LiveLayerWidget.mxml and xml.
0 Kudos
JasonHancheruk
Emerging Contributor
The LiveLayerWidget with maptips is attached.
0 Kudos