You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
lines = geemap.js_snippet_to_py(
javascript_code, add_new_cell=False,
import_ee=True, import_geemap=True, show_map=True)
for line in lines:
print(line.rstrip())
The
js_snippet_to_py()
function produces duplicate imports and a wrong name for the map widget.For example
Running the converter as follows
This produces the following output
Fixes needed
import geemap
andm = geemap.Map()
statementsMap
in the last line withm
.The text was updated successfully, but these errors were encountered: