Commit Graph

349 Commits

Author SHA1 Message Date
Bryan Housel f6529cac39 Eliminate rounding causing jumpiness and loss of precision (closes #2849) 2015-12-01 11:39:26 -05:00
Rowan Hogan 9aa1ffa227 Adds increased zoom keyboard shortcuts. 2015-06-13 15:24:48 +10:00
Bryan Housel 00c0641f06 Make view extent include both local and remote versions of the change 2015-04-27 10:16:47 -04:00
Bryan Housel 2485d74d5b Use interpolated D3 zooming for zoomIn/zoomOut 2015-03-09 16:34:07 -04:00
Bryan Housel b4cd1d67d8 Adjust double click handler for new D3 zoom behavior
D3 v3.5+ has changed the zoom behavior to emit tweened zoom events
rather than a single zoom event with a dblclick source event.
2015-03-07 15:22:37 -05:00
Bryan Housel 98665fef91 Don't allow zoomTo on an entity with degenrate extent
(because sending the map to NaN/NaN/NaN is not cool)
2015-02-28 23:00:00 -05:00
Bryan Housel 861bd14903 map#trimmedExtentZoom
Like map#extentZoom, but uses trimmed viewport instead of full viewport
to avoid putting the extent under UI buttons and border elements.

This is because in conflict resolution the user will be extentZooming to see
their changes and it was annoying to have the change appear under the UI.

Also using this in zoomToGPXLayer.
2015-02-20 14:59:40 -05:00
samanpwbb d141827c3e Merge branch 'master' into conflict-resolution-ui 2015-02-06 19:08:50 -05:00
Bryan Housel ef2d6e75cf Add minzoom check to map.zoom() (closes #2499) 2015-01-13 23:09:19 -05:00
Bryan Housel ed4929273d Return entities from iD.Connection via callbacks
(instead of dispatching `load` event to merge them into `history`)

This is cleaner becuase now `context` doesn't need to keep an
`altGraph` state used only for Conflict Resolution.

The conflict resolution code calls the `iD.Connection` methods directly,
and other places in the code call `loadEntity` and `loadTiles` wrappers
that merge the entities into the main history.
2015-01-08 14:44:58 -05:00
Bryan Housel 93b505259f Mode change code in editOff no longer needed..
(because iD.modes.Select listens for drawn event and knows to exit itself)
2014-12-15 16:16:46 -05:00
Sajjad Anwar 17fb2f64e5 Configurable minimum editable zoom 2014-11-11 14:37:11 -08:00
Bryan Housel af3c307b17 cache invalidation and naming things 2014-11-10 22:47:07 -05:00
Bryan Housel c6ca68ce80 create feature _cache to store matches per entity
also remove old commented code
2014-11-08 00:19:36 -05:00
Bryan Housel 0d6d4b3d24 remove footer "features hidden" warning in editOff 2014-11-06 00:33:45 -05:00
Bryan Housel 2f6004fcfa performance tuning work-in-progress
* store entity's matched features in a graph transient
* replace fn calls to get commonly used _keys and _hidden arrays
* replace lodash calls with faster for loops (in some places)
* always pass graph/resolver as a param
2014-11-05 00:27:14 -05:00
Bryan Housel c941bd5a4b 2 things related to gatherStats auto-hiding..
* skip gatherStats on differenced redraws..
* force full redraw when gatherStats autohides/unhides features
  (before: extent redraws would happen, counts would update,
   but buildings/points would stay on the screen)
2014-10-31 11:58:02 -04:00
Bryan Housel 43f1cdd3eb decoupled graph from context for better testing
fixed feature matching tests for vertices and relations
2014-10-28 21:37:04 -04:00
Bryan Housel 8fd177935d Feature filtering (in progress)
(rebased to master post-Mapillary merge)
2014-10-28 21:37:00 -04:00
Bryan Housel 8f5f63d5e9 Eliminate floating point error in zoomIn/zoomOut
(closes #2394)
2014-10-13 22:49:50 -04:00
John Firebaugh 0b1ec49402 Rewrite as a separate layer 2014-09-19 14:51:44 -07:00
Peter Neubauer 29dde3f217 Implement Mapillary layer in iD
- adding a temp wikipedia icon from http://upload.wikimedia.org/wikipedia/commons/4/45/Right-facing-Arrow-icon.jpg

Making the click update and rotate an image marker on the map with comapss direction. Needs to be centered etc.

now properly enabling/disabling the different Mapillary layers upon activation/deactivation

Upgrade to faster Mapillary API

better arrow icon, refactoring to have all single-image operations in the image-layer

dist build

adding mapillary translation

adjusting image link

trying to adjust the image link for github deploy

better layout

removing font-awesome, not needed.

https for calls

consistent quotes

taking care of more translation, fix case of no images found on Mapillary

more english translations

- scoping image calls to selection.
- .inspector-wrap and .panewrap are hard to scope, since they are outside the selection, same for the #mapillary-inspector.

-scoping calls in sequences layer

adding translation

fixing jslint errors

more jshint errors

adding mapillary to tests

trying to lay out single markers, please help with the geo translation, @jfirebaugh

- adding the image layer to the active iD SVG instead of background
- add a new mode for selecting Mapillary images
- first stab of adding the image pane in the sidebar itself in order to contain the selections (needs to be layouted)

cleaning

trying to mark and keep selected image between mouseovers

refactoring to contain mapillary into the iamge mode

refactoring to contain mapillary into the iamge mode

adding to test html

cleaning up

handling unset selected image

cleanup

better sidebar

moving image into the lower right

Minor visual adjustment mapillaryImage

better no_image text and toggling of selected image

handling of text disappearing

intendation

fixing test errors

making sequences be below images

open Mapillary links in new tabs

better arrows and selectability on arrows as a workaround for real navigation in panos

more contrast for the selected image

adjusting image style

- adjusting style, removing sequence lines
- adding photos as a mode with shortcut 'm'

- fix test errors

moving switch back to right sidebar, keeping keyboard shortcut.

cleanup

file rename to avoid GIT mess with casing.

- better scoping
- removed unused hover function

- making the checkbox follow mode changes

removing unused icon

handling automatic mode exit
2014-09-11 14:14:57 -07:00
Bryan Housel a9d58fdf74 reenter browse mode in editOff when zoom < 16 (#2263) 2014-06-27 17:55:13 -04:00
Bryan Housel 2c69f7e823 Replace magic numbers in trimmedExtent with variables.. 2014-06-18 11:50:50 -04:00
Bryan Housel b07cf7c1c1 Always draw midpoint handles within viewport (like #1840) 2014-06-14 01:33:20 -04:00
John Firebaugh 0a83545a76 Simplify and fix midpoint drawing logic (fixes #2136) 2014-05-28 16:48:01 -07:00
Vladimir Agafonkin fc92f34eab dry up code for CSS transforms 2014-01-08 19:55:27 +02:00
John Firebaugh 3f67b1e513 Adjust fix for #2040 2013-12-10 10:17:25 -05:00
Adam Solove 4294ed4561 Fix midpoint missing after undoing split. (#2040) 2013-12-09 20:49:54 -05:00
Vladimir Agafonkin d2df161575 Fix trembling on zoom in
As you zoom in, the rounding error in translate was multiplied by scale
because it was applied post-translate (which was rounded). This seems
to fix the issue.
2013-11-26 12:51:23 -08:00
Vladimir Agafonkin da3bf77c35 fix pan/zoom lags in Chrome before/after move
Previously, the surface switched between HW-accelerated and
non-accelerated state due to resetting transform property to ‘’ (while
translate3d triggers HW), which caused lags in Chrone
2013-11-26 11:21:09 -08:00
John Firebaugh e382943f0d Use .low-zoom class rather than hard-coding z16 2013-11-01 11:17:49 -07:00
John Firebaugh 1e78ee5c87 Stricter jshint 2013-10-24 16:08:48 -07:00
John Firebaugh 8323c948a7 jshint fixes 2013-10-24 15:33:52 -07:00
John Firebaugh f9eaed7fb9 Add clipping back 2013-10-21 16:04:59 -07:00
John Firebaugh bd1fac9c48 Fix test failure 2013-10-21 16:04:59 -07:00
John Firebaugh 382bd2abd8 Use actual projection 2013-10-21 16:04:59 -07:00
John Firebaugh 22e453eae5 Use d3.geo.mercator.raw
This bypasses a number of features of D3's default projection
stream pipeline that are unnecessary:

* Antimeridian clipping
* Spherical rotation
* Resampling

This also disables viewport clipping of lines -- I'll add it
back in a separate step.
2013-10-21 16:04:59 -07:00
John Firebaugh 6a3d62e57c Fix tests 2013-08-28 11:01:16 -07:00
John Firebaugh 8a215cac81 Add "Continue" operation 2013-08-28 09:30:28 -07:00
John Firebaugh f3c6f3eca4 Optimize use of iD.svg.Points.points 2013-08-26 15:54:58 -07:00
John Firebaugh 010c8c7d7d Reset fastMouse after changing dimensions
Fixes #1678
2013-08-12 13:09:53 -07:00
John Firebaugh 734d53e08b Refactor background in preparation for multiple overlays 2013-07-15 14:05:11 -07:00
John Firebaugh bba761d8ea size -> dimensions
D3 3.2 adds selection.size, where size means "number
of selected elements".
2013-06-20 13:05:20 -07:00
John Firebaugh 0689ab7f71 Restore differenced point rendering (#569, #1604) 2013-06-18 16:23:02 -07:00
John Firebaugh e6cc20efb5 Faster Feature List (fixes #1604) 2013-06-18 15:19:04 -07:00
John Firebaugh d03402c6df Fix feature list 2013-06-17 16:15:13 -07:00
John Firebaugh 9190a25220 Show only visible features in list 2013-06-17 15:44:14 -07:00
John Firebaugh d79b618947 Optimize feature list 2013-06-05 10:20:00 -07:00
John Firebaugh 1d7e168763 Don't need a separate 'select' event 2013-06-03 16:49:01 -07:00