Commit Graph

96 Commits

Author SHA1 Message Date
Bryan Housel
5a8709bc67 Treat osm layer like other vector layers and give it a toggle
(closes #2904)
2017-09-18 22:03:34 -04:00
Bryan Housel
b21c2933af Faster layer disable/enable transitions 2017-09-18 22:02:16 -04:00
Bryan Housel
494e247ad1 Render intermittent features with dashed lines 2017-09-11 14:14:30 -04:00
Kushan Joshi
909b72a39e cleaning up 2017-08-24 17:03:04 +05:30
Bryan Housel
af10c60e7c Distinguish between default and special service roads
Special service roads include things like
service=parking_aisle, drive-through, alley, etc
(closes #4157)
2017-07-21 12:46:11 -04:00
Bryan Housel
e71381ed45 Adjust street sign image dimensions to try to make them less blurry
(still kinda blurry but closes #4145 anyway)
2017-07-14 00:45:20 -04:00
Bryan Housel
30a12fb1be Cache images->detections, show multiple detections per image 2017-07-13 23:47:44 -04:00
Bryan Housel
5ca4246a6d If drawing a way, don't hover on a node that was just placed
(closes #3974)
2017-04-26 13:33:21 -04:00
Bryan Housel
8520e06c5a Performance: only draw midpoints in select mode 2017-04-26 10:27:38 -04:00
Bryan Housel
3d762b58f6 Add an ellipse to resolve point ambiguity when dragging
(closes #3536)
2017-04-26 02:08:54 -04:00
Bryan Housel
26ae84f8e5 Render old-style multipolygons slightly differently
(for #3908)
2017-04-20 23:34:00 -04:00
Bryan Housel
0228f934b3 Put back the selected class when redrawing selected lines 2017-03-21 14:19:57 -04:00
Bryan Housel
85ed3cc2d3 Cleanup line drawing code with selected sort 2017-03-21 12:42:46 -04:00
Bryan Housel
4903d495b7 Draw selected items last, so halos are more visible
(see #2914)
2017-03-21 02:17:04 -04:00
Bryan Housel
c72dc2427e Make the oneway markers slightly more opaque
(closes #3060)
2017-03-03 21:41:27 -05:00
Bryan Housel
ee26472496 Remove unused variable - eslint warning 2017-02-28 15:03:33 -05:00
Bryan Housel
9ce06549e1 Add new poi icons, make them work on point, vertex, area label
(closes #3856)
2017-02-26 23:28:29 -05:00
Bryan Housel
20b79940ae Disable no-fallthrough eslint warning around this switch block 2017-02-06 14:13:04 -05:00
Martin Raifer
d7ad3bc39e improve autozooming on non-gpx background data layers
old implementation only worked for points and linestrings, but geojson and kml can contain any geometry.

aso, d3 is a bit special[1] when working with geojson polygons: it does require clockwise winding, but typical geojson is either counterclockwise winding (RFC7946) or "winding doesn't matter" (old geojson.org spec). When inputing such geojson (or kml) input, iD would zoom out all the way, which is not the intended behavior.

[1] https://github.com/d3/d3-geo#d3-geo
2017-02-06 18:04:20 +01:00
Martin Raifer
ff4bf2597d fix regression in background layer loading from URL
fixes #3820
2017-02-06 15:08:13 +01:00
Bryan Housel
65d49c87bb Accept geojson files with .json extension 2017-02-01 23:08:36 -05:00
Mert Emin Kalender
7b17145775 Add support for kml and geojson 2017-01-31 21:38:59 -08:00
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