Commit Graph

51 Commits

Author SHA1 Message Date
Olaf Veerman
89b354ddba Allow overzoom to be set on overlays
The default behaviour is to overzoom overlays past their max
scaleExtent. When 'overzoom':false is defined in imagery.json,
the layer will disappear on the max scaleExtent.
2015-03-26 12:04:54 -07:00
Bryan Housel
05ff86e5c2 Prevent no-match parent relations from breaking getMatches
(e.g. a site relation with a fence in it)
Also, updated the test graph to contain one of these.
see https://github.com/openstreetmap/iD/pull/2554#issuecomment-78517442
2015-03-12 13:59:48 -04:00
Bryan Housel
3308b5507b Feature Filtering: don't match multipolygon lines as 'others'
(fixes #2548)

If the entity is a way that is a member of a parent relation,
use that parent relation's matches instead of matching 'other'
2015-03-10 00:06:29 -04:00
Bryan Housel
2485d74d5b Use interpolated D3 zooming for zoomIn/zoomOut 2015-03-09 16:34:07 -04:00
Bryan Housel
ef2d6e75cf Add minzoom check to map.zoom() (closes #2499) 2015-01-13 23:09:19 -05:00
Bryan Housel
dfe8fd1e90 features performance enhancements
1. reusue entity.geometry where possible
2. cache entity parents
2014-11-18 22:05:08 -05:00
John Firebaugh
9e9a4b3cc0 Fix tests 2014-11-11 14:32:50 -08:00
Bryan Housel
b20f1495de restore toggle function and add test 2014-10-29 15:06:43 -04:00
Bryan Housel
927c533bb4 add feature tests for auto-hiding 2014-10-28 21:37:04 -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
2b260f9a6c added tests for feature filtering
(some tests failing because I need to decouple graph from context)
2014-10-28 21:37:04 -04:00
Bryan Housel
6b6ca8d523 initial checkin of features unit tests 2014-10-28 21:37:04 -04:00
John Firebaugh
dd0e08b244 Write presets and imagery to standalone files 2014-10-23 15:52:29 -07:00
John Firebaugh
0b1ec49402 Rewrite as a separate layer 2014-09-19 14:51:44 -07:00
John Firebaugh
e5c1944e37 Fix tests 2013-08-27 11:46:24 -07:00
John Firebaugh
c7363623ad Fix tests 2013-08-22 14:16:30 -07:00
John Firebaugh
0180367399 Refactor BackgroundSource 2013-08-22 12:53:57 -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
5a8bf0fada Fix tests 2013-05-28 19:50:40 -07:00
John Firebaugh
ba08ba6109 Fix tests 2013-05-13 13:07:30 -07:00
John Firebaugh
c7dedcb5ba Fix test 2013-05-08 13:28:40 -07:00
John Firebaugh
e950042922 Fix cursors, add tests 2013-04-05 11:57:13 -07:00
Tom MacWright
53121c9842 Support JOSM style templates. Fixes #1023 2013-03-15 16:22:54 -04:00
John Firebaugh
84a4f9e5d2 Eliminate iD.layers 2013-03-06 15:51:16 -08:00
Tom MacWright
f15191af2c Update tests 2013-02-09 18:06:35 -05:00
Tom MacWright
f70c9037b0 Fix tests, finish work here. Needs a design hit. 2013-02-05 12:52:56 -05:00
John Firebaugh
fe49e8fb77 Pass around context rather than map 2013-02-01 12:40:16 -05:00
John Firebaugh
bbccec75be Convert Hash to a behavior 2013-01-31 18:28:24 -05:00
John Firebaugh
454cf0b16c Close menu on map move (fixes #482) 2013-01-24 19:07:05 -05:00
John Firebaugh
f7a10c1ab6 Fix tests 2013-01-23 18:39:18 -05:00
Tom MacWright
eefa22531c Simplify indentation, add blocking modals. Fixes #412 2013-01-23 12:30:22 -05:00
Tom MacWright
5c65af512d Test and fixup centerEase 2013-01-23 11:35:31 -05:00
Tom MacWright
75ea4d318e Test centerZoom 2013-01-23 11:22:23 -05:00
John Firebaugh
9331cd3def Delete obsolete tests 2013-01-22 18:23:53 -05:00
John Firebaugh
ce7e6ff831 Consistent iD prefix in tests 2013-01-22 18:23:18 -05:00
Tom MacWright
d214c651f2 Fix tests for hash updates 2013-01-22 10:42:16 -05:00
Tom MacWright
16ba8af499 Fix tests for non-question hash 2013-01-22 09:48:30 -05:00
Tom MacWright
7df1a00f38 Fix hash tests 2013-01-17 18:13:16 -05:00
John Firebaugh
5a2444b551 Extract and fix extent/intersection calculations
Extents are now [[min x, min y], [max x, max y]].
2013-01-17 14:27:01 -08:00
Ansis Brammanis
b18457f60b Fix leaking globals and add test case 2013-01-14 15:54:12 -05:00
John Firebaugh
b8310e2d9f Move to iD.svg.TagClasses 2013-01-11 11:56:37 -08:00
John Firebaugh
f8e2dfb9ce Preserve existing non-tag classes 2013-01-07 21:33:35 -08:00
John Firebaugh
b6beed5606 Prefix tag classes with tag-
When re-rendering, existing non-tag-related classes
such as `selected`, `active`, `hover`, etc. should be
preserved. Without a prefix, it's difficult to
distinguish them from tag classes.
2013-01-07 19:47:56 -08:00
Tom MacWright
87671bb3e9 Test for boundary condition 2013-01-07 17:37:07 -05:00
Tom MacWright
9c0633d674 Update extent tests 2012-12-13 12:07:46 -05:00
Tom MacWright
b79c2f7ac2 Test background subdomains 2012-12-06 11:08:35 -05:00
Tom MacWright
3b79854399 Fix tests 2012-12-06 10:46:21 -05:00
Tom MacWright
731df3ce41 Test backgroundsource, favor not making object-functions. 2012-12-05 17:34:47 -05:00
Tom MacWright
1bfce3aa50 Use a real connection for tests 2012-12-04 12:39:40 -05:00