Top Banner
Kristian Ekenes Visualization with the ArcGIS API for JavaScript
39

Visualization with the ArcGIS API for JavaScript€¦ · PointSymbol3D LineSymbol3D PolygonSymbol3D IconSymbol3DLayer ObjectSymbol3DLayer LineSymbol3DLayer PathSymbol3DLayer FillSymbol3DLayer

Aug 22, 2020

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Visualization with the ArcGIS API for JavaScript€¦ · PointSymbol3D LineSymbol3D PolygonSymbol3D IconSymbol3DLayer ObjectSymbol3DLayer LineSymbol3DLayer PathSymbol3DLayer FillSymbol3DLayer

Kristian Ekenes

Visualization with the ArcGIS API for JavaScript

Page 2: Visualization with the ArcGIS API for JavaScript€¦ · PointSymbol3D LineSymbol3D PolygonSymbol3D IconSymbol3DLayer ObjectSymbol3DLayer LineSymbol3DLayer PathSymbol3DLayer FillSymbol3DLayer

Discover how to visualize geodata

in a meaningful way using the

ArcGIS API for JavaScript

Page 3: Visualization with the ArcGIS API for JavaScript€¦ · PointSymbol3D LineSymbol3D PolygonSymbol3D IconSymbol3DLayer ObjectSymbol3DLayer LineSymbol3DLayer PathSymbol3DLayer FillSymbol3DLayer

One visualization cannot tell

the whole story

Page 4: Visualization with the ArcGIS API for JavaScript€¦ · PointSymbol3D LineSymbol3D PolygonSymbol3D IconSymbol3DLayer ObjectSymbol3DLayer LineSymbol3DLayer PathSymbol3DLayer FillSymbol3DLayer

Renderers, symbols, etc.

API Overview

Page 5: Visualization with the ArcGIS API for JavaScript€¦ · PointSymbol3D LineSymbol3D PolygonSymbol3D IconSymbol3DLayer ObjectSymbol3DLayer LineSymbol3DLayer PathSymbol3DLayer FillSymbol3DLayer

What can we visualize?• Where?

• What?

• How much?

• When?

• Multivariate

Page 6: Visualization with the ArcGIS API for JavaScript€¦ · PointSymbol3D LineSymbol3D PolygonSymbol3D IconSymbol3DLayer ObjectSymbol3DLayer LineSymbol3DLayer PathSymbol3DLayer FillSymbol3DLayer

Symbols

Page 7: Visualization with the ArcGIS API for JavaScript€¦ · PointSymbol3D LineSymbol3D PolygonSymbol3D IconSymbol3DLayer ObjectSymbol3DLayer LineSymbol3DLayer PathSymbol3DLayer FillSymbol3DLayer

Symbols

SimpleMarkerSymbol

based on geometry type

SimpleLineSymbol SimpleFillSymbol

Points Lines Polygons

PictureMarkerSymbolPictureFillSymbol

WebStyleSymbolCIMSymbol

Page 8: Visualization with the ArcGIS API for JavaScript€¦ · PointSymbol3D LineSymbol3D PolygonSymbol3D IconSymbol3DLayer ObjectSymbol3DLayer LineSymbol3DLayer PathSymbol3DLayer FillSymbol3DLayer

PointSymbol3D LineSymbol3D PolygonSymbol3D

IconSymbol3DLayer

ObjectSymbol3DLayer

LineSymbol3DLayer

PathSymbol3DLayer

FillSymbol3DLayer

ExtrudeSymbol3DLayer Volumetric

- Real world units

(feet, meter)

- Graphics are in real

world space

Flat

- Screen size units

(pt, px)

- Graphics are in screen

space

Symbols

Page 9: Visualization with the ArcGIS API for JavaScript€¦ · PointSymbol3D LineSymbol3D PolygonSymbol3D IconSymbol3DLayer ObjectSymbol3DLayer LineSymbol3DLayer PathSymbol3DLayer FillSymbol3DLayer

MeshSymbol3D

FillSymbol3DLayer

Symbols

Page 10: Visualization with the ArcGIS API for JavaScript€¦ · PointSymbol3D LineSymbol3D PolygonSymbol3D IconSymbol3DLayer ObjectSymbol3DLayer LineSymbol3DLayer PathSymbol3DLayer FillSymbol3DLayer

Symbols

Page 12: Visualization with the ArcGIS API for JavaScript€¦ · PointSymbol3D LineSymbol3D PolygonSymbol3D IconSymbol3DLayer ObjectSymbol3DLayer LineSymbol3DLayer PathSymbol3DLayer FillSymbol3DLayer

DataMapImageLayer

FeatureLayer

