Select to view content in your preferred language

FeatureLayer does not scale to changes in map scale

1689
3
08-27-2010 09:21 AM
JeffGermain
Emerging Contributor
Featurelayer is not behaving as expected in release build when applying a DefinitionExpression and using either MODE_ON_DEMAND or MODE_SNAPSHOT.

FlashBuilder 4:
- Works properly in debug build
- Does not work in release build

The featurelayer:
mode = MODE_ON_DEMAND // MODE_SNAPSHOT - neither update when map scale changes
contains points. On demand should reapply definition at new extent. Snapshot should have fetch all features for the layer.

The workflow:
Map is zoomed to a county boundary. A definition query is applied to the featurelayer based on some criteria. Features in visible extent are correctly returned and rendered.

Zoom in or out 1 or more levels and featurelayer DOES NOT refetch features or properly scale itself. The layer just never updates. It does pan correctly though.

See screenshots attached.
0 Kudos
3 Replies
by Anonymous User
Not applicable
Original User: dpaddock

It is strange that you're seeing a difference between debug and release builds. It may be a security issue. What are the url's you're using when you run each build? Can you provide source code that duplicates this issue?
0 Kudos
JeffGermain
Emerging Contributor
What are the url's you're using when you run each build?

Debug:  using ASP.NET development server
http://localhost:3000/PublicViewer/flex_bin/index.html

Release:  IIS
http://localhost/txwrapr/index.html

Can you provide source code that duplicates this issue?

I can send you the source offline if you provide me an email. Let me know...
0 Kudos
by Anonymous User
Not applicable
Original User: dpaddock

Sure, my email is my username (dpaddock) at esri dot com.
0 Kudos