-
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
For plotting vector using cartoee, the parameter name is The lat/lon bug originates from the leaflet JavaScript library. There is nothing geemap can do about it. See jupyter-widgets/ipyleaflet#684 |
Beta Was this translation helpful? Give feedback.
-
Ok, it works now. You may consider changing the cookbook.
…On Sat, Apr 10, 2021 at 10:59 AM Qiusheng Wu ***@***.***> wrote:
For plotting vector using cartoee, the parameter name is style not
vis_params, so you should try cartoee.add_layer(ax,countries,style=vis_params,region=bbox)
See https://geemap.org/notebooks/69_cartoee_vector/#plot-a-styled-vector
The lat/lon bug originates from the leaflet JavaScript library. There is
nothing geemap can do about it. See jupyter-widgets/ipyleaflet#684
<jupyter-widgets/ipyleaflet#684>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#411 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AE5J3HV4TXS6E2E6U4AWZB3TH65IBANCNFSM42WAC4WA>
.
|
Beta Was this translation helpful? Give feedback.
-
For a vector file, we can set the opacity parameter using the toolbox but
can not use a script. It reports:
*Unrecognized arguments {'opacity'} to function: Draw a vector collection
for visualization using a simple style language.*
…On Sat, Apr 10, 2021 at 3:47 PM Jack Chen ***@***.***> wrote:
Ok, it works now. You may consider changing the cookbook.
On Sat, Apr 10, 2021 at 10:59 AM Qiusheng Wu ***@***.***>
wrote:
> For plotting vector using cartoee, the parameter name is style not
> vis_params, so you should try cartoee.add_layer(ax,countries,style=vis_params,region=bbox)
>
> See https://geemap.org/notebooks/69_cartoee_vector/#plot-a-styled-vector
>
> The lat/lon bug originates from the leaflet JavaScript library. There is
> nothing geemap can do about it. See jupyter-widgets/ipyleaflet#684
> <jupyter-widgets/ipyleaflet#684>
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <#411 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AE5J3HV4TXS6E2E6U4AWZB3TH65IBANCNFSM42WAC4WA>
> .
>
|
Beta Was this translation helpful? Give feedback.
-
Thank you, I got it.
…On Sat, Apr 10, 2021 at 9:57 PM Qiusheng Wu ***@***.***> wrote:
Opacity is controlled by the last two hex codes in color and fillColor,
just like the GEE JavaScript API.
https://developers.google.com/earth-engine/apidocs/ee-featurecollection-style
[image: image]
<https://user-images.githubusercontent.com/5016453/114272173-12627380-99e3-11eb-8e94-e5a46bed70d0.png>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#411 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AE5J3HQJSOC7YKI3XQW24WLTIBKMBANCNFSM42WAC4WA>
.
|
Beta Was this translation helpful? Give feedback.
For plotting vector using cartoee, the parameter name is
style
notvis_params
, so you should trycartoee.add_layer(ax,countries,style=vis_params,region=bbox)
See https://geemap.org/notebooks/69_cartoee_vector/#plot-a-styled-vector
The lat/lon bug originates from the leaflet JavaScript library. There is nothing geemap can do about it. See jupyter-widgets/ipyleaflet#684