CSVLayer

StreamLayer

GeoJSONLayer FeatureCollection

SceneLayer

Page 13: Visualization with the ArcGIS API for JavaScript€¦ · PointSymbol3D LineSymbol3D PolygonSymbol3D IconSymbol3DLayer ObjectSymbol3DLayer LineSymbol3DLayer PathSymbol3DLayer FillSymbol3DLayer

Data-driven visualization

• Field value(s)TOTAL_POP

• Arcade expressionRound( ( ($feature.BACHELOR + $feature.MASTER) / $feature.POP_25UP) * 100 );

Page 14: Visualization with the ArcGIS API for JavaScript€¦ · PointSymbol3D LineSymbol3D PolygonSymbol3D IconSymbol3DLayer ObjectSymbol3DLayer LineSymbol3DLayer PathSymbol3DLayer FillSymbol3DLayer

Renderers

Page 15: Visualization with the ArcGIS API for JavaScript€¦ · PointSymbol3D LineSymbol3D PolygonSymbol3D IconSymbol3DLayer ObjectSymbol3DLayer LineSymbol3DLayer PathSymbol3DLayer FillSymbol3DLayer

Renderers

Simple

UniqueValue

ClassBreaks

Heatmap

Page 16: Visualization with the ArcGIS API for JavaScript€¦ · PointSymbol3D LineSymbol3D PolygonSymbol3D IconSymbol3DLayer ObjectSymbol3DLayer LineSymbol3DLayer PathSymbol3DLayer FillSymbol3DLayer

RenderersSimpleRenderer

UniqueValueRenderer

ClassBreaksRenderer

Page 17: Visualization with the ArcGIS API for JavaScript€¦ · PointSymbol3D LineSymbol3D PolygonSymbol3D IconSymbol3DLayer ObjectSymbol3DLayer LineSymbol3DLayer PathSymbol3DLayer FillSymbol3DLayer

RenderersVisual Variables• Color

• Size

• Opacity

• Rotation

• A property of the

renderer

• For numeric data-

driven continuous

visualizations

Page 18: Visualization with the ArcGIS API for JavaScript€¦ · PointSymbol3D LineSymbol3D PolygonSymbol3D IconSymbol3DLayer ObjectSymbol3DLayer LineSymbol3DLayer PathSymbol3DLayer FillSymbol3DLayer

RenderersVisual Variables

Page 19: Visualization with the ArcGIS API for JavaScript€¦ · PointSymbol3D LineSymbol3D PolygonSymbol3D IconSymbol3DLayer ObjectSymbol3DLayer LineSymbol3DLayer PathSymbol3DLayer FillSymbol3DLayer

Dot Density

Page 20: Visualization with the ArcGIS API for JavaScript€¦ · PointSymbol3D LineSymbol3D PolygonSymbol3D IconSymbol3DLayer ObjectSymbol3DLayer LineSymbol3DLayer PathSymbol3DLayer FillSymbol3DLayer

Political Party Affiliation

Examples

Page 21: Visualization with the ArcGIS API for JavaScript€¦ · PointSymbol3D LineSymbol3D PolygonSymbol3D IconSymbol3DLayer ObjectSymbol3DLayer LineSymbol3DLayer PathSymbol3DLayer FillSymbol3DLayer

Symbol Size by Scale

ArcGIS blog: How and why to size symbols by scale in web maps

Page 22: Visualization with the ArcGIS API for JavaScript€¦ · PointSymbol3D LineSymbol3D PolygonSymbol3D IconSymbol3DLayer ObjectSymbol3DLayer LineSymbol3DLayer PathSymbol3DLayer FillSymbol3DLayer

Smart Mapping

Page 23: Visualization with the ArcGIS API for JavaScript€¦ · PointSymbol3D LineSymbol3D PolygonSymbol3D IconSymbol3DLayer ObjectSymbol3DLayer LineSymbol3DLayer PathSymbol3DLayer FillSymbol3DLayer

It’s all about…

• Statistics - Which breaks/stop

points make sense?

• Color – What colors work best

with my basemap? Should it be

above and below or high to

low?

Smart Mapping

Class breaks are hard

Page 24: Visualization with the ArcGIS API for JavaScript€¦ · PointSymbol3D LineSymbol3D PolygonSymbol3D IconSymbol3DLayer ObjectSymbol3DLayer LineSymbol3DLayer PathSymbol3DLayer FillSymbol3DLayer

Smart Mapping

