mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-20 07:25:15 +02:00
Switched to a custom country code service
This commit is contained in:
@@ -38,6 +38,7 @@
|
||||
<script src='../js/id/id.js'></script>
|
||||
<script src='../js/id/util.js'></script>
|
||||
|
||||
<script src='../js/id/services/countrycode.js'></script>
|
||||
<script src='../js/id/services/taginfo.js'></script>
|
||||
<script src='../js/id/services/wikipedia.js'></script>
|
||||
|
||||
|
||||
+2
-2
@@ -241,12 +241,12 @@ describe('iD.geo', function() {
|
||||
expect(iD.geo.pointInFeature(point, feature)).to.be.true;
|
||||
});
|
||||
it('point should be in a polygon feature with bounds', function() {
|
||||
var feature = { geometry: { type: 'Polygon', coordinates: [[[0, 0], [0, 1], [1, 1], [1, 0], [0, 0]]] }, properties: { bounds: [[0, 0], [1, 1]] } };
|
||||
var feature = { geometry: { type: 'Polygon', coordinates: [[[0, 0], [0, 1], [1, 1], [1, 0], [0, 0]]] }, bounds: [[0, 0], [1, 1]] };
|
||||
var point = [0.5, 0.5];
|
||||
expect(iD.geo.pointInFeature(point, feature)).to.be.true;
|
||||
});
|
||||
it('point should not be in a polygon feature with bounds', function() {
|
||||
var feature = { geometry: { type: 'Polygon', coordinates: [[[0, 0], [0, 1], [1, 1], [1, 0], [0, 0]]] }, properties: { bounds: [[0, 0], [1, 1]] } };
|
||||
var feature = { geometry: { type: 'Polygon', coordinates: [[[0, 0], [0, 1], [1, 1], [1, 0], [0, 0]]] }, bounds: [[0, 0], [1, 1]] };
|
||||
var point = [0.5, 1.5];
|
||||
expect(iD.geo.pointInFeature(point, feature)).to.be.false;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user