usage of point_style for add_*() functions in leafmap module #1026
-
Hi guys, I was looking for a possibility to use circle markers with popups in an efficient way. 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.
Replies: 2 comments 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.
-
@galaxismad Thank you for the suggestion. point_style support has been added in #1043 |
Beta Was this translation helpful? Give feedback.
@galaxismad Thank you for the suggestion. point_style support has been added in #1043