Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Map template in magenta color #1161

Closed
and-hom opened this issue Oct 23, 2018 · 2 comments

Comments

@and-hom
Copy link

commented Oct 23, 2018

Steps to reproduce

  1. Start app.
  2. Click File -> New
  3. Go to https://www.openstreetmap.org. Click Export on top of the screen and save *.osm file
  4. Click Templates -> Open template. Select downloaded *.osm file

Actual behaviour

I see all template objects in the magenta color. You can see screenshot here: https://drive.google.com/file/d/1m61LbOnr-kyBBg4VcQpC-ffgTYtPv82W/view?usp=sharing

Also if I do the same with kml or map file, I see magenta solid-filled rectangle.

Expected behaviour

See map objects in different colors

Configuration

Mapper Version: 0.8.3
Operating System: Ubuntu 18.04.1
Linux and-hom 4.15.0-36-generic #39-Ubuntu SMP Mon Sep 24 16:19:09 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
qt4 - 4.8.7
qt5 - 5.9.5

@dg0yt

This comment has been minimized.

Copy link
Member

commented Oct 24, 2018

There is not enough information for the desired behaviour. These types of geospatial vector data do not come with any style information which Mapper could use when displaying these templates.

Regarding the rendering of OSM data:

  • The default color (magenta) cannot be changed at the moment.
  • Area objects are displayed in the same halftone of magenta, which is an issue especially with OSM files.

Workarounds:

  • Reduce the opacity of the template to 50% to make overlapping areas (e.g. buildings) and details below this template more visible.
  • Import the data into a regular (georeferenced) map file, and use this map file as template instead. For OSM, we provide CRT files which convert OSM data to ISOM symbols. But you may use your own symbols. You can even hide objects by symbol.
  • Disable OSM in the settings for GDAL/OGR. This will leave areas blank. However, I plan to remove this option in v0.9 (#1160) for maintainability reasons. It seems like I really need to find a solution for colors and areas with GDAL/OGR.
@Symbian9

This comment has been minimized.

Copy link
Contributor

commented Oct 24, 2018

FTR, here is rendering of "OSM template" (100% opacity)

pic.1

And here is "OSM template" with reduced opacity to 50% (to make overlapping areas and details below this template more visible)

pic.2

@dg0yt dg0yt self-assigned this Oct 29, 2018
@dg0yt dg0yt closed this in 2c0695a Oct 30, 2018
@dg0yt dg0yt added this to the v0.8.4 milestone Oct 31, 2018
dg0yt added a commit that referenced this issue Dec 2, 2018
This change complements 0fa0851 which fixes OgrTemplate being the
default implementation for DXF, GPX and OSM.
Users showed a strong interest in the cosmetic lines used by the
traditional TemplateTrack implementation, especially for GPX files
(cf. #986). Thin lines can now be achieved by enabling hatching or
baseline view.
Hatching offers an alternative to solid drawing of areas which was
an issue (cf. #1161) before using a transparent color (2c0695a).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.