usage of point_style for add_*() functions in leafmap module #1026
Unanswered
galaxismad
asked this question in
Q&A
Replies: 1 comment 1 reply
-
After some further testing, I found out, that it is possible to change the corresponding values directly for the layer before plotting the map like As a site note: only with this, the default values given in hover style are applied and visible as well as info_mode = 'on_hover' shows the popup information as expected. Before, it was showing the toolbar box, but no content was shown, when hovering over the markers. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi guys,
first of all great work with this library :-)
I was looking for a possibility to use circle markers with popups in an efficient way.
Using add_circle_makers_from_xy() gives me the expected result, although it seems to be not very efficient when using a high number of points (like over 3000 in this case, but I want to avoid to use marker clusters) as it is generating a
With pure ipyleaflet, this could be done using GeoJSON or GeoData plus defining point_style argument, which is super fast (see jupyter-widgets/ipyleaflet#439). Unfortunately, I didn't find a solution using point_style with leafmap. It seems, that functions using ipyleaflets GeoJSON under the hood are not making use of the point_style argument.
Is there a reason, why the point_style argument is not used/forwarded to the GeoJSON function (like add_gdf(), add_data() or add_geojson())? Maybe this system is not working together with creating the popups?
Thanks for your help in advance!
Beta Was this translation helpful? Give feedback.
All reactions