Andy Allan [Fri, 11 Mar 2011 12:59:55 +0000 (12:59 +0000)]
Bugfix - starting way from existing node and clicking again caused dupe-node way
Set the lastClick and lastClickTime even if it's not a standalone poi - the first so we can track dupe-node ways from existing nodes, the latter so that double-click testing doesn't blow up on null.
Steve Bennett [Fri, 18 Feb 2011 11:32:12 +0000 (11:32 +0000)]
Add support for relations to match multiple tags. Turned out to be a bit more involved than expected. The upshot of it all is that both route=hiking and route=foot walking routes are perfectly supported. By default, route=hiking are made, but existing tags aren't converted.
The syntax is slightly inconsistent:
<tag k="route" v="hiking" vmatch="hiking|foot"/>
on the relation, but
<match k="route" v="hiking|foot"/>
on the path. I don't think it's a major drama, and easily changed. Also, match/@v is not a regexp, it's just pipe-separated values.
Inspired by NopMap <ekkehart@gmx.de> on potlatch-dev, 14 Feb 2011.
Andy Allan [Tue, 15 Feb 2011 14:37:32 +0000 (14:37 +0000)]
Removing the boundary=postal_code definition - this is being used in a very specific fashion (involving relations) in Germany and isn't suitable for standalone tagging
Steve Bennett [Mon, 14 Feb 2011 12:58:21 +0000 (12:58 +0000)]
FIX bug with LWN/RWN/NWN paths: route=hiking was not being set.
CHANGE route=foot to route=hiking on these relations. It's about twice as popular on taginfo.
Steve Bennett [Sun, 13 Feb 2011 22:49:22 +0000 (22:49 +0000)]
ADD keyboard shortcuts , and . (< and >) to step node by node along a way. Maintain state of selected node in SelectedWayNode.as so that cycling ways works as expected.
REFACTOR scrollIfNeeded() to Map.as
more icons. This should complete the way icon set for roads, paths, water and other transport. Anyone adding another preset within these categories without a beautiful perfectly matching icon will be taken outside and shot several times :)
Steve Bennett [Sat, 12 Feb 2011 17:16:48 +0000 (17:16 +0000)]
FIX Circularise bug. There was an odd bug that caused the centroid to be calculated incorrectly, yielding oversized, misplaced circles. Inspired by openstreetmap.org/user/alexz/diary/13054, I replace the centroid calculation algorithm with a much simpler "average of X and Y". In my testing, it yields good results. It's technically "incorrect" for heavily skewed polygons, but IMHO there the result is still acceptable, and it's hardly what Circularise is designed for.
Steve Bennett [Sat, 12 Feb 2011 07:21:25 +0000 (07:21 +0000)]
ADD three new multi-type man_made features: navigation mark, tower, and silo. All of them collect a number of other top-level tags. New icons added for them.
Steve Bennett [Sat, 12 Feb 2011 05:53:24 +0000 (05:53 +0000)]
ADD support for non-drag-and-droppable point features. These are specified as <point draganddrop="no"/> (default is yes). Enable this for highway=turning_circle by way of example.
Steve Bennett [Fri, 11 Feb 2011 12:09:23 +0000 (12:09 +0000)]
IMPROVE help icon functionality - if no help URL is defined, take user to openstreetmap.org/wiki/Tag:featuretag=featurevalue . Seems a bit pointless slavishly defining the wiki address for every single feature when it can be generated.
Steve Bennett [Tue, 8 Feb 2011 13:33:57 +0000 (13:33 +0000)]
ADD @vmatch attribute to <tag> element of feature in map_features.xml. Matching tag values can be specified as a literal, a *, or a regex. This allows grouping of several closely related tags into one feature, and also allows deprecated tags to be matched without being propagated.
FIX definition of traffic_calming=* and demonstrate the new feature. Previously once you chose an item from the drop down, it wouldn't be recognised as a traffic_calming any more.
Steve Bennett [Tue, 8 Feb 2011 12:20:58 +0000 (12:20 +0000)]
ADD map feature: ToyShop
IMPROVE all "shopping" features work for areas as well as points
BONUS comments in Feature.as and remove commented code in WayUI.as
Steve Bennett [Mon, 7 Feb 2011 12:48:40 +0000 (12:48 +0000)]
TWEAK combobox drop-down height, to allow up to 15 choices to be visible at once. Makes editing tags with many choices (like cuisine, surface, voltage...) much more pleasant.
Steve Bennett [Sun, 6 Feb 2011 13:55:38 +0000 (13:55 +0000)]
ADD 'arrows-reversed' line decoration rendering solely to cater for "highway=*, oneway=-1". This fixes trac.openstreetmap.org/ticket/3384 .
ADD oneway=-1 feature to core_ways.css
SPEEDUP dash and arrow rendering by removing all trig functions
Steve Bennett [Sat, 5 Feb 2011 13:44:56 +0000 (13:44 +0000)]
ADD reporting of lat/long of mouse cursor when you press L. This is in response to trac.openstreetmap.org/ticket/3509 . I'm not very familiar with event-oriented programming, so I've probably done this wrong. I ended up creating new MapEvent types which doesn't feel right somehow. But it works...someone else can perhaps tell me the right way to have done this.
Steve Bennett [Sat, 5 Feb 2011 06:13:56 +0000 (06:13 +0000)]
SPLIT map_features.xml into a dozen sub-files, following Richard Fairhurst's suggestions on Jan 10, 2011. It's a fairly rough split and shows that the divisions between amenities, buildings, and shopping are a bit arbitray. Similarly, leisure, landuse, sport, natural and agriculture are all dumped into landuse.xml. Still, it's a start.