Commit Graph

3644 Commits

Author SHA1 Message Date
Bryan Housel
78d2d86ff7 Add context.asset for building asset filenames, use it for traffico
We were using assetMap/assetPath but only for images, and it was broken anyway
(fixes #3011)
2016-03-02 23:06:33 -05:00
Bryan Housel
f561ab3151 1.9.0 2016-03-01 17:08:47 -05:00
Bryan Housel
e7dfe3949e Fix classes of map data lists and items
(gpx layer was erroneously classed `layer-gpx` and getting `pointer-events:none`)
2016-03-01 13:06:30 -05:00
Bryan Housel
a912808d81 Fix issue with choosing gpx file 2016-03-01 13:05:52 -05:00
Bryan Housel
c79c65fb39 Reinsert parentRelations of modified parentWays
(closes #3008)
2016-02-29 23:09:24 -05:00
John Firebaugh
a85361545d Preserve connectivity when pasting
Fixes #2584
2016-02-29 12:09:14 -05:00
Bryan Housel
4a93977f43 Merge pull request #3001 from openstreetmap/data-layer-refactor2
Data layer refactor
2016-02-27 23:10:06 -05:00
Bryan Housel
a866856ec2 Cleanup turn restriction handlers when form not visible 2016-02-26 00:14:09 -05:00
Bryan Housel
34901d11b9 Remove radial menu at old position when resetting surface transform 2016-02-25 21:42:49 -05:00
Bryan Housel
a40a6fae2a Avoid sneaky subselection data inheritance 2016-02-25 16:54:52 -05:00
Bryan Housel
69bc50aafb Move data layers out of Background 2016-02-24 22:38:03 -05:00
Bryan Housel
45e4e730a8 iD.svg.Surface -> iD.svg.Layers 2016-02-24 15:41:22 -05:00
Bryan Housel
c595fdbf57 Avoid calling getComputedStyle and triggering reflows 2016-02-24 12:04:44 -05:00
Bryan Housel
caf5ff815c Move svg into iD.svg.Surface, adjust layer names 2016-02-24 00:07:04 -05:00
Bryan Housel
ef5a47dbb2 Reset dimensions when resizing 2016-02-24 00:02:59 -05:00
Bryan Housel
9233167f52 Allow d3.dimensions to accept null to reset to current bounding rect 2016-02-23 23:58:40 -05:00
Bryan Housel
1f337aa960 Move more data layers from Background into Surface 2016-02-23 16:15:26 -05:00
Bryan Housel
a5d8e1b0cb Move gpx layer from background to surface 2016-02-22 23:31:43 -05:00
Bryan Housel
f37a809001 Make point draw function more consistent with other draw functions 2016-02-22 16:52:49 -05:00
Bryan Housel
6c1df37298 Move GPX, Mapillary Images, Mapillary Signs into svg namespace 2016-02-18 17:11:57 -05:00
Bryan Housel
c2760470b8 Merge pull request #2988 from kepta/2972
Adding ▶/▼ to category presets to make it clearer
2016-02-18 16:12:32 -05:00
Bryan Housel
0a238dbfcc Load traffico stylesheet dynamically 2016-02-17 12:03:51 -05:00
Bryan Housel
dd9e399971 Merge pull request #2984 from openstreetmap/phantomjs-2
Test with phantomjs 2.1 and mocha-phantomjs-core
2016-02-16 22:35:22 -05:00
Bryan Housel
a908c6722b Merge pull request #2720 from openstreetmap/mapillary-streetsigns2
Mapillary street signs
2016-02-16 16:52:30 -05:00
Bryan Housel
7d0d7e0309 Avoid passing context to mapillary service 2016-02-16 15:54:14 -05:00
Bryan Housel
5957adb67d Dynamically check for existence of Mapillary service
This allows us to
1. enable specific parts of Mapillary only for certain browsers
2. remove the Mapillary service completely if desired (closes #2722)

To remove Mapillary, just set `iD.services.mapillary = null`
or remove the <script> tag that loads mapillary.js.
2016-02-15 16:16:44 -05:00
Bryan Housel
ff5139fc58 Position Mapillary thumbnail on opposite side of map from marker
(closes #2775)
2016-02-14 00:23:18 -05:00
Bryan Housel
272924140c Partition viewport into regions and cull visible mapillary data
This is awesome because it allows mappers to see a subset of the data
at low zoom, but they get more of it as they zoom in.
2016-02-13 13:31:01 -05:00
Kushan Joshi
d1f9c88f04 Adding ▶/▼ to category presets to make it more clear
(closes #2972)
2016-02-13 17:19:42 +05:30
Bryan Housel
3b0347eebc Persist dimensions in property to avoid reflow 2016-02-12 17:12:03 -05:00
Bryan Housel
9a1b7628ba Bump rbush to 1.4.2 2016-02-11 21:23:52 -05:00
Bryan Housel
ab6a81e344 Move rtrees to Mapillary service, DRY code, set minZoom to 12 2016-02-11 14:09:18 -05:00
Bryan Housel
6b1fe52d0d Map centerEase to selected marker 2016-02-10 22:41:18 -05:00
Bryan Housel
e5fc872a19 Adjust Mapillary styles for cross browser support 2016-02-10 17:12:51 -05:00
Bryan Housel
0210d69177 Use getBoundingClientRect for dimensions instead of offsetHeight/offsetWidth
`offsetHeight`/`offsetWidth` does not work for SVG Elements except in Chrome
and this support is being removed from Chrome soon:

>'SVGElement.offsetWidth' is deprecated and will be removed in M50, around
April 2016. See https://www.chromestatus.com/features/5724912467574784 for
more details.
2016-02-10 17:08:11 -05:00
Bryan Housel
221bf225f1 Reset supersurface transform for Mapillary streetsigns layer
For some reason the foreignObject nodes are not correctly positioned
unless this transform is set to a value.
2016-02-10 01:06:14 -05:00
Bryan Housel
bed73a78e3 Fetch all paginated Mapillary results, cleanup thumbnail selection 2016-02-10 01:05:36 -05:00
Bryan Housel
3facc28928 Improve layer transitions, debounce redraws, other goodness 2016-02-09 17:19:06 -05:00
Bryan Housel
9777906711 Cleanup MapillarySignLayer, Mapillary service 2016-02-09 11:57:39 -05:00
Bryan Housel
a62f41b611 Cleanup MapillaryImageryLayer, Mapillary service 2016-02-08 23:46:26 -05:00
John Firebaugh
ac3dfb95a3 Prevent AddPoint tests from making network requests 2016-02-08 19:02:37 -08:00
Bryan Housel
c50a290cd1 Add iD.geo.Extent#rectangle 2016-02-08 17:15:30 -05:00
Bryan Housel
caf464e3d3 Fetch mapillary data in tiles and cache 2016-02-08 17:14:46 -05:00
Bryan Housel
f173441fe3 WIP: Mapillary service 2016-02-08 15:46:37 -05:00
Bryan Housel
524c093f68 Move traffico to asset path, reorganize id.js init after context definition 2016-02-08 14:15:05 -05:00
Bryan Housel
a083ae3001 Call service reset functions from iD.flush()
Also fix misspelling nominatum -> nominatim
2016-02-08 12:02:57 -05:00
Bryan Housel
3e65156754 Refactor services 2016-02-08 10:31:34 -05:00
Bryan Housel
a9389b6773 update to traffico-release-0.1.26 2016-02-07 23:41:51 -05:00
John Firebaugh
8a3314e5d3 Disallow disconnecting that would damage relations
Fixes #1714
2016-02-07 20:27:39 -08:00
Bryan Housel
077aa65a29 remove RoundedProjection 2016-02-07 21:32:14 -05:00