Change Color and size of polygon vertex

98
4
Jump to solution
03-16-2020 09:03 PM
rsharma
Occasional Contributor III

Hi want to change color and size of vertex of polygon

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Esteemed Contributor

Rajni,

   No one is answering because this is not something that you can do currently in the API. As Egge-Jan states the vertices symbol is controlled inside the API and no property is provided to change it.

View solution in original post

4 Replies
Egge-JanPollé1
MVP Regular Contributor

Hi rajni sharma,

This is the same question as the one you posted last week, isn't it? Change Style of vertices points 

You are referring to the vertices of polylines or polygons drawn with the Editor widget, I guess? Editor widget with configurations | ArcGIS API for JavaScript 4.14 

Hmmm. I suppose this color and size is defined somewhere deep down in the underlying CSS. Would not know how to change it. Sorry 🙂

But then, why would you want to change these? It is a nice piece of UI/UX, well designed and well implemented. I would leave it as-is if I were you...

Hope you will find an answer to your question.

BR,

Egge-Jan

0 Kudos
rsharma
Occasional Contributor III

Hi Egge,

Yes you are right i have already posted the same question twice but no answer received from anyone. I want to change the color and size because its the demand of my project.

I am not using any editor widget, instead i am creating my own symbol of polygon like below:

function createSymbol(color, style, width, outlineColor) {
          return {
            type: "simple-fill",
            style: style,
            color: color,
            outline: {
              color: outlineColor,
              width: width,
              style: "dash"
            }
          };
        }//End createSymbol

0 Kudos
RobertScheitlin__GISP
MVP Esteemed Contributor

Rajni,

   No one is answering because this is not something that you can do currently in the API. As Egge-Jan states the vertices symbol is controlled inside the API and no property is provided to change it.

View solution in original post

rsharma
Occasional Contributor III

ok sir

0 Kudos