Layer Control not appearing in geemap.foliumap #639
-
Hi, I am trying to add a layer control to an interactive map which I will then post to datapane. When I run the following code, I do not receive an error but nothing appears. Any ideas? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Move this code block to the end of your notebook or simply delete it. The layer control will be added automatically when the map is displayed. If you want to add the layer control explicitly, it should be the second last line of your code. In other words, you should finish everything else (e.g., adding layer, legend) with the map before adding the layer control. Otherwise, you might see some unexpected results. |
Beta Was this translation helpful? Give feedback.
Move this code block to the end of your notebook or simply delete it. The layer control will be added automatically when the map is displayed. If you want to add the layer control explicitly, it should be the second last line of your code. In other words, you should finish everything else (e.g., adding layer, legend) with the map before adding the layer control. Otherwise, you might see some unexpected results.