Commit Graph

258 Commits

Author SHA1 Message Date
Bryan Housel dfe8fd1e90 features performance enhancements
1. reusue entity.geometry where possible
2. cache entity parents
2014-11-18 22:05:08 -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 094db692ea Don't include hidden vertices in drawHover 2014-10-28 21:37:03 -04:00
Bryan Housel da32150c4a Revert some of 2832041 because of Firefox pattern fill issues
Looks like styling the element is the only way to achieve this after all..
2014-10-28 21:37:02 -04:00
Bryan Housel 7d5189f3b0 Area filling options: wireframe, partial, full..
* implemented as css classes on surface element
* patterned fills can be done with css too.. removed the
  code from areas.js to set patterned fill on each element)
* dummy test code in `map_data.js` uses 'w' key to toggle..
2014-10-28 21:37:01 -04:00
Bryan Housel 8fd177935d Feature filtering (in progress)
(rebased to master post-Mapillary merge)
2014-10-28 21:37:00 -04:00
John Firebaugh 0b1ec49402 Rewrite as a separate layer 2014-09-19 14:51:44 -07:00
samanpwbb e721e93a31 cleanup mapillary UI 2014-09-16 13:49:13 -04:00
Tom MacWright 88bb6967d9 Style and usability simplifications 2014-09-11 14:14:57 -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
John Firebaugh b4fa085663 Do not fully fill certain landuse values, e.g. landuse=residential
residential, retail, commercial and industrial landuse tags
typically cover large, dense areas with many overlapping
features. The large click targets of filled areas have proven
to be very good for usability in the general case, but are
a common source of accidental mistagging in this case.

We may add additional tags to this list, but these are the
obvious first step — especially landuse=residential.

Fixes #542.
2014-07-29 10:34:27 -07:00
Bryan Housel e23448c25e Class midpoints to match parent way and adjust styles.
After editing more with 1.5.3, I really dislike the more visible
midpoints I added in afa1efd.  This commit gives the midpoints
tag classes so that we can style only *certain* midpoints more visible
(footpath, cycleway, bridleway, etc) and leave all the others dim.
2014-07-28 23:11:52 -04:00
Bryan Housel afa1efd922 Adjust midpoint opacity for more visibility (#1448)
(esp. on sidewalks, footpaths, bridlepaths, etc)
2014-07-16 23:45:33 -04:00
Bryan Housel 26f8849c3a render triangular midpoints to show direction of way #1085 2014-07-16 00:30:21 -04:00
Bryan Housel b289c4d345 Set vertex attributes on update selection not enter (re: 01ca07f) 2014-06-26 16:47:58 -04:00
Bryan Housel 01ca07ff0c Compute vertex icons at all zooms (fixes #2249)
(before they got created without an icon if they enter() at zoom 16)
2014-06-25 16:40:50 -04:00
Bryan Housel 1c61b4b0f2 reset loc btw loop iterations (because hoisting) 2014-06-16 11:11:50 -04:00
Bryan Housel b07cf7c1c1 Always draw midpoint handles within viewport (like #1840) 2014-06-14 01:33:20 -04:00
Bryan Housel 7f35ab6125 separate svg group for areas and their related strokes/fills
(for consistency)
2014-06-11 13:01:27 -04:00
Bryan Housel 97b189b397 Precreate fixed number of layergroups between -10, 10 2014-06-09 21:20:50 -04:00
Bryan Housel 849363ff8c Group by layer to correctly depth sort lines.. 2014-06-06 16:10:37 -04:00
Bryan Housel cfd2b6a619 Group line parts so that they can be properly depth sorted. 2014-06-02 17:39:51 -04:00
Bryan Housel 5ee391dd52 Better layer sorting to fix z-depth issues.. 2014-05-30 15:20:36 -04:00
John Firebaugh 0a83545a76 Simplify and fix midpoint drawing logic (fixes #2136) 2014-05-28 16:48:01 -07:00
John Firebaugh b77f9f3a78 Fix turn icon clipping 2014-05-21 15:08:38 -07:00
John Firebaugh ffee92cbd6 Fix U-turn icon 2014-05-21 15:05:41 -07:00
John Firebaugh 8b6ce214a2 Initial support for only_* restrictions 2014-05-19 15:53:46 -07:00
John Firebaugh 3ac705b67e Fix flicker 2014-05-18 16:36:23 -07:00
John Firebaugh 573237e94e Render U-turns 2014-05-18 16:02:48 -07:00
John Firebaugh d4d80b2d6e Use turn restriction icons 2014-05-18 16:02:48 -07:00
John Firebaugh 3d210ac3c1 Implement basic restriction toggling 2014-05-18 16:02:47 -07:00
John Firebaugh 26422d9c9a Show ways in restriction editor as if they were split 2014-05-18 16:02:47 -07:00
John Firebaugh f39ae89177 Render turns of selected way 2014-05-18 16:02:47 -07:00
John Firebaugh be0126aba6 Extract iD.svg.Defs from Surface
Need to have a single defs for the entire document but
multiple Surfaces.
2014-05-18 16:02:46 -07:00
Bryan Housel 21882299c7 Move building tag class before everything
(so railway=station tagged building looks like a building)
2014-05-01 10:38:52 -04:00
Bryan Housel f3ee2664a1 Render embarkment/cutting with dashed casing 2014-04-30 14:01:46 -04:00
Bryan Housel c289f33e86 Order building before other tag classes, so buildings always show as red 2014-04-30 00:01:56 -04:00
John Firebaugh 27a948084e Get military fill to show up in Firefox 2014-04-15 10:47:31 -07:00
John Firebaugh ab8a4ffd7b Update GitHub links 2014-01-08 16:14:28 -08:00
John Firebaugh 3f67b1e513 Adjust fix for #2040 2013-12-10 10:17:25 -05:00
John Firebaugh 40519b98dd Prioritize boundary tag to minimize area fills (fixes #1920) 2013-10-25 15:37:53 -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 f1deed2712 Fix area sorting corner case (fixes #1903) 2013-10-18 10:28:01 -04:00
John Firebaugh 9557d8f130 Cache path 2013-10-17 10:19:56 -04:00
John Firebaugh 98b10a4f6b Exonerate Firefox 2013-10-15 15:42:15 -04:00
John Firebaugh 411db160fe Prefer to render highway=* styles over railway=*
Fixes #1880
2013-10-09 14:02:55 -07:00
tyr e8d637f2bb Add iD.geo.sphericalDistance
iD.geo.euclideanDistance should only be used for calculations of 
projected coordinates or display (pixel) coordinates.

iD.geo.sphericalDistance calculates approximate geographical 
distances, accounting for distortions at higher latitudes. This 
can be used for determining the nearest node (operations.Delete,
actions.Circularize) or relative length comparisons (actions.Split).
2013-09-29 07:45:04 -07:00
Tom MacWright 7ff9bf4a8f Cleanup style and null check 2013-09-17 10:46:49 -04:00
hhclaw.eb@gmail.com ab6c6411bd Unicode fix for label 2013-09-06 20:15:01 +08:00