OpenOrienteering / mapper

OpenOrienteering Mapper is a software for creating maps for the orienteering sport.
https://www.openorienteering.org/apps/mapper/
GNU General Public License v3.0
399 stars 106 forks source link

Map Information tool #2018

Open dl3sdo opened 2 years ago

dl3sdo commented 2 years ago

A Happy New Year to all of you.

During the past week I have written a 'Map Information' tool: MapInformationMenu MapInformation

@dg0yt, @lpechacek: please have a look at it and give me some advice how to proceed (e.g., std::map vs. std::vector and 2 or 3 column layout). To be discussed: 'Map' item offers the same information as the 'Objects' item. Commit

ollesmaps commented 2 years ago

Could that contain also scale info? In Adroid app this info is missing.

dl3sdo commented 2 years ago

Yes, of course. Do you want something like this: MapScale Currently the Map Information is only available for Mapper's desktop version.

mlerjen commented 2 years ago

What is the use case you have in mind?

dl3sdo commented 2 years ago

Basically it's just for information. Maybe also 'strange' objects (as mentioned in #2012) are shown and identified there. Please keep in mind that this is just the first version of the Map Information. Any proposal for additional features is welcome.

ollesmaps commented 2 years ago

Yes, of course. Do you want something like this: MapScale Currently the Map Information is only available for Mapper's desktop version.

Perfect! For reference I attach issue #1040.

dl3sdo commented 2 years ago

BTW: this is the variant with 2 columns: MapInformation_2col

I slightly prefer the 3 column layout, but would like to get some feedback from others.

dl3sdo commented 2 years ago

I also added an overview about the fonts and their usage. The 'Objects' section now shows for every symbol which colors are used by it. The 'Colors' section shows all colors and by which symbol every color is used: FontsColorsSymbols

dg0yt commented 2 years ago

Fonts: In a cross-platform scenario, I would be interested in the substitutions chosen for missing fonts. (But this could be added later.)

dl3sdo commented 2 years ago

Fonts: In a cross-platform scenario, I would be interested in the substitutions chosen for missing fonts. (But this could be added later.)

I tried and used

auto font_info = QFontInfo(text_symbol->getQFont());
auto font_family_substituted = font_info.family();

However, I'm not sure how to show it: Fonts1 or: Fonts2 or: Fonts3

dl3sdo commented 1 year ago

Pull request: #2125