55 initMaps ,
66 makeTileRequestTransformer
77} from '~/src/client/javascripts/map.js'
8- import { GeometryType } from '~/src/server/plugins/engine/types.js'
98
109describe ( 'Maps Client JS' , ( ) => {
1110 /** @type {jest.Mock } */
@@ -606,7 +605,7 @@ describe('Maps Client JS', () => {
606605 centroidGridReference : 'TQ 29031 79662'
607606 } ,
608607 geometry : {
609- type : GeometryType . Point ,
608+ type : ' Point' ,
610609 coordinates : [ - 0.14242385752663722 , 51.50118200993498 ]
611610 } ,
612611 id : '6d67810c-7228-4f71-b6ec-0d16b132fcd7'
@@ -635,7 +634,7 @@ describe('Maps Client JS', () => {
635634 [ - 0.13995851581486818 , 51.50204381014825 ]
636635 ]
637636 ] ,
638- type : GeometryType . Polygon
637+ type : ' Polygon'
639638 }
640639 } ,
641640 {
@@ -651,7 +650,7 @@ describe('Maps Client JS', () => {
651650 [ - 0.14969813781837615 , 51.502534952613814 ] ,
652651 [ - 0.1404050934734471 , 51.50217984872572 ]
653652 ] ,
654- type : GeometryType . LineString
653+ type : ' LineString'
655654 }
656655 }
657656 ]
@@ -870,7 +869,7 @@ describe('Maps Client JS', () => {
870869 id : 'guid' ,
871870 type : 'Feature' ,
872871 geometry : {
873- type : GeometryType . Polygon ,
872+ type : ' Polygon' ,
874873 coordinates : [
875874 [
876875 [ - 2.0868919921875886 , 53.896834237148596 ] ,
@@ -908,7 +907,7 @@ describe('Maps Client JS', () => {
908907 id : 'guid1' ,
909908 type : 'Feature' ,
910909 geometry : {
911- type : GeometryType . LineString ,
910+ type : ' LineString' ,
912911 coordinates : [
913912 [ - 1.3068626953125317 , 54.019651598965936 ] ,
914913 [ - 2.0868919921875886 , 53.896834237148596 ]
@@ -969,7 +968,7 @@ describe('Maps Client JS', () => {
969968 const updatedPolygonFeature = {
970969 ...features [ 1 ] ,
971970 geometry : {
972- type : GeometryType . Polygon ,
971+ type : ' Polygon' ,
973972 coordinates : [
974973 [
975974 [ 0 , 0 ] ,
@@ -1055,7 +1054,7 @@ describe('Maps Client JS', () => {
10551054 ...features ,
10561055 {
10571056 geometry : {
1058- type : GeometryType . Point ,
1057+ type : ' Point' ,
10591058 coordinates : [ - 2.086892 , 53.8968342 ]
10601059 } ,
10611060 properties : {
@@ -1358,7 +1357,7 @@ describe('Maps Client JS', () => {
13581357 id : 'id' ,
13591358 type : 'Feature' ,
13601359 geometry : {
1361- type : GeometryType . Point ,
1360+ type : ' Point' ,
13621361 coordinates : [ - 0.1356213 , 51.5121161 ]
13631362 } ,
13641363 properties : {
@@ -1374,7 +1373,7 @@ describe('Maps Client JS', () => {
13741373 id : 'id' ,
13751374 type : 'Feature' ,
13761375 geometry : {
1377- type : GeometryType . LineString ,
1376+ type : ' LineString' ,
13781377 coordinates : [
13791378 [ - 0.1356213 , 51.5121161 ] ,
13801379 [ - 0.0578579 , 51.5182996 ]
@@ -1393,7 +1392,7 @@ describe('Maps Client JS', () => {
13931392 id : 'id' ,
13941393 type : 'Feature' ,
13951394 geometry : {
1396- type : GeometryType . Polygon ,
1395+ type : ' Polygon' ,
13971396 coordinates : [
13981397 [
13991398 [ - 0.1356213 , 51.5121161 ] ,
@@ -1416,7 +1415,7 @@ describe('Maps Client JS', () => {
14161415 id : 'id' ,
14171416 type : 'Feature' ,
14181417 geometry : {
1419- type : GeometryType . Point ,
1418+ type : ' Point' ,
14201419 coordinates : [ - 0.1356213 , 51.5121161 ]
14211420 } ,
14221421 properties : {
@@ -1432,7 +1431,7 @@ describe('Maps Client JS', () => {
14321431 id : 'id' ,
14331432 type : 'Feature' ,
14341433 geometry : {
1435- type : GeometryType . LineString ,
1434+ type : ' LineString' ,
14361435 coordinates : [
14371436 [ - 0.1356213 , 51.5121161 ] ,
14381437 [ - 0.0578579 , 51.5182996 ]
@@ -1451,7 +1450,7 @@ describe('Maps Client JS', () => {
14511450 id : 'id' ,
14521451 type : 'Feature' ,
14531452 geometry : {
1454- type : GeometryType . Polygon ,
1453+ type : ' Polygon' ,
14551454 coordinates : [
14561455 [
14571456 [ - 0.1356213 , 51.5121161 ] ,
0 commit comments