Modify

Opened 10 years ago

Closed 10 years ago

#9606 closed defect (fixed)

different colors of buildings with same tags

Reported by: Klumbumbus Owned by: team
Priority: normal Milestone: 14.09
Component: Internal mappaint style Version:
Keywords: Cc: bastiK

Description (last modified by Don-vip)

I noticed some strange behavior how JOSM renders colors. The problem is that buildings with exact the same tags look different if there is an landuse=residential area around. It's a bit hard to explan it in detail for me, so I made a video, where I show the problem:
http://youtu.be/55TtC4wQAXg

To eliminate side effects I disabled the JOSM internal Mappaint style and used a mappaint style with the following code (although, the problem also occours with active internal JOSM mappaint style):

area["addr:housenumber"]
{ 
        fill-color: green;
        fill-opacity: 0.7;
        text-color: black; 
        font-size: 16;
        text-halo-radius: 8;
        text-halo-color: green;
        text-halo-opacity: 0.7;
        text: tag("addr:housenumber");
}

area[landuse]
{
        fill-color:     #f0f0f0;
}

I want to describe, what I do in the video:

I download some data. Notice that I do not download any node of the landuse=residential area, which is around, so, the landuse area is not dowloaded. Until this point everything is ok. The buildings with number 15 and 17 look the same. Then I download the landuse area. Now, there is the landuse=residential area around the buildings. You can see that the building with number 17 is brighter and the building with number 15 is darker (fill-color and halo-color). Then I copy and paste building number 15 and it has also the brighter colors.

Then I move an node of the landuse, so there is now landuse=meadow around the buildings. You can see that the dark green building in the middle switches also to the bright color version.

Then I delete the meadow area, and move the node again. When there is no landuse over the buildings, the two outer buildings (left 15 and 17) switch to the dark color version.

I'm not sure, wich color version is correct, but these buildings should always look the same since they have got the same tags. (I mean, colors can be different with and without landuse around, but there should not be differences between the buildings with each other). Are you able to reproduce this problem?
I tried it on 2 different windows computers with latest stable JOSM. The example area, which I show in the video is here: http://www.openstreetmap.org/#map=19/50.81339/12.97180

Attachments (2)

colors9606.png (28.6 KB ) - added by Klumbumbus 10 years ago.
7558 fix ticket 9606.diff (406 bytes ) - added by Klumbumbus 10 years ago.

Download all attachments as: .zip

Change History (19)

comment:1 by Klumbumbus, 10 years ago

Description: modified (diff)

comment:2 by Klumbumbus, 10 years ago

Description: modified (diff)

comment:3 by Don-vip, 10 years ago

Component: CoreInternal mappaint style

comment:4 by Don-vip, 10 years ago

I cannot reproduce. I see you're using version 6502. Can you try with latest version ?

comment:5 by Klumbumbus, 10 years ago

I tried JOSM latest 6762. Same problem there. I also tried a random old version of JOSM (5402) -> same problem.

I'm using Java 1.7.0_51 (should be latest version).

comment:6 by Don-vip, 10 years ago

Are you still able to reproduce this problem with latest JOSM and Java?

in reply to:  6 comment:7 by Klumbumbus, 10 years ago

Replying to Don-vip:

Are you still able to reproduce this problem with latest JOSM and Java?

Yes. I think it looks a bit different now than in the video, however the problem is still there:


(cannot attach screenshot. still trac error IndexError: pop from empty list)

Version 2, edited 10 years ago by Klumbumbus (previous) (next) (diff)

comment:8 by Klumbumbus, 10 years ago

