Commit Graph

74 Commits

Author SHA1 Message Date
Bryan Housel
0440054cd9 Child and sibling vertices should be eligible for drag_node
(closes #3799, see also #3801)
2017-01-27 13:02:27 -05:00
Bryan Housel
8ecff8b8bc Add osmNode#isConnected
This is used to draw vertices
* where multiple parent ways meet
* where a single way self intersects (but not the closing node of a loop)

We were using Graph#isShared or osmNode#isIntersection, but this is slightly
different to handle self-intersecting ways.
2017-01-23 23:44:04 -05:00
Bryan Housel
e4f11f137d Slightly increase the size of unconnected endpoints
(closes #3775)
2017-01-23 22:18:03 -05:00
Bryan Housel
04e0a9f9b0 Add endpoint class for endpoint vertices 2017-01-23 21:56:37 -05:00
Bryan Housel
e9edfe0cd5 Always render vertices at endpoints
(see #3775)
2017-01-23 21:10:50 -05:00
Bryan Housel
d5805dc3cd import textDirection instead of caching first time rtl detection 2017-01-19 19:08:44 +05:30
Bryan Housel
afb51ab4bd Add halo for area icons
(closes #3762)
2017-01-15 01:10:28 +05:30
Bryan Housel
04b9c08bff Adjust maki sizes and fill opacity
New icons are solid fill and take up a bit more of the icon space, so need to
be scaled differntly.
2017-01-14 23:06:23 +05:30
Bryan Housel
9b922899a6 Restore maki icons on vertices and areas 2017-01-14 22:08:47 +05:30
Ajith Ranka
3379d5d9ba Fix isMaki, reset sizes, remove unnecessary checks 2017-01-13 15:04:58 +05:30
Bryan Housel
d63c766e69 Split into utilDisplayName / utilDisplayNameForPath
This is because utilDisplayName gets called a bunch of places and we
only want to add the Arabic reversal code for textpath labels
2017-01-03 20:58:56 -05:00
Bryan Housel
0c9fb7c407 Improve military presets
(closes #3663)

* Add Nuclear Explosion Site and Military Office presets
* Add Bunker Type field
* Improve styling rules for preset icons
* Improve search terms for all military presets
* Nest military presets under `landuse=military`
* Add ref, iata, icao fields to Military Airfield
* Don't set area pattern fills on buildings
2016-12-27 01:19:13 -05:00
Bryan Housel
0e2cd589d4 Add styling for natural=bare_rock, natural=sand 2016-12-26 16:00:02 -05:00
Bryan Housel
650e77e9ac Update togeojson import 2016-12-16 16:21:03 -05:00
Bryan Housel
a55ab036aa Don't assume that all the ids in selectedIDs are valid
(This is becuse they might have been deleted in a delete operation
and we are immediately redrawing the results of that operation before
reselecting something else)
2016-12-09 11:46:22 -05:00
Bryan Housel
1912251251 Add labels for vertices
(closes #2709)
2016-12-07 16:58:27 -05:00
Bryan Housel
6b18ea76ff Hide labels along selected ways, or near selected vertices
(closes #3636)
2016-12-07 15:38:14 -05:00
Bryan Housel
941d026b7c Adjust max Mapillary pages fetched per zoom, min viewfield zoom
For performance around densely mapped areas like SF
2016-11-17 12:07:14 -05:00
Bryan Housel
93d50b4e87 Use live bound object for imagery array, remove context.imagery() accessor
Also update documentation, closes #3359
2016-11-14 11:16:45 -05:00
Bryan Housel
8cd2d7097c Add preset for camp_site=camp_pitch for individual pitches 2016-10-31 17:08:01 -04:00
Bryan Housel
9ee790c1cc Don't need to pass dimensions to sublayers.. use projection.clipExtent
(the dimensions call to layers is to set width/height on svg surface element)
2016-10-30 22:40:11 -04:00
Bryan Housel
8b6e5db004 Fix turn restrictions editor enter/update selection issues 2016-10-30 00:01:05 -04:00
Bryan Housel
fbe9cf3afd Clip polygons and clippaths to padded viewport
(closes #3529)
2016-10-29 21:50:30 -04:00
Bryan Housel
46b6086dcf Update projection arg for d3.geoPath(), deprecate d3.geoClipExtent() 2016-10-29 15:27:06 -04:00
Bryan Housel
7c5a4df64d Hide Mapillary viewfields at low zoom 2016-10-29 13:28:17 -04:00
Bryan Housel
cf11c95354 Fix Mapillary sign placement on Chrome, Safari 10 2016-10-29 00:59:51 -04:00
Bryan Housel
5c5e90c411 Upgrades for mapillary 2.0.0 2016-10-28 14:23:21 -04:00
Bryan Housel
efd9e6df4b Memoize and avoid extra calls to utilDetect() 2016-10-18 21:48:39 -04:00
Bryan Housel
bf857c419a Center label baseline hack for IE11, Edge
(closes #3020)
2016-10-18 21:28:20 -04:00
Bryan Housel
0036a3b308 Assign label priority by tag key and value (e.g. for highways) 2016-10-18 15:46:24 -04:00
Bryan Housel
9d98aae955 Insert small boxes along text path into collision tree
(closes #1645)
2016-10-18 15:12:09 -04:00
Bryan Housel
0d0b9b0d9b Use geoEuclideanDistance for simpler code 2016-10-18 00:56:18 -04:00
Bryan Housel
24e83189b8 Use bulk loading for rtree inserts, preparation for collision rectangle labels 2016-10-17 23:56:42 -04:00
Bryan Housel
0c35b8f9ab Fix bug in partial label redraw, tighten margins around line labels 2016-10-17 21:28:37 -04:00
Bryan Housel
1da02e57e2 Fix min/max collision box in getPointLabel, remove debug=true 2016-10-17 17:08:40 -04:00
Bryan Housel
f4e7cb6727 Add debugging for both drawn and skipped label collision trees 2016-10-17 16:27:47 -04:00
Bryan Housel
adb1fdd940 Add area labels and icons both to collision tree 2016-10-17 15:40:09 -04:00
Bryan Housel
f3505c2f3d All labels should use baseline middle, fix math, bboxes for area labels 2016-10-17 14:52:23 -04:00
Bryan Housel
4381bd11ac Simplify code for determining label font size (eliminate style inspection) 2016-10-17 13:57:15 -04:00
Bryan Housel
ae96d3942c Support RTL for point labels, fix math 2016-10-17 12:50:56 -04:00
Bryan Housel
e7f20a379e Fix label autohiding
(closes #3464)
2016-10-17 11:55:56 -04:00
Bryan Housel
8f044dd05e Minor code fiddling, preparing to address line labeling issues today 2016-10-17 10:36:06 -04:00
Bryan Housel
053074d076 Export live binding for services in iD.services, fix init/reset
(closes #3324)

Previously we allowed devs to swap out services that they didn't need.
This became difficult now that ES6 exports are immutable bindings.
But we can wrap the immutable bindings themselves in a live object,
to get back the flexibility that we used to have.

This change also drops the `taginfo` accessor on Context, since devs who want
to swap out taginfo service with something else can now do so through the live
binding.  `iD.services.taginfo = myTaginfo()`
2016-10-14 10:38:09 -04:00
Bryan Housel
f50e80d0b5 Refactor Intersection, Multipolygon from geo to osm 2016-10-11 23:09:27 -04:00
Bryan Housel
07fa5fcc34 Refactor Entity, Node, Relation, Tags, Way from core to osm 2016-10-11 22:41:24 -04:00
Bryan Housel
0d0e54fdff Fix more namespaces that were missed in the first pass 2016-10-04 21:15:30 -04:00
Bryan Housel
3102a4ae6a Rename all the things to include pseudonamespaces 2016-10-04 19:06:20 -04:00
Bryan Housel
6d2e999885 Fix enter/update selections for textpaths and text labels 2016-09-26 23:25:59 -04:00
Bryan Housel
545cd4a44d Fix oneways 2016-09-23 12:00:21 -04:00
Bryan Housel
c5a8bcc3a6 More fixes to fields 2016-09-18 12:57:23 -04:00