Zum Hauptinhalt gehen

Set Map Extent Activity

Kommentare

2 Kommentare

  • Nico Burgerhart

    Set Return Geometry on your query task to True.

    Check if your featureset contains features (featuresetvariable.Features.Any should be True).

    I think you are querying a polygon layer, but if you are querying a point layer and get one point in the result, than you will not get an extent back (a point has no extent)

    Specific on the error ‘Object Reference not set to an instance of an object’, it's because the envelope is nothing, you can check this (envelope1 Is Nothing should be false)

     

    0
  • Permanently deleted user

    Hi Hani

    are you sure that there are features selected? If no features are selected then you will have issues. Try having an Alert activity to tell you that there are features ie FeatureSetName.Features.Count.String in the Alert

    If Activities get to be useful in these circumstances also.

    If you do have features then how about getting some properties of the Envelope to see how big it is?

    Regards

    Ralph

    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.