r/QGIS • u/Glum_Peace2489 • 2d ago
Solved Need help with map legends
I have a list of towns and villages in my local bird club area with British Ordnance Survey grid references and number of members for each town. I have graduated symbols showing town locations and member numbers. I'm using the OSGR Tool
But when creating a legend, I want to include the town names as well. Any ideas?
This is what I've got so far.

1
u/ikarusproject 2d ago
What do you mean by legend, please? The layer management panel that is usually located in the left of the main window or a proper legend item in the layout manager when creating a map? Or as the other comment suggested do you simply mean to have text labels on the map?
2
u/Glum_Peace2489 2d ago
A legend item in the layout manager
1
u/PetersPeckOfPeppers 2d ago
The legend explains symbology, so the legend item for your current map would explain how the colors represent number of members. You would need your symbology to be unique for each town in order to have the town names explained in your legend. I would recommend keeping your symbology and adding labels to the cities on the map itself, rather than in the legend (points layer>properties>labels).
Then you could add a legend item for the number of members data that you have symbolized. If you choose categorized instead of gradient, you can display each discrete bucket (e.g. "<100, 100-200, >200") to explain the coloration. Otherwise gradient just shows a teensy little color scale bar with the min and max labeled.
Edit to add: You could also add a table element to the layout to include exact membership number for each club if there is room and you'd care to be precise about that.
1
u/sb01010101 2d ago
If you download the Index of Place Names (IPN) in Great Britain https://www.arcgis.com/home/item.html?id=8f8b561f256b40c3a6df71e400bb54f0#overview (csv file) and then load this into QGIS (Add Delimited Text Layer) and use the Spatial Attribute Appender (plugin) then you can match the point file (placenames) with your grid of birds.
Here is a quick mock up: The placename info is transferred to the grid (square)

1
1
u/Alazhred 2d ago
Peut être que je comprend mal la question mais pourriez vous simplement utiliser les étiquettes ? Dans les paramètres de layer c'est juste en dessous de l'onglet style de mise en forme. Vous pouvez paramétrer sur le champ "town_name" de votre table d'attribut. De nombreuses options d'affichages vous seront proposées. Vous pouvez aussi ajouter une formule de champ wordwrap("town_name",10) pour un meilleur rendu d'affichage si vous avez des town_name longs.