You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.
Then when I select a node with tag FCode=82024, then the selection starts to happen and then immediately deselects. If I reverse the two statements, like this:
Author: Richard [Added to the original trac issue at 10.45pm, Wednesday, 7th March 2012]
I think you're using MapCSS 0.1 syntax there.
In MapCSS 0.2 (as currently implemented in Potlatch), if you want to have two on-screen objects for the same node, you need to create subparts. In other words, you should put the highlight on a different subpart like this - node::selectedNode :selected { ... }.
This is how the osm.org Potlatch instance does it - look at core_interactive.css, and indeed the MapCSS 0.2 spec.
Reporter: ebwolf
[Submitted to the original trac issue database at 9.51pm, Monday, 28th November 2011]
I am using Potlatch 2.3 Build 2.3-115-gbbacb39 locally, pointed at the USGS OSM Server (navigator.er.usgs.gov).
In my style .css file, if I have two statements:
node :selected { icon-image: square; icon-width: 30; color: yellow; interactive: no; z-index: 2; }
node[FCode=82024] { icon-image: usgs/library.png; z-index: 1; }
Then when I select a node with tag FCode=82024, then the selection starts to happen and then immediately deselects. If I reverse the two statements, like this:
node[FCode=82024] { icon-image: usgs/library.png; z-index: 1; }
node :selected { icon-image: square; icon-width: 30; color: yellow; interactive: no; z-index: 2; }
Then when I select the node, the node remains selected and I get a yellow square (which is another problem).
Should the MapCSS dictate how feature selection works inside Potlatch?
-Eric
The text was updated successfully, but these errors were encountered: