Commit Graph

216 Commits

Author SHA1 Message Date
Bryan Housel
30dde37e02 fix partial fill mode - pointer events visible stroke only
also, fix wireframe mode - pedestrian style
2014-11-06 23:47:54 -05:00
Bryan Housel
ace44d2e7d fix highway-pedestrian line width to work in wireframe 2014-11-06 00:22:19 -05: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
51cadd5b82 initial wireframe style (key 'w')
(also fix gpx layer, now on top of data, to not steal pointer events)
2014-10-28 21:37:01 -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
Bryan Housel
bf4659e98f more consistency in presets..
* in general, display fields:
    operator, address, building_area, hours (where this makes sense)
* make kindergarten, school, college, university more similar
* show building_area for most craft=* and shop=*
* remove erroneous `tinsmith` file
* update README
* structure json files like:
    icon, fields, geometry, terms, tags, name
    (most json files were this way already)
2014-08-25 13:44:49 -04:00
Bryan Housel
9a2f30d62a change residential, commercial landuse styles (closes #2317)
Now using softer versions of the "standard" LBCS landuse styles from here:
https://www.planning.org/lbcs/standards/pdf/InOneFile.pdf
2014-08-11 16:52:09 -04: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
a5f839db44 improve bridge styles, add low-zoom, butt linecaps.. 2014-06-09 23:16:44 -04:00
John Firebaugh
d90f8054b1 Remove retina cursors
They are broken on Safari in a way that is incompatible
with making them work on Chrome.

https://bugs.webkit.org/show_bug.cgi?id=120783

Fixes #2157.
2014-05-29 15:53:13 -07:00
John Firebaugh
48e3ff2f22 Vertex in turn restriction editor isn't selectable 2014-05-18 16:02:48 -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
f39ae89177 Render turns of selected way 2014-05-18 16:02:47 -07:00
Bryan Housel
0eca063b8e Move building styles after everything.
(mostly so railway=station tagged building looks like a building)
2014-05-01 10:40:26 -04:00
Bryan Housel
66a1464031 Avoid dashed stroke on railway areas and railway platforms.. 2014-05-01 01:16:33 -04:00
Bryan Housel
b55bb0e55d Move all structure styles (bridge/tunnel/embarkment) after way styles. 2014-04-30 14:03:51 -04:00
Bryan Housel
f3ee2664a1 Render embarkment/cutting with dashed casing 2014-04-30 14:01:46 -04:00
Bryan Housel
5bcd228f27 Remove tag-highway from tunnel css, so railway and waterway tunnels get some opacity too. 2014-04-30 10:23:04 -04:00
John Firebaugh
c2ac0518b8 Fix more fill opacities 2014-04-26 13:32:59 -07:00
John Firebaugh
75bf1cfd04 Fix typo 2014-04-26 12:50:12 -07:00
John Firebaugh
8417329039 Fix highway=pedestrian area fill 2014-04-23 18:58:23 -07:00
John Firebaugh
273b5e2f63 Fix fill colors 2014-04-15 15:41:57 -07:00
John Firebaugh
6dbd0166fc Improvements to land use preset display 2014-04-15 10:45:56 -07:00
samanpwbb
a5f095bd9c add unique style for landuse military 2014-04-14 15:48:40 -04:00
Bryan Housel
593a041f74 various updates to presets
Add "crop" field for landuse=farm/farmland/farmyard (for #2149)
  Add "trees" field for landuse=orchard
  Add landuse=landfill
  Add the hoops=* field to the basketball preset (for #1984)
  Add amenity=nightclub
  Add smoking field for many presets under amenity, building, office, tourism (for #1990)
2014-03-17 23:10:34 -04:00
John Firebaugh
e382943f0d Use .low-zoom class rather than hard-coding z16 2013-11-01 11:17:49 -07:00
SJohnson
0790cf7423 Added the ability to load points from gpx files and display on the map 2013-09-25 14:42:58 -07:00
Tom MacWright
03550ff6ff Brighter color for GPX paths. Fixes #1626 2013-09-17 15:53:28 -04:00
John Firebaugh
1cdc4bc79d Remove duplicate style 2013-08-24 09:53:51 -07:00
John Firebaugh
c497644e87 Don't hide midpoints when dragging node
For some reason this invalidates and repaints a large
portion of the page.
2013-06-20 09:41:27 -07:00
John Firebaugh
e339bd5df3 Fix tile overzooming 2013-06-12 16:49:50 -07:00
John Firebaugh
bd2c7ba756 Render bridge casing for bridge=viaduct, etc.
Fixes #1500.
2013-05-20 16:49:55 -07:00
John Firebaugh
de70b7b169 Remove #map:active cursor
This causes a style recalculation that takes time linear
or worse in the number of rendered elements. Upwards of
20s in dense areas.
2013-05-20 12:05:31 -07:00
John Firebaugh
16e05fd657 Revert "Don't use :active pseudo-class"
Now seeing this cause poor pan performance.

This reverts commit 9fafd6b56a.
2013-05-13 14:16:14 -07:00
John Firebaugh
1a6a9b5b9e Better way of doing hover suppression 2013-05-13 12:53:03 -07:00
John Firebaugh
fd1573fa08 Abandon iD.svg.MemberClasses
Substantial performance hit for something that's barely used.
2013-05-13 12:46:01 -07:00
John Firebaugh
9fafd6b56a Don't use :active pseudo-class
It's slow (500 ms recalculate style vs 1ms).
2013-05-13 09:49:29 -07:00
John Firebaugh
feed896baa Remove unnecessary pseudo-selector
This was causing a hugely expensive style recalculation
on map mouseover/exit.
2013-05-13 09:49:18 -07:00
John Firebaugh
70e5411114 Optimize vertex rendering
* Cache icon
* Append rather than insert
* Do fewer things on update
* Don't create a fill unless needed
* Don't apply tag and member classes (never used)
* Drop down to raw setAttribute (d3 is slow :trollface:)
2013-05-13 09:37:48 -07:00
John Firebaugh
a53d5cbb44 Optimize label hover
Add entity IDs to the element class list, so that specific
elements can be selected by ID rather than needing `filter`.
2013-05-12 11:47:48 -07:00
Martin Raifer
a9dbd277c5 use fill:none instead of fill:transparent
`transparent` is not a valid [svg](http://www.w3.org/TR/SVG/painting.html#SpecifyingPaint) [color](http://www.w3.org/TR/SVG/types.html#DataTypeColor). Use `none` instead.
2013-05-08 17:15:19 +03:00
Ansis Brammanis
823d28339c add styles of schools, universities, pitches
fixes #1389
2013-04-30 15:56:04 -04:00
Ansis Brammanis
4eccd7015f corner destroying resampling for oneway markers 2013-04-25 18:41:49 -04:00