mapyta 0.4.1__tar.gz → 0.4.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. {mapyta-0.4.1 → mapyta-0.4.2}/PKG-INFO +1 -1
  2. {mapyta-0.4.1 → mapyta-0.4.2}/mapyta/markers.py +12 -3
  3. {mapyta-0.4.1 → mapyta-0.4.2}/pyproject.toml +1 -1
  4. {mapyta-0.4.1 → mapyta-0.4.2}/.github/workflows/docs-preview.yml +0 -0
  5. {mapyta-0.4.1 → mapyta-0.4.2}/.github/workflows/docs.yml +0 -0
  6. {mapyta-0.4.1 → mapyta-0.4.2}/.github/workflows/lint.yml +0 -0
  7. {mapyta-0.4.1 → mapyta-0.4.2}/.github/workflows/publish.yml +0 -0
  8. {mapyta-0.4.1 → mapyta-0.4.2}/.github/workflows/tests.yml +0 -0
  9. {mapyta-0.4.1 → mapyta-0.4.2}/.gitignore +0 -0
  10. {mapyta-0.4.1 → mapyta-0.4.2}/.pre-commit-config.yaml +0 -0
  11. {mapyta-0.4.1 → mapyta-0.4.2}/.ruff.toml +0 -0
  12. {mapyta-0.4.1 → mapyta-0.4.2}/LICENSE +0 -0
  13. {mapyta-0.4.1 → mapyta-0.4.2}/README.md +0 -0
  14. {mapyta-0.4.1 → mapyta-0.4.2}/docs/.nav.yml +0 -0
  15. {mapyta-0.4.1 → mapyta-0.4.2}/docs/_overrides/assets/images/favicon.ico +0 -0
  16. {mapyta-0.4.1 → mapyta-0.4.2}/docs/_overrides/assets/images/logo-dark-mode.svg +0 -0
  17. {mapyta-0.4.1 → mapyta-0.4.2}/docs/_overrides/assets/images/mapyta-logo-dark-mode.svg +0 -0
  18. {mapyta-0.4.1 → mapyta-0.4.2}/docs/_overrides/assets/images/mapyta-logo-light-mode.svg +0 -0
  19. {mapyta-0.4.1 → mapyta-0.4.2}/docs/_overrides/assets/javascripts/katex.js +0 -0
  20. {mapyta-0.4.1 → mapyta-0.4.2}/docs/_overrides/assets/stylesheets/extra.css +0 -0
  21. {mapyta-0.4.1 → mapyta-0.4.2}/docs/_overrides/main.html +0 -0
  22. {mapyta-0.4.1 → mapyta-0.4.2}/docs/_scripts/__init__.py +0 -0
  23. {mapyta-0.4.1 → mapyta-0.4.2}/docs/_scripts/generate_index.py +0 -0
  24. {mapyta-0.4.1 → mapyta-0.4.2}/docs/_scripts/generate_reference_pages.py +0 -0
  25. {mapyta-0.4.1 → mapyta-0.4.2}/docs/tutorial/.nav.yml +0 -0
  26. {mapyta-0.4.1 → mapyta-0.4.2}/docs/tutorial/advanced.md +0 -0
  27. {mapyta-0.4.1 → mapyta-0.4.2}/docs/tutorial/animated.md +0 -0
  28. {mapyta-0.4.1 → mapyta-0.4.2}/docs/tutorial/choropleth.md +0 -0
  29. {mapyta-0.4.1 → mapyta-0.4.2}/docs/tutorial/clusters.md +0 -0
  30. {mapyta-0.4.1 → mapyta-0.4.2}/docs/tutorial/configuration.md +0 -0
  31. {mapyta-0.4.1 → mapyta-0.4.2}/docs/tutorial/coordinates.md +0 -0
  32. {mapyta-0.4.1 → mapyta-0.4.2}/docs/tutorial/dataframe.md +0 -0
  33. {mapyta-0.4.1 → mapyta-0.4.2}/docs/tutorial/drawing.md +0 -0
  34. {mapyta-0.4.1 → mapyta-0.4.2}/docs/tutorial/export.md +0 -0
  35. {mapyta-0.4.1 → mapyta-0.4.2}/docs/tutorial/faq.md +0 -0
  36. {mapyta-0.4.1 → mapyta-0.4.2}/docs/tutorial/first-map.md +0 -0
  37. {mapyta-0.4.1 → mapyta-0.4.2}/docs/tutorial/geodataframe.md +0 -0
  38. {mapyta-0.4.1 → mapyta-0.4.2}/docs/tutorial/geometries.md +0 -0
  39. {mapyta-0.4.1 → mapyta-0.4.2}/docs/tutorial/heatmaps.md +0 -0
  40. {mapyta-0.4.1 → mapyta-0.4.2}/docs/tutorial/index.md +0 -0
  41. {mapyta-0.4.1 → mapyta-0.4.2}/docs/tutorial/layers.md +0 -0
  42. {mapyta-0.4.1 → mapyta-0.4.2}/docs/tutorial/markers.md +0 -0
  43. {mapyta-0.4.1 → mapyta-0.4.2}/docs/tutorial/min-zoom.md +0 -0
  44. {mapyta-0.4.1 → mapyta-0.4.2}/docs/tutorial/open-data.md +0 -0
  45. {mapyta-0.4.1 → mapyta-0.4.2}/docs/tutorial/text-annotations.md +0 -0
  46. {mapyta-0.4.1 → mapyta-0.4.2}/docs/tutorial/tooltips-popups.md +0 -0
  47. {mapyta-0.4.1 → mapyta-0.4.2}/mapyta/__init__.py +0 -0
  48. {mapyta-0.4.1 → mapyta-0.4.2}/mapyta/config.py +0 -0
  49. {mapyta-0.4.1 → mapyta-0.4.2}/mapyta/coordinates.py +0 -0
  50. {mapyta-0.4.1 → mapyta-0.4.2}/mapyta/dataframe.py +0 -0
  51. {mapyta-0.4.1 → mapyta-0.4.2}/mapyta/export.py +0 -0
  52. {mapyta-0.4.1 → mapyta-0.4.2}/mapyta/geojson.py +0 -0
  53. {mapyta-0.4.1 → mapyta-0.4.2}/mapyta/map.py +0 -0
  54. {mapyta-0.4.1 → mapyta-0.4.2}/mapyta/markdown.py +0 -0
  55. {mapyta-0.4.1 → mapyta-0.4.2}/mapyta/style.py +0 -0
  56. {mapyta-0.4.1 → mapyta-0.4.2}/mapyta/tiles.py +0 -0
  57. {mapyta-0.4.1 → mapyta-0.4.2}/properdocs.yml +0 -0
  58. {mapyta-0.4.1 → mapyta-0.4.2}/tests/__init__.py +0 -0
  59. {mapyta-0.4.1 → mapyta-0.4.2}/tests/conftest.py +0 -0
  60. {mapyta-0.4.1 → mapyta-0.4.2}/tests/test_data.py +0 -0
  61. {mapyta-0.4.1 → mapyta-0.4.2}/tests/test_dataframe.py +0 -0
  62. {mapyta-0.4.1 → mapyta-0.4.2}/tests/test_draw.py +0 -0
  63. {mapyta-0.4.1 → mapyta-0.4.2}/tests/test_export.py +0 -0
  64. {mapyta-0.4.1 → mapyta-0.4.2}/tests/test_geometry.py +0 -0
  65. {mapyta-0.4.1 → mapyta-0.4.2}/tests/test_layers.py +0 -0
  66. {mapyta-0.4.1 → mapyta-0.4.2}/tests/test_map.py +0 -0
  67. {mapyta-0.4.1 → mapyta-0.4.2}/tests/test_map_creation.py +0 -0
  68. {mapyta-0.4.1 → mapyta-0.4.2}/tests/test_markers.py +0 -0
  69. {mapyta-0.4.1 → mapyta-0.4.2}/tests/test_merge_and_chaining.py +0 -0
  70. {mapyta-0.4.1 → mapyta-0.4.2}/tests/test_utilities.py +0 -0
  71. {mapyta-0.4.1 → mapyta-0.4.2}/uv.lock +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mapyta
