-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Labels
Description
Describe the bug
We are trying to apply the styling of one layer to another via the python API. If we are understanding this correctly, we should be able to do that with the from_template functionality, but we have not been able to get it working.
To Reproduce
Steps to reproduce the behavior:
renderer_manager_1 = webmap.content.renderer(0)
style_template = renderer_manager.to_template()
renderer_manager_2 = webmap.content.renderer(1)
renderer_manager_2.from_template(style_template)error:
FileNotFoundError: [Errno 2] No such file or directory: 'simple_renderer_1760132073101.json'Expected behavior
We would expect the output of to_template to work as the input of from_template, or for the documentation to describe any necessary intermediate steps.
Platform (please complete the following information):
- OS: mac sequoia
- Browser: chrome
- Python API Version: 2.4.1.3
Additional context
This is in a Jupyter notebook, in case that matters