Visualize data with rotation

Note: Support for 3D on mobile devices may vary, view the system requirements for more information.

This sample shows how to use the rotation visual variable to visualize the aspect of the terrain of a small island in Alaska.

The rotation visual variable can be set directly in the renderer's constructor.

var rotRenderer = {
  type: "simple",  // autocasts as new SimpleRenderer()
  symbol: {
    type: "simple-marker",  // autocasts as new SimpleMarkerSymbol()
    color: "white",
    path: "M14.5,29 23.5,0 14.5,9 5.5,0z",
    angle: 180,
    size: 10
  },
  visualVariables: [{
    type: "rotation",  // indicates that symbols should be rotated based on value in field
    field: "grid_code",  // field containing aspect values
    rotationType: "geographic"
  }]
};

Additional visualization samples and resources

Loading...

Sample search results

TitleSample