Page 25: Visualization with the ArcGIS API for JavaScript€¦ · PointSymbol3D LineSymbol3D PolygonSymbol3D IconSymbol3DLayer ObjectSymbol3DLayer LineSymbol3DLayer PathSymbol3DLayer FillSymbol3DLayer
Page 26: Visualization with the ArcGIS API for JavaScript€¦ · PointSymbol3D LineSymbol3D PolygonSymbol3D IconSymbol3DLayer ObjectSymbol3DLayer LineSymbol3DLayer PathSymbol3DLayer FillSymbol3DLayer

Age

Page 27: Visualization with the ArcGIS API for JavaScript€¦ · PointSymbol3D LineSymbol3D PolygonSymbol3D IconSymbol3DLayer ObjectSymbol3DLayer LineSymbol3DLayer PathSymbol3DLayer FillSymbol3DLayer

Predominance

Page 28: Visualization with the ArcGIS API for JavaScript€¦ · PointSymbol3D LineSymbol3D PolygonSymbol3D IconSymbol3DLayer ObjectSymbol3DLayer LineSymbol3DLayer PathSymbol3DLayer FillSymbol3DLayer

Relationship

Page 29: Visualization with the ArcGIS API for JavaScript€¦ · PointSymbol3D LineSymbol3D PolygonSymbol3D IconSymbol3DLayer ObjectSymbol3DLayer LineSymbol3DLayer PathSymbol3DLayer FillSymbol3DLayer

Symbol Size by Scale

ArcGIS blog: How and why to size symbols by scale in web maps

Page 30: Visualization with the ArcGIS API for JavaScript€¦ · PointSymbol3D LineSymbol3D PolygonSymbol3D IconSymbol3DLayer ObjectSymbol3DLayer LineSymbol3DLayer PathSymbol3DLayer FillSymbol3DLayer

Smart Mapping Sliders

Page 31: Visualization with the ArcGIS API for JavaScript€¦ · PointSymbol3D LineSymbol3D PolygonSymbol3D IconSymbol3DLayer ObjectSymbol3DLayer LineSymbol3DLayer PathSymbol3DLayer FillSymbol3DLayer

Smart Mapping

Data Exploration

Page 32: Visualization with the ArcGIS API for JavaScript€¦ · PointSymbol3D LineSymbol3D PolygonSymbol3D IconSymbol3DLayer ObjectSymbol3DLayer LineSymbol3DLayer PathSymbol3DLayer FillSymbol3DLayer

Should I always use Smart Mapping? No!

When to use the Smart Mapping APIs

• Data exploration

• Renderer authoring

• Represent unknown statistical data that updates frequently

• Statistic queries

When not to use the Smart Mapping APIs

• You know your data well

• You use standardized colors or determined by organization

• You can author your style in ArcGIS Online or ArcGIS Enterprise portal

• Just because

Page 33: Visualization with the ArcGIS API for JavaScript€¦ · PointSymbol3D LineSymbol3D PolygonSymbol3D IconSymbol3DLayer ObjectSymbol3DLayer LineSymbol3DLayer PathSymbol3DLayer FillSymbol3DLayer

OK. I shouldn’t use the Smart Mapping

APIs... but I still need help with my

cartography. What should I do?

• You can author your style in ArcGIS Online or ArcGIS Enterprise portal and

take advantage of everything Smart Mapping has to offer.

• Read the Data Visualization guide pages!

• Esri color ramps

• Data visualization best practices

Page 35: Visualization with the ArcGIS API for JavaScript€¦ · PointSymbol3D LineSymbol3D PolygonSymbol3D IconSymbol3DLayer ObjectSymbol3DLayer LineSymbol3DLayer PathSymbol3DLayer FillSymbol3DLayer

Faster visual updatesWebGL rendering

Page 36: Visualization with the ArcGIS API for JavaScript€¦ · PointSymbol3D LineSymbol3D PolygonSymbol3D IconSymbol3DLayer ObjectSymbol3DLayer LineSymbol3DLayer PathSymbol3DLayer FillSymbol3DLayer

Web Styles, CIM,

client-side

processing

Page 38: Visualization with the ArcGIS API for JavaScript€¦ · PointSymbol3D LineSymbol3D PolygonSymbol3D IconSymbol3DLayer ObjectSymbol3DLayer LineSymbol3DLayer PathSymbol3DLayer FillSymbol3DLayer

Download the Esri

Events app and find

your event

Select the session

you attended

Scroll down to

“Survey”

Log in to access the

survey

Complete the survey

and select “Submit”

Please Share Your Feedback in the App

Page 39: Visualization with the ArcGIS API for JavaScript€¦ · PointSymbol3D LineSymbol3D PolygonSymbol3D IconSymbol3DLayer ObjectSymbol3DLayer LineSymbol3DLayer PathSymbol3DLayer FillSymbol3DLayer