Skip to content

Commit fc82480

Browse files
author
Savina Shen (Manpower Services Taiwan Co Ltd)
committed
Add flowmap sample
1 parent d67f26d commit fc82480

5 files changed

Lines changed: 3612 additions & 0 deletions

File tree

Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>Integration with Flowmap.gl - Azure Maps Web SDK Samples</title>
5+
6+
<meta charset="UTF-8" />
7+
<link rel="shortcut icon" href="/favicon.ico"/>
8+
9+
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
10+
<meta name="description" content="This sample shows a flow map on top of Azure Maps using the flowmap.gl module." />
11+
<meta name="keywords" content="Microsoft maps, maps, map, API, SDK, flow map, flowmap, routing, data movement" />
12+
<meta name="author" content="Microsoft Azure Maps" /><meta name="version" content="1.0" />
13+
<meta name="screenshot" content="screenshot.jpg" />
14+
15+
<!-- Add reference to the Azure Maps Map control CSS file. -->
16+
<link href="https://atlas.microsoft.com/sdk/javascript/mapcontrol/3/atlas.min.css" rel="stylesheet" />
17+
18+
<!-- Add reference to the JavaScript file that integrates the Flowmap.gl module. -->
19+
<script type="module" crossorigin src="./build/index-b5d16182.js"></script>
20+
21+
<style>
22+
.sidePanel {
23+
width: 350px;
24+
height: 580px;
25+
float: left;
26+
margin-right: 10px;
27+
}
28+
29+
#container {
30+
position: fixed;
31+
top: 0;
32+
left: 0;
33+
right: 0;
34+
bottom: 0;
35+
background: #000;
36+
position: relative;
37+
width: calc(100% - 360px);
38+
min-width:290px;
39+
height: 600px;
40+
float: left;
41+
}
42+
43+
#container > * {
44+
position: absolute;
45+
top: 0;
46+
left: 0;
47+
width: 100%;
48+
height: 100%;
49+
}
50+
51+
.atlas-map-canvas-container {
52+
opacity: 0.5;
53+
}
54+
55+
canvas#deck-canvas {
56+
mix-blend-mode: screen;
57+
}
58+
59+
#tooltip {
60+
width: auto;
61+
height: auto;
62+
display: none;
63+
position: absolute;
64+
font-size: 14px;
65+
border-radius: 5px;
66+
border: 1px solid #000;
67+
background-color: rgba(255, 255, 255, 0.75);
68+
padding: 0.6em;
69+
color: rgb(0, 0, 0);
70+
pointer-events: none;
71+
}
72+
</style>
73+
</head>
74+
<body>
75+
<div class="sidePanel">
76+
<fieldset style="width:320px;margin-bottom:10px;">
77+
<legend>Integrate with Flowmap.gl</legend>
78+
This sample shows a flow map on top of Azure Maps using the Flowmap.gl module.<br/>
79+
A flow map is useful for visualizing movement data between two geometry points.
80+
The data is displayed as arcs between the geometry points, and the thickness of the arcs represents the volume of movement (or any other meaningful information) between the points.<br/><br/>
81+
The sample uses data from BIXI, a public bike share system in Montreal. The flow map layer visualizes the movement of bikes between stations.
82+
Hover over the dots and arcs to see information about the locations and movements.<br/><br/>
83+
The code references Flowmap.gl's
84+
<a href="https://github.com/visgl/flowmap.gl/blob/main/examples/react-app" target="_blank">example</a>.
85+
</fieldset>
86+
87+
<table>
88+
<tr title="Dark Mode">
89+
<td>Dark Mode:</td>
90+
<td>
91+
<input type="checkbox" class="control" id="darkMode" checked title="Dark Mode" />
92+
</td>
93+
</tr>
94+
<tr title="Color Scheme">
95+
<td>Color Scheme:</td>
96+
<td>
97+
<select class="control" id="colorScheme" title="Color Scheme">
98+
<option>Blues</option>
99+
<option>Cool</option>
100+
<option>Peach</option>
101+
<option>Magenta</option>
102+
<option selected>Teal</option>
103+
</select>
104+
</td>
105+
</tr>
106+
<tr title="Clustering Enabled">
107+
<td>Clustering Enabled:</td>
108+
<td>
109+
<input type="checkbox" class="control" id="clusteringEnabled" checked title="Clustering Enabled" />
110+
</td>
111+
</tr>
112+
</table>
113+
</div>
114+
<div id="container">
115+
<div id="myMap"></div>
116+
<canvas id="deck-canvas"></canvas>
117+
<div id="tooltip"></div>
118+
</div>
119+
120+
</body>
121+
</html>

‎Samples/3D-layer/Flowmap.gl/build/index-b5d16182.js‎

Lines changed: 2104 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)