Java Web Start 10.67.2.01
JRE-Version verwenden 1.7.0_67-b01 Java HotSpot(TM) Client VM
Benutzer-Home-Verzeichnis = C:\Users\Stefan
----------------------------------------------------
c:   Konsolenfenster löschen
f:   Objekte in Finalisierungs-Queue finalisieren
g:   Garbage Collect
h:   Diese Hilfemeldung anzeigen
m:   Speicherauslastung drucken
o:   Logging auslösen
p:   Proxykonfiguration neu laden
q:   Konsole ausblenden
r:   Policy-Konfiguration neu laden
s:   System- und Deployment-Eigenschaften ausgeben
t:   Threadliste ausgeben
v:   Threadstack ausgeben
0-5: Trace-Ebene auf <n> setzen
----------------------------------------------------
INFO: Debug-Nachrichten werden auf der Konsole ausgegeben
DEBUG: System property 'http.agent' set to 'JOSM/1.5 (7543 de) Windows 7 32-Bit'. Old value was 'null'
DEBUG: System property 'user.language' set to 'en'. Old value was 'de'
DEBUG: System property 'jsse.enableSNIExtension' set to 'false'. Old value was 'null'
DEBUG: System property 'java.util.Arrays.useLegacyMergeSort' set to 'true'. Old value was 'true'
DEBUG: System property 'http.agent' set to 'JOSM/1.5 (7543 en) Windows 7 32-Bit'. Old value was 'JOSM/1.5 (7543 de) Windows 7 32-Bit'
DEBUG: System property 'user.language' set to 'en'. Old value was 'en'
DEBUG: System property 'jsse.enableSNIExtension' set to 'false'. Old value was 'false'
DEBUG: System property 'java.util.Arrays.useLegacyMergeSort' set to 'true'. Old value was 'true'
INFO: Silent shortcut conflict: 'audio:faster' moved by 'edit:housenumbertaggingtool' to 'Ctrl+Alt+F1'.
DEBUG: Transparency has been forced for image jar:https://josm.openstreetmap.de/download/josm-latest.jar!/images/dialogs/autoscale/problem.png
DEBUG: Initializing OSM API completed in 80 ms
DEBUG: Transparency has been forced for image jar:https://josm.openstreetmap.de/download/josm-latest.jar!/images/presets/way_secondary.png
DEBUG: Transparency has been forced for image jar:https://josm.openstreetmap.de/download/josm-latest.jar!/images/dialogs/validator.png
DEBUG: Initializing validator completed in 660 ms
DEBUG: Transparency has been forced for image jar:https://josm.openstreetmap.de/download/josm-latest.jar!/images/presets/way_unclassified.png
DEBUG: Transparency has been forced for image jar:https://josm.openstreetmap.de/download/josm-latest.jar!/images/presets/construction.png
DEBUG: Transparency has been forced for image jar:https://josm.openstreetmap.de/download/josm-latest.jar!/images/presets/ford.png
DEBUG: Transparency has been forced for image jar:https://josm.openstreetmap.de/download/josm-latest.jar!/images/presets/path.png
DEBUG: Transparency has been forced for image jar:https://josm.openstreetmap.de/download/josm-latest.jar!/images/presets/equestrian.png
DEBUG: Transparency has been forced for image jar:https://josm.openstreetmap.de/download/josm-latest.jar!/images/presets/waypoints.png
DEBUG: Transparency has been forced for image jar:https://josm.openstreetmap.de/download/josm-latest.jar!/images/presets/Stop.png
DEBUG: Initializing map style http://josm.openstreetmap.de/josmfile?page=Styles/Surface&style completed in 136 ms
DEBUG: Initializing map style http://josm.openstreetmap.de/josmfile?page=Styles/Coloured_Suburb&style completed in 26 ms
DEBUG: Initializing map style http://josm.openstreetmap.de/josmfile?page=Styles/ParkingLanes&style completed in 8 ms
DEBUG: Initializing map style http://josm.openstreetmap.de/josmfile?page=Styles/Sidewalks&style completed in 3 ms
DEBUG: Initializing map style http://josm.openstreetmap.de/josmfile?page=Styles/Cycleways&style completed in 23 ms
DEBUG: Initializing map style http://josm.openstreetmap.de/josmfile?page=Styles/AddressValidator&style completed in 27 ms
DEBUG: Transparency has been forced for image jar:https://josm.openstreetmap.de/download/josm-latest.jar!/images/presets/bollard.png
DEBUG: Initializing map style http://download.freemap.sk/JOSM/conscriptionnumbers.mapcss completed in 36 ms
DEBUG: Transparency has been forced for image jar:https://josm.openstreetmap.de/download/josm-latest.jar!/images/presets/empty.png
DEBUG: Initializing map style http://josm.openstreetmap.de/josmfile?page=Styles/Coloured_Postcode&style completed in 33 ms
DEBUG: Initializing map style resource://styles/standard/elemstyles.mapcss completed in 107 ms
DEBUG: Initializing map style https://josm.openstreetmap.de/josmfile?page=Styles/ShowID&style completed in 8 ms
DEBUG: Initializing map style D:\Stefan\OSM\eigene styles\Coloured Streets\ColouredStreets3.28_01 verschiedenes.mapcss completed in 84 ms
DEBUG: Transparency has been forced for image jar:https://josm.openstreetmap.de/download/josm-latest.jar!/images/presets/gate.png
DEBUG: Transparency has been forced for image jar:https://josm.openstreetmap.de/download/josm-latest.jar!/images/presets/lift_gate.png
DEBUG: Transparency has been forced for image jar:https://josm.openstreetmap.de/download/josm-latest.jar!/images/presets/swing_gate.png
DEBUG: Initializing map style D:\Stefan\OSM\eigene styles\Coloured Streets\ColouredStreets3.35_03 test if addr.street is different than name of associated street relation.mapcss completed in 52 ms
DEBUG: Transparency has been forced for image jar:https://josm.openstreetmap.de/download/josm-latest.jar!/images/presets/stile.png
DEBUG: Transparency has been forced for image jar:https://josm.openstreetmap.de/download/josm-latest.jar!/images/presets/tunnel.png
DEBUG: Initializing map style https://josm.openstreetmap.de/josmfile?page=Styles/MaxspeedIcons&zip=1 completed in 84 ms
DEBUG: Transparency has been forced for image jar:https://josm.openstreetmap.de/download/josm-latest.jar!/images/presets/waterfall.png
DEBUG: Initializing map style D:\Stefan\OSM\patches\maxspeed nodes\elemstyles maxspeed nodes 03 zweiter patch.mapcss completed in 46 ms
DEBUG: Initializing map style http://josm.openstreetmap.de/josmfile?page=Styles/LessObtrusiveNodes&style completed in 2 ms
DEBUG: Initializing map style D:\Stefan\OSM\eigene styles\elemstyles\elemstyles7261.mapcss completed in 43 ms
DEBUG: Initializing map style D:\Stefan\OSM\patches\fix maxspeed nodes\elemstyles7386fix.mapcss completed in 50 ms
DEBUG: Initializing map style http://josm.openstreetmap.de/josmfile?page=Styles/Lane_and_Road_Attributes&zip=1 completed in 159 ms
DEBUG: Transparency has been forced for image jar:https://josm.openstreetmap.de/download/josm-latest.jar!/images/presets/rail_preserved.png
DEBUG: Transparency has been forced for image jar:https://josm.openstreetmap.de/download/josm-latest.jar!/images/presets/tram.png
DEBUG: Transparency has been forced for image jar:https://josm.openstreetmap.de/download/josm-latest.jar!/images/presets/crossing.png
DEBUG: Initializing map style http://josm.openstreetmap.de/josmfile?page=Styles/Maxspeed&style completed in 89 ms
DEBUG: Transparency has been forced for image jar:https://josm.openstreetmap.de/download/josm-latest.jar!/images/presets/chair_lift.png
DEBUG: Transparency has been forced for image jar:https://josm.openstreetmap.de/download/josm-latest.jar!/images/presets/drag_lift.png
WARNING: Detected deprecated 'canvas{background-color}' in 'https://github.com/bastik/mapcss-tools/raw/osm/mapnik2mapcss/osm-results/mapnik.zip' which will be removed shortly. Use 'fill-color' instead.
DEBUG: Initializing map style https://github.com/bastik/mapcss-tools/raw/osm/mapnik2mapcss/osm-results/mapnik.zip completed in 178 ms
DEBUG: Initializing map style D:\Stefan\OSM\eigene styles\Tourenplanung.mapcss completed in 5 ms
DEBUG: Transparency has been forced for image jar:https://josm.openstreetmap.de/download/josm-latest.jar!/images/presets/car_repair.png
DEBUG: Initializing map style https://github.com/simon04/coloured-addresses.mapcss/raw/master/dist/coloured-addresses.mapcss completed in 120 ms
DEBUG: Initializing map style http://josm.openstreetmap.de/josmfile?page=Styles/Coloured_Streets&style completed in 30 ms
DEBUG: Transparency has been forced for image jar:https://josm.openstreetmap.de/download/josm-latest.jar!/images/presets/bike.png
DEBUG: Initializing map style D:\Stefan\OSM\eigene styles\Coloured Streets\ColouredStreets3.36_01 basiert auf 3.35_02 fix wenn im standardstil shrink nodes abgewählt ist.mapcss completed in 80 ms
DEBUG: Transparency has been forced for image jar:https://josm.openstreetmap.de/download/josm-latest.jar!/images/presets/interpolation.png
DEBUG: Initializing map style D:\Stefan\OSM\eigene styles\Coloured Streets\ColouredStreets3.36_01 colorhack für vergleichsgif!!!.mapcss completed in 54 ms
DEBUG: Initializing map style D:\Stefan\OSM\eigene styles\Coloured Streets\ColouredStreets3.37_01 fix größe einzelnodes bei hohen zoomstufen.mapcss completed in 39 ms
DEBUG: Initializing map style D:\Stefan\OSM\patches\style setting hide street labels\elemstyles7470 - Kopie.mapcss completed in 122 ms
DEBUG: Initializing map style https://josm.openstreetmap.de/josmfile?page=Styles/Osmc&style completed in 2 ms
DEBUG: Initializing map style D:\Stefan\OSM\eigene styles\tests\color bug ticket 9606.mapcss completed in 5 ms
DEBUG: Transparency has been forced for image jar:https://josm.openstreetmap.de/download/josm-latest.jar!/images/presets/runway.png
DEBUG: Transparency has been forced for image jar:https://josm.openstreetmap.de/download/josm-latest.jar!/images/presets/taxiway.png
DEBUG: Initializing map styles completed in 2.3 s
DEBUG: Transparency has been forced for image jar:https://josm.openstreetmap.de/download/josm-latest.jar!/images/presets/hostel.png
DEBUG: Transparency has been forced for image jar:https://josm.openstreetmap.de/download/josm-latest.jar!/images/presets/caravan2.png
DEBUG: Transparency has been forced for image jar:https://josm.openstreetmap.de/download/josm-latest.jar!/images/presets/biergarten.png
DEBUG: Transparency has been forced for image jar:https://josm.openstreetmap.de/download/josm-latest.jar!/images/presets/swimming.png
DEBUG: Loading imagery preferences completed in 432 ms
DEBUG: Transparency has been forced for image jar:https://josm.openstreetmap.de/download/josm-latest.jar!/images/presets/fishing.png
DEBUG: Transparency has been forced for image jar:https://josm.openstreetmap.de/download/josm-latest.jar!/images/presets/State_Public.png
DEBUG: Transparency has been forced for image jar:https://josm.openstreetmap.de/download/josm-latest.jar!/images/styles/standard/religion/church.png
DEBUG: Transparency has been forced for image jar:https://josm.openstreetmap.de/download/josm-latest.jar!/images/presets/townhall.png
DEBUG: Transparency has been forced for image jar:https://josm.openstreetmap.de/download/josm-latest.jar!/images/presets/JusticeScales.png
DEBUG: Transparency has been forced for image jar:https://josm.openstreetmap.de/download/josm-latest.jar!/images/presets/prison.png
DEBUG: Transparency has been forced for image jar:https://josm.openstreetmap.de/download/josm-latest.jar!/images/presets/kindergarten.png
DEBUG: Transparency has been forced for image jar:https://josm.openstreetmap.de/download/josm-latest.jar!/images/presets/telephone.png
DEBUG: Transparency has been forced for image jar:https://josm.openstreetmap.de/download/josm-latest.jar!/images/presets/bench.png
DEBUG: Transparency has been forced for image jar:https://josm.openstreetmap.de/download/josm-latest.jar!/images/presets/shelter.png
DEBUG: Transparency has been forced for image jar:https://josm.openstreetmap.de/download/josm-latest.jar!/images/presets/hunting_stand.png
DEBUG: Transparency has been forced for image jar:https://josm.openstreetmap.de/download/josm-latest.jar!/images/presets/drinking_water.png
DEBUG: Transparency has been forced for image jar:https://josm.openstreetmap.de/download/josm-latest.jar!/images/presets/fire_hydrant.png
DEBUG: Transparency has been forced for image jar:https://josm.openstreetmap.de/download/josm-latest.jar!/images/presets/soccer.png
DEBUG: Transparency has been forced for image jar:https://josm.openstreetmap.de/download/josm-latest.jar!/images/presets/pitch.png
DEBUG: Transparency has been forced for image jar:https://josm.openstreetmap.de/download/josm-latest.jar!/images/presets/rowing.png
DEBUG: Transparency has been forced for image jar:https://josm.openstreetmap.de/download/josm-latest.jar!/images/presets/canoe.png
DEBUG: Transparency has been forced for image jar:https://josm.openstreetmap.de/download/josm-latest.jar!/images/presets/Hockey.png
DEBUG: Transparency has been forced for image jar:https://josm.openstreetmap.de/download/josm-latest.jar!/images/presets/works.png
DEBUG: Transparency has been forced for image jar:https://josm.openstreetmap.de/download/josm-latest.jar!/images/presets/tower.png
DEBUG: Transparency has been forced for image jar:https://josm.openstreetmap.de/download/josm-latest.jar!/images/presets/windmill.png
DEBUG: Transparency has been forced for image jar:https://josm.openstreetmap.de/download/josm-latest.jar!/images/presets/crane.png
DEBUG: Transparency has been forced for image jar:https://josm.openstreetmap.de/download/josm-latest.jar!/images/presets/power.png
DEBUG: Transparency has been forced for image jar:https://josm.openstreetmap.de/download/josm-latest.jar!/images/presets/memorial.png
DEBUG: Transparency has been forced for image jar:https://josm.openstreetmap.de/download/josm-latest.jar!/images/styles/standard/historic/boundary_stone.png
DEBUG: Transparency has been forced for image jar:https://josm.openstreetmap.de/download/josm-latest.jar!/images/presets/baker.png
DEBUG: Transparency has been forced for image jar:https://josm.openstreetmap.de/download/josm-latest.jar!/images/presets/laundry.png
DEBUG: Transparency has been forced for image jar:https://josm.openstreetmap.de/download/josm-latest.jar!/images/presets/dollar.png
DEBUG: Transparency has been forced for image jar:https://josm.openstreetmap.de/download/josm-latest.jar!/images/presets/stationery.png
DEBUG: Transparency has been forced for image jar:https://josm.openstreetmap.de/download/josm-latest.jar!/images/presets/book.png
DEBUG: Transparency has been forced for image jar:https://josm.openstreetmap.de/download/josm-latest.jar!/images/presets/travel.png
DEBUG: Transparency has been forced for image jar:https://josm.openstreetmap.de/download/josm-latest.jar!/images/presets/places.png
DEBUG: Transparency has been forced for image jar:https://josm.openstreetmap.de/download/josm-latest.jar!/images/presets/glacier.png
DEBUG: Transparency has been forced for image jar:https://josm.openstreetmap.de/download/josm-latest.jar!/images/presets/military.png
DEBUG: Transparency has been forced for image jar:https://josm.openstreetmap.de/download/josm-latest.jar!/images/presets/addresses.png
DEBUG: Initializing presets completed in 6.8 s
INFO: Could not load tool definition getoffset
DEBUG: Transparency has been forced for image jar:https://josm.openstreetmap.de/download/josm-latest.jar!/images/logo_32x32x8.png
INFO: loading plugin 'reverter' (version 30521)
INFO: RemoteControl: adding command "revert_changeset" (handled by RevertChangesetHandler)
INFO: loading plugin 'reltoolbox' (version 30587)
INFO: loading plugin 'utilsplugin2' (version 30460)
INFO: loading plugin 'undelete' (version 30416)
INFO: loading plugin 'PicLayer' (version 30436)
INFO: loading plugin 'Tracer2' (version 30416)
INFO: loading plugin 'terracer' (version 30643)
INFO: loading plugin 'turnrestrictions' (version 30454)
INFO: loading plugin 'measurement' (version 30641)
INFO: loading plugin 'editgpx' (version 30634)
INFO: loading plugin 'public_transport' (version 30416)
INFO: loading plugin 'imagery_offset_db' (version 30534)
INFO: loading plugin 'DirectUpload' (version 30416)
INFO: loading plugin 'buildings_tools' (version 30485)
INFO: loading plugin 'download_along' (version 30416)
INFO: loading plugin 'OpeningHoursEditor' (version 30609)
INFO: loading plugin 'notes' (version v0.9.4)
INFO: loading plugin 'HouseNumberTaggingTool' (version 30416)
INFO: RemoteControl::Accepting connections on port 8111
DEBUG: Alias in JOSM keystore: josm_localhost
DEBUG: JOSM localhost certificate found in Windows-ROOT keystore: josm_localhost
INFO: RemoteControl::Accepting secure connections on port 8112
DEBUG: Opening HTTP connection to https://api.openstreetmap.org/api/0.6/user/details
DEBUG: REQUEST: {User-Agent=[JOSM/1.5 (7543 en) Windows 7 32-Bit Java/1.7.0_67], Connection=[close]}
INFO: GET https://api.openstreetmap.org/api/0.6/user/details
DEBUG: RESPONSE: {null=[HTTP/1.1 200 OK], X-Runtime=[0.045631], ETag=["b8505150d378fc63a938e90a4fb2230f-gzip"], Content-Length=[574], X-XSS-Protection=[1; mode=block], Set-Cookie=[], X-Request-Id=[b993f1fe-035f-49d9-9163-d677e7a2dd67], Connection=[close], Server=[Apache/2.4.7 (Ubuntu)], X-Powered-By=[Phusion Passenger 4.0.50], X-Content-Type-Options=[nosniff], Cache-Control=[max-age=0, private, must-revalidate], Status=[200 OK], X-Frame-Options=[SAMEORIGIN], Vary=[Accept-Encoding], Date=[Tue, 16 Sep 2014 14:31:35 GMT], Content-Encoding=[gzip], Content-Type=[application/xml; charset=utf-8]}
INFO: Message notifier active (checks every 5 minutes)
DEBUG: Opening HTTP connection to https://api.openstreetmap.org/api/0.6/user/details
DEBUG: REQUEST: {User-Agent=[JOSM/1.5 (7543 en) Windows 7 32-Bit Java/1.7.0_67], Connection=[close]}
INFO: GET https://api.openstreetmap.org/api/0.6/user/details (get number of unread messages)
DEBUG: RESPONSE: {null=[HTTP/1.1 200 OK], X-Runtime=[0.288687], ETag=["b8505150d378fc63a938e90a4fb2230f-gzip"], Content-Length=[574], X-XSS-Protection=[1; mode=block], X-Request-Id=[242f1a14-4b39-4e53-9aa7-6c5f6d624b47], Connection=[close], Server=[Apache/2.4.7 (Ubuntu)], X-Powered-By=[Phusion Passenger 4.0.50], Cache-Control=[max-age=0, private, must-revalidate], X-Content-Type-Options=[nosniff], Status=[200 OK], X-Frame-Options=[SAMEORIGIN], Vary=[Accept-Encoding], Date=[Tue, 16 Sep 2014 14:31:36 GMT], Content-Encoding=[gzip], Content-Type=[application/xml; charset=utf-8]}
CacheEntry[https://b.tile.openstreetmap.org/17/70258/43988.png]: updateAvailable=true,lastModified=Thu Jan 01 01:00:00 CET 1970,length=10729
DEBUG: System property 'http.agent' set to 'JOSM/1.5 (7543 en) Windows 7 32-Bit'. Old value was 'JOSM/1.5 (7543 en) Windows 7 32-Bit'
DEBUG: System property 'user.language' set to 'en'. Old value was 'en'
DEBUG: System property 'jsse.enableSNIExtension' set to 'false'. Old value was 'false'
DEBUG: System property 'java.util.Arrays.useLegacyMergeSort' set to 'true'. Old value was 'true'
DEBUG: Opening HTTP connection to https://api.openstreetmap.org/api/0.6/map?bbox=12.9710662,50.8125855,12.9739845,50.8137515
DEBUG: REQUEST: {User-Agent=[JOSM/1.5 (7543 en) Windows 7 32-Bit Java/1.7.0_67], Connection=[close]}
INFO: GET https://api.openstreetmap.org/api/0.6/map?bbox=12.9710662,50.8125855,12.9739845,50.8137515
DEBUG: RESPONSE: {null=[HTTP/1.1 200 OK], Transfer-Encoding=[chunked], Date=[Tue, 16 Sep 2014 14:31:52 GMT], Content-Disposition=[attachment; filename="map.osm"], Content-Encoding=[gzip], Connection=[close], Content-Type=[text/xml; charset=utf-8], Server=[Apache/2.4.7 (Ubuntu)], Cache-Control=[no-cache]}
DEBUG: Transparency has been forced for image jar:https://josm.openstreetmap.de/download/josm-latest.jar!/images/cursor/modifier/zoom.png
DEBUG: Transparency has been forced for image jar:https://josm.openstreetmap.de/download/josm-latest.jar!/images/misc/sticky.png
DEBUG: Transparency has been forced for image jar:https://josm.openstreetmap.de/download/josm-latest.jar!/images/misc/close.png
DEBUG: Transparency has been forced for image jar:https://josm.openstreetmap.de/download/josm-latest.jar!/images/dialogs/layerlist/blank.png
DEBUG: Transparency has been forced for image jar:https://josm.openstreetmap.de/download/josm-latest.jar!/images/dialogs/layerlist/eye-translucent.png
DEBUG: Transparency has been forced for image jar:https://josm.openstreetmap.de/download/josm-latest.jar!/images/dialogs/layerlist/eye-pressed.png
DEBUG: Transparency has been forced for image jar:https://josm.openstreetmap.de/download/josm-latest.jar!/images/dialogs/duplicatelayer.png
DEBUG: Transparency has been forced for image jar:https://josm.openstreetmap.de/download/josm-latest.jar!/images/statusline/dist.png
DEBUG: Transparency has been forced for image jar:https://josm.openstreetmap.de/download/josm-latest.jar!/images/data/warning.png
INFO: Silent shortcut conflict: 'reltoolbox:addremove' moved by 'view:zoominter' to 'Ctrl+Alt+F2'.
DEBUG: Transparency has been forced for image jar:https://josm.openstreetmap.de/download/josm-latest.jar!/images/data/relation.png
DEBUG: Opening HTTP connection to https://api.openstreetmap.org/api/0.6/trackpoints?bbox=12.9710662,50.8125855,12.9739845,50.8137515&page=0
DEBUG: REQUEST: {User-Agent=[JOSM/1.5 (7543 en) Windows 7 32-Bit Java/1.7.0_67], Connection=[close]}
INFO: GET https://api.openstreetmap.org/api/0.6/trackpoints?bbox=12.9710662,50.8125855,12.9739845,50.8137515&page=0
DEBUG: RESPONSE: {null=[HTTP/1.1 200 OK], X-Runtime=[0.038689], Content-encoding=[gzip], ETag=["402c36aef0eadd0c013008c3d289817b"], X-XSS-Protection=[1; mode=block], X-Request-Id=[a20efa6d-a735-4a10-ac8b-be92c9f3856c], Connection=[close], Server=[Apache/2.4.7 (Ubuntu)], X-Powered-By=[Phusion Passenger 4.0.50], Cache-Control=[max-age=0, private, must-revalidate], X-Content-Type-Options=[nosniff], Status=[200 OK], X-Frame-Options=[SAMEORIGIN], Transfer-Encoding=[chunked], Date=[Tue, 16 Sep 2014 14:31:55 GMT], Content-Disposition=[attachment; filename="tracks.gpx"], Content-Type=[text/xml; charset=utf-8]}
DEBUG: Opening HTTP connection to https://api.openstreetmap.org/api/0.6/trackpoints?bbox=12.9710662,50.8125855,12.9739845,50.8137515&page=1
DEBUG: REQUEST: {User-Agent=[JOSM/1.5 (7543 en) Windows 7 32-Bit Java/1.7.0_67], Connection=[close]}
INFO: GET https://api.openstreetmap.org/api/0.6/trackpoints?bbox=12.9710662,50.8125855,12.9739845,50.8137515&page=1
DEBUG: RESPONSE: {null=[HTTP/1.1 200 OK], X-Runtime=[0.013110], ETag=["e9004f8d697cc60d6905cea930d7eec1-gzip"], Content-Length=[132], X-XSS-Protection=[1; mode=block], X-Request-Id=[46e06cc7-df7f-46ec-8b05-448b653d0820], Connection=[close], Server=[Apache/2.4.7 (Ubuntu)], X-Powered-By=[Phusion Passenger 4.0.50], X-Content-Type-Options=[nosniff], Cache-Control=[max-age=0, private, must-revalidate], Status=[200 OK], X-Frame-Options=[SAMEORIGIN], Vary=[Accept-Encoding], Date=[Tue, 16 Sep 2014 14:31:56 GMT], Content-Disposition=[attachment; filename="tracks.gpx"], Content-Encoding=[gzip], Content-Type=[text/xml; charset=utf-8]}
DEBUG: Building list of presets with name template
WARNING: Unable to create file C:\Users\Stefan\AppData\Roaming\JOSM\autosave\Data Layer 1_20140916_1632.osm, other filename will be used
DEBUG: Opening HTTP connection to https://api.openstreetmap.org/api/0.6/user/details
DEBUG: REQUEST: {User-Agent=[JOSM/1.5 (7543 en) Windows 7 32-Bit Java/1.7.0_67], Connection=[close]}
INFO: GET https://api.openstreetmap.org/api/0.6/user/details (get number of unread messages)
DEBUG: RESPONSE: {null=[HTTP/1.1 200 OK], X-Runtime=[0.050194], ETag=["b8505150d378fc63a938e90a4fb2230f-gzip"], Content-Length=[574], X-XSS-Protection=[1; mode=block], X-Request-Id=[2e6e1914-3a49-4b5c-a5f4-58ebfead0608], Connection=[close], Server=[Apache/2.4.7 (Ubuntu)], X-Powered-By=[Phusion Passenger 4.0.50], Cache-Control=[max-age=0, private, must-revalidate], X-Content-Type-Options=[nosniff], Status=[200 OK], X-Frame-Options=[SAMEORIGIN], Vary=[Accept-Encoding], Date=[Tue, 16 Sep 2014 14:36:36 GMT], Content-Encoding=[gzip], Content-Type=[application/xml; charset=utf-8]}

comment:9 by Don-vip, 10 years ago

Component: Internal mappaint styleCore mappaint

I think I get it ! It must be linked to object IDs. The building that appears clearer has a lower id than the landuse. The building that appears darker has an higher id than landuse (it has been created after).

@bastiK: do we paint objects in an order based on their id? Why painting a building above a landuse does not produce the same result as painting the landuse over an equal building?

comment:10 by Don-vip, 10 years ago

Cc: bastiK added

A question for you in the above comment :)

