diff --git a/src/components/map/geojson/uamRouteBufferArea.json b/src/components/map/geojson/uamRouteBufferArea.json new file mode 100644 index 0000000..5e0ba0a --- /dev/null +++ b/src/components/map/geojson/uamRouteBufferArea.json @@ -0,0 +1,435 @@ +{ + "type": "FeatureCollection", + "features": [ + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [126.6238280624428, 37.564054382187464], + [126.62380067423932, 37.56411591628361], + [126.62378474611053, 37.56417995533479], + [126.62378061257233, 37.56424515453873], + [126.6237883604588, 37.56431014472685], + [126.6238078270962, 37.56437356111632], + [126.62732637084741, 37.5730511544423], + [126.62735773537004, 37.57311260229055], + [126.62740009559104, 37.57316971869807], + [126.62745253331413, 37.57322126558242], + [126.62751391189128, 37.573266125586436], + [126.6275829008607, 37.57330332629931], + [126.6310262460951, 37.57487889004297], + [126.6311005070863, 37.57490735776204], + [126.63117917555974, 37.57492693911049], + [126.6312605831535, 37.574937218816025], + [126.63134300341268, 37.574937978871155], + [126.63142468840485, 37.574929203156806], + [126.64795456355091, 37.57216433020499], + [126.66064609063244, 37.573287735663136], + [126.66073135497469, 37.57329012862925], + [126.71219610879939, 37.57163150905567], + [126.71228541231419, 37.57162291700238], + [126.7123718776867, 37.57160317203693], + [126.71245332079684, 37.57157277291867], + [126.71252768439354, 37.57153248753101], + [126.71259309006285, 37.57148333348379], + [126.71264788567753, 37.571426552407196], + [126.72361603679022, 37.55796529876466], + [126.74227560152673, 37.551779117463816], + [126.7522040720733, 37.55337217735081], + [126.75229129293449, 37.55338062802695], + [126.7523791055154, 37.55337822666518], + [126.75246539247529, 37.5533650311671], + [126.7525480732611, 37.55334135970284], + [126.75579364309328, 37.55217829789471], + [126.75587070921613, 37.55214472546204], + [126.75594031949056, 37.55210206049736], + [126.75600079604776, 37.5520513313947], + [126.75605068118615, 37.55199376092348], + [126.76760589086275, 37.53615038008557], + [126.7676438204641, 37.5360876464801], + [126.76766915789482, 37.53602100786133], + [126.76768129795232, 37.53595205602986], + [126.7676799506836, 37.53588243803773], + [126.76766514830807, 37.53581381684507], + [126.76763724444433, 37.53574783159705], + [126.76759690565989, 37.53568605847025], + [126.76754509554623, 37.535629973023376], + [126.76748305169939, 37.535580914951915], + [126.76290194626132, 37.53247981789287], + [126.76283115783357, 37.53243895709915], + [126.76275330879855, 37.53240727079065], + [126.76267025862583, 37.53238551581021], + [126.76258399101054, 37.53237421178551], + [126.76249656649381, 37.53237362871809], + [126.76241007324829, 37.53238378053468], + [126.76232657720405, 37.53240442475447], + [126.76224807270525, 37.53243506828064], + [126.76217643487661, 37.53247497917769], + [126.74069262521496, 37.54652770230293], + [126.72105613762403, 37.55331395924351], + [126.72097009222837, 37.55335102626893], + [126.72089335254, 37.553399339183436], + [126.72082821258904, 37.55345745374941], + [126.72077661966293, 37.55352363272091], + [126.7105550480309, 37.56958294101868], + [126.66089003046397, 37.57103223184973], + [126.65014220764405, 37.570104447257165], + [126.63441483345441, 37.55518901290653], + [126.63434836939835, 37.555135703657484], + [126.63427170362114, 37.555091927023575], + [126.6341869673753, 37.55505889995413], + [126.63409651625435, 37.55503754056923], + [126.63400286471169, 37.555028442638], + [126.63390861616429, 37.55503185907338], + [126.62880364618123, 37.55555880057077], + [126.62872224261918, 37.555572099756354], + [126.62864416342086, 37.55559474708482], + [126.62857109246927, 37.55562625413686], + [126.62850460564319, 37.55566594142098], + [126.62844613683232, 37.55571295302701], + [126.62839694701388, 37.555766275084146], + [126.62835809705736, 37.55582475762566], + [126.6238280624428, 37.564054382187464], + [126.62495091356033, 37.56425948073808], + [126.62926632180132, 37.55641957645043], + [126.63374703115862, 37.55595707199735], + [126.64942152536467, 37.57082243176737], + [126.6494819929003, 37.57087159202163], + [126.64955116006975, 37.57091285020618], + [126.64962741370097, 37.57094524405693], + [126.64970897533686, 37.570968018051374], + [126.64979394271542, 37.57098064103046], + [126.66080873003172, 37.57193148030834], + [126.66089030862557, 37.57193380561681], + [126.71093005399068, 37.570473520518696], + [126.7110155200376, 37.570465802242325], + [126.7110985296507, 37.57044786442179], + [126.71117716556726, 37.570420121365], + [126.71124961154851, 37.57038321384983], + [126.71131419433043, 37.57033799432348], + [126.71136942227176, 37.570285507212816], + [126.71141401980613, 37.57022696480039], + [126.72169390796309, 37.5540757881264], + [126.74121589806943, 37.54732905907567], + [126.74128561673987, 37.547300221836394], + [126.7413496462557, 37.54726397318036], + [126.76252938140514, 37.533410153819155], + [126.76639001938337, 37.53602356058272], + [126.7551633910013, 37.551416100325476], + [126.75224937646537, 37.55246034604165], + [126.74232959475833, 37.55086866548583], + [126.74224635295539, 37.55086035633522], + [126.74216248299645, 37.55086193774384], + [126.74207982856083, 37.55087337494807], + [126.742000206609, 37.550894416528266], + [126.7230191831106, 37.55718716011606], + [126.7229434377238, 37.55721776091386], + [126.72287429905668, 37.55725704285292], + [126.72281332488005, 37.55730412087391], + [126.72276188901834, 37.557357934262605], + [126.71185752948423, 37.5707407582132], + [126.6607286127792, 37.572388503067096], + [126.64798953962035, 37.571260882439994], + [126.64789967413597, 37.5712586421025], + [126.64781049681692, 37.57126775684084], + [126.63140325396725, 37.57401214044211], + [126.62833651270446, 37.57260890346539], + [126.62495091356033, 37.56425948073808] + ] + ], + "properties": { + "height": 600, + "description": "UAM 아라뱃길 노선 버퍼" + } + } + }, + + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [126.72456746998493, 37.668574354099114], + [126.74115554939628, 37.657557637074895], + [126.74116742137119, 37.65754952647663], + [126.79740136765204, 37.61801101674848], + [126.7974617502104, 37.61796146711205], + [126.7975119101782, 37.6179051627934], + [126.7975506705405, 37.617843425012936], + [126.79757712178927, 37.61777770248781], + [126.7975906432633, 37.61770953743587], + [126.79759091770957, 37.617640529386144], + [126.79757793872457, 37.61757229764468], + [126.79755201090097, 37.617506443296726], + [126.79751374267724, 37.617444511637004], + [126.79746403205732, 37.61738795590929], + [126.79740404553655, 37.617338103206514], + [126.79733519072815, 37.61729612333116], + [126.79725908333272, 37.61726300134657], + [126.79717750922602, 37.617239514463336], + [126.79709238255433, 37.61722621380282], + [126.79700570082066, 37.617223411465666], + [126.79691949801577, 37.617231173208744], + [126.79683579689282, 37.617249316902246], + [126.79675656150589, 37.61727741680317], + [126.7966836511256, 37.61731481354493], + [126.72096353039034, 37.66299209711915], + [126.72089929311335, 37.663037277584415], + [126.72084436895547, 37.663089647497216], + [126.72080001615416, 37.66314800715388], + [126.72076725078283, 37.66321101963317], + [126.72074682347252, 37.66327724142216], + [126.72073920221396, 37.66334515548403], + [126.7207445616336, 37.663413206010524], + [126.72076277898996, 37.66347983406304], + [126.72079343698255, 37.66354351328571], + [126.72369174410836, 37.668421025614016], + [126.7237343397425, 37.66848052519433], + [126.72378778566384, 37.6685342070752], + [126.72385084760114, 37.66858083151418], + [126.72392206920028, 37.66861932175301], + [126.72399980565741, 37.66864878888541], + [126.72408226170523, 37.66866855238676], + [126.72416753307503, 37.668678155831095], + [126.72425365047638, 37.668677377432566], + [126.72433862507923, 37.66866623516765], + [126.7244204944471, 37.66864498636007], + [126.72449736786072, 37.66861412173774], + [126.72456746998493, 37.668574354099114], + [126.72440347643827, 37.66750931293157], + [126.72201465201995, 37.66348928173645], + [126.78532882583619, 37.62530231498046], + [126.74042289198188, 37.656870240759794], + [126.72440347643827, 37.66750931293157] + ] + ], + "properties": { + "height": 600, + "description": "UAM 한강 노선1 버퍼" + } + } + }, + + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [126.80509477290704, 37.572473880511446], + [126.81038996250018, 37.55598041854767], + [126.81550315418731, 37.55446352619104], + [126.81551035992338, 37.55446134369703], + [126.91234915519638, 37.5244759008221], + [126.91287622638274, 37.52431241330305], + [126.91246569104617, 37.523472835299785], + [126.81510434697365, 37.5536203229261], + [126.80971742985056, 37.55521840906303], + [126.80963515058119, 37.55524900667822], + [126.80956007890528, 37.55528968884747], + [126.80949414832767, 37.55533940779003], + [126.80943905693121, 37.5553968829783], + [126.80939622364188, 37.55546063411693], + [126.80936675168215, 37.55552901926723], + [126.80398969272748, 37.572276772071724], + [126.8039769267996, 37.57232940054169], + [126.79646464845753, 37.61761464209132], + [126.7963905135602, 37.61806125797776], + [126.79751344635955, 37.61817919406359], + [126.80509477290704, 37.572473880511446] + ] + ], + "properties": { + "height": 600, + "description": "UAM 한강 노선2 버퍼" + } + } + }, + + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [126.92914576348721, 37.53610145557365], + [126.92921881474507, 37.53614320825674], + [126.92929925074243, 37.53617521629864], + [126.92938503930596, 37.5361966710298], + [126.92947401302526, 37.53620703040504], + [126.92956392401395, 37.536206032698686], + [126.92965250070466, 37.53619370311736], + [126.9297375052423, 37.53617035316316], + [126.92981679002548, 37.536136572763134], + [126.92988835196716, 37.536093215364446], + [126.92995038310305, 37.53604137637131], + [126.93000131626967, 37.53598236546898], + [126.93003986469712, 37.53591767353406], + [126.93006505451676, 37.53584893496722], + [126.93115530266016, 37.53166004099972], + [126.9311663506458, 37.531591402788386], + [126.93116406836054, 37.53152222683853], + [126.9311485096914, 37.53145414535424], + [126.93112004177905, 37.53138876471144], + [126.93107933635196, 37.53132762755588], + [126.93102735387424, 37.53127217640534], + [126.9309653208816, 37.53122371961458], + [126.91749506116805, 37.52220709394929], + [126.91742551206751, 37.52216727769584], + [126.9173492121535, 37.52213628221006], + [126.91726791104101, 37.52211481823914], + [126.91718347302006, 37.522103377965706], + [126.91709783430824, 37.52210222372245], + [126.91701295865428, 37.522111381976806], + [126.91693079231041, 37.522130642724235], + [126.91194359414358, 37.52363480106991], + [126.91186197648693, 37.52366555224062], + [126.91178754207019, 37.52370625511744], + [126.91172218752641, 37.523755872573865], + [126.91166757813909, 37.523813140333935], + [126.91162510540961, 37.523876599185336], + [126.91159585159954, 37.523944632159704], + [126.9115805621515, 37.52401550573294], + [126.91157962669133, 37.52408741399568], + [126.91159306909636, 37.52415852466889], + [126.91162054688265, 37.52422702579161], + [126.91166135992795, 37.524291171891676], + [126.9117144683078, 37.52434932846272], + [126.9117785187914, 37.52440001361393], + [126.92914576348721, 37.53610145557365], + [126.92915023116092, 37.534924366731566], + [126.91324264438036, 37.52420646187837], + [126.91702114108625, 37.523066838844834], + [126.92997894259945, 37.53174049514262], + [126.92915023116092, 37.534924366731566] + ] + ], + "properties": { + "height": 600, + "description": "UAM 한강 노선3 버퍼" + } + } + }, + + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [127.06509873105374, 37.5250598281909], + [127.07284374268735, 37.51980426437472], + [127.08403972202258, 37.51979695783456], + [127.0858666737914, 37.52030911750067], + [127.08640019729283, 37.520458676481184], + [127.08677573116485, 37.51960877281849], + [127.08432388918169, 37.518921440727624], + [127.08423111524617, 37.51890228849288], + [127.08413561347696, 37.51889588776919], + [127.07263484928593, 37.518903387646525], + [127.07253569742487, 37.518910424915205], + [127.0724396301596, 37.51893119906398], + [127.07234962326983, 37.51896506659348], + [127.07226846481868, 37.5190109784231], + [127.06560240881453, 37.52353445817955], + [127.07202403462908, 37.50408114079516], + [127.07212927710125, 37.50429556985901], + [127.10091161705381, 37.495325075048584], + [127.10098599495453, 37.49529673939495], + [127.10105441046025, 37.495260086912914], + [127.10111540900637, 37.495215896866625], + [127.11017984926995, 37.48761503249382], + [127.11023506188069, 37.48756088457548], + [127.1102791202503, 37.48750059281374], + [127.11031096769342, 37.487435603269816], + [127.11032984040281, 37.48736747467457], + [127.11033528576597, 37.48729784104266], + [127.11032717321748, 37.487228372481404], + [127.11030569736694, 37.487160735134495], + [127.11027137332785, 37.487096551221214], + [127.11022502436003, 37.48703736012943], + [127.11016776212185, 37.48698458149569], + [127.10583137366882, 37.48356320701944], + [127.10576059952139, 37.4835158359763], + [127.10568108513314, 37.48347828806527], + [127.1055949558947, 37.483451566923186], + [127.10550451399963, 37.4834363867919], + [127.10541217691065, 37.48343315342791], + [127.10532041274526, 37.48344195325728], + [127.10523167430787, 37.48346255106559], + [127.10514833353119, 37.4834943962848], + [127.10507261807845, 37.48353663770885], + [127.10500655180131, 37.48358814624493], + [127.09770820889865, 37.49029256465776], + [127.0976576778715, 37.490346684331676], + [127.09761785438579, 37.49040620925074], + [127.09758963129079, 37.49046980489551], + [127.0966699219, 37.49317052745893], + [127.0949524052349, 37.49471185506067], + [127.07179413618194, 37.501960395479706], + [127.07171458730993, 37.50199120519394], + [127.07164204213836, 37.50203152102216], + [127.07157827567431, 37.50208035653928], + [127.07152484814097, 37.50213651686313], + [127.07148306680259, 37.50219862788909], + [127.0714539539778, 37.50226516991002], + [127.0640949412011, 37.524557273499305], + [127.05657765104215, 37.52965704140439], + [127.05651365171246, 37.52970803177517], + [127.0564606854664, 37.52976649985608], + [127.05642010885761, 37.52983094821223], + [127.05639296113524, 37.529899726243016], + [127.05637993762477, 37.52997107245501], + [127.05638137191639, 37.53004315957534], + [127.0563972273172, 37.530114141350296], + [127.05642709778672, 37.530182199830485], + [127.05647021833231, 37.53024559193181], + [127.05652548459825, 37.530302694079175], + [127.05659148114779, 37.530352043790074], + [127.05666651771323, 37.5303923771323], + [127.06183736954928, 37.532715166907934], + [127.06191531828266, 37.532744195364465], + [127.0619978939325, 37.53276347263897], + [127.06208318576063, 37.53277255266941], + [127.06216922017526, 37.532771225350366], + [127.06225400640082, 37.5327595213951], + [127.06233558254539, 37.53273771162479], + [127.06241206099992, 37.532706300701555], + [127.062481672118, 37.53266601545044], + [127.06254280516524, 37.53261778804039], + [127.06259404559106, 37.53256273441367], + [127.0626342077597, 37.532502128463015], + [127.06266236238358, 37.5324373725538], + [127.06509873105374, 37.5250598281909], + [127.06359122589191, 37.52608263685171], + [127.06175467332596, 37.53164358507333], + [127.05792797158051, 37.5299246059702], + [127.06359122589191, 37.52608263685171], + [127.07228894969579, 37.50327839654744], + [127.07247472477427, 37.50271545123143], + [127.09549208719207, 37.49551095264881], + [127.09557170383937, 37.495480087386596], + [127.09564429668248, 37.49543969729085], + [127.0957080855976, 37.49539077281556], + [127.09760363909305, 37.49368965500961], + [127.09765612287198, 37.493634554406206], + [127.09769740104093, 37.493573701250575], + [127.09772650043934, 37.49350853023835], + [127.09864707074922, 37.49080517168912], + [127.10546497533929, 37.48454206235295], + [127.10897865875421, 37.487314350612195], + [127.10038235890859, 37.49452256202643], + [127.07228894969579, 37.50327839654744] + ] + ], + "properties": { + "height": 600, + "description": "UAM 탄천 노선 버퍼" + } + } + } + ] +} diff --git a/src/components/map/mapbox/MapBoxMap.js b/src/components/map/mapbox/MapBoxMap.js index de05387..d7c1a7b 100644 --- a/src/components/map/mapbox/MapBoxMap.js +++ b/src/components/map/mapbox/MapBoxMap.js @@ -22,6 +22,8 @@ import gimPoGrid from '../../../components/map/geojson/airportAirArea.json'; import flatGimpo from '../../map/geojson/flatGimpoAirportAirArea.json'; // uam 회랑 import uamRoute from '../../map/geojson/uamRouteArea.json'; +// uam 회랑 버퍼 +import uamRouteBuffer from '../../map/geojson/uamRouteBufferArea.json'; import { mapInitAction } from '../../../modules/control/map/actions/controlMapActions'; import * as THREE from 'three'; @@ -36,139 +38,6 @@ import * as THREE from 'three'; import uamGltf from './models/out.glb'; import uamVertipad from './models/scene.glb'; -const buffer = [ - [126.6238280624428, 37.564054382187464, 150], - [126.62380067423932, 37.56411591628361, 150], - [126.62378474611053, 37.56417995533479, 150], - [126.62378061257233, 37.56424515453873, 150], - [126.6237883604588, 37.56431014472685, 150], - [126.6238078270962, 37.56437356111632, 150], - [126.62732637084741, 37.5730511544423, 150], - [126.62735773537004, 37.57311260229055, 150], - [126.62740009559104, 37.57316971869807, 150], - [126.62745253331413, 37.57322126558242, 150], - [126.62751391189128, 37.573266125586436, 150], - [126.6275829008607, 37.57330332629931, 150], - [126.6310262460951, 37.57487889004297, 150], - [126.6311005070863, 37.57490735776204, 150], - [126.63117917555974, 37.57492693911049, 150], - [126.6312605831535, 37.574937218816025, 150], - [126.63134300341268, 37.574937978871155, 150], - [126.63142468840485, 37.574929203156806, 150], - [126.64795456355091, 37.57216433020499, 150], - [126.66064609063244, 37.573287735663136, 150], - [126.66073135497469, 37.57329012862925, 150], - [126.71219610879939, 37.57163150905567, 150], - [126.71228541231419, 37.57162291700238, 150], - [126.7123718776867, 37.57160317203693, 150], - [126.71245332079684, 37.57157277291867, 150], - [126.71252768439354, 37.57153248753101, 150], - [126.71259309006285, 37.57148333348379, 150], - [126.71264788567753, 37.571426552407196, 150], - [126.72361603679022, 37.55796529876466, 150], - [126.74227560152673, 37.551779117463816, 150], - [126.7522040720733, 37.55337217735081, 150], - [126.75229129293449, 37.55338062802695, 150], - [126.7523791055154, 37.55337822666518, 150], - [126.75246539247529, 37.5533650311671, 150], - [126.7525480732611, 37.55334135970284, 150], - [126.75579364309328, 37.55217829789471, 150], - [126.75587070921613, 37.55214472546204, 150], - [126.75594031949056, 37.55210206049736, 150], - [126.75600079604776, 37.5520513313947, 150], - [126.75605068118615, 37.55199376092348, 150], - [126.76760589086275, 37.53615038008557, 150], - [126.7676438204641, 37.5360876464801, 150], - [126.76766915789482, 37.53602100786133, 150], - [126.76768129795232, 37.53595205602986, 150], - [126.7676799506836, 37.53588243803773, 150], - [126.76766514830807, 37.53581381684507, 150], - [126.76763724444433, 37.53574783159705, 150], - [126.76759690565989, 37.53568605847025, 150], - [126.76754509554623, 37.535629973023376, 150], - [126.76748305169939, 37.535580914951915, 150], - [126.76290194626132, 37.53247981789287, 150], - [126.76283115783357, 37.53243895709915, 150], - [126.76275330879855, 37.53240727079065, 150], - [126.76267025862583, 37.53238551581021, 150], - [126.76258399101054, 37.53237421178551, 150], - [126.76249656649381, 37.53237362871809, 150], - [126.76241007324829, 37.53238378053468, 150], - [126.76232657720405, 37.53240442475447, 150], - [126.76224807270525, 37.53243506828064, 150], - [126.76217643487661, 37.53247497917769, 150], - [126.74069262521496, 37.54652770230293, 150], - [126.72105613762403, 37.55331395924351, 150], - [126.72097009222837, 37.55335102626893, 150], - [126.72089335254, 37.553399339183436, 150], - [126.72082821258904, 37.55345745374941, 150], - [126.72077661966293, 37.55352363272091, 150], - [126.7105550480309, 37.56958294101868, 150], - [126.66089003046397, 37.57103223184973, 150], - [126.65014220764405, 37.570104447257165, 150], - [126.63441483345441, 37.55518901290653, 150], - [126.63434836939835, 37.555135703657484, 150], - [126.63427170362114, 37.555091927023575, 150], - [126.6341869673753, 37.55505889995413, 150], - [126.63409651625435, 37.55503754056923, 150], - [126.63400286471169, 37.555028442638, 150], - [126.63390861616429, 37.55503185907338, 150], - [126.62880364618123, 37.55555880057077, 150], - [126.62872224261918, 37.555572099756354, 150], - [126.62864416342086, 37.55559474708482, 150], - [126.62857109246927, 37.55562625413686, 150], - [126.62850460564319, 37.55566594142098, 150], - [126.62844613683232, 37.55571295302701, 150], - [126.62839694701388, 37.555766275084146, 150], - [126.62835809705736, 37.55582475762566, 150], - [126.6238280624428, 37.564054382187464, 150], - [126.62495091356033, 37.56425948073808, 150], - [126.62926632180132, 37.55641957645043, 150], - [126.63374703115862, 37.55595707199735, 150], - [126.64942152536467, 37.57082243176737, 150], - [126.6494819929003, 37.57087159202163, 150], - [126.64955116006975, 37.57091285020618, 150], - [126.64962741370097, 37.57094524405693, 150], - [126.64970897533686, 37.570968018051374, 150], - [126.64979394271542, 37.57098064103046, 150], - [126.66080873003172, 37.57193148030834, 150], - [126.66089030862557, 37.57193380561681, 150], - [126.71093005399068, 37.570473520518696, 150], - [126.7110155200376, 37.570465802242325, 150], - [126.7110985296507, 37.57044786442179, 150], - [126.71117716556726, 37.570420121365, 150], - [126.71124961154851, 37.57038321384983, 150], - [126.71131419433043, 37.57033799432348, 150], - [126.71136942227176, 37.570285507212816, 150], - [126.71141401980613, 37.57022696480039, 150], - [126.72169390796309, 37.5540757881264, 150], - [126.74121589806943, 37.54732905907567, 150], - [126.74128561673987, 37.547300221836394, 150], - [126.7413496462557, 37.54726397318036, 150], - [126.76252938140514, 37.533410153819155, 150], - [126.76639001938337, 37.53602356058272, 150], - [126.7551633910013, 37.551416100325476, 150], - [126.75224937646537, 37.55246034604165, 150], - [126.74232959475833, 37.55086866548583, 150], - [126.74224635295539, 37.55086035633522, 150], - [126.74216248299645, 37.55086193774384, 150], - [126.74207982856083, 37.55087337494807, 150], - [126.742000206609, 37.550894416528266, 150], - [126.7230191831106, 37.55718716011606, 150], - [126.7229434377238, 37.55721776091386, 150], - [126.72287429905668, 37.55725704285292, 150], - [126.72281332488005, 37.55730412087391, 150], - [126.72276188901834, 37.557357934262605, 150], - [126.71185752948423, 37.5707407582132, 150], - [126.6607286127792, 37.572388503067096, 150], - [126.64798953962035, 37.571260882439994, 150], - [126.64789967413597, 37.5712586421025, 150], - [126.64781049681692, 37.57126775684084, 150], - [126.63140325396725, 37.57401214044211, 150], - [126.62833651270446, 37.57260890346539, 150], - [126.62495091356033, 37.56425948073808, 150] -]; - const ghlfkd = [ [126.6240164, 37.5643352, 0], [126.6240164, 37.5643352, 30], @@ -804,26 +673,43 @@ export default function MapBoxMap() { }); // buffer map.addLayer({ - id: 'uamBuffers', - type: 'custom', - renderingMode: '3d', - onAdd: function () { - let line; - const options = { - path: buffer - }; - let lineGeometry = options.path; - line = tb.line({ - geometry: lineGeometry, - width: 2, - color: 'black' - }); - tb.add(line); + id: '3dExtrusion', + type: 'fill-extrusion', + source: { + type: 'geojson', + data: { + type: 'FeatureCollection', + features: [...uamRouteBuffer.features] + } }, - render: function () { - tb.update(); + paint: { + 'fill-extrusion-color': '#8a1c05', + 'fill-extrusion-height': 600, + 'fill-extrusion-base': 300, + 'fill-extrusion-opacity': 0.5 } }); + // map.addLayer({ + // id: 'uamBuffers', + // type: 'custom', + // renderingMode: '3d', + // onAdd: function () { + // let line; + // const options = { + // path: buffer + // }; + // let lineGeometry = options.path; + // line = tb.line({ + // geometry: lineGeometry, + // width: 2, + // color: 'black' + // }); + // tb.add(line); + // }, + // render: function () { + // tb.update(); + // } + // }); // 공역 색상 및 공역 표출 정보에 따른 노출 handlerCreateAirSpace(map);