Aller au contenu principal

Can not create polygon with run command -> map.add-markup

Commentaires

2 commentaires

  • Berend Veldkamp

    Yes, the geometry is not correct. If you want to specify the coordinates as xmin, xmax, ymin, ymax, you should use an envelope not a polygon. If you want a polygon, you should define ‘rings’.

    Also, ‘markupArea’ is not part of the geometry specification, so where does that come from? 

     

    The easiest way to add a rectangle of the map's extent is

     

    feature1: Geometry: =$mapExtent1.extent

    addGraphics1: Features: =$feature1.feature

    0
  • Michael Nowak

    Hello Berend,

    thank you for your quick response.

    The easy way with create feature and add graphics works fine. Still with run command I do not get what I want. Maybe due to my limited knowledge an experience with those scripts.

    “markuparea” before was named "rings" as in the esri example but that didn't work. I still do not know wether I need “graphics”, “geometry” etc. to make it work with the run command.

    0

Vous devez vous connecter pour laisser un commentaire.