resizing markers

This commit is contained in:
devfzn 2024-06-12 00:21:30 -04:00
parent 5335497942
commit 35a0bfdcc8
2 changed files with 6 additions and 6 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 284 KiB

After

Width:  |  Height:  |  Size: 275 KiB

View File

@ -20,7 +20,7 @@ def map200(geolocs):
staticmaps.Marker( staticmaps.Marker(
marca200, marca200,
color=staticmaps.parse_color('#00ff29'), color=staticmaps.parse_color('#00ff29'),
size=7 size=4
) )
) )
@ -38,7 +38,7 @@ def map300(geolocs):
lon = float(loc[0].split(',')[1]) lon = float(loc[0].split(',')[1])
marca300 = staticmaps.create_latlng(lat, lon) marca300 = staticmaps.create_latlng(lat, lon)
cntxt300.add_object(staticmaps.Marker( cntxt300.add_object(staticmaps.Marker(
marca300, color=staticmaps.parse_color('#b20101'), size=5)) marca300, color=staticmaps.parse_color('#b20101'), size=3))
svg_image = cntxt300.render_svg(1920, 1080) svg_image = cntxt300.render_svg(1920, 1080)
with open(f"{selfpath}/maps/map_300.svg", "w", encoding="utf-8") as f: with open(f"{selfpath}/maps/map_300.svg", "w", encoding="utf-8") as f:
@ -60,7 +60,7 @@ def maps_gen(locs_200, locs_300):
staticmaps.Marker( staticmaps.Marker(
marca3, marca3,
color=staticmaps.parse_color('#b20101'), color=staticmaps.parse_color('#b20101'),
size=5 size=3
) )
) )
@ -72,7 +72,7 @@ def maps_gen(locs_200, locs_300):
staticmaps.Marker( staticmaps.Marker(
marca3, marca3,
color=staticmaps.parse_color('#00ff29'), color=staticmaps.parse_color('#00ff29'),
size=6 size=4
) )
) )
@ -97,7 +97,7 @@ def maps_thumbs(locs_200, locs_300):
staticmaps.Marker( staticmaps.Marker(
demo300, demo300,
color=staticmaps.parse_color('#b20101'), color=staticmaps.parse_color('#b20101'),
size=4 size=3
) )
) )
@ -109,7 +109,7 @@ def maps_thumbs(locs_200, locs_300):
staticmaps.Marker( staticmaps.Marker(
demo200, demo200,
color=staticmaps.parse_color('#00ff29'), color=staticmaps.parse_color('#00ff29'),
size=5 size=3.5
) )
) )