|
30 | 30 | "\n",
|
31 | 31 | "`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",
|
32 | 32 | "\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", |
36 | 36 | " - `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",
|
37 | 37 | " - `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."
|
38 | 38 | ]
|
|
55 | 55 | "execution_count": 2,
|
56 | 56 | "id": "936289e3",
|
57 | 57 | "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": [], |
75 | 59 | "source": [
|
76 | 60 | "# Create a map widget\n",
|
77 | 61 | "map8 = gis.map('California') # Passing a place name to the constructor\n",
|
78 | 62 | " # will initialize the extent of the map.\n",
|
79 | 63 | "map8"
|
80 | 64 | ]
|
81 | 65 | },
|
82 |
| - { |
83 |
| - "attachments": {}, |
84 |
| - "cell_type": "markdown", |
85 |
| - "id": "a9962c26-f363-4bc7-b780-2e83fc866cdb", |
86 |
| - "metadata": {}, |
87 |
| - "source": [] |
88 |
| - }, |
89 | 66 | {
|
90 | 67 | "cell_type": "markdown",
|
91 | 68 | "id": "10dabd9b-2184-400b-a1e4-18e0cea0048e",
|
|
259 | 236 | "execution_count": 10,
|
260 | 237 | "id": "2487f79e",
|
261 | 238 | "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": [], |
279 | 240 | "source": [
|
280 | 241 | "# Create a map widget\n",
|
281 | 242 | "map9 = gis.map('San Bernadino, CA') # Passing a place name to the constructor\n",
|
|
0 commit comments