Martin Raifer
ce2fc08d3a
fix mistake in test definition
2024-02-16 18:37:08 +01:00
Martin Raifer
83754e4a4a
switch to Bing Maps API for Bing Streetside layer, fixes #10074
...
replaces the use of undocumented APIs for Microsoft's street level imagery service and gets rid of hardcoded values, e.g. for the `g` ("generation") parameter
see https://learn.microsoft.com/en-us/bingmaps/rest-services/imagery/get-imagery-metadata#get-streetside-metadata-centered-at-a-point for API docs
see also #10100
2024-02-16 18:29:23 +01:00
Kyℓe Hensel
f7cbdfb9e5
fix incorrect earth radius constants ( #9793 )
2023-08-02 18:13:49 +02:00
Peter Newman
2c47a11008
Fix the seemingly safe spellings found by codespell
...
Untested, only checked by inspection.
2020-06-28 23:06:44 +01:00
Bryan Housel
05949608aa
Support straightening of points
...
(closes #6217 )
- Split `actionStraighten` into `actionStraightenWay` and `actionStraightenNodes`
- Now `operationStraighten` chooses the correct action depending on selected entities
- Also move `getSmallestSurroundingRectangle` from `actionReflect` to `geo.js`
2019-04-24 01:55:43 -04:00
Bryan Housel
dd234df05b
Add tests for geoVecNormalize, geoVecNormalizedDot, geoVecProject
2019-03-01 14:09:33 -05:00
Bryan Housel
d5bf2d9762
Add geoHasLineIntersections, better for testing multipolygon rings
...
(closes #4741 )
2018-01-24 23:16:51 -05:00
Bryan Housel
49eb46fefb
Add epsilon parameter to geoVecEqual
2018-01-08 17:04:56 -05:00
Bryan Housel
9c27893748
Check for valid multipolygon geometry when dragging nodes
...
(this can get a bit expensive for large/complex multipolygons)
2017-12-31 02:26:19 -05:00
Bryan Housel
08cd2c7325
Tests for geoHasSelfIntersections
2017-12-28 23:46:08 -05:00
Bryan Housel
7af73c10ef
Refactor geometric math functions from geo.js to geom.js
2017-12-28 01:28:38 -05:00
Bryan Housel
96afbbd785
Refactor vector math functions from geo.js to vector.js
2017-12-28 01:08:11 -05:00
Bryan Housel
9fbb4d350f
Add geoVecEquals for strict comparisons
2017-12-23 22:33:35 -05:00
Bryan Housel
d82d5dc3d0
Add skipID to geoChooseEdge, to ignore dragging node
2017-12-21 17:30:50 -05:00
Bryan Housel
2e2b037e36
Move a bunch of commonly used vector and projection math functions into geo
...
- geoVecAdd
- geoVecSubtract
- geoVecScale
- geoZoomToScale
- geoScaleToZoom
2017-12-18 15:05:42 -05:00
Bryan Housel
18c97d52c8
Extract viewport nudging code from several places to geoViewportEdge
2017-12-18 09:50:17 -05:00
Bryan Housel
cad4c0090c
Refactor rotation code to geoRotate, add tests
2016-12-21 11:21:06 -05:00
Bryan Housel
f50e80d0b5
Refactor Intersection, Multipolygon from geo to osm
2016-10-11 23:09:27 -04:00
Bryan Housel
87950fd472
Fix lib export, flatten names in tests and docs
2016-10-04 21:56:09 -04:00
Bryan Housel
5f496f2020
Cleanup test html, alphabetize, make sure all tests run
2016-07-14 12:59:47 -04:00
Kushan Joshi
084ede853f
Add linting to spec/geo
2016-06-15 18:26:11 +05:30
Kushan Joshi
6ef52256f3
Migrating to lodash v4
2016-05-17 12:37:25 +05:30
Bryan Housel
c50a290cd1
Add iD.geo.Extent#rectangle
2016-02-08 17:15:30 -05:00
Bryan Housel
ef2b4271b7
Merge pull request #2809 from openstreetmap/conflicting-tags
...
Disable joining ways with conflicting tags
2015-10-20 23:06:35 -04:00
Bryan Housel
0aa899a580
Fix turn restrictions involving circular ways ( closes #2807 )
2015-10-20 22:52:39 -04:00
John Firebaugh
0517f8e2b3
When reversing tags for joins, include "oneway"
2015-10-18 13:29:16 -07:00
Bryan Housel
6d82ae4146
add iD.geo.Extent#contains
2015-02-06 13:56:51 -05:00
Bryan Housel
a2703f10c8
fix tests affected by change in equality testing re #2388
2014-10-28 21:49:31 -04:00
Bryan Housel
1f544e883b
bump chai to 1.9.2 and fix tests affected by change in equality testing
...
re #2388
2014-10-28 21:37:04 -04:00
John Firebaugh
69af20e44d
Add mutating extent extend, for performance
2014-10-13 16:34:38 -07:00
Bryan Housel
874a3e2ad6
disable Move and Rotate operations if area < 80% contained in the viewport
...
see #542 .
Also included:
1. DRY up code for "% contained in" extent testing.
2. If action.disabled() returns a better reason, show that instead of the too_large one.
2014-07-11 17:11:50 -04:00
John Firebaugh
8b6ce214a2
Initial support for only_* restrictions
2014-05-19 15:53:46 -07:00
John Firebaugh
6089a6aaea
Better solution for maintaining selection
2014-05-18 16:02:48 -07:00
John Firebaugh
9d5df793b5
Fix turn generation from ways that need splitting
2014-05-18 16:02:48 -07:00
John Firebaugh
573237e94e
Render U-turns
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
Bryan Housel
1df54a700a
Disable circularize and orthogonalize operations when way is <80% contained in the viewport
2014-03-27 22:47:34 -04:00
John Firebaugh
14bfc52e33
Remove repetition of entity IDs in tests
...
There were several places where the key and entity id
didn't match up.
2013-10-31 15:57:47 -07:00
John Firebaugh
156aa90e27
Add more turn logic
2013-08-30 19:27:21 -07:00
John Firebaugh
ddd9e4e8cc
Make iD.actions.Join agnostic to selection order
...
This is accomplished by reusing iD.geo.joinMemberWays,
which was refactored, generalized, and renamed to joinWays.
2013-06-18 12:19:53 -07:00
John Firebaugh
33cf029d43
Extract and refactor iD.geo.joinMemberWays
2013-06-05 16:00:12 -07:00
John Firebaugh
1db99586c4
Render only new features when a data tile is loaded
2013-05-20 12:05:31 -07:00
Tom MacWright
e434cab107
Basic tests for padByMeters
2013-05-09 12:25:38 -04:00
John Firebaugh
d247962324
Handle incomplete relations in simpleMultipolygonOuterMember
2013-05-01 10:28:40 -07: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