I've developed an application on Vue JS
which loads the services from the ArcGIS Server
via REST API
.
When I load a service by the URL http://arcgis/.../query?f=json&outFields=*
, the layers are added with a given color.
Is there a way to change the color of the features on the map, without editing on the server? It's done somehow here via the Change style
option.
Now I'm solving this by adding the polygons with chosen colors on the features, however, this is awful regarding the performance.
query
operation returns features only, no colors. Whatever color you see is determined by the client software you are using. If you tell us what that software is, someone might be able to help you. Another thing: In the query you specifiedreturnGeometry=false
, meaning only the attributes are returned. So even with color information, there is nothing to draw.