Commit Graph

111 Commits

Author SHA1 Message Date
Bryan Housel d53637618e Draw selected marker big, fix draw ordering issues, fix close button 2017-11-09 11:27:36 -05:00
Bryan Housel 9dac13a915 Show only linestrings at low zooms 2017-11-08 16:46:53 -05:00
Bryan Housel 0702c66834 Improve sign hover/selected, fix Mapillary viewer setup for signs layer 2017-11-08 15:30:45 -05:00
Bryan Housel 4571fd0563 Highlight selected/hovered streetview tracks, fade unselected
Also some code cleanups and nitpicky variable renames
More consistency in Mapillary/OpenStreetCam services
2017-11-08 00:35:44 -05:00
Bryan Housel fb063aa2c5 Render panoramic Mapillary viewfields as a sphere instead of arc
(closes #3154)
2017-11-07 01:04:11 -05:00
Bryan Housel 095dc19164 Add sequence linestrings to mapillary photo layer too 2017-11-06 21:32:03 -05:00
Bryan Housel e439ea406a Cache sequence info, draw sequence linestrings 2017-11-06 15:48:44 -05:00
Bryan Housel eefbb68dda Add viewer controls.. Rotation works and will cache val per sequence 2017-11-06 10:41:17 -05:00
Bryan Housel 51fa9280a4 Add attribution line for openstreetcam 2017-11-03 21:20:14 -04:00
Bryan Housel 6dd71ebf91 Fix loading of images from OpenStreetCam API, add viewer
\o/
2017-11-03 16:48:18 -04:00
Bryan Housel 00b30e29f0 WIP: Add OpenStreetCam support
todo: Need to figure out API issue with bbox, then imageviewer
2017-11-02 22:04:47 -04:00
Bryan Housel 4d1c6796c2 Don't leave space for an area icon, if preset doesn't have an icon
(closes #4479)
2017-10-31 22:22:40 -04:00
Nikita Mashukov d0cca4bc5b spaces instead tabs 2017-10-14 18:42:37 +07:00
Nikita Mashukov a00debe663 push gpx src (file name or url) to imagery_used 2017-10-14 18:37:49 +07:00
Bryan Housel 9edae82673 Convert lodah-es and d3 to named imports for svg 2017-09-25 23:16:24 -04:00
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