[Potlatch-dev] Proposed filtered way-drawing mode - thoughts?
Steve Bennett
stevagewp at gmail.com
Thu Jan 27 13:13:46 GMT 2011
On Thu, Jan 27, 2011 at 11:58 PM, Richard Fairhurst
<richard at systemed.net> wrote:
> My (very) strong preference is not to introduce another mode or extra
> configurable options. That way lies JOSM. :)
Wise words.
> So I'd suggest:
> because we already have it: it's simply a custom stylesheet. As long as you
> don't include a !:drawn rule, then the offending items simply won't show up.
> The new @import syntax means there's no need to reinvent the wheel for most
> of it. There's already support for assigning keypresses to stylesheets.
Ah, yes. That had occurred to me but I wasn't sure the language is
quite expressive enough.
Is it possible to have a rule that does "if nothing has been drawn,
and this way has a tag which is not one of the following, then draw as
follows?"
The hard thing about this task is expressing not "does it have X tag"
but "does it have *only* tags from Y set".
I guess as a fallback it wouldn't be too painful to whitelist the top
100 or so popular keys.
Are you also assuming here that there would be something like
potlatch-no-boundaries.css which imports potlatch.css, then does some
extra stuff? I'll need to get more familiar with classes and :drawn.
(Excuse my thinking out loud...)
> We have an awesome stylesheet engine (even if I do say so myself) - let's
> use it.
Indeed. :) Would it be worth considering a way to indicate "draw this,
but make it non-interactive"?
Incidentally, http://wiki.openstreetmap.org/wiki/MapCSS still says
that @import is not supported.
Steve
More information about the Potlatch-dev
mailing list