3
- Version: 0.4.1
3
+ Version: 0.4.2
4
4
  Summary: Mapyta, open source python package for GIS mapping and visualization.
5
5
  License: MIT
6
6
  License-File: LICENSE
@@ -116,11 +116,20 @@ def build_icon_marker(
116
116
  icon_class = f"fa-solid {icon}"
117
117
  else:
118
118
  icon_class = f"glyphicon glyphicon-{icon}"
119
- icon_html = f'<div style="text-align:center;"><i class="{icon_class}" style="{style_str}"></i></div>{caption_suffix}'
119
+ fs = int(merged.get("font-size", "20px").replace("px", ""))
120
+ icon_html = (
121
+ f'<div style="text-align:center;line-height:1;height:{fs}px;">'
122
+ f'<i class="{icon_class}" style="{style_str};line-height:1;vertical-align:top;"></i>'
123
+ f"</div>"
124
+ f"{caption_suffix}"
125
+ )
126
+ h_icon = fs
127
+ w = max(fs, 100) if caption else fs
128
+ h = h_icon + (20 if caption else 0)
120
129
  return folium.DivIcon(
121
130
  html=icon_html,
122
- icon_size=(100, 50),
123
- icon_anchor=(50, 15),
131
+ icon_size=(w, h),
132
+ icon_anchor=(w // 2, h_icon // 2),
124
133
  )
125
134
 
126
135
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "mapyta"
3
- version = "0.4.1"
3
+ version = "0.4.2"
4
4
  description = "Mapyta, open source python package for GIS mapping and visualization."
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.12"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes