Avatar

Looking for an example of changing the color of a zone through the API

0

I have a thousand zones and I want to visually see how changes to who is allocated to the route changes by changing the color and or size of a zone through the api.

Michael Deakos

Please sign in to leave a comment.

2 comments

0
Avatar

"Get" the zones.

Then modify the zones via code such as color and zone points.

Then "Set" the zone.

Look at the "ImportZones" example code for some extra details on formatting the color.

Michael Head 0 votes
0
Avatar

 

zone.FillColor = Color.Black;
zone.Points = IList<ISimpleCoordinate>  (Note that the first point and last point need to match to close the zone)  So a rectangle would have 5 points.

Michael Head 0 votes