Modify

Opened 8 years ago

Closed 8 years ago

#15437 closed defect (wontfix)

Problems in mapping node in the selected area

Reported by: mpasha Owned by: team
Priority: normal Milestone: 17.10
Component: Core mappaint Version: tested
Keywords: template_report Cc:

Description (last modified by mpasha)

What steps will reproduce the problem?

  1. A piece of code with a style mapping from .mapcss:

area[building]:selected > node {symbol-shape: circle; symbol-size: 8; symbol-fill-color: FF2F14;}

  1. The style of the points changes only when you save the changes to the .mapcss file (or when you hide and show next) and only once.
  1. In the stable version of the program, it was noticed that the styles were displayed on the previous selected objects. It is necessary only for the current one.

Correct display:

https://i.imgur.com/2h8ecmG.png

Incorrect display:

https://i.imgur.com/rFglhMD.png

URL:http://josm.openstreetmap.de/svn/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2017-10-03 21:43:00 +0200 (Tue, 03 Oct 2017)
Build-Date:2017-10-03 19:50:21
Revision:12921
Relative:URL: ^/trunk

Identification: JOSM/1.5 (12921 ru) Windows 10 64-Bit
OS Build number: Windows 10 Enterprise 2016 LTSB 1607 (14393)
Memory Usage: 348 MB / 989 MB (125 MB allocated, but free)
Java version: 1.8.0_131-b11, Oracle Corporation, Java HotSpot(TM) Client VM
Screen: \Display0 1366x768
Maximum Screen Size: 1366x768
VM arguments: [-Djosm.home=<josm.pref>]
Dataset consistency test: No problems found

Plugins:
+ BuildingGeneralization (16)
+ CADTools (1007)
+ DirectDownload (33160)
+ FastDraw (33583)
+ FixAddresses (33718)
+ HouseNumberTaggingTool (33714)
+ ImproveWay (12)
+ Mapillary (v1.5.7)
+ OpeningHoursEditor (33185)
+ ShapeTools (1220)
+ alignways (33182)
+ apache-commons (33668)
+ apache-http (32699)
+ buildings_tools (33004)
+ continuosDownload (64)
+ contourmerge (1032)
+ download_along (33710)
+ editgpx (33004)
+ ejml (32680)
+ geotools (33380)
+ imagery_offset_db (33547)
+ jogl (1.1.0)
+ jts (32699)
+ log4j (32699)
+ merge-overlap (33436)
+ namemanager (33306)
+ reltoolbox (33708)
+ reverter (33572)
+ tag2link (33382)
+ tageditor (33579)
+ terracer (33608)
+ todo (30303)
+ tofix (1505422613)
+ utilsplugin2 (33704)

Tagging presets:
+ https://raw.githubusercontent.com/ruosm-presets/literan-moscow/master/russian_shops.xml

Map paint styles:
- https://josm.openstreetmap.de/josmfile?page=Styles/PublicTransport&zip=1
- https://github.com/igitov/forest-josm-style/archive/master.zip
- https://josm.openstreetmap.de/josmfile?page=Styles/NewHighwayColors&zip=1
- <josm.pref>\styles\indoor.mapcss
- D:\Programs\JOSM_Portable\Map Styles\New.mapcss
- http://mijndev.openstreetmap.nl/~allroads/JOSM/Styles/Road_Extended_JOSM_style.zip
- %UserProfile%\Downloads\Road_Extended_JOSM_style\Road_Extended_JOSM_style.mapcss
- D:\Programs\JOSM_Portable\Map Styles\Test\potlatch2.mapcss
- D:\Programs\JOSM_Portable\Map Styles\elemstyles1.mapcss
+ D:\Programs\JOSM_Portable\Map Styles\Ones test.mapcss

Validator rules:
+ <josm.pref>\validator\indoorhelper.validator.mapcss

Last errors/warnings:
- W: Unable to convert property symbol-stroke-color to type class java.awt.Color: found Keyword{ffffff} of type class org.openstreetmap.josm.gui.mappaint.Keyword!
- W: Unable to convert property symbol-fill-color to type class java.awt.Color: found Keyword{ff2f14} of type class org.openstreetmap.josm.gui.mappaint.Keyword!
- W: Unable to convert property symbol-stroke-color to type class java.awt.Color: found Keyword{ffffff} of type class org.openstreetmap.josm.gui.mappaint.Keyword!
- W: Unable to convert property symbol-fill-color to type class java.awt.Color: found Keyword{ff2f14} of type class org.openstreetmap.josm.gui.mappaint.Keyword!
- W: Unable to convert property symbol-stroke-color to type class java.awt.Color: found Keyword{ffffff} of type class org.openstreetmap.josm.gui.mappaint.Keyword!
- W: Unable to convert property symbol-fill-color to type class java.awt.Color: found Keyword{ff2f14} of type class org.openstreetmap.josm.gui.mappaint.Keyword!
- W: Unable to convert property symbol-stroke-color to type class java.awt.Color: found Keyword{ffffff} of type class org.openstreetmap.josm.gui.mappaint.Keyword!
- W: Unable to convert property symbol-fill-color to type class java.awt.Color: found Keyword{ff2f14} of type class org.openstreetmap.josm.gui.mappaint.Keyword!
- W: Unable to convert property symbol-stroke-color to type class java.awt.Color: found Keyword{ffffff} of type class org.openstreetmap.josm.gui.mappaint.Keyword!
- W: Unable to convert property symbol-fill-color to type class java.awt.Color: found Keyword{ff2f14} of type class org.openstreetmap.josm.gui.mappaint.Keyword!

Attachments (0)

Change History (2)

comment:1 by mpasha, 8 years ago

Description: modified (diff)

comment:2 by bastiK, 8 years ago

Component: Internal mappaint styleCore mappaint
Resolution: wontfix
Status: newclosed

This combination of the :selected pseudo class and child selector is currently not supported.

It is a legitimate use case, but I'm hard-pressed to think of a decent technical solution. The problem is that a niche feature shouldn't degrade performance for everyone and/or seriously complicate the code.

Closing as "not supported", until there are patches/ideas how to fix this.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.