Skip to content

Commit

Permalink
fix notebook analyzing patterns in feature data
Browse files Browse the repository at this point in the history
  • Loading branch information
nanaeaubry committed Aug 16, 2024
1 parent 9ffa22b commit 03f7701
Showing 1 changed file with 15 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"metadata": {},
"outputs": [],
"source": [
"map1 = gis.map(\"Tamil Nadu\", zoomlevel = 8)"
"map1 = gis.map(\"Tamil Nadu\")"
]
},
{
Expand All @@ -63,7 +63,7 @@
"metadata": {},
"outputs": [],
"source": [
"map1.add_layer(chennai_rainfall, { \"renderer\":\"ClassedSizeRenderer\", \"field_name\":\"RAINFALL\" })"
"map1.content.add(chennai_rainfall)"
]
},
{
Expand All @@ -87,6 +87,17 @@
"![image-chennai-rainfall.png](attachment:image-chennai-rainfall.png)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"renderer_manager = map1.content.renderer(0)\n",
"smart_map_manager = renderer_manager.smart_mapping()\n",
"smart_map_manager.class_breaks_renderer(break_type=\"size\", field=\"RAINFALL\")"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down Expand Up @@ -131,7 +142,7 @@
"metadata": {},
"outputs": [],
"source": [
"interpolated_map = gis.map(\"Tamil Nadu\", zoomlevel = 8)"
"interpolated_map = gis.map(\"Tamil Nadu\")"
]
},
{
Expand All @@ -140,7 +151,7 @@
"metadata": {},
"outputs": [],
"source": [
"interpolated_map.add_layer(interpolated_rf['result_layer'])"
"interpolated_map.content.add(interpolated_rf['result_layer'])"
]
},
{
Expand Down

0 comments on commit 03f7701

Please sign in to comment.