Skip to content

Commit 0d55290

Browse files
author
Manushi Majumdar
committed
requested changes addressed
1 parent 520b357 commit 0d55290

File tree

2 files changed

+1420
-45
lines changed

2 files changed

+1420
-45
lines changed

guide/10-mapping-and-visualization/part3_visualizing_spatial_data_on_the_map_widget.ipynb

Lines changed: 1415 additions & 1 deletion
Large diffs are not rendered by default.

guide/10-mapping-and-visualization/part4_visualizing_time_enabled_data_on_the_map_widget.ipynb

Lines changed: 5 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@
3030
"\n",
3131
"`time_slider.enabled` is a property that determines whether a time slider exists for a map widget. If set to `True`, the property will display a time slider in the widget that will allow you to visualize temporal data for an applicable layer added to the map. Its default value is `False`.\n",
3232
"\n",
33-
"The `time_extent` is called when `time_slider.enabled = True` and is the time extent that will display on the time slider. In order to properly call the method `time_extent(start_time, end_time, interval=1, unit='milliseconds')`, we need to specify the following arguments: \n",
34-
" - `start_time`: Required ``datetime.datetime``. The lower bound of the full time extent to display on the time slider.\n",
35-
" - `end_time`: Required ``datetime.datetime``. The upper bound of the full time extent to display on the time slider.\n",
33+
"The `time_extent` is called when `time_slider.enabled = True` and is the time extent that will display on the time slider. In order to properly call the `TimeSlider.time_extent()` method, we need to specify the following arguments: \n",
34+
" - `start_time`: Optional ``datetime.datetime``. The lower bound of the full time extent to display on the time slider.\n",
35+
" - `end_time`: Optional ``datetime.datetime``. The upper bound of the full time extent to display on the time slider.\n",
3636
" - `time_interval`: Optional dict. The time interval to display on the time slider. The time interval is a dictionary with two keys: `value` and `units`. The interval is the number of units to display on the time slider. The units are the units of the interval.\n",
3737
" - `layer_idx`: Optional integer. The index of the layer in the webmap that the time extent should be applied to. If not specified, the time extent will be applied to the first layer in the webmap."
3838
]
@@ -55,37 +55,14 @@
5555
"execution_count": 2,
5656
"id": "936289e3",
5757
"metadata": {},
58-
"outputs": [
59-
{
60-
"data": {
61-
"application/vnd.jupyter.widget-view+json": {
62-
"model_id": "8073017e18964c1ca26f69550907d730",
63-
"version_major": 2,
64-
"version_minor": 1
65-
},
66-
"text/plain": [
67-
"Map(center=[4352220.592523982, -13277101.270396618], extent={'xmin': -13829023.30574967, 'ymin': 3686907.11575…"
68-
]
69-
},
70-
"execution_count": 2,
71-
"metadata": {},
72-
"output_type": "execute_result"
73-
}
74-
],
58+
"outputs": [],
7559
"source": [
7660
"# Create a map widget\n",
7761
"map8 = gis.map('California') # Passing a place name to the constructor\n",
7862
" # will initialize the extent of the map.\n",
7963
"map8"
8064
]
8165
},
82-
{
83-
"attachments": {},
84-
"cell_type": "markdown",
85-
"id": "a9962c26-f363-4bc7-b780-2e83fc866cdb",
86-
"metadata": {},
87-
"source": []
88-
},
8966
{
9067
"cell_type": "markdown",
9168
"id": "10dabd9b-2184-400b-a1e4-18e0cea0048e",
@@ -259,23 +236,7 @@
259236
"execution_count": 10,
260237
"id": "2487f79e",
261238
"metadata": {},
262-
"outputs": [
263-
{
264-
"data": {
265-
"application/vnd.jupyter.widget-view+json": {
266-
"model_id": "50aaca85f2f844bd9695393fbd47cf3f",
267-
"version_major": 2,
268-
"version_minor": 1
269-
},
270-
"text/plain": [
271-
"Map(center=[4043355.6559281936, -13057119.050909298], extent={'xmin': -13079382.94906795, 'ymin': 4016497.8863…"
272-
]
273-
},
274-
"execution_count": 10,
275-
"metadata": {},
276-
"output_type": "execute_result"
277-
}
278-
],
239+
"outputs": [],
279240
"source": [
280241
"# Create a map widget\n",
281242
"map9 = gis.map('San Bernadino, CA') # Passing a place name to the constructor\n",

0 commit comments

Comments
 (0)