Skip to content

Commit 6b24280

Browse files
[examples] Added UI guidance to append data arrays example #492
Added an info banner to the netjsonmap-appendData2.html example explaining that it demonstrates loading multiple JSON data files at once using an array, and that all three data files are loaded and combined automatically when the map initializes. Related to #492
1 parent 4518206 commit 6b24280

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

public/example_templates/netjsonmap-appendData2.html

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,25 @@
1515
<link href="../lib/css/netjsongraph.css" rel="stylesheet" />
1616
</head>
1717
<body>
18+
<div id="info-banner" style="
19+
position: fixed;
20+
top: 10px;
21+
left: 50%;
22+
transform: translateX(-50%);
23+
background: rgba(52, 73, 94, 0.95);
24+
color: white;
25+
padding: 12px 20px;
26+
border-radius: 8px;
27+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
28+
font-size: 14px;
29+
z-index: 1000;
30+
max-width: 90%;
31+
text-align: center;
32+
box-shadow: 0 2px 10px rgba(0,0,0,0.2);
33+
">
34+
<strong>Append Data Using Arrays:</strong> This example demonstrates loading multiple JSON data files at once using an array.
35+
<br><em>All three data files are loaded and combined automatically when the map initializes.</em>
36+
</div>
1837
<script type="text/javascript">
1938
/*
2039
Using array files to append data step by step at start.

0 commit comments

Comments
 (0)