by Klumbumbus, 10 years ago

Attachment: colors9606.png added

comment:11 by Don-vip, 10 years ago

Description: modified (diff)

in reply to:  9 ; comment:12 by bastiK, 10 years ago

Replying to Don-vip:

I think I get it ! It must be linked to object IDs. The building that appears clearer has a lower id than the landuse. The building that appears darker has an higher id than landuse (it has been created after).

Sounds correct.

@bastiK: do we paint objects in an order based on their id?

Yes, you need some kind of well defined painting order. It doesn't matter so much which one, but it has to be fixed and reproducible. Otherwise, as soon as you move the map, draw a line, etc., you get erratic changes and it looks weird. (In this case, the color would jump back and forth from bright to dark.)

I designed this mainly with POI icons in mind. If you have a cluster of icons, you probably want to see the new one (negative id) on top.

Why painting a building above a landuse does not produce the same result as painting the landuse over an equal building?

If you'd paint with opaque color, you would either get the landuse color or the building color, so the result would be 2 different colors. With semi transparent colors, it's basically the same, just not that pronounced.

As for a solution, I think building=* and landuse=* should get different z-index or major-z-index in the map style.

in reply to:  12 comment:13 by Don-vip, 10 years ago

Component: Core mappaintInternal mappaint style
Milestone: 14.09

Replying to bastiK:

As for a solution, I think building=* and landuse=* should get different z-index or major-z-index in the map style.

Yep, ok :)

comment:14 by bastiK, 10 years ago

@Klumbumbus: A patch would be appreciated, if you like to look into it.

in reply to:  14 comment:15 by Klumbumbus, 10 years ago

Replying to bastiK:

@Klumbumbus: A patch would be appreciated, if you like to look into it.

Yes, I will test this.

by Klumbumbus, 10 years ago

Attachment: 7558 fix ticket 9606.diff added

comment:16 by Klumbumbus, 10 years ago

I made a patch. There are some more area styles like sport=* or waterway=*, but I think we don't need to change their layers.

comment:17 by bastiK, 10 years ago

Resolution: fixed
Status: newclosed

In 7564/josm:

fixed #9606 - different colors of buildings with same tags (patch by Klumbumbus)

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.