Skip to main content

"ShowFeatureDetails" Command Zooms Unintentionally

Comments

3 comments

  • Dan Giersz
    The FeatureDetails module has a ZoomToFeature behavior and that is probably what is being triggered.
    0
  • Permanently deleted user
    Hi Matthew and Dan,

     

    Dan has it right.  In my case, I removed the ZoomToFeature line from the command section of FeatureDetailsOpenedBehavior, and the viewer no longer zoomed to the feature when I clicked it in the results pane.  If you search for FeatureDetailsOpenedBehavior in the json.js files, you should get only one result which will look like the block below:

     

      "name": "FeatureDetailsOpenedBehavior",               "event": "FeatureDetailsCurrentFeatureChanged",               "commands": [                 "ZoomToFeature",                 "SetActiveHighlightLayerDefault",                 "ClearHighlights",                 "HighlightFeature"               ]

     

    Thanks!

     

    Danny
    0
  • Permanently deleted user
    Hey Danny, thanks for the dirrection. That worked for me. Need to think out of the box more ---> don't believe I didn't take event based commands into account XD
    0

Please sign in to leave a comment.