Commit Graph

2590 Commits

Author SHA1 Message Date
Bryan Housel e3e2ea602a Checkmark fields now support custom string options
oneway fields now show "Assumed to be No" or "Assumed to be Yes" instead of "Unknown" #2220
2014-05-22 13:51:23 -04:00
Bryan Housel b8501bcf89 iD.Way.isOneWay should return false if oneway=no #2220
i.e. overrides implied oneway tag like `highway=motorway` or `junction=roundabout`
2014-05-20 00:14:23 -04:00
Bryan Housel a757142146 Rename "Entrance" as "Entrance/Exit" and add parking_entrance preset. 2014-05-19 15:39:16 -04:00
Bryan Housel 545183c721 Remove foot: yes placeholder for cycleway and bridleway #2221 2014-05-19 12:56:43 -04:00
Bryan Housel 429f20a450 Improve access tag placeholders #2221 2014-05-19 12:22:52 -04:00
John Firebaugh 173d379316 Merge branch 'bhousel-bhousel-fields' 2014-05-18 12:39:24 -07:00
John Firebaugh f9520362c9 Use match rather than split 2014-05-18 12:39:15 -07:00
Bryan Housel 22c71bffca Update regexp, and remove trim from old key.. 2014-05-16 16:31:34 -04:00
Bryan Housel 846d637aa7 Trim tag keys, and prevent duplicate tag keys (#2043) 2014-05-16 12:37:02 -04:00
John Firebaugh cb1972d76f Make field reference more flexible
Will need to support {"rtype": "restriction"} for turn
restriction field.
2014-05-14 17:22:24 -07:00
Martin Raifer 4261fefc6e Fix inline tag help for fields that handle multiple tags
Some preset fields like the access-restriction field manage
multiple tags at once (access=*, foot=*, bicycle=*, …). Then
iD wasn't able to show inline help when clicking the ⓘ button.

This introduces a new parameter for these kind of fields:
`referenceKey` determines the tag key which should be used to
search taginfo documentation for.

Fixes #2222.
2014-05-11 21:02:25 +02:00
Bryan Housel 749d145f50 Access field should allow "yes" placeholders to be overridden (#2213) 2014-05-03 10:34:09 -04:00
Bryan Housel 004be4bb9a Access field should allow "yes" placeholders to be overridden (#2213) 2014-05-02 15:30:00 -04:00
Bryan Housel 14efaee004 Remove "designated" from the general access case (#2213) 2014-05-02 14:46:07 -04:00
Bryan Housel 21882299c7 Move building tag class before everything
(so railway=station tagged building looks like a building)
2014-05-01 10:38:52 -04:00
Bryan Housel f3ee2664a1 Render embarkment/cutting with dashed casing 2014-04-30 14:01:46 -04:00
Bryan Housel c289f33e86 Order building before other tag classes, so buildings always show as red 2014-04-30 00:01:56 -04:00
John Firebaugh afce1c9840 Merge pull request #2194 from bhousel/bhousel-operations
Improvements to circularize action
2014-04-23 19:11:40 -07:00
Bryan Housel d245121b19 Fix isConvex() to correctly test the angle that closes the way. 2014-04-23 14:12:20 -04:00
Bryan Housel 33782a3958 Require 2 uniq points for circularize. Handle 2 point case, where D3 centroid() fails. 2014-04-21 23:29:25 -04:00
John Firebaugh 95edc5ff03 Fix up defaultcheck field type
It now works as determinate checkbox, where a checked
state produces *=yes and an unchecked state produces no
tag.
2014-04-15 16:33:43 -07:00
John Firebaugh 7b958cc1eb Fix custom template prompt showing "undefined" 2014-04-15 15:55:52 -07:00
John Firebaugh 273b5e2f63 Fix fill colors 2014-04-15 15:41:57 -07:00
John Firebaugh 1fb69f4865 Merge branch 'refs/heads/military-feature-fill' 2014-04-15 10:47:39 -07:00
John Firebaugh 27a948084e Get military fill to show up in Firefox 2014-04-15 10:47:31 -07:00
Bryan Housel 210e7889a1 Factor makeConvex into new method, fix missing comma and style issues.. 2014-04-14 23:54:03 -04:00
Bryan Housel 52f631f4a0 Coax concave ways to convex before circularizing.. 2014-04-10 15:26:31 -04:00
Bryan Housel a928d4894d Add isConvex() to iD.Way.. 2014-04-10 11:00:13 -04:00
Bryan Housel 236e8413ec Add 2D cross product to iD.geo.. 2014-04-10 01:39:30 -04:00
John Firebaugh daa1980aac 1.3.9 2014-04-09 15:02:35 -04:00
Bryan Housel 4c0c078045 When circularizing a way, try to add inBetweenNodes to shared ways too.. 2014-04-07 22:42:34 -04:00
John Firebaugh 1fee019d72 Remember last custom tile layer (fixes #2094) 2014-04-07 19:19:53 -04:00
Bryan Housel a3a125187d preserve disconnect for lines, improve disconnect for shared nodes in areas.. 2014-04-01 17:22:48 -04:00
Bryan Housel 48dedb15ed Prevent a closed way from disconnecting itself.. 2014-03-30 22:49:19 -04:00
John Firebaugh c9d256c9c7 1.3.8 2014-03-28 11:56:18 -07:00
Bryan Housel 1df54a700a Disable circularize and orthogonalize operations when way is <80% contained in the viewport 2014-03-27 22:47:34 -04:00
John Firebaugh d6fa8c1e26 Support quartile scheme for any imagery source (fixes #2112) 2014-03-21 17:43:54 -07:00
John Firebaugh b51e5366cc Zoom to GPX after adding (#2144) 2014-03-21 17:34:46 -07:00
John Firebaugh cefa1d96f1 Correctly update UI after choosing GPX file (#2144) 2014-03-21 17:34:34 -07:00
Bryan Housel 9fade58d85 add picnic area stuff: firepit, picnic_table, bbq 2014-03-19 17:33:28 -04:00
Bryan Housel ea58b6d89c add 35 as an option in the maxspeed dropdown.. 2014-03-19 15:26:33 -04:00
John Firebaugh 8e96752039 barrier=fence shouldn't be an area (fixes #2158) 2014-03-16 22:05:18 -07:00
John Firebaugh 33242db40c 1.3.7 2014-02-25 16:01:56 -08:00
AndrewHain c9709e9207 remove addr:housename from presets
The [values](http://taginfo.openstreetmap.org/keys/addr%3Ahousename#values) of this rarely needed tag, which is prominent in the address presets, now have a lot of numbers and descriptive words in many different languages. Removing the preset means that new editors won’t fill this key with information useless to the key but can still add it through All tags if needed.  A similar thing happened when Potlatch put the designation tag into presets. Goes towards #1427 and #2124.
2014-02-25 15:55:05 -08:00
John Firebaugh f6b7acf9ed Remove conditional that's always true
The base graph never has any ownProperty entities.
2014-02-25 10:03:48 -08:00
tyr efd3223e0c extend history loading fix to deletions
Deleted objects need to be kept in the base of the history stack, too.

This also improves the respective unit tests.
2014-02-22 14:09:17 +01:00
tyr fc0a15e6c4 fix duplicate objects after restoring data from localStorage
This makes sure that the originals of changed entities get merged
into the base of the stack after restoring the data from JSON.
This is necessary, because the stack will only have elements for
the current viewport after a restart and previously *modified*
objects will now be falsely detected as *created* ones.

Also removed some ineffective code.
2014-02-21 10:01:26 +01:00
John Firebaugh 69960d75bd Use https where supported
Refs #2129
2014-02-19 09:40:22 -08:00
John Firebaugh 327af5176b Fix jshint 2014-02-09 18:48:52 -08:00
John Firebaugh 173108ae46 Style adjustments 2014-02-09 18:45:31 -08:00