mapper icon indicating copy to clipboard operation
mapper copied to clipboard

Map Information tool

Open dl3sdo opened this issue 3 years ago • 10 comments

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

dl3sdo avatar Jan 04 '22 16:01 dl3sdo

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

ollesmaps avatar Jan 04 '22 16:01 ollesmaps

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

dl3sdo avatar Jan 04 '22 17:01 dl3sdo

What is the use case you have in mind?

mlerjen avatar Jan 04 '22 17:01 mlerjen

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.

dl3sdo avatar Jan 04 '22 18:01 dl3sdo

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.

ollesmaps avatar Jan 04 '22 18:01 ollesmaps

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 avatar Jan 05 '22 13:01 dl3sdo

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

dl3sdo avatar Jan 19 '22 21:01 dl3sdo

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

dg0yt avatar Jan 23 '22 13:01 dg0yt

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 avatar Jan 24 '22 18:01 dl3sdo

Pull request: #2125

dl3sdo avatar Jan 19 '23 20:01 dl3sdo