styles.js 241 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422
  1. /* Copyright© 2000 - 2021 SuperMap Software Co.Ltd. All rights reserved.*/
  2. var host = window.isLocal ? window.server : "https://iserver.supermap.io";
  3. var attribution = "<a href='https://www.mapbox.com/about/maps/' target='_blank'>© Mapbox </a>" +
  4. "with <span>© <a href='https://iclient.supermap.io' target='_blank'>SuperMap iClient</a> | </span>" +
  5. "Map Data <span>© <a href='http://support.supermap.com.cn/product/iServer.aspx' target='_blank'>SuperMap iServer</a></span> ";
  6. var mapStyles = {
  7. basic: {
  8. style: {
  9. "version": 8,
  10. "sources": {
  11. "vector-tiles": {
  12. "attribution": attribution,
  13. "type": "vector",
  14. "tiles": [host + "/iserver/services/map-beijing/rest/maps/beijingMap/tileFeature.mvt?returnAttributes=true&compressTolerance=-1&width=512&height=512&viewBounds={bbox-epsg-3857}&expands=0:0_2,132_128,138_64,141_32,143_16,145_8,147_4"]
  15. }
  16. },
  17. "sprite": "https://iclient.supermap.io/web/styles/street/sprite",
  18. "glyphs": host + "/iserver/services/map-beijing/rest/maps/beijingMap/tileFeature/sdffonts/{fontstack}/{range}.pbf",
  19. "layers": [
  20. {
  21. "id": "background",
  22. "type": "background",
  23. "layout": {},
  24. "paint": {
  25. "background-color": "#75CFF0"
  26. }
  27. }, {
  28. "id": "面区界R@北京",
  29. "type": "fill",
  30. "source": "vector-tiles",
  31. "source-layer": "面区界R@北京",
  32. "paint": {
  33. "fill-color": "#EFE9E1"
  34. }
  35. }, {
  36. "id": "界线@北京",
  37. "type": "line",
  38. "source": "vector-tiles",
  39. "source-layer": "界线@北京",
  40. "paint": {
  41. "line-color": "hsl(240, 8%, 51%)",
  42. "line-width": 0.5
  43. }
  44. }, {
  45. "id": "立交桥绿地R@北京",
  46. "type": "fill",
  47. "source": "vector-tiles",
  48. "source-layer": "立交桥绿地R@北京",
  49. "paint": {
  50. "fill-color": "hsl(100, 58%, 76%)",
  51. "fill-opacity": {
  52. "base": 1,
  53. "stops": [
  54. [
  55. 5,
  56. 0
  57. ],
  58. [
  59. 6,
  60. 0.5
  61. ]
  62. ]
  63. }
  64. }
  65. }, {
  66. "id": "绿地R@北京",
  67. "type": "fill",
  68. "source": "vector-tiles",
  69. "source-layer": "绿地R@北京",
  70. "paint": {
  71. "fill-color": "hsl(100, 58%, 76%)",
  72. "fill-opacity": {
  73. "base": 1,
  74. "stops": [
  75. [
  76. 5,
  77. 0
  78. ],
  79. [
  80. 6,
  81. 0.5
  82. ]
  83. ]
  84. }
  85. }
  86. }, {
  87. "id": " 双线河R@北京",
  88. "type": "fill",
  89. "source": "vector-tiles",
  90. "source-layer": "双线河R@北京",
  91. "paint": {
  92. "fill-color": "hsl(196, 80%, 70%)"
  93. }
  94. }, {
  95. "id": "湖泊、水库R@北京",
  96. "type": "fill",
  97. "source": "vector-tiles",
  98. "source-layer": "湖泊、水库R@北京",
  99. "paint": {
  100. "fill-color": "hsl(196, 80%, 70%)"
  101. }
  102. },
  103. {
  104. "id": " 四级道路L@北京",
  105. "type": "line",
  106. "source": "vector-tiles",
  107. "source-layer": "四级道路L@北京",
  108. "paint": {
  109. "line-width": {
  110. "base": 1.5,
  111. "stops": [
  112. [
  113. 11,
  114. 1
  115. ],
  116. [
  117. 18,
  118. 10
  119. ]
  120. ]
  121. },
  122. "line-color": "hsl(0, 0%, 100%)"
  123. }
  124. }, {
  125. "id": " 三级道路L@北京",
  126. "type": "line",
  127. "source": "vector-tiles",
  128. "source-layer": "三级道路L@北京",
  129. "paint": {
  130. "line-width": {
  131. "base": 1.5,
  132. "stops": [
  133. [
  134. 11,
  135. 1
  136. ],
  137. [
  138. 18,
  139. 10
  140. ]
  141. ]
  142. },
  143. "line-color": "hsl(0, 0%, 100%)"
  144. }
  145. }, {
  146. "id": " 二级道路L@北京",
  147. "type": "line",
  148. "source": "vector-tiles",
  149. "source-layer": "二级道路L@北京",
  150. "paint": {
  151. "line-width": 4,
  152. "line-color": "hsl(230, 24%, 87%)"
  153. }
  154. }, {
  155. "id": " 二级道路L@北京1",
  156. "type": "line",
  157. "source": "vector-tiles",
  158. "source-layer": "二级道路L@北京",
  159. "paint": {
  160. "line-width": {
  161. "base": 1.5,
  162. "stops": [
  163. [
  164. 11,
  165. 2
  166. ],
  167. [
  168. 18,
  169. 18
  170. ]
  171. ]
  172. },
  173. "line-color": "hsl(0, 0%, 100%)"
  174. }
  175. }, {
  176. "id": "一级道路L@北京1",
  177. "type": "line",
  178. "source": "vector-tiles",
  179. "source-layer": "一级道路L@北京",
  180. "paint": {
  181. "line-width": {
  182. "base": 1.5,
  183. "stops": [
  184. [
  185. 11,
  186. 6
  187. ],
  188. [
  189. 18,
  190. 26
  191. ]
  192. ]
  193. },
  194. "line-color": "hsl(230, 24%, 87%)",
  195. "line-opacity": {
  196. "base": 1,
  197. "stops": [
  198. [
  199. 10.99,
  200. 0
  201. ],
  202. [
  203. 11,
  204. 1
  205. ]
  206. ]
  207. }
  208. }
  209. }, {
  210. "id": "一级道路L@北京",
  211. "type": "line",
  212. "source": "vector-tiles",
  213. "source-layer": "一级道路L@北京",
  214. "paint": {
  215. "line-width": {
  216. "base": 1.5,
  217. "stops": [
  218. [
  219. 11,
  220. 4
  221. ],
  222. [
  223. 18,
  224. 20
  225. ]
  226. ]
  227. },
  228. "line-color": "hsl(0, 0%, 100%)",
  229. "line-opacity": {
  230. "base": 1,
  231. "stops": [
  232. [
  233. 10.99,
  234. 0
  235. ],
  236. [
  237. 11,
  238. 1
  239. ]
  240. ]
  241. }
  242. }
  243. }, {
  244. "id": " 省道L@北京",
  245. "type": "line",
  246. "source": "vector-tiles",
  247. "source-layer": "省道L@北京",
  248. "paint": {
  249. "line-width": {
  250. "base": 1.5,
  251. "stops": [
  252. [
  253. 10,
  254. 6
  255. ],
  256. [
  257. 18,
  258. 36
  259. ]
  260. ]
  261. },
  262. "line-color": "hsl(26, 87%, 62%)"
  263. }
  264. }, {
  265. "id": " 省道L@北京1",
  266. "type": "line",
  267. "source": "vector-tiles",
  268. "source-layer": "省道L@北京",
  269. "paint": {
  270. "line-width": {
  271. "base": 1.5,
  272. "stops": [
  273. [
  274. 10,
  275. 4
  276. ],
  277. [
  278. 18,
  279. 32
  280. ]
  281. ]
  282. },
  283. "line-color": "hsl(35, 32%, 91%)"
  284. }
  285. }, {
  286. "id": " 高速公路L@北京",
  287. "type": "line",
  288. "source": "vector-tiles",
  289. "source-layer": "高速公路L@北京",
  290. "paint": {
  291. "line-width": {
  292. "base": 1.5,
  293. "stops": [
  294. [
  295. 11,
  296. 6
  297. ],
  298. [
  299. 18,
  300. 32
  301. ]
  302. ]
  303. },
  304. "line-color": "hsl(26, 87%, 62%)"
  305. }
  306. },
  307. {
  308. "id": "区政府驻地@北京",
  309. "type": "symbol",
  310. "source": "vector-tiles",
  311. "source-layer": "区政府驻地@北京",
  312. "layout": {
  313. "text-offset": [-1.5, -0.5],
  314. "text-anchor": "bottom-left",
  315. "text-field": "{NAME}",
  316. "text-max-width": 7,
  317. "text-font": [
  318. "DIN Offc Pro Medium",
  319. "Arial Unicode MS Regular"
  320. ],
  321. "text-size": 22
  322. },
  323. "paint": {
  324. "text-color": "hsl(230, 8%, 62%)",
  325. "text-opacity": {
  326. "base": 1,
  327. "stops": [
  328. [
  329. 11.99,
  330. 1
  331. ],
  332. [
  333. 12,
  334. 0
  335. ]
  336. ]
  337. },
  338. "text-halo-color": "hsl(0, 0%, 100%)",
  339. "text-halo-width": 1,
  340. "text-halo-blur": 1
  341. }
  342. }, {
  343. "id": "标志建筑@北京",
  344. "type": "symbol",
  345. "source": "vector-tiles",
  346. "source-layer": "标志建筑@北京",
  347. "layout": {
  348. "text-offset": [-1.5, -0.5],
  349. "text-anchor": "bottom-left",
  350. "text-field": "{NAME}",
  351. "text-max-width": 7,
  352. "text-size": 14
  353. },
  354. "paint": {
  355. "text-color": "hsl(26, 25%, 32%)",
  356. "text-opacity": {
  357. "base": 1,
  358. "stops": [
  359. [
  360. 10.99,
  361. 0
  362. ],
  363. [
  364. 11,
  365. 1
  366. ]
  367. ]
  368. },
  369. "text-halo-color": "hsl(0, 0%, 100%)",
  370. "text-halo-width": 1,
  371. "text-halo-blur": 1
  372. }
  373. }, {
  374. "id": " 一级道路Name",
  375. "type": "symbol",
  376. "source": "vector-tiles",
  377. "source-layer": "一级道路L@北京",
  378. "layout": {
  379. "text-line-height": 1.1,
  380. "text-size": {
  381. "base": 1.5,
  382. "stops": [
  383. [
  384. 13.99,
  385. 12
  386. ],
  387. [
  388. 20,
  389. 24
  390. ]
  391. ]
  392. },
  393. "text-font": [
  394. "DIN Offc Pro Italic",
  395. "Arial Unicode MS Regular"
  396. ],
  397. "symbol-placement": "line",
  398. "text-field": "{道路名称}",
  399. "text-letter-spacing": 0.1,
  400. "text-max-width": 5
  401. },
  402. "paint": {
  403. "text-color": "hsl(0, 0%, 0%)",
  404. "text-halo-color": "hsl(0, 0%, 100%)",
  405. "text-halo-width": 1.25,
  406. "text-opacity": {
  407. "base": 1,
  408. "stops": [
  409. [
  410. 13.99,
  411. 0
  412. ],
  413. [
  414. 14,
  415. 1
  416. ]
  417. ]
  418. }
  419. }
  420. }, {
  421. "id": " 省道Name",
  422. "type": "symbol",
  423. "source": "vector-tiles",
  424. "source-layer": "省道L@北京",
  425. "layout": {
  426. "text-line-height": 1.1,
  427. "text-size": {
  428. "base": 1.5,
  429. "stops": [
  430. [
  431. 11,
  432. 10
  433. ],
  434. [
  435. 18,
  436. 24
  437. ]
  438. ]
  439. },
  440. "text-font": [
  441. "DIN Offc Pro Italic",
  442. "Arial Unicode MS Regular"
  443. ],
  444. "symbol-placement": "line",
  445. "text-field": "{道路名称}",
  446. "text-letter-spacing": 0.1,
  447. "text-max-width": 5
  448. },
  449. "paint": {
  450. "text-color": "hsl(0, 0%, 0%)",
  451. "text-halo-color": "hsl(0, 0%, 100%)",
  452. "text-halo-width": 1.25,
  453. "text-opacity": {
  454. "base": 1,
  455. "stops": [
  456. [
  457. 10.99,
  458. 0
  459. ],
  460. [
  461. 11,
  462. 1
  463. ]
  464. ]
  465. }
  466. }
  467. },
  468. {
  469. "id": "立交桥名称P@北京",
  470. "type": "symbol",
  471. "source": "vector-tiles",
  472. "source-layer": "立交桥名称P@北京",
  473. "layout": {
  474. "text-offset": [-1, -1],
  475. "text-anchor": "bottom",
  476. "text-field": "{NAME}",
  477. "text-size": 14
  478. },
  479. "paint": {
  480. "text-color": "hsl(0, 0%, 0%)",
  481. "text-opacity": 1,
  482. "text-halo-color": "hsl(0, 0%, 100%)",
  483. "text-halo-width": 1,
  484. "text-halo-blur": 1
  485. }
  486. }, {
  487. "id": "长途汽车站@北京",
  488. "type": "symbol",
  489. "source": "vector-tiles",
  490. "source-layer": "长途汽车站@北京",
  491. "layout": {
  492. "icon-image": "bus-11",
  493. "text-offset": [-1, -1],
  494. "text-anchor": "bottom",
  495. "text-field": "{NAME}",
  496. "text-size": 12
  497. },
  498. "paint": {
  499. "text-color": "hsl(0, 0%, 0%)",
  500. "text-opacity": 1,
  501. "text-halo-color": "hsl(0, 0%, 100%)",
  502. "text-halo-width": 1,
  503. "text-halo-blur": 1
  504. }
  505. }, {
  506. "id": "图书馆@北京",
  507. "type": "symbol",
  508. "source": "vector-tiles",
  509. "source-layer": "图书馆@北京",
  510. "layout": {
  511. "icon-image": "library-11",
  512. "text-offset": [-1, -1],
  513. "text-anchor": "bottom",
  514. "text-field": "{NAME}",
  515. "text-size": 12
  516. },
  517. "paint": {
  518. "text-color": "hsl(0, 0%, 0%)",
  519. "text-opacity": 1,
  520. "text-halo-color": "hsl(0, 0%, 100%)",
  521. "text-halo-width": 1,
  522. "text-halo-blur": 1
  523. }
  524. }, {
  525. "id": "公园@北京",
  526. "type": "symbol",
  527. "source": "vector-tiles",
  528. "source-layer": "公园@北京",
  529. "layout": {
  530. "icon-image": "park-11",
  531. "text-offset": [0, -0.5],
  532. "text-anchor": "bottom",
  533. "text-field": "{NAME}",
  534. "text-size": 12
  535. },
  536. "paint": {
  537. "text-color": "hsl(0, 0%, 0%)",
  538. "text-opacity": 1,
  539. "text-halo-color": "hsl(0, 0%, 100%)",
  540. "text-halo-width": 1,
  541. "text-halo-blur": 1
  542. }
  543. }, {
  544. "id": "综合性广场@北京",
  545. "type": "symbol",
  546. "source": "vector-tiles",
  547. "source-layer": "综合性广场@北京",
  548. "layout": {
  549. "icon-image": "campsite-11",
  550. "text-offset": [0, -0.5],
  551. "text-anchor": "bottom",
  552. "text-field": "{NAME}",
  553. "text-size": 12
  554. },
  555. "paint": {
  556. "text-color": "hsl(0, 0%, 0%)",
  557. "text-opacity": 1,
  558. "text-halo-color": "hsl(0, 0%, 100%)",
  559. "text-halo-width": 1,
  560. "text-halo-blur": 1
  561. }
  562. }, {
  563. "id": "旅游景点@北京",
  564. "type": "symbol",
  565. "source": "vector-tiles",
  566. "source-layer": "旅游景点@北京",
  567. "layout": {
  568. "icon-image": "volcano-11",
  569. "text-offset": [0, -0.5],
  570. "text-anchor": "bottom",
  571. "text-field": "{NAME}",
  572. "text-size": 12
  573. },
  574. "paint": {
  575. "text-color": "hsl(0, 0%, 0%)",
  576. "text-opacity": 1,
  577. "text-halo-color": "hsl(0, 0%, 100%)",
  578. "text-halo-width": 1,
  579. "text-halo-blur": 1
  580. }
  581. }, {
  582. "id": "医疗卫生@北京",
  583. "type": "symbol",
  584. "source": "vector-tiles",
  585. "source-layer": "医疗卫生@北京",
  586. "layout": {
  587. "icon-image": "hospital-11",
  588. "text-offset": [0, -0.5],
  589. "text-anchor": "bottom",
  590. "text-field": "{NAME}",
  591. "text-size": 12
  592. },
  593. "paint": {
  594. "text-color": "hsl(0, 0%, 0%)",
  595. "text-opacity": 1,
  596. "text-halo-color": "hsl(0, 0%, 100%)",
  597. "text-halo-width": 1,
  598. "text-halo-blur": 1
  599. }
  600. }, {
  601. "id": "娱乐场所@北京",
  602. "type": "symbol",
  603. "source": "vector-tiles",
  604. "source-layer": "娱乐场所@北京",
  605. "layout": {
  606. "icon-image": "amusement-park-11",
  607. "text-offset": [0, -0.5],
  608. "text-anchor": "bottom",
  609. "text-field": "{NAME}",
  610. "text-size": 12
  611. },
  612. "paint": {
  613. "text-color": "hsl(0, 0%, 0%)",
  614. "text-opacity": 1,
  615. "text-halo-color": "hsl(0, 0%, 100%)",
  616. "text-halo-width": 1,
  617. "text-halo-blur": 1
  618. }
  619. }, {
  620. "id": "大厦@北京",
  621. "type": "symbol",
  622. "source": "vector-tiles",
  623. "source-layer": "大厦@北京",
  624. "layout": {
  625. "icon-image": "picnic-site-11",
  626. "text-offset": [0, -0.5],
  627. "text-anchor": "bottom",
  628. "text-field": "{NAME}",
  629. "text-size": 12
  630. },
  631. "paint": {
  632. "text-color": "hsl(0, 0%, 0%)",
  633. "text-opacity": 1,
  634. "text-halo-color": "hsl(0, 0%, 100%)",
  635. "text-halo-width": 1,
  636. "text-halo-blur": 1
  637. }
  638. }, {
  639. "id": "文化场所@北京",
  640. "type": "symbol",
  641. "source": "vector-tiles",
  642. "source-layer": "文化场所@北京",
  643. "layout": {
  644. "icon-image": "art-gallery-11",
  645. "text-offset": [0, -0.5],
  646. "text-anchor": "bottom",
  647. "text-field": "{NAME}",
  648. "text-size": 12
  649. },
  650. "paint": {
  651. "text-color": "hsl(0, 0%, 0%)",
  652. "text-opacity": 1,
  653. "text-halo-color": "hsl(0, 0%, 100%)",
  654. "text-halo-width": 1,
  655. "text-halo-blur": 1
  656. }
  657. }, {
  658. "id": "运动场所@北京",
  659. "type": "symbol",
  660. "source": "vector-tiles",
  661. "source-layer": "运动场所@北京",
  662. "layout": {
  663. "icon-image": "bicycle-share-11",
  664. "text-offset": [0, -0.5],
  665. "text-anchor": "bottom",
  666. "text-field": "{NAME}",
  667. "text-size": 12
  668. },
  669. "paint": {
  670. "text-color": "hsl(0, 0%, 0%)",
  671. "text-opacity": 1,
  672. "text-halo-color": "hsl(0, 0%, 100%)",
  673. "text-halo-width": 1,
  674. "text-halo-blur": 1
  675. }
  676. }, {
  677. "id": "交通运输@北京",
  678. "type": "symbol",
  679. "source": "vector-tiles",
  680. "source-layer": "交通运输@北京",
  681. "layout": {
  682. "icon-image": "bakery-11",
  683. "text-offset": [0, -0.5],
  684. "text-anchor": "bottom",
  685. "text-field": "{NAME}",
  686. "text-size": 12
  687. },
  688. "paint": {
  689. "text-color": "hsl(0, 0%, 0%)",
  690. "text-opacity": 1,
  691. "text-halo-color": "hsl(0, 0%, 100%)",
  692. "text-halo-width": 1,
  693. "text-halo-blur": 1
  694. }
  695. }, {
  696. "id": "其它@北京",
  697. "type": "symbol",
  698. "source": "vector-tiles",
  699. "source-layer": "其它@北京",
  700. "layout": {
  701. "icon-image": "toilet-11",
  702. "text-offset": [0, -0.5],
  703. "text-anchor": "bottom",
  704. "text-field": "{NAME}",
  705. "text-size": 12
  706. },
  707. "filter": [
  708. "==",
  709. "NAME",
  710. "公厕"
  711. ],
  712. "paint": {
  713. "text-color": "hsl(0, 0%, 0%)",
  714. "text-opacity": 1,
  715. "text-halo-color": "hsl(0, 0%, 100%)",
  716. "text-halo-width": 1,
  717. "text-halo-blur": 1
  718. }
  719. }, {
  720. "id": "服务行业@北京",
  721. "type": "symbol",
  722. "source": "vector-tiles",
  723. "source-layer": "服务行业@北京",
  724. "layout": {
  725. "icon-image": "embassy-11",
  726. "text-offset": [0, -0.5],
  727. "text-anchor": "bottom",
  728. "text-field": "{NAME}",
  729. "text-size": 12
  730. },
  731. "paint": {
  732. "text-color": "hsl(0, 0%, 0%)",
  733. "text-opacity": 1,
  734. "text-halo-color": "hsl(0, 0%, 100%)",
  735. "text-halo-width": 1,
  736. "text-halo-blur": 1
  737. }
  738. }, {
  739. "id": "其它@北京2",
  740. "type": "symbol",
  741. "source": "vector-tiles",
  742. "source-layer": "其它@北京",
  743. "layout": {
  744. "icon-image": "car-11",
  745. "text-offset": [0, -0.5],
  746. "text-anchor": "bottom",
  747. "text-field": "{NAME}",
  748. "text-size": 12
  749. },
  750. "filter": [
  751. "==",
  752. "NAME",
  753. "停车场"
  754. ],
  755. "paint": {
  756. "text-color": "hsl(0, 0%, 0%)",
  757. "text-opacity": 1,
  758. "text-halo-color": "hsl(0, 0%, 100%)",
  759. "text-halo-width": 1,
  760. "text-halo-blur": 1
  761. }
  762. }, {
  763. "id": "邮政电信@北京",
  764. "type": "symbol",
  765. "source": "vector-tiles",
  766. "source-layer": "邮政电信@北京",
  767. "layout": {
  768. "icon-image": "post-11",
  769. "text-offset": [0, -0.5],
  770. "text-anchor": "bottom",
  771. "text-field": "{NAME}",
  772. "text-size": 10,
  773. "text-max-width": 18
  774. },
  775. "paint": {
  776. "text-color": "hsl(0, 0%, 0%)",
  777. "text-opacity": 1,
  778. "text-halo-color": "hsl(0, 0%, 100%)",
  779. "text-halo-width": 1,
  780. "text-halo-blur": 1
  781. }
  782. }, {
  783. "id": "商场@北京",
  784. "type": "symbol",
  785. "source": "vector-tiles",
  786. "source-layer": "商场@北京",
  787. "layout": {
  788. "icon-image": "grocery-11",
  789. "text-offset": [0, -0.5],
  790. "text-anchor": "bottom",
  791. "text-field": "{NAME}",
  792. "text-size": 12
  793. },
  794. "paint": {
  795. "text-color": "hsl(0, 0%, 0%)",
  796. "text-opacity": 1,
  797. "text-halo-color": "hsl(0, 0%, 100%)",
  798. "text-halo-width": 1,
  799. "text-halo-blur": 1
  800. }
  801. }, {
  802. "id": "综合性商店@北京",
  803. "type": "symbol",
  804. "source": "vector-tiles",
  805. "source-layer": "综合性商店@北京",
  806. "layout": {
  807. "icon-image": "grocery-11",
  808. "text-offset": [0, -0.5],
  809. "text-anchor": "bottom",
  810. "text-field": "{NAME}",
  811. "text-size": 12
  812. },
  813. "paint": {
  814. "text-color": "hsl(0, 0%, 0%)",
  815. "text-opacity": 1,
  816. "text-halo-color": "hsl(0, 0%, 100%)",
  817. "text-halo-width": 1,
  818. "text-halo-blur": 1
  819. }
  820. }, {
  821. "id": "饭店@北京",
  822. "type": "symbol",
  823. "source": "vector-tiles",
  824. "source-layer": "饭店@北京",
  825. "layout": {
  826. "icon-image": "restaurant-11",
  827. "text-offset": [0, -0.5],
  828. "text-anchor": "bottom",
  829. "text-field": "{NAME}",
  830. "text-size": 12
  831. },
  832. "paint": {
  833. "text-color": "hsl(0, 0%, 0%)",
  834. "text-opacity": 1,
  835. "text-halo-color": "hsl(0, 0%, 100%)",
  836. "text-halo-width": 1,
  837. "text-halo-blur": 1
  838. }
  839. }, {
  840. "id": "加油站@北京",
  841. "type": "symbol",
  842. "source": "vector-tiles",
  843. "source-layer": "加油站@北京",
  844. "layout": {
  845. "icon-image": "fuel-11",
  846. "text-offset": [0, -0.5],
  847. "text-anchor": "bottom",
  848. "text-field": "{NAME}",
  849. "text-size": 12
  850. },
  851. "paint": {
  852. "text-color": "hsl(0, 0%, 0%)",
  853. "text-opacity": 1,
  854. "text-halo-color": "hsl(0, 0%, 100%)",
  855. "text-halo-width": 1,
  856. "text-halo-blur": 1
  857. }
  858. }, {
  859. "id": "建筑@北京",
  860. "type": "symbol",
  861. "source": "vector-tiles",
  862. "source-layer": "建筑@北京",
  863. "layout": {
  864. "icon-image": "place-of-worship-11",
  865. "text-offset": [0, -0.5],
  866. "text-anchor": "bottom",
  867. "text-field": "{NAME}",
  868. "text-size": 12
  869. },
  870. "paint": {
  871. "text-color": "hsl(0, 0%, 0%)",
  872. "text-opacity": 1,
  873. "text-halo-color": "hsl(0, 0%, 100%)",
  874. "text-halo-width": 1,
  875. "text-halo-blur": 1
  876. }
  877. }, {
  878. "id": "码头@北京",
  879. "type": "symbol",
  880. "source": "vector-tiles",
  881. "source-layer": "码头@北京",
  882. "layout": {
  883. "icon-image": "harbor-11",
  884. "text-offset": [0, -0.5],
  885. "text-anchor": "bottom",
  886. "text-field": "{NAME}",
  887. "text-size": 12
  888. },
  889. "paint": {
  890. "text-color": "hsl(0, 0%, 0%)",
  891. "text-opacity": 1,
  892. "text-halo-color": "hsl(0, 0%, 100%)",
  893. "text-halo-width": 1,
  894. "text-halo-blur": 1
  895. }
  896. }, {
  897. "id": "机场@北京",
  898. "type": "symbol",
  899. "source": "vector-tiles",
  900. "source-layer": "机场@北京",
  901. "layout": {
  902. "icon-image": "airport-11",
  903. "text-offset": [0, -0.5],
  904. "text-anchor": "bottom",
  905. "text-field": "{NAME}",
  906. "text-size": 12
  907. },
  908. "paint": {
  909. "text-color": "hsl(0, 0%, 0%)",
  910. "text-opacity": 1,
  911. "text-halo-color": "hsl(0, 0%, 100%)",
  912. "text-halo-width": 1,
  913. "text-halo-blur": 1
  914. }
  915. }, {
  916. "id": "火车站@北京",
  917. "type": "symbol",
  918. "source": "vector-tiles",
  919. "source-layer": "火车站@北京",
  920. "layout": {
  921. "icon-image": "rail-15",
  922. "text-offset": [0, -0.5],
  923. "text-anchor": "bottom",
  924. "text-field": "{NAME}",
  925. "text-size": 12
  926. },
  927. "paint": {
  928. "text-color": "hsl(0, 0%, 0%)",
  929. "text-opacity": 1,
  930. "text-halo-color": "hsl(0, 0%, 100%)",
  931. "text-halo-width": 1,
  932. "text-halo-blur": 1
  933. }
  934. }, {
  935. "id": "地名@北京",
  936. "type": "symbol",
  937. "source": "vector-tiles",
  938. "source-layer": "地名@北京",
  939. "layout": {
  940. "icon-image": "dot-11",
  941. "text-offset": [0, -0.3],
  942. "text-anchor": "bottom",
  943. "text-field": "{NAME}",
  944. "text-size": 12
  945. },
  946. "paint": {
  947. "text-color": "hsl(0, 0%, 0%)",
  948. "text-opacity": 1,
  949. "text-halo-color": "hsl(0, 0%, 100%)",
  950. "text-halo-width": 1,
  951. "text-halo-blur": 1
  952. }
  953. }
  954. ]
  955. }
  956. },
  957. dark: {
  958. style: {
  959. "version": 8,
  960. "sources": {
  961. "vector-tiles": {
  962. "attribution": attribution,
  963. "type": "vector",
  964. "tiles": [host + "/iserver/services/map-beijing/rest/maps/beijingMap/tileFeature.mvt?returnAttributes=true&compressTolerance=-1&width=512&height=512&viewBounds={bbox-epsg-3857}&expands=0:0_2,132_128,138_64,141_32,143_16,145_8,147_4"]
  965. }
  966. },
  967. "sprite": "https://iclient.supermap.io/web/styles/dark/sprite",
  968. "glyphs": host + "/iserver/services/map-beijing/rest/maps/beijingMap/tileFeature/sdffonts/{fontstack}/{range}.pbf",
  969. "layers": [
  970. {
  971. "id": "background",
  972. "type": "background",
  973. "layout": {},
  974. "paint": {
  975. "background-color": "hsl(55, 1%, 20%)"
  976. }
  977. },
  978. {
  979. "id": "面区界R@北京",
  980. "type": "fill",
  981. "source": "vector-tiles",
  982. "source-layer": "面区界R@北京",
  983. "paint": {
  984. "fill-color": "hsl(55, 1%, 20%)"
  985. }
  986. },
  987. {
  988. "id": "界线@北京",
  989. "type": "line",
  990. "source": "vector-tiles",
  991. "source-layer": "界线@北京",
  992. "paint": {
  993. "line-color": "hsl(0, 0%, 35%)",
  994. "line-width": 0.5
  995. }
  996. },
  997. {
  998. "id": "立交桥绿地R@北京",
  999. "type": "fill",
  1000. "source": "vector-tiles",
  1001. "source-layer": "立交桥绿地R@北京",
  1002. "paint": {
  1003. "fill-color": "hsl(132, 2%, 20%)",
  1004. "fill-opacity": 0.5
  1005. }
  1006. },
  1007. {
  1008. "id": "绿地R@北京",
  1009. "type": "fill",
  1010. "source": "vector-tiles",
  1011. "source-layer": "绿地R@北京",
  1012. "paint": {
  1013. "fill-color": "hsl(132, 2%, 20%)",
  1014. "fill-opacity": 0.5
  1015. }
  1016. },
  1017. {
  1018. "id": " 双线河R@北京",
  1019. "type": "fill",
  1020. "source": "vector-tiles",
  1021. "source-layer": "双线河R@北京",
  1022. "paint": {
  1023. "fill-color": "hsl(185, 2%, 10%)"
  1024. }
  1025. },
  1026. {
  1027. "id": "湖泊、水库R@北京",
  1028. "type": "fill",
  1029. "source": "vector-tiles",
  1030. "source-layer": "湖泊、水库R@北京",
  1031. "paint": {
  1032. "fill-color": "hsl(185, 2%, 10%)"
  1033. }
  1034. },
  1035. {
  1036. "id": " 四级道路L@北京",
  1037. "type": "line",
  1038. "source": "vector-tiles",
  1039. "source-layer": "四级道路L@北京",
  1040. "paint": {
  1041. "line-width": 1,
  1042. "line-color": "hsl(0, 0%, 27%)"
  1043. }
  1044. },
  1045. {
  1046. "id": " 三级道路L@北京",
  1047. "type": "line",
  1048. "source": "vector-tiles",
  1049. "source-layer": "三级道路L@北京",
  1050. "paint": {
  1051. "line-width": 1,
  1052. "line-color": "hsl(0, 0%,27%)"
  1053. }
  1054. },
  1055. {
  1056. "id": " 二级道路L@北京",
  1057. "type": "line",
  1058. "source": "vector-tiles",
  1059. "source-layer": "二级道路L@北京",
  1060. "paint": {
  1061. "line-width": 2,
  1062. "line-color": "hsl(0, 0%, 27%)"
  1063. }
  1064. },
  1065. {
  1066. "id": "一级道路L@北京1",
  1067. "type": "line",
  1068. "source": "vector-tiles",
  1069. "source-layer": "一级道路L@北京",
  1070. "paint": {
  1071. "line-width": 6,
  1072. "line-color": "hsl(0, 0%, 17%)",
  1073. "line-opacity": {
  1074. "base": 1,
  1075. "stops": [
  1076. [
  1077. 10.99,
  1078. 0
  1079. ],
  1080. [
  1081. 11,
  1082. 1
  1083. ]
  1084. ]
  1085. }
  1086. }
  1087. },
  1088. {
  1089. "id": "一级道路L@北京",
  1090. "type": "line",
  1091. "source": "vector-tiles",
  1092. "source-layer": "一级道路L@北京",
  1093. "paint": {
  1094. "line-width": 4,
  1095. "line-color": "hsl(0, 0%, 27%)",
  1096. "line-opacity": {
  1097. "base": 1,
  1098. "stops": [
  1099. [
  1100. 10.99,
  1101. 0
  1102. ],
  1103. [
  1104. 11,
  1105. 1
  1106. ]
  1107. ]
  1108. }
  1109. }
  1110. },
  1111. {
  1112. "id": " 省道L@北京",
  1113. "type": "line",
  1114. "source": "vector-tiles",
  1115. "source-layer": "省道L@北京",
  1116. "paint": {
  1117. "line-width": 6,
  1118. "line-color": "hsl(0, 0%, 17%)"
  1119. }
  1120. },
  1121. {
  1122. "id": " 省道L@北京1",
  1123. "type": "line",
  1124. "source": "vector-tiles",
  1125. "source-layer": "省道L@北京",
  1126. "paint": {
  1127. "line-width": 4,
  1128. "line-color": "hsl(0, 0%, 27%)"
  1129. }
  1130. },
  1131. {
  1132. "id": " 高速公路L@北京",
  1133. "type": "line",
  1134. "source": "vector-tiles",
  1135. "source-layer": "高速公路L@北京",
  1136. "paint": {
  1137. "line-width": 4,
  1138. "line-color": "hsl(0, 0%, 27%)",
  1139. }
  1140. },
  1141. //区划
  1142. {
  1143. "id": "区政府驻地@北京",
  1144. "type": "symbol",
  1145. "source": "vector-tiles",
  1146. "source-layer": "区政府驻地@北京",
  1147. "layout": {
  1148. "text-offset": [-1.5, -0.5],
  1149. "text-anchor": "bottom-left",
  1150. "text-field": "{NAME}",
  1151. "text-max-width": 7,
  1152. "text-size": {
  1153. "base": 0.9,
  1154. "stops": [
  1155. [
  1156. 4,
  1157. 12
  1158. ],
  1159. [
  1160. 10,
  1161. 22
  1162. ]
  1163. ]
  1164. }
  1165. },
  1166. "paint": {
  1167. "text-color": {
  1168. "base": 1,
  1169. "stops": [
  1170. [
  1171. 10,
  1172. "hsl(0, 0%, 75%)"
  1173. ],
  1174. [
  1175. 11,
  1176. "hsl(0, 0%, 85%)"
  1177. ]
  1178. ]
  1179. },
  1180. "text-halo-color": "hsla(0, 0%, 10%, 0.75)",
  1181. "text-halo-width": 1.25,
  1182. "text-opacity": {
  1183. "base": 1,
  1184. "stops": [
  1185. [
  1186. 11.99,
  1187. 1
  1188. ],
  1189. [
  1190. 12,
  1191. 0
  1192. ]
  1193. ]
  1194. },
  1195. "text-halo-blur": 0
  1196. }
  1197. },
  1198. //地标
  1199. {
  1200. "id": "标志建筑@北京",
  1201. "type": "symbol",
  1202. "source": "vector-tiles",
  1203. "source-layer": "标志建筑@北京",
  1204. "layout": {
  1205. "text-offset": [-1.5, -0.5],
  1206. "text-anchor": "bottom-left",
  1207. "text-field": "{NAME}",
  1208. "text-max-width": 7,
  1209. "text-size": 14
  1210. },
  1211. "paint": {
  1212. "text-color": "hsl(0, 0%, 60%)",
  1213. "text-halo-color": "#212121",
  1214. "text-halo-width": 1,
  1215. "text-halo-blur": 0,
  1216. "text-opacity": {
  1217. "base": 1,
  1218. "stops": [
  1219. [
  1220. 10.99,
  1221. 0
  1222. ],
  1223. [
  1224. 11,
  1225. 1
  1226. ]
  1227. ]
  1228. }
  1229. }
  1230. },
  1231. {
  1232. "id": " 一级道路Name",
  1233. "type": "symbol",
  1234. "source": "vector-tiles",
  1235. "source-layer": "一级道路L@北京",
  1236. "layout": {
  1237. "text-line-height": 1.1,
  1238. "text-size": {
  1239. "base": 1.5,
  1240. "stops": [
  1241. [
  1242. 13.99,
  1243. 12
  1244. ],
  1245. [
  1246. 20,
  1247. 24
  1248. ]
  1249. ]
  1250. },
  1251. "text-font": [
  1252. "DIN Offc Pro Italic",
  1253. "Arial Unicode MS Regular"
  1254. ],
  1255. "symbol-placement": "line",
  1256. "text-field": "{道路名称}",
  1257. "text-letter-spacing": 0.1,
  1258. "text-max-width": 5
  1259. },
  1260. "paint": {
  1261. "text-color": "hsl(0, 0%, 0%)",
  1262. "text-halo-color": "hsl(0, 0%, 100%)",
  1263. "text-halo-width": 1.25,
  1264. "text-opacity": {
  1265. "base": 1,
  1266. "stops": [
  1267. [
  1268. 13.99,
  1269. 0
  1270. ],
  1271. [
  1272. 14,
  1273. 1
  1274. ]
  1275. ]
  1276. }
  1277. }
  1278. },
  1279. {
  1280. "id": " 省道Name",
  1281. "type": "symbol",
  1282. "source": "vector-tiles",
  1283. "source-layer": "省道L@北京",
  1284. "layout": {
  1285. "text-line-height": 1.1,
  1286. "text-size": {
  1287. "base": 1.5,
  1288. "stops": [
  1289. [
  1290. 11,
  1291. 10
  1292. ],
  1293. [
  1294. 18,
  1295. 24
  1296. ]
  1297. ]
  1298. },
  1299. "text-font": [
  1300. "DIN Offc Pro Italic",
  1301. "Arial Unicode MS Regular"
  1302. ],
  1303. "symbol-placement": "line",
  1304. "text-field": "{道路名称}",
  1305. "text-letter-spacing": 0.1,
  1306. "text-max-width": 5
  1307. },
  1308. "paint": {
  1309. "text-color": "hsl(0, 0%, 0%)",
  1310. "text-halo-color": "hsl(0, 0%, 100%)",
  1311. "text-halo-width": 1.25,
  1312. "text-opacity": {
  1313. "base": 1,
  1314. "stops": [
  1315. [
  1316. 10.99,
  1317. 0
  1318. ],
  1319. [
  1320. 11,
  1321. 1
  1322. ]
  1323. ]
  1324. }
  1325. }
  1326. },
  1327. {
  1328. "id": "立交桥名称P@北京",
  1329. "type": "symbol",
  1330. "source": "vector-tiles",
  1331. "source-layer": "立交桥名称P@北京",
  1332. "layout": {
  1333. "text-offset": [-1, -1],
  1334. "text-anchor": "bottom",
  1335. "text-field": "{NAME}",
  1336. "text-size": 14
  1337. },
  1338. "paint": {
  1339. "text-color": "hsl(0, 0%, 78%)",
  1340. "text-opacity": 1,
  1341. "text-halo-color": "#212121",
  1342. "text-halo-width": 1,
  1343. "text-halo-blur": 0
  1344. }
  1345. },
  1346. {
  1347. "id": "长途汽车站@北京",
  1348. "type": "symbol",
  1349. "source": "vector-tiles",
  1350. "source-layer": "长途汽车站@北京",
  1351. "layout": {
  1352. "icon-image": "bus-11",
  1353. "text-offset": [-1, -1],
  1354. "text-anchor": "bottom",
  1355. "text-field": "{NAME}",
  1356. "text-size": 12
  1357. },
  1358. "paint": {
  1359. "text-color": "hsl(0, 0%, 78%)",
  1360. "text-halo-color": "#212121",
  1361. "text-halo-width": 1,
  1362. "text-halo-blur": 0
  1363. },
  1364. },
  1365. {
  1366. "id": "图书馆@北京",
  1367. "type": "symbol",
  1368. "source": "vector-tiles",
  1369. "source-layer": "图书馆@北京",
  1370. "layout": {
  1371. "icon-image": "library-11",
  1372. "text-offset": [-1, -1],
  1373. "text-anchor": "bottom",
  1374. "text-field": "{NAME}",
  1375. "text-size": 12
  1376. },
  1377. "paint": {
  1378. "text-color": "hsl(0, 0%, 78%)",
  1379. "text-halo-color": "#212121",
  1380. "text-halo-width": 1,
  1381. "text-halo-blur": 0
  1382. },
  1383. },
  1384. {
  1385. "id": "公园@北京",
  1386. "type": "symbol",
  1387. "source": "vector-tiles",
  1388. "source-layer": "公园@北京",
  1389. "layout": {
  1390. "icon-image": "park-11",
  1391. "text-offset": [0, -0.5],
  1392. "text-anchor": "bottom",
  1393. "text-field": "{NAME}",
  1394. "text-size": 12
  1395. },
  1396. "paint": {
  1397. "text-color": "hsl(0, 0%, 78%)",
  1398. "text-halo-color": "#212121",
  1399. "text-halo-width": 1,
  1400. "text-halo-blur": 0
  1401. },
  1402. },
  1403. {
  1404. "id": "综合性广场@北京",
  1405. "type": "symbol",
  1406. "source": "vector-tiles",
  1407. "source-layer": "综合性广场@北京",
  1408. "layout": {
  1409. "icon-image": "campsite-11",
  1410. "text-offset": [0, -0.5],
  1411. "text-anchor": "bottom",
  1412. "text-field": "{NAME}",
  1413. "text-size": 12
  1414. },
  1415. "paint": {
  1416. "text-color": "hsl(0, 0%, 78%)",
  1417. "text-halo-color": "#212121",
  1418. "text-halo-width": 1,
  1419. "text-halo-blur": 0
  1420. },
  1421. },
  1422. {
  1423. "id": "旅游景点@北京",
  1424. "type": "symbol",
  1425. "source": "vector-tiles",
  1426. "source-layer": "旅游景点@北京",
  1427. "layout": {
  1428. "icon-image": "volcano-11",
  1429. "text-offset": [0, -0.5],
  1430. "text-anchor": "bottom",
  1431. "text-field": "{NAME}",
  1432. "text-size": 12
  1433. },
  1434. "paint": {
  1435. "text-color": "hsl(0, 0%, 78%)",
  1436. "text-halo-color": "#212121",
  1437. "text-halo-width": 1,
  1438. "text-halo-blur": 0
  1439. },
  1440. },
  1441. {
  1442. "id": "医疗卫生@北京",
  1443. "type": "symbol",
  1444. "source": "vector-tiles",
  1445. "source-layer": "医疗卫生@北京",
  1446. "layout": {
  1447. "icon-image": "hospital-11",
  1448. "text-offset": [0, -0.5],
  1449. "text-anchor": "bottom",
  1450. "text-field": "{NAME}",
  1451. "text-size": 12
  1452. },
  1453. "paint": {
  1454. "text-color": "hsl(0, 0%, 78%)",
  1455. "text-halo-color": "#212121",
  1456. "text-halo-width": 1,
  1457. "text-halo-blur": 0
  1458. }
  1459. },
  1460. {
  1461. "id": "娱乐场所@北京",
  1462. "type": "symbol",
  1463. "source": "vector-tiles",
  1464. "source-layer": "娱乐场所@北京",
  1465. "layout": {
  1466. "icon-image": "amusement-park-11",
  1467. "text-offset": [0, -0.5],
  1468. "text-anchor": "bottom",
  1469. "text-field": "{NAME}",
  1470. "text-size": 12
  1471. },
  1472. "paint": {
  1473. "text-color": "hsl(0, 0%, 0%)",
  1474. "text-opacity": 1,
  1475. "text-halo-color": "hsl(0, 0%, 100%)",
  1476. "text-halo-width": 1,
  1477. "text-halo-blur": 1
  1478. }
  1479. },
  1480. {
  1481. "id": "大厦@北京",
  1482. "type": "symbol",
  1483. "source": "vector-tiles",
  1484. "source-layer": "大厦@北京",
  1485. "layout": {
  1486. "icon-image": "picnic-site-11",
  1487. "text-offset": [0, -0.5],
  1488. "text-anchor": "bottom",
  1489. "text-field": "{NAME}",
  1490. "text-size": 12
  1491. },
  1492. "paint": {
  1493. "text-color": "hsl(0, 0%, 0%)",
  1494. "text-opacity": 1,
  1495. "text-halo-color": "hsl(0, 0%, 100%)",
  1496. "text-halo-width": 1,
  1497. "text-halo-blur": 1
  1498. }
  1499. },
  1500. {
  1501. "id": "文化场所@北京",
  1502. "type": "symbol",
  1503. "source": "vector-tiles",
  1504. "source-layer": "文化场所@北京",
  1505. "layout": {
  1506. "icon-image": "art-gallery-11",
  1507. "text-offset": [0, -0.5],
  1508. "text-anchor": "bottom",
  1509. "text-field": "{NAME}",
  1510. "text-size": 12
  1511. },
  1512. "paint": {
  1513. "text-color": "hsl(0, 0%, 0%)",
  1514. "text-opacity": 1,
  1515. "text-halo-color": "hsl(0, 0%, 100%)",
  1516. "text-halo-width": 1,
  1517. "text-halo-blur": 1
  1518. }
  1519. },
  1520. {
  1521. "id": "运动场所@北京",
  1522. "type": "symbol",
  1523. "source": "vector-tiles",
  1524. "source-layer": "运动场所@北京",
  1525. "layout": {
  1526. "icon-image": "bicycle-share-11",
  1527. "text-offset": [0, -0.5],
  1528. "text-anchor": "bottom",
  1529. "text-field": "{NAME}",
  1530. "text-size": 12
  1531. },
  1532. "paint": {
  1533. "text-color": "hsl(0, 0%, 0%)",
  1534. "text-opacity": 1,
  1535. "text-halo-color": "hsl(0, 0%, 100%)",
  1536. "text-halo-width": 1,
  1537. "text-halo-blur": 1
  1538. }
  1539. },
  1540. {
  1541. "id": "交通运输@北京",
  1542. "type": "symbol",
  1543. "source": "vector-tiles",
  1544. "source-layer": "交通运输@北京",
  1545. "layout": {
  1546. "icon-image": "bakery-11",
  1547. "text-offset": [0, -0.5],
  1548. "text-anchor": "bottom",
  1549. "text-field": "{NAME}",
  1550. "text-size": 12
  1551. },
  1552. "paint": {
  1553. "text-color": "hsl(0, 0%, 0%)",
  1554. "text-opacity": 1,
  1555. "text-halo-color": "hsl(0, 0%, 100%)",
  1556. "text-halo-width": 1,
  1557. "text-halo-blur": 1
  1558. }
  1559. },
  1560. {
  1561. "id": "其它@北京",
  1562. "type": "symbol",
  1563. "source": "vector-tiles",
  1564. "source-layer": "其它@北京",
  1565. "layout": {
  1566. "icon-image": "toilet-11",
  1567. "text-offset": [0, -0.5],
  1568. "text-anchor": "bottom",
  1569. "text-field": "{NAME}",
  1570. "text-size": 12
  1571. },
  1572. "filter": [
  1573. "==",
  1574. "NAME",
  1575. "公厕"
  1576. ],
  1577. "paint": {
  1578. "text-color": "hsl(0, 0%, 0%)",
  1579. "text-opacity": 1,
  1580. "text-halo-color": "hsl(0, 0%, 100%)",
  1581. "text-halo-width": 1,
  1582. "text-halo-blur": 1
  1583. }
  1584. },
  1585. {
  1586. "id": "服务行业@北京",
  1587. "type": "symbol",
  1588. "source": "vector-tiles",
  1589. "source-layer": "服务行业@北京",
  1590. "layout": {
  1591. "icon-image": "embassy-11",
  1592. "text-offset": [0, -0.5],
  1593. "text-anchor": "bottom",
  1594. "text-field": "{NAME}",
  1595. "text-size": 12
  1596. },
  1597. "paint": {
  1598. "text-color": "hsl(0, 0%, 0%)",
  1599. "text-opacity": 1,
  1600. "text-halo-color": "hsl(0, 0%, 100%)",
  1601. "text-halo-width": 1,
  1602. "text-halo-blur": 1
  1603. }
  1604. },
  1605. {
  1606. "id": "其它@北京2",
  1607. "type": "symbol",
  1608. "source": "vector-tiles",
  1609. "source-layer": "其它@北京",
  1610. "layout": {
  1611. "icon-image": "car-11",
  1612. "text-offset": [0, -0.5],
  1613. "text-anchor": "bottom",
  1614. "text-field": "{NAME}",
  1615. "text-size": 12
  1616. },
  1617. "filter": [
  1618. "==",
  1619. "NAME",
  1620. "停车场"
  1621. ],
  1622. "paint": {
  1623. "text-color": "hsl(0, 0%, 0%)",
  1624. "text-opacity": 1,
  1625. "text-halo-color": "hsl(0, 0%, 100%)",
  1626. "text-halo-width": 1,
  1627. "text-halo-blur": 1
  1628. }
  1629. },
  1630. {
  1631. "id": "邮政电信@北京",
  1632. "type": "symbol",
  1633. "source": "vector-tiles",
  1634. "source-layer": "邮政电信@北京",
  1635. "layout": {
  1636. "icon-image": "post-11",
  1637. "text-offset": [0, -0.5],
  1638. "text-anchor": "bottom",
  1639. "text-field": "{NAME}",
  1640. "text-size": 10,
  1641. "text-max-width": 18
  1642. },
  1643. "paint": {
  1644. "text-color": "hsl(0, 0%, 0%)",
  1645. "text-opacity": 1,
  1646. "text-halo-color": "hsl(0, 0%, 100%)",
  1647. "text-halo-width": 1,
  1648. "text-halo-blur": 1
  1649. }
  1650. },
  1651. {
  1652. "id": "商场@北京",
  1653. "type": "symbol",
  1654. "source": "vector-tiles",
  1655. "source-layer": "商场@北京",
  1656. "layout": {
  1657. "icon-image": "grocery-11",
  1658. "text-offset": [0, -0.5],
  1659. "text-anchor": "bottom",
  1660. "text-field": "{NAME}",
  1661. "text-size": 12
  1662. },
  1663. "paint": {
  1664. "text-color": "hsl(0, 0%, 78%)",
  1665. "text-halo-color": "#212121",
  1666. "text-halo-width": 1,
  1667. "text-halo-blur": 0
  1668. }
  1669. },
  1670. {
  1671. "id": "综合性商店@北京",
  1672. "type": "symbol",
  1673. "source": "vector-tiles",
  1674. "source-layer": "综合性商店@北京",
  1675. "layout": {
  1676. "icon-image": "grocery-11",
  1677. "text-offset": [0, -0.5],
  1678. "text-anchor": "bottom",
  1679. "text-field": "{NAME}",
  1680. "text-size": 12
  1681. },
  1682. "paint": {
  1683. "text-color": "hsl(0, 0%, 78%)",
  1684. "text-halo-color": "#212121",
  1685. "text-halo-width": 1,
  1686. "text-halo-blur": 0
  1687. }
  1688. },
  1689. {
  1690. "id": "饭店@北京",
  1691. "type": "symbol",
  1692. "source": "vector-tiles",
  1693. "source-layer": "饭店@北京",
  1694. "layout": {
  1695. "icon-image": "restaurant-11",
  1696. "text-offset": [0, -0.5],
  1697. "text-anchor": "bottom",
  1698. "text-field": "{NAME}",
  1699. "text-size": 12
  1700. },
  1701. "paint": {
  1702. "text-color": "hsl(0, 0%, 78%)",
  1703. "text-halo-color": "#212121",
  1704. "text-halo-width": 1,
  1705. "text-halo-blur": 0
  1706. }
  1707. },
  1708. {
  1709. "id": "加油站@北京",
  1710. "type": "symbol",
  1711. "source": "vector-tiles",
  1712. "source-layer": "加油站@北京",
  1713. "layout": {
  1714. "icon-image": "fuel-11",
  1715. "text-offset": [0, -0.5],
  1716. "text-anchor": "bottom",
  1717. "text-field": "{NAME}",
  1718. "text-size": 12
  1719. },
  1720. "paint": {
  1721. "text-color": "hsl(0, 0%, 78%)",
  1722. "text-halo-color": "#212121",
  1723. "text-halo-width": 1,
  1724. "text-halo-blur": 0
  1725. }
  1726. },
  1727. {
  1728. "id": "建筑@北京",
  1729. "type": "symbol",
  1730. "source": "vector-tiles",
  1731. "source-layer": "建筑@北京",
  1732. "layout": {
  1733. "icon-image": "place-of-worship-11",
  1734. "text-offset": [0, -0.5],
  1735. "text-anchor": "bottom",
  1736. "text-field": "{NAME}",
  1737. "text-size": 12
  1738. },
  1739. "paint": {
  1740. "text-color": "hsl(0, 0%, 78%)",
  1741. "text-halo-color": "#212121",
  1742. "text-halo-width": 1,
  1743. "text-halo-blur": 0
  1744. }
  1745. },
  1746. {
  1747. "id": "码头@北京",
  1748. "type": "symbol",
  1749. "source": "vector-tiles",
  1750. "source-layer": "码头@北京",
  1751. "layout": {
  1752. "icon-image": "harbor-11",
  1753. "text-offset": [0, -0.5],
  1754. "text-anchor": "bottom",
  1755. "text-field": "{NAME}",
  1756. "text-size": 12
  1757. },
  1758. "paint": {
  1759. "text-color": "hsl(0, 0%, 78%)",
  1760. "text-halo-color": "#212121",
  1761. "text-halo-width": 1,
  1762. "text-halo-blur": 0
  1763. }
  1764. },
  1765. {
  1766. "id": "机场@北京",
  1767. "type": "symbol",
  1768. "source": "vector-tiles",
  1769. "source-layer": "机场@北京",
  1770. "layout": {
  1771. "icon-image": "airport-11",
  1772. "text-offset": [0, -0.5],
  1773. "text-anchor": "bottom",
  1774. "text-field": "{NAME}",
  1775. "text-size": 12
  1776. },
  1777. "paint": {
  1778. "text-color": "hsl(0, 0%, 78%)",
  1779. "text-halo-color": "#212121",
  1780. "text-halo-width": 1,
  1781. "text-halo-blur": 0
  1782. }
  1783. },
  1784. {
  1785. "id": "火车站@北京",
  1786. "type": "symbol",
  1787. "source": "vector-tiles",
  1788. "source-layer": "火车站@北京",
  1789. "layout": {
  1790. "icon-image": "rail-15",
  1791. "text-offset": [0, -0.5],
  1792. "text-anchor": "bottom",
  1793. "text-field": "{NAME}",
  1794. "text-size": 12
  1795. },
  1796. "paint": {
  1797. "text-color": "hsl(0, 0%, 78%)",
  1798. "text-halo-color": "#212121",
  1799. "text-halo-width": 1,
  1800. "text-halo-blur": 0
  1801. }
  1802. },
  1803. {
  1804. "id": "地名@北京",
  1805. "type": "symbol",
  1806. "source": "vector-tiles",
  1807. "source-layer": "地名@北京",
  1808. "layout": {
  1809. "icon-image": "dot-11",
  1810. "text-offset": [0, -0.3],
  1811. "text-anchor": "bottom",
  1812. "text-field": "{NAME}",
  1813. "text-size": 12
  1814. },
  1815. "paint": {
  1816. "text-color": "hsl(0, 0%, 78%)",
  1817. "text-halo-color": "#212121",
  1818. "text-halo-width": 1,
  1819. "text-halo-blur": 0
  1820. }
  1821. }
  1822. ]
  1823. }
  1824. },
  1825. fiordcolor: {
  1826. style: {
  1827. "version": 8,
  1828. "sources": {
  1829. "vector-tiles": {
  1830. "attribution": attribution,
  1831. "type": "vector",
  1832. "tiles": [host + "/iserver/services/map-beijing/rest/maps/beijingMap/tileFeature.mvt?returnAttributes=true&compressTolerance=-1&width=512&height=512&viewBounds={bbox-epsg-3857}&expands=0:0_2,132_128,138_64,141_32,143_16,145_8,147_4"]
  1833. }
  1834. },
  1835. "sprite": "https://iclient.supermap.io/web/styles/osm/sprite",
  1836. "glyphs": host + "/iserver/services/map-beijing/rest/maps/beijingMap/tileFeature/sdffonts/{fontstack}/{range}.pbf",
  1837. "layers": [
  1838. {
  1839. "id": "background",
  1840. "type": "background",
  1841. "layout": {},
  1842. "paint": {
  1843. "background-color": "#45516E"
  1844. }
  1845. },
  1846. {
  1847. "id": "立交桥绿地R@北京",
  1848. "type": "fill",
  1849. "source": "vector-tiles",
  1850. "source-layer": "立交桥绿地R@北京",
  1851. "paint": {
  1852. "fill-color": "hsla(232, 18%, 30%, 0.57)",
  1853. "fill-opacity": 1
  1854. }
  1855. },
  1856. {
  1857. "id": "绿地R@北京",
  1858. "type": "fill",
  1859. "source": "vector-tiles",
  1860. "source-layer": "绿地R@北京",
  1861. "paint": {
  1862. "fill-color": "hsla(232, 18%, 30%, 0.57)",
  1863. "fill-opacity": 1
  1864. }
  1865. },
  1866. {
  1867. "id": " 双线河R@北京",
  1868. "type": "fill",
  1869. "source": "vector-tiles",
  1870. "source-layer": "双线河R@北京",
  1871. "paint": {
  1872. "fill-color": "#38435C",
  1873. "fill-antialias": false
  1874. }
  1875. },
  1876. {
  1877. "id": "湖泊、水库R@北京",
  1878. "type": "fill",
  1879. "source": "vector-tiles",
  1880. "source-layer": "湖泊、水库R@北京",
  1881. "paint": {
  1882. "fill-color": "#38435C",
  1883. "fill-antialias": false
  1884. }
  1885. },
  1886. {
  1887. "id": " 四级道路L@北京",
  1888. "type": "line",
  1889. "source": "vector-tiles",
  1890. "source-layer": "四级道路L@北京",
  1891. "layout": {
  1892. "line-cap": "round",
  1893. "line-join": "round",
  1894. "visibility": "visible"
  1895. },
  1896. "paint": {
  1897. "line-color": "hsl(224, 22%, 45%)",
  1898. "line-width": {
  1899. "base": 1.55,
  1900. "stops": [
  1901. [
  1902. 13,
  1903. 1.8
  1904. ],
  1905. [
  1906. 20,
  1907. 20
  1908. ]
  1909. ]
  1910. },
  1911. "line-opacity": 0.9
  1912. }
  1913. },
  1914. {
  1915. "id": " 三级道路L@北京",
  1916. "type": "line",
  1917. "source": "vector-tiles",
  1918. "source-layer": "三级道路L@北京",
  1919. "layout": {
  1920. "line-cap": "round",
  1921. "line-join": "round",
  1922. "visibility": "visible"
  1923. },
  1924. "paint": {
  1925. "line-color": "#3C4357",
  1926. "line-width": {
  1927. "base": 1.55,
  1928. "stops": [
  1929. [
  1930. 13,
  1931. 1.8
  1932. ],
  1933. [
  1934. 20,
  1935. 20
  1936. ]
  1937. ]
  1938. },
  1939. "line-opacity": 0.9
  1940. }
  1941. },
  1942. {
  1943. "id": " 二级道路L@北京",
  1944. "type": "line",
  1945. "source": "vector-tiles",
  1946. "source-layer": "二级道路L@北京",
  1947. "layout": {
  1948. "line-cap": "butt",
  1949. "line-join": "miter",
  1950. "visibility": "visible"
  1951. },
  1952. "paint": {
  1953. "line-color": "hsl(224, 22%, 45%)",
  1954. "line-dasharray": [
  1955. 12,
  1956. 0
  1957. ],
  1958. "line-width": {
  1959. "base": 1.3,
  1960. "stops": [
  1961. [
  1962. 10,
  1963. 3
  1964. ],
  1965. [
  1966. 20,
  1967. 23
  1968. ]
  1969. ]
  1970. }
  1971. }
  1972. },
  1973. {
  1974. "id": " 二级道路L@北京1",
  1975. "type": "line",
  1976. "source": "vector-tiles",
  1977. "source-layer": "二级道路L@北京",
  1978. "layout": {
  1979. "line-cap": "round",
  1980. "line-join": "round",
  1981. "visibility": "visible"
  1982. },
  1983. "paint": {
  1984. "line-color": "#3C4357",
  1985. "line-width": {
  1986. "base": 1.3,
  1987. "stops": [
  1988. [
  1989. 10,
  1990. 2
  1991. ],
  1992. [
  1993. 20,
  1994. 20
  1995. ]
  1996. ]
  1997. }
  1998. }
  1999. },
  2000. {
  2001. "id": " 一级道路L@北京",
  2002. "type": "line",
  2003. "source": "vector-tiles",
  2004. "source-layer": "一级道路L@北京",
  2005. "layout": {
  2006. "line-cap": "butt",
  2007. "line-join": "miter",
  2008. "visibility": "visible"
  2009. },
  2010. "paint": {
  2011. "line-color": "hsl(224, 22%, 45%)",
  2012. "line-dasharray": [
  2013. 12,
  2014. 0
  2015. ],
  2016. "line-width": {
  2017. "base": 1.3,
  2018. "stops": [
  2019. [
  2020. 11,
  2021. 5
  2022. ],
  2023. [
  2024. 20,
  2025. 23
  2026. ]
  2027. ]
  2028. }
  2029. }
  2030. },
  2031. {
  2032. "id": " 一级道路L@北京1",
  2033. "type": "line",
  2034. "source": "vector-tiles",
  2035. "source-layer": "一级道路L@北京",
  2036. "layout": {
  2037. "line-cap": "round",
  2038. "line-join": "round",
  2039. "visibility": "visible"
  2040. },
  2041. "paint": {
  2042. "line-color": "#3C4357",
  2043. "line-width": {
  2044. "base": 1.3,
  2045. "stops": [
  2046. [
  2047. 11,
  2048. 3
  2049. ],
  2050. [
  2051. 20,
  2052. 20
  2053. ]
  2054. ]
  2055. }
  2056. }
  2057. },
  2058. {
  2059. "id": " 省道L@北京",
  2060. "type": "line",
  2061. "source": "vector-tiles",
  2062. "source-layer": "省道L@北京",
  2063. "layout": {
  2064. "line-cap": "butt",
  2065. "line-join": "miter",
  2066. "visibility": "visible"
  2067. },
  2068. "paint": {
  2069. "line-color": "hsl(224, 22%, 45%)",
  2070. "line-dasharray": [
  2071. 12,
  2072. 0
  2073. ],
  2074. "line-width": {
  2075. "base": 1.3,
  2076. "stops": [
  2077. [
  2078. 11,
  2079. 6
  2080. ],
  2081. [
  2082. 20,
  2083. 23
  2084. ]
  2085. ]
  2086. }
  2087. }
  2088. },
  2089. {
  2090. "id": " 省道L@北京1",
  2091. "type": "line",
  2092. "source": "vector-tiles",
  2093. "source-layer": "省道L@北京",
  2094. "layout": {
  2095. "line-cap": "round",
  2096. "line-join": "round",
  2097. "visibility": "visible"
  2098. },
  2099. "paint": {
  2100. "line-color": "#3C4357",
  2101. "line-width": {
  2102. "base": 1.3,
  2103. "stops": [
  2104. [
  2105. 11,
  2106. 4
  2107. ],
  2108. [
  2109. 20,
  2110. 20
  2111. ]
  2112. ]
  2113. }
  2114. }
  2115. },
  2116. {
  2117. "id": " 高速公路L@北京",
  2118. "type": "line",
  2119. "source": "vector-tiles",
  2120. "source-layer": "高速公路L@北京",
  2121. "layout": {
  2122. "line-cap": "butt",
  2123. "line-join": "miter",
  2124. "visibility": "visible"
  2125. },
  2126. "paint": {
  2127. "line-color": "hsl(224, 22%, 45%)",
  2128. "line-width": {
  2129. "base": 1.4,
  2130. "stops": [
  2131. [
  2132. 11,
  2133. 8
  2134. ],
  2135. [
  2136. 20,
  2137. 40
  2138. ]
  2139. ]
  2140. },
  2141. "line-dasharray": [
  2142. 2,
  2143. 0
  2144. ],
  2145. "line-opacity": 1
  2146. }
  2147. },
  2148. {
  2149. "id": " 高速公路L@北京1",
  2150. "type": "line",
  2151. "source": "vector-tiles",
  2152. "source-layer": "高速公路L@北京",
  2153. "layout": {
  2154. "line-cap": "round",
  2155. "line-join": "round",
  2156. "visibility": "visible"
  2157. },
  2158. "paint": {
  2159. "line-color": "hsl(224, 20%, 29%)",
  2160. "line-width": {
  2161. "base": 1.4,
  2162. "stops": [
  2163. [
  2164. 11,
  2165. 6
  2166. ],
  2167. [
  2168. 20,
  2169. 30
  2170. ]
  2171. ]
  2172. }
  2173. }
  2174. },
  2175. {
  2176. "id": "区政府驻地@北京",
  2177. "type": "symbol",
  2178. "source": "vector-tiles",
  2179. "source-layer": "区政府驻地@北京",
  2180. "layout": {
  2181. "text-offset": [-1.5, -0.5],
  2182. "text-anchor": "bottom-left",
  2183. "text-field": "{NAME}",
  2184. "text-max-width": 7,
  2185. "text-font": [
  2186. "DIN Offc Pro Medium",
  2187. "Arial Unicode MS Regular"
  2188. ],
  2189. "text-size": 22
  2190. },
  2191. "paint": {
  2192. "text-color": "hsl(195, 37%, 73%)",
  2193. "text-opacity": {
  2194. "base": 1,
  2195. "stops": [
  2196. [
  2197. 11.99,
  2198. 1
  2199. ],
  2200. [
  2201. 12,
  2202. 0
  2203. ]
  2204. ]
  2205. },
  2206. "text-halo-color": "hsla(228, 60%, 21%, 0.7)",
  2207. "text-halo-width": 1,
  2208. "text-halo-blur": 1
  2209. }
  2210. },
  2211. {
  2212. "id": "标志建筑@北京",
  2213. "type": "symbol",
  2214. "source": "vector-tiles",
  2215. "source-layer": "标志建筑@北京",
  2216. "layout": {
  2217. "text-offset": [-1.5, -0.5],
  2218. "text-anchor": "bottom-left",
  2219. "text-field": "{NAME}",
  2220. "text-max-width": 7,
  2221. "text-size": 14
  2222. },
  2223. "paint": {
  2224. "text-color": "hsl(195, 37%, 73%)",
  2225. "text-opacity": {
  2226. "base": 1,
  2227. "stops": [
  2228. [
  2229. 10.99,
  2230. 0
  2231. ],
  2232. [
  2233. 11,
  2234. 1
  2235. ]
  2236. ]
  2237. },
  2238. "text-halo-color": "hsla(228, 60%, 21%, 0.7)",
  2239. "text-halo-width": 1,
  2240. "text-halo-blur": 1
  2241. }
  2242. },
  2243. {
  2244. "id": " 四级道路Name",
  2245. "type": "symbol",
  2246. "source": "vector-tiles",
  2247. "source-layer": "四级道路L@北京",
  2248. "layout": {
  2249. "text-size": 10,
  2250. "text-field": "{道路名称}",
  2251. "symbol-placement": "line",
  2252. "text-rotation-alignment": "map"
  2253. },
  2254. "paint": {
  2255. "text-halo-blur": 0.5,
  2256. "text-color": "hsl(223, 31%, 61%)",
  2257. "text-halo-color": "hsl(232, 9%, 23%)",
  2258. "text-opacity": {
  2259. "base": 1,
  2260. "stops": [
  2261. [
  2262. 14.99,
  2263. 0
  2264. ],
  2265. [
  2266. 15,
  2267. 1
  2268. ]
  2269. ]
  2270. },
  2271. "text-halo-width": 2
  2272. }
  2273. },
  2274. {
  2275. "id": " 三级道路Name",
  2276. "type": "symbol",
  2277. "source": "vector-tiles",
  2278. "source-layer": "三级道路L@北京",
  2279. "layout": {
  2280. "text-size": 10,
  2281. "text-field": "{道路名称}",
  2282. "symbol-placement": "line",
  2283. "text-rotation-alignment": "map"
  2284. },
  2285. "paint": {
  2286. "text-halo-blur": 0.5,
  2287. "text-color": "hsl(223, 31%, 61%)",
  2288. "text-halo-color": "hsl(232, 9%, 23%)",
  2289. "text-halo-width": 2
  2290. }
  2291. },
  2292. {
  2293. "id": " 二级道路Name",
  2294. "type": "symbol",
  2295. "source": "vector-tiles",
  2296. "source-layer": "二级道路L@北京",
  2297. "layout": {
  2298. "text-size": 10,
  2299. "text-field": "{道路名称}",
  2300. "symbol-placement": "line",
  2301. "text-rotation-alignment": "map"
  2302. },
  2303. "paint": {
  2304. "text-halo-blur": 0.5,
  2305. "text-color": "hsl(223, 31%, 61%)",
  2306. "text-halo-color": "hsl(232, 9%, 23%)",
  2307. "text-halo-width": 2
  2308. }
  2309. },
  2310. {
  2311. "id": " 一级道路Name",
  2312. "type": "symbol",
  2313. "source": "vector-tiles",
  2314. "source-layer": "一级道路L@北京",
  2315. "layout": {
  2316. "text-size": 10,
  2317. "text-field": "{道路名称}",
  2318. "symbol-placement": "line",
  2319. "text-rotation-alignment": "map"
  2320. },
  2321. "paint": {
  2322. "text-halo-blur": 0.5,
  2323. "text-color": "hsl(223, 31%, 61%)",
  2324. "text-halo-color": "hsl(232, 9%, 23%)",
  2325. "text-opacity": {
  2326. "base": 1,
  2327. "stops": [
  2328. [
  2329. 13.99,
  2330. 0
  2331. ],
  2332. [
  2333. 14,
  2334. 1
  2335. ]
  2336. ]
  2337. },
  2338. "text-halo-width": 2
  2339. }
  2340. },
  2341. {
  2342. "id": " 省道Name",
  2343. "type": "symbol",
  2344. "source": "vector-tiles",
  2345. "source-layer": "省道L@北京",
  2346. "layout": {
  2347. "text-size": 10,
  2348. "text-field": "{道路名称}",
  2349. "symbol-placement": "line",
  2350. "text-rotation-alignment": "map"
  2351. },
  2352. "paint": {
  2353. "text-halo-blur": 0.5,
  2354. "text-color": "hsl(223, 31%, 61%)",
  2355. "text-halo-color": "hsl(232, 9%, 23%)",
  2356. "text-opacity": {
  2357. "base": 1,
  2358. "stops": [
  2359. [
  2360. 12.99,
  2361. 0
  2362. ],
  2363. [
  2364. 13,
  2365. 1
  2366. ]
  2367. ]
  2368. },
  2369. "text-halo-width": 2
  2370. }
  2371. },
  2372. {
  2373. "id": "立交桥名称P@北京",
  2374. "type": "symbol",
  2375. "source": "vector-tiles",
  2376. "source-layer": "立交桥名称P@北京",
  2377. "layout": {
  2378. "text-offset": [-1, -1],
  2379. "text-anchor": "bottom",
  2380. "text-field": "{NAME}",
  2381. "text-size": 10
  2382. },
  2383. "paint": {
  2384. "text-color": "hsl(195, 37%, 73%)",
  2385. "text-opacity": 1,
  2386. "text-halo-color": "hsla(228, 60%, 21%, 0.7)",
  2387. "text-halo-width": 1,
  2388. "text-halo-blur": 1
  2389. }
  2390. },
  2391. {
  2392. "id": "长途汽车站@北京",
  2393. "type": "symbol",
  2394. "source": "vector-tiles",
  2395. "source-layer": "长途汽车站@北京",
  2396. "layout": {
  2397. "icon-image": "bus_11",
  2398. "text-offset": [-1, -1],
  2399. "text-anchor": "bottom",
  2400. "text-field": "{NAME}",
  2401. "text-size": 12
  2402. },
  2403. "paint": {
  2404. "text-color": "hsl(195, 37%, 73%)",
  2405. "text-opacity": 1,
  2406. "text-halo-color": "hsla(228, 60%, 21%, 0.7)",
  2407. "text-halo-width": 1,
  2408. "text-halo-blur": 1
  2409. }
  2410. },
  2411. {
  2412. "id": "图书馆@北京",
  2413. "type": "symbol",
  2414. "source": "vector-tiles",
  2415. "source-layer": "图书馆@北京",
  2416. "layout": {
  2417. "icon-image": "library_11",
  2418. "text-offset": [-1, -1],
  2419. "text-anchor": "bottom",
  2420. "text-field": "{NAME}",
  2421. "text-size": 12
  2422. },
  2423. "paint": {
  2424. "text-color": "hsl(195, 37%, 73%)",
  2425. "text-opacity": 1,
  2426. "text-halo-color": "hsla(228, 60%, 21%, 0.7)",
  2427. "text-halo-width": 1,
  2428. "text-halo-blur": 1
  2429. }
  2430. },
  2431. {
  2432. "id": "公园@北京",
  2433. "type": "symbol",
  2434. "source": "vector-tiles",
  2435. "source-layer": "公园@北京",
  2436. "layout": {
  2437. "icon-image": "park_11",
  2438. "text-offset": [0, -0.5],
  2439. "text-anchor": "bottom",
  2440. "text-field": "{NAME}",
  2441. "text-size": 12
  2442. },
  2443. "paint": {
  2444. "text-color": "hsl(195, 37%, 73%)",
  2445. "text-opacity": 1,
  2446. "text-halo-color": "hsla(228, 60%, 21%, 0.7)",
  2447. "text-halo-width": 1,
  2448. "text-halo-blur": 1
  2449. }
  2450. },
  2451. {
  2452. "id": "综合性广场@北京",
  2453. "type": "symbol",
  2454. "source": "vector-tiles",
  2455. "source-layer": "综合性广场@北京",
  2456. "layout": {
  2457. "icon-image": "campsite_11",
  2458. "text-offset": [0, -0.5],
  2459. "text-anchor": "bottom",
  2460. "text-field": "{NAME}",
  2461. "text-size": 12
  2462. },
  2463. "paint": {
  2464. "text-color": "hsl(195, 37%, 73%)",
  2465. "text-opacity": 1,
  2466. "text-halo-color": "hsla(228, 60%, 21%, 0.7)",
  2467. "text-halo-width": 1,
  2468. "text-halo-blur": 1
  2469. }
  2470. },
  2471. {
  2472. "id": "旅游景点@北京",
  2473. "type": "symbol",
  2474. "source": "vector-tiles",
  2475. "source-layer": "旅游景点@北京",
  2476. "layout": {
  2477. "icon-image": "volcano_11",
  2478. "text-offset": [0, -0.5],
  2479. "text-anchor": "bottom",
  2480. "text-field": "{NAME}",
  2481. "text-size": 12
  2482. },
  2483. "paint": {
  2484. "text-color": "hsl(195, 37%, 73%)",
  2485. "text-opacity": 1,
  2486. "text-halo-color": "hsla(228, 60%, 21%, 0.7)",
  2487. "text-halo-width": 1,
  2488. "text-halo-blur": 1
  2489. }
  2490. },
  2491. {
  2492. "id": "医疗卫生@北京",
  2493. "type": "symbol",
  2494. "source": "vector-tiles",
  2495. "source-layer": "医疗卫生@北京",
  2496. "layout": {
  2497. "icon-image": "hospital_11",
  2498. "text-offset": [0, -0.5],
  2499. "text-anchor": "bottom",
  2500. "text-field": "{NAME}",
  2501. "text-size": 12
  2502. },
  2503. "paint": {
  2504. "text-color": "hsl(195, 37%, 73%)",
  2505. "text-opacity": 1,
  2506. "text-halo-color": "hsla(228, 60%, 21%, 0.7)",
  2507. "text-halo-width": 1,
  2508. "text-halo-blur": 1
  2509. }
  2510. },
  2511. {
  2512. "id": "娱乐场所@北京",
  2513. "type": "symbol",
  2514. "source": "vector-tiles",
  2515. "source-layer": "娱乐场所@北京",
  2516. "layout": {
  2517. "icon-image": "amusement_park_11",
  2518. "text-offset": [0, -0.5],
  2519. "text-anchor": "bottom",
  2520. "text-field": "{NAME}",
  2521. "text-size": 12
  2522. },
  2523. "paint": {
  2524. "text-color": "hsl(195, 37%, 73%)",
  2525. "text-opacity": 1,
  2526. "text-halo-color": "hsla(228, 60%, 21%, 0.7)",
  2527. "text-halo-width": 1,
  2528. "text-halo-blur": 1
  2529. }
  2530. },
  2531. {
  2532. "id": "大厦@北京",
  2533. "type": "symbol",
  2534. "source": "vector-tiles",
  2535. "source-layer": "大厦@北京",
  2536. "layout": {
  2537. "icon-image": "picnic_site_11",
  2538. "text-offset": [0, -0.5],
  2539. "text-anchor": "bottom",
  2540. "text-field": "{NAME}",
  2541. "text-size": 12
  2542. },
  2543. "paint": {
  2544. "text-color": "hsl(195, 37%, 73%)",
  2545. "text-opacity": 1,
  2546. "text-halo-color": "hsla(228, 60%, 21%, 0.7)",
  2547. "text-halo-width": 1,
  2548. "text-halo-blur": 1
  2549. }
  2550. },
  2551. {
  2552. "id": "文化场所@北京",
  2553. "type": "symbol",
  2554. "source": "vector-tiles",
  2555. "source-layer": "文化场所@北京",
  2556. "layout": {
  2557. "icon-image": "art_gallery_11",
  2558. "text-offset": [0, -0.5],
  2559. "text-anchor": "bottom",
  2560. "text-field": "{NAME}",
  2561. "text-size": 12
  2562. },
  2563. "paint": {
  2564. "text-color": "hsl(195, 37%, 73%)",
  2565. "text-opacity": 1,
  2566. "text-halo-color": "hsla(228, 60%, 21%, 0.7)",
  2567. "text-halo-width": 1,
  2568. "text-halo-blur": 1
  2569. }
  2570. },
  2571. {
  2572. "id": "运动场所@北京",
  2573. "type": "symbol",
  2574. "source": "vector-tiles",
  2575. "source-layer": "运动场所@北京",
  2576. "layout": {
  2577. "icon-image": "bicycle_share_11",
  2578. "text-offset": [0, -0.5],
  2579. "text-anchor": "bottom",
  2580. "text-field": "{NAME}",
  2581. "text-size": 12
  2582. },
  2583. "paint": {
  2584. "text-color": "hsl(195, 37%, 73%)",
  2585. "text-opacity": 1,
  2586. "text-halo-color": "hsla(228, 60%, 21%, 0.7)",
  2587. "text-halo-width": 1,
  2588. "text-halo-blur": 1
  2589. }
  2590. },
  2591. {
  2592. "id": "交通运输@北京",
  2593. "type": "symbol",
  2594. "source": "vector-tiles",
  2595. "source-layer": "交通运输@北京",
  2596. "layout": {
  2597. "icon-image": "bakery_11",
  2598. "text-offset": [0, -0.5],
  2599. "text-anchor": "bottom",
  2600. "text-field": "{NAME}",
  2601. "text-size": 12
  2602. },
  2603. "paint": {
  2604. "text-color": "hsl(195, 37%, 73%)",
  2605. "text-opacity": 1,
  2606. "text-halo-color": "hsla(228, 60%, 21%, 0.7)",
  2607. "text-halo-width": 1,
  2608. "text-halo-blur": 1
  2609. }
  2610. },
  2611. {
  2612. "id": "其它@北京",
  2613. "type": "symbol",
  2614. "source": "vector-tiles",
  2615. "source-layer": "其它@北京",
  2616. "layout": {
  2617. "icon-image": "toilet_11",
  2618. "text-offset": [0, -0.5],
  2619. "text-anchor": "bottom",
  2620. "text-field": "{NAME}",
  2621. "text-size": 12
  2622. },
  2623. "filter": [
  2624. "==",
  2625. "NAME",
  2626. "公厕"
  2627. ],
  2628. "paint": {
  2629. "text-color": "hsl(195, 37%, 73%)",
  2630. "text-opacity": 1,
  2631. "text-halo-color": "hsla(228, 60%, 21%, 0.7)",
  2632. "text-halo-width": 1,
  2633. "text-halo-blur": 1
  2634. }
  2635. },
  2636. {
  2637. "id": "服务行业@北京",
  2638. "type": "symbol",
  2639. "source": "vector-tiles",
  2640. "source-layer": "服务行业@北京",
  2641. "layout": {
  2642. "icon-image": "embassy_11",
  2643. "text-offset": [0, -0.5],
  2644. "text-anchor": "bottom",
  2645. "text-field": "{NAME}",
  2646. "text-size": 12
  2647. },
  2648. "paint": {
  2649. "text-color": "hsl(195, 37%, 73%)",
  2650. "text-opacity": 1,
  2651. "text-halo-color": "hsla(228, 60%, 21%, 0.7)",
  2652. "text-halo-width": 1,
  2653. "text-halo-blur": 1
  2654. }
  2655. },
  2656. {
  2657. "id": "其它@北京2",
  2658. "type": "symbol",
  2659. "source": "vector-tiles",
  2660. "source-layer": "其它@北京",
  2661. "layout": {
  2662. "icon-image": "car_11",
  2663. "text-offset": [0, -0.5],
  2664. "text-anchor": "bottom",
  2665. "text-field": "{NAME}",
  2666. "text-size": 12
  2667. },
  2668. "filter": [
  2669. "==",
  2670. "NAME",
  2671. "停车场"
  2672. ],
  2673. "paint": {
  2674. "text-color": "hsl(195, 37%, 73%)",
  2675. "text-opacity": 1,
  2676. "text-halo-color": "hsla(228, 60%, 21%, 0.7)",
  2677. "text-halo-width": 1,
  2678. "text-halo-blur": 1
  2679. }
  2680. },
  2681. {
  2682. "id": "邮政电信@北京",
  2683. "type": "symbol",
  2684. "source": "vector-tiles",
  2685. "source-layer": "邮政电信@北京",
  2686. "layout": {
  2687. "icon-image": "post_11",
  2688. "text-offset": [0, -0.5],
  2689. "text-anchor": "bottom",
  2690. "text-field": "{NAME}",
  2691. "text-size": 10,
  2692. "text-max-width": 18
  2693. },
  2694. "paint": {
  2695. "text-color": "hsl(195, 37%, 73%)",
  2696. "text-opacity": 1,
  2697. "text-halo-color": "hsla(228, 60%, 21%, 0.7)",
  2698. "text-halo-width": 1,
  2699. "text-halo-blur": 1
  2700. }
  2701. },
  2702. {
  2703. "id": "商场@北京",
  2704. "type": "symbol",
  2705. "source": "vector-tiles",
  2706. "source-layer": "商场@北京",
  2707. "layout": {
  2708. "icon-image": "grocery_11",
  2709. "text-offset": [0, -0.5],
  2710. "text-anchor": "bottom",
  2711. "text-field": "{NAME}",
  2712. "text-size": 12
  2713. },
  2714. "paint": {
  2715. "text-color": "hsl(195, 37%, 73%)",
  2716. "text-opacity": 1,
  2717. "text-halo-color": "hsla(228, 60%, 21%, 0.7)",
  2718. "text-halo-width": 1,
  2719. "text-halo-blur": 1
  2720. }
  2721. },
  2722. {
  2723. "id": "综合性商店@北京",
  2724. "type": "symbol",
  2725. "source": "vector-tiles",
  2726. "source-layer": "综合性商店@北京",
  2727. "layout": {
  2728. "icon-image": "grocery_11",
  2729. "text-offset": [0, -0.5],
  2730. "text-anchor": "bottom",
  2731. "text-field": "{NAME}",
  2732. "text-size": 12
  2733. },
  2734. "paint": {
  2735. "text-color": "hsl(195, 37%, 73%)",
  2736. "text-opacity": 1,
  2737. "text-halo-color": "hsla(228, 60%, 21%, 0.7)",
  2738. "text-halo-width": 1,
  2739. "text-halo-blur": 1
  2740. }
  2741. },
  2742. {
  2743. "id": "饭店@北京",
  2744. "type": "symbol",
  2745. "source": "vector-tiles",
  2746. "source-layer": "饭店@北京",
  2747. "layout": {
  2748. "icon-image": "restaurant_11",
  2749. "text-offset": [0, -0.5],
  2750. "text-anchor": "bottom",
  2751. "text-field": "{NAME}",
  2752. "text-size": 12
  2753. },
  2754. "paint": {
  2755. "text-color": "hsl(195, 37%, 73%)",
  2756. "text-opacity": 1,
  2757. "text-halo-color": "hsla(228, 60%, 21%, 0.7)",
  2758. "text-halo-width": 1,
  2759. "text-halo-blur": 1
  2760. }
  2761. },
  2762. {
  2763. "id": "加油站@北京",
  2764. "type": "symbol",
  2765. "source": "vector-tiles",
  2766. "source-layer": "加油站@北京",
  2767. "layout": {
  2768. "icon-image": "fuel_11",
  2769. "text-offset": [0, -0.5],
  2770. "text-anchor": "bottom",
  2771. "text-field": "{NAME}",
  2772. "text-size": 12
  2773. },
  2774. "paint": {
  2775. "text-color": "hsl(195, 37%, 73%)",
  2776. "text-opacity": 1,
  2777. "text-halo-color": "hsla(228, 60%, 21%, 0.7)",
  2778. "text-halo-width": 1,
  2779. "text-halo-blur": 1
  2780. }
  2781. },
  2782. {
  2783. "id": "建筑@北京",
  2784. "type": "symbol",
  2785. "source": "vector-tiles",
  2786. "source-layer": "建筑@北京",
  2787. "layout": {
  2788. "icon-image": "place_of_worship_11",
  2789. "text-offset": [0, -0.5],
  2790. "text-anchor": "bottom",
  2791. "text-field": "{NAME}",
  2792. "text-size": 12
  2793. },
  2794. "paint": {
  2795. "text-color": "hsl(195, 37%, 73%)",
  2796. "text-opacity": 1,
  2797. "text-halo-color": "hsla(228, 60%, 21%, 0.7)",
  2798. "text-halo-width": 1,
  2799. "text-halo-blur": 1
  2800. }
  2801. },
  2802. {
  2803. "id": "码头@北京",
  2804. "type": "symbol",
  2805. "source": "vector-tiles",
  2806. "source-layer": "码头@北京",
  2807. "layout": {
  2808. "icon-image": "harbor_11",
  2809. "text-offset": [0, -0.5],
  2810. "text-anchor": "bottom",
  2811. "text-field": "{NAME}",
  2812. "text-size": 12
  2813. },
  2814. "paint": {
  2815. "text-color": "hsl(195, 37%, 73%)",
  2816. "text-opacity": 1,
  2817. "text-halo-color": "hsla(228, 60%, 21%, 0.7)",
  2818. "text-halo-width": 1,
  2819. "text-halo-blur": 1
  2820. }
  2821. },
  2822. {
  2823. "id": "机场@北京",
  2824. "type": "symbol",
  2825. "source": "vector-tiles",
  2826. "source-layer": "机场@北京",
  2827. "layout": {
  2828. "icon-image": "airport_11",
  2829. "text-offset": [0, -0.5],
  2830. "text-anchor": "bottom",
  2831. "text-field": "{NAME}",
  2832. "text-size": 12
  2833. },
  2834. "paint": {
  2835. "text-color": "hsl(195, 37%, 73%)",
  2836. "text-opacity": 1,
  2837. "text-halo-color": "hsla(228, 60%, 21%, 0.7)",
  2838. "text-halo-width": 1,
  2839. "text-halo-blur": 1
  2840. }
  2841. },
  2842. {
  2843. "id": "火车站@北京",
  2844. "type": "symbol",
  2845. "source": "vector-tiles",
  2846. "source-layer": "火车站@北京",
  2847. "layout": {
  2848. "icon-image": "rail_15",
  2849. "text-offset": [0, -0.5],
  2850. "text-anchor": "bottom",
  2851. "text-field": "{NAME}",
  2852. "text-size": 12
  2853. },
  2854. "paint": {
  2855. "text-color": "hsl(195, 37%, 73%)",
  2856. "text-opacity": 1,
  2857. "text-halo-color": "hsla(228, 60%, 21%, 0.7)",
  2858. "text-halo-width": 1,
  2859. "text-halo-blur": 1
  2860. }
  2861. },
  2862. {
  2863. "id": "地名@北京",
  2864. "type": "symbol",
  2865. "source": "vector-tiles",
  2866. "source-layer": "地名@北京",
  2867. "layout": {
  2868. "icon-image": "dot_11",
  2869. "text-offset": [0, -0.3],
  2870. "text-anchor": "bottom",
  2871. "text-field": "{NAME}",
  2872. "text-size": 12
  2873. },
  2874. "paint": {
  2875. "text-color": "hsl(195, 37%, 73%)",
  2876. "text-opacity": 1,
  2877. "text-halo-color": "hsla(228, 60%, 21%, 0.7)",
  2878. "text-halo-width": 1,
  2879. "text-halo-blur": 1
  2880. }
  2881. }
  2882. ]
  2883. }
  2884. },
  2885. klokantech: {
  2886. style: {
  2887. "version": 8,
  2888. "sources": {
  2889. "vector-tiles": {
  2890. "attribution": attribution,
  2891. "type": "vector",
  2892. "tiles": [host + "/iserver/services/map-beijing/rest/maps/beijingMap/tileFeature.mvt?returnAttributes=true&compressTolerance=-1&width=512&height=512&viewBounds={bbox-epsg-3857}&expands=0:0_2,132_128,138_64,141_32,143_16,145_8,147_4"]
  2893. }
  2894. },
  2895. "glyphs": host + "/iserver/services/map-beijing/rest/maps/beijingMap/tileFeature/sdffonts/{fontstack}/{range}.pbf",
  2896. "layers": [
  2897. {
  2898. "id": "background",
  2899. "type": "background",
  2900. "layout": {},
  2901. "paint": {
  2902. "background-color": "hsl(47, 26%, 88%)"
  2903. }
  2904. },
  2905. {
  2906. "id": "立交桥绿地R@北京",
  2907. "type": "fill",
  2908. "source": "vector-tiles",
  2909. "source-layer": "立交桥绿地R@北京",
  2910. "paint": {
  2911. "fill-color": "hsl(82, 46%, 72%)",
  2912. "fill-opacity": 1
  2913. }
  2914. },
  2915. {
  2916. "id": "绿地R@北京",
  2917. "type": "fill",
  2918. "source": "vector-tiles",
  2919. "source-layer": "绿地R@北京",
  2920. "paint": {
  2921. "fill-color": "hsl(82, 46%, 72%)",
  2922. "fill-opacity": 1
  2923. }
  2924. },
  2925. {
  2926. "id": " 双线河R@北京",
  2927. "type": "fill",
  2928. "source": "vector-tiles",
  2929. "source-layer": "双线河R@北京",
  2930. "paint": {
  2931. "fill-color": "hsl(205, 56%, 73%)"
  2932. }
  2933. },
  2934. {
  2935. "id": "湖泊、水库R@北京",
  2936. "type": "fill",
  2937. "source": "vector-tiles",
  2938. "source-layer": "湖泊、水库R@北京",
  2939. "paint": {
  2940. "fill-color": "hsl(205, 56%, 73%)"
  2941. }
  2942. },
  2943. {
  2944. "id": " 四级道路L@北京",
  2945. "type": "line",
  2946. "source": "vector-tiles",
  2947. "source-layer": "四级道路L@北京",
  2948. "layout": {
  2949. "line-cap": "round",
  2950. "line-join": "round"
  2951. },
  2952. "paint": {
  2953. "line-color": "hsl(0, 0%, 97%)",
  2954. "line-width": {
  2955. "base": 1.55,
  2956. "stops": [
  2957. [
  2958. 4,
  2959. 0.25
  2960. ],
  2961. [
  2962. 20,
  2963. 30
  2964. ]
  2965. ]
  2966. }
  2967. }
  2968. },
  2969. {
  2970. "id": " 三级道路L@北京",
  2971. "type": "line",
  2972. "source": "vector-tiles",
  2973. "source-layer": "三级道路L@北京",
  2974. "layout": {
  2975. "line-cap": "round",
  2976. "line-join": "round"
  2977. },
  2978. "paint": {
  2979. "line-color": "hsl(0, 0%, 97%)",
  2980. "line-width": {
  2981. "base": 1.55,
  2982. "stops": [
  2983. [
  2984. 4,
  2985. 0.25
  2986. ],
  2987. [
  2988. 20,
  2989. 30
  2990. ]
  2991. ]
  2992. }
  2993. }
  2994. },
  2995. {
  2996. "id": " 二级道路L@北京",
  2997. "type": "line",
  2998. "source": "vector-tiles",
  2999. "source-layer": "二级道路L@北京",
  3000. "layout": {
  3001. "line-cap": "round",
  3002. "line-join": "round"
  3003. },
  3004. "paint": {
  3005. "line-color": "#fff",
  3006. "line-width": {
  3007. "base": 1.4,
  3008. "stops": [
  3009. [
  3010. 6,
  3011. 0.5
  3012. ],
  3013. [
  3014. 20,
  3015. 20
  3016. ]
  3017. ]
  3018. }
  3019. }
  3020. },
  3021. {
  3022. "id": "一级道路L@北京",
  3023. "type": "line",
  3024. "source": "vector-tiles",
  3025. "source-layer": "一级道路L@北京",
  3026. "layout": {
  3027. "line-cap": "round",
  3028. "line-join": "round"
  3029. },
  3030. "paint": {
  3031. "line-color": "#fff",
  3032. "line-width": {
  3033. "base": 1.4,
  3034. "stops": [
  3035. [
  3036. 6,
  3037. 0.5
  3038. ],
  3039. [
  3040. 20,
  3041. 30
  3042. ]
  3043. ]
  3044. }
  3045. }
  3046. },
  3047. {
  3048. "id": " 省道L@北京",
  3049. "type": "line",
  3050. "source": "vector-tiles",
  3051. "source-layer": "省道L@北京",
  3052. "layout": {
  3053. "line-cap": "round",
  3054. "line-join": "round"
  3055. },
  3056. "paint": {
  3057. "line-color": "hsl(0, 0%, 100%)",
  3058. "line-width": {
  3059. "base": 1.4,
  3060. "stops": [
  3061. [
  3062. 8,
  3063. 1
  3064. ],
  3065. [
  3066. 16,
  3067. 10
  3068. ]
  3069. ]
  3070. },
  3071. "line-offset": 0
  3072. }
  3073. },
  3074. {
  3075. "id": " 高速公路L@北京",
  3076. "type": "line",
  3077. "source": "vector-tiles",
  3078. "source-layer": "高速公路L@北京",
  3079. "layout": {
  3080. "line-cap": "round",
  3081. "line-join": "round"
  3082. },
  3083. "paint": {
  3084. "line-color": "hsl(0, 0%, 100%)",
  3085. "line-width": {
  3086. "base": 1.4,
  3087. "stops": [
  3088. [
  3089. 8,
  3090. 1
  3091. ],
  3092. [
  3093. 16,
  3094. 10
  3095. ]
  3096. ]
  3097. },
  3098. "line-offset": 0
  3099. }
  3100. },
  3101. {
  3102. "id": "区政府驻地@北京",
  3103. "type": "symbol",
  3104. "source": "vector-tiles",
  3105. "source-layer": "区政府驻地@北京",
  3106. "layout": {
  3107. "text-offset": [-1.5, -0.5],
  3108. "text-anchor": "bottom-left",
  3109. "text-field": "{NAME}",
  3110. "text-max-width": 7,
  3111. "text-font": [
  3112. "DIN Offc Pro Medium",
  3113. "Arial Unicode MS Regular"
  3114. ],
  3115. "text-size": 22
  3116. },
  3117. "paint": {
  3118. "text-color": "hsl(230, 8%, 62%)",
  3119. "text-opacity": {
  3120. "base": 1,
  3121. "stops": [
  3122. [
  3123. 11.99,
  3124. 1
  3125. ],
  3126. [
  3127. 12,
  3128. 0
  3129. ]
  3130. ]
  3131. },
  3132. "text-halo-color": "rgba(255,255,255,0.75)",
  3133. "text-halo-width": 1,
  3134. "text-halo-blur": 1
  3135. }
  3136. },
  3137. {
  3138. "id": "标志建筑@北京",
  3139. "type": "symbol",
  3140. "source": "vector-tiles",
  3141. "source-layer": "标志建筑@北京",
  3142. "layout": {
  3143. "text-offset": [-1.5, -0.5],
  3144. "text-anchor": "bottom-left",
  3145. "text-field": "{NAME}",
  3146. "text-max-width": 7,
  3147. "text-size": 14
  3148. },
  3149. "paint": {
  3150. "text-color": "hsl(26, 25%, 32%)",
  3151. "text-opacity": {
  3152. "base": 1,
  3153. "stops": [
  3154. [
  3155. 10.99,
  3156. 0
  3157. ],
  3158. [
  3159. 11,
  3160. 1
  3161. ]
  3162. ]
  3163. },
  3164. "text-halo-color": "rgba(255,255,255,0.75)",
  3165. "text-halo-width": 1,
  3166. "text-halo-blur": 1
  3167. }
  3168. },
  3169. {
  3170. "id": " 四级道路Name",
  3171. "type": "symbol",
  3172. "source": "vector-tiles",
  3173. "source-layer": "四级道路L@北京",
  3174. "layout": {
  3175. "text-size": {
  3176. "base": 1,
  3177. "stops": [
  3178. [
  3179. 13,
  3180. 12
  3181. ],
  3182. [
  3183. 14,
  3184. 13
  3185. ]
  3186. ]
  3187. },
  3188. "text-field": "{道路名称}",
  3189. "symbol-placement": "line",
  3190. "text-rotation-alignment": "map"
  3191. },
  3192. "paint": {
  3193. "text-halo-blur": 0.5,
  3194. "text-color": "#000",
  3195. "text-halo-color": "hsl(0, 0%, 100%)",
  3196. "text-opacity": {
  3197. "base": 1,
  3198. "stops": [
  3199. [
  3200. 14.99,
  3201. 0
  3202. ],
  3203. [
  3204. 15,
  3205. 1
  3206. ]
  3207. ]
  3208. },
  3209. "text-halo-width": 2
  3210. }
  3211. },
  3212. {
  3213. "id": " 三级道路Name",
  3214. "type": "symbol",
  3215. "source": "vector-tiles",
  3216. "source-layer": "三级道路L@北京",
  3217. "layout": {
  3218. "text-size": 10,
  3219. "text-max-angle": 30,
  3220. "text-transform": "uppercase",
  3221. "symbol-spacing": 350,
  3222. "symbol-placement": "line",
  3223. "visibility": "visible",
  3224. "text-rotation-alignment": "map",
  3225. "text-pitch-alignment": "viewport",
  3226. "text-field": "{道路名称}"
  3227. },
  3228. "paint": {
  3229. "text-color": "#000",
  3230. "text-halo-color": "hsl(0, 0%, 100%)",
  3231. "text-translate": [
  3232. 0,
  3233. 0
  3234. ],
  3235. "text-opacity": {
  3236. "base": 1,
  3237. "stops": [
  3238. [
  3239. 13.99,
  3240. 0
  3241. ],
  3242. [
  3243. 14,
  3244. 1
  3245. ]
  3246. ]
  3247. },
  3248. "text-halo-width": 2,
  3249. "text-halo-blur": 1
  3250. }
  3251. },
  3252. {
  3253. "id": " 二级道路Name",
  3254. "type": "symbol",
  3255. "source": "vector-tiles",
  3256. "source-layer": "二级道路L@北京",
  3257. "layout": {
  3258. "text-size": 10,
  3259. "text-max-angle": 30,
  3260. "text-transform": "uppercase",
  3261. "symbol-spacing": 350,
  3262. "symbol-placement": "line",
  3263. "visibility": "visible",
  3264. "text-rotation-alignment": "map",
  3265. "text-pitch-alignment": "viewport",
  3266. "text-field": "{道路名称}"
  3267. },
  3268. "paint": {
  3269. "text-color": "#000",
  3270. "text-halo-color": "hsl(0, 0%, 100%)",
  3271. "text-translate": [
  3272. 0,
  3273. 0
  3274. ],
  3275. "text-opacity": {
  3276. "base": 1,
  3277. "stops": [
  3278. [
  3279. 13.99,
  3280. 0
  3281. ],
  3282. [
  3283. 14,
  3284. 1
  3285. ]
  3286. ]
  3287. },
  3288. "text-halo-width": 2,
  3289. "text-halo-blur": 1
  3290. }
  3291. },
  3292. {
  3293. "id": " 一级道路Name",
  3294. "type": "symbol",
  3295. "source": "vector-tiles",
  3296. "source-layer": "一级道路L@北京",
  3297. "layout": {
  3298. "text-size": 10,
  3299. "text-max-angle": 30,
  3300. "text-transform": "uppercase",
  3301. "symbol-spacing": 350,
  3302. "symbol-placement": "line",
  3303. "visibility": "visible",
  3304. "text-rotation-alignment": "map",
  3305. "text-pitch-alignment": "viewport",
  3306. "text-field": "{道路名称}"
  3307. },
  3308. "paint": {
  3309. "text-color": "#000",
  3310. "text-halo-color": "hsl(0, 0%, 100%)",
  3311. "text-opacity": {
  3312. "base": 1,
  3313. "stops": [
  3314. [
  3315. 12.99,
  3316. 0
  3317. ],
  3318. [
  3319. 13,
  3320. 1
  3321. ]
  3322. ]
  3323. },
  3324. "text-halo-width": 2,
  3325. "text-halo-blur": 1
  3326. }
  3327. },
  3328. {
  3329. "id": " 省道Name",
  3330. "type": "symbol",
  3331. "source": "vector-tiles",
  3332. "source-layer": "省道L@北京",
  3333. "layout": {
  3334. "text-size": 10,
  3335. "text-max-angle": 30,
  3336. "text-transform": "uppercase",
  3337. "symbol-spacing": 350,
  3338. "symbol-placement": "line",
  3339. "visibility": "visible",
  3340. "text-rotation-alignment": "map",
  3341. "text-pitch-alignment": "viewport",
  3342. "text-field": "{道路名称}"
  3343. },
  3344. "paint": {
  3345. "text-color": "#000",
  3346. "text-halo-color": "hsl(0, 0%, 100%)",
  3347. "text-opacity": {
  3348. "base": 1,
  3349. "stops": [
  3350. [
  3351. 12.99,
  3352. 0
  3353. ],
  3354. [
  3355. 13,
  3356. 1
  3357. ]
  3358. ]
  3359. },
  3360. "text-halo-width": 2,
  3361. "text-halo-blur": 1
  3362. }
  3363. },
  3364. {
  3365. "id": "立交桥名称P@北京",
  3366. "type": "symbol",
  3367. "source": "vector-tiles",
  3368. "source-layer": "立交桥名称P@北京",
  3369. "layout": {
  3370. "text-offset": [-1, -1],
  3371. "text-anchor": "bottom",
  3372. "text-field": "{NAME}",
  3373. "text-size": 14
  3374. },
  3375. "paint": {
  3376. "text-color": "#666",
  3377. "text-opacity": 1,
  3378. "text-halo-color": "rgba(255,255,255,0.75)",
  3379. "text-halo-width": 1,
  3380. "text-halo-blur": 1
  3381. }
  3382. },
  3383. {
  3384. "id": "长途汽车站@北京",
  3385. "type": "symbol",
  3386. "source": "vector-tiles",
  3387. "source-layer": "长途汽车站@北京",
  3388. "layout": {
  3389. "text-offset": [-1, -1],
  3390. "text-anchor": "bottom",
  3391. "text-field": "{NAME}",
  3392. "text-size": 12
  3393. },
  3394. "paint": {
  3395. "text-color": "#666",
  3396. "text-opacity": 1,
  3397. "text-halo-color": "rgba(255,255,255,0.75)",
  3398. "text-halo-width": 1,
  3399. "text-halo-blur": 1
  3400. }
  3401. },
  3402. {
  3403. "id": "图书馆@北京",
  3404. "type": "symbol",
  3405. "source": "vector-tiles",
  3406. "source-layer": "图书馆@北京",
  3407. "layout": {
  3408. "text-offset": [-1, -1],
  3409. "text-anchor": "bottom",
  3410. "text-field": "{NAME}",
  3411. "text-size": 12
  3412. },
  3413. "paint": {
  3414. "text-color": "#666",
  3415. "text-opacity": 1,
  3416. "text-halo-color": "rgba(255,255,255,0.75)",
  3417. "text-halo-width": 1,
  3418. "text-halo-blur": 1
  3419. }
  3420. },
  3421. {
  3422. "id": "公园@北京",
  3423. "type": "symbol",
  3424. "source": "vector-tiles",
  3425. "source-layer": "公园@北京",
  3426. "layout": {
  3427. "text-offset": [0, -0.5],
  3428. "text-anchor": "bottom",
  3429. "text-field": "{NAME}",
  3430. "text-size": 12
  3431. },
  3432. "paint": {
  3433. "text-color": "#666",
  3434. "text-opacity": 1,
  3435. "text-halo-color": "rgba(255,255,255,0.75)",
  3436. "text-halo-width": 1,
  3437. "text-halo-blur": 1
  3438. }
  3439. },
  3440. {
  3441. "id": "综合性广场@北京",
  3442. "type": "symbol",
  3443. "source": "vector-tiles",
  3444. "source-layer": "综合性广场@北京",
  3445. "layout": {
  3446. "text-offset": [0, -0.5],
  3447. "text-anchor": "bottom",
  3448. "text-field": "{NAME}",
  3449. "text-size": 12
  3450. },
  3451. "paint": {
  3452. "text-color": "#666",
  3453. "text-opacity": 1,
  3454. "text-halo-color": "rgba(255,255,255,0.75)",
  3455. "text-halo-width": 1,
  3456. "text-halo-blur": 1
  3457. }
  3458. },
  3459. {
  3460. "id": "旅游景点@北京",
  3461. "type": "symbol",
  3462. "source": "vector-tiles",
  3463. "source-layer": "旅游景点@北京",
  3464. "layout": {
  3465. "text-offset": [0, -0.5],
  3466. "text-anchor": "bottom",
  3467. "text-field": "{NAME}",
  3468. "text-size": 12
  3469. },
  3470. "paint": {
  3471. "text-color": "#666",
  3472. "text-opacity": 1,
  3473. "text-halo-color": "rgba(255,255,255,0.75)",
  3474. "text-halo-width": 1,
  3475. "text-halo-blur": 1
  3476. }
  3477. },
  3478. {
  3479. "id": "医疗卫生@北京",
  3480. "type": "symbol",
  3481. "source": "vector-tiles",
  3482. "source-layer": "医疗卫生@北京",
  3483. "layout": {
  3484. "text-offset": [0, -0.5],
  3485. "text-anchor": "bottom",
  3486. "text-field": "{NAME}",
  3487. "text-size": 12
  3488. },
  3489. "paint": {
  3490. "text-color": "#666",
  3491. "text-opacity": 1,
  3492. "text-halo-color": "rgba(255,255,255,0.75)",
  3493. "text-halo-width": 1,
  3494. "text-halo-blur": 1
  3495. }
  3496. },
  3497. {
  3498. "id": "娱乐场所@北京",
  3499. "type": "symbol",
  3500. "source": "vector-tiles",
  3501. "source-layer": "娱乐场所@北京",
  3502. "layout": {
  3503. "text-offset": [0, -0.5],
  3504. "text-anchor": "bottom",
  3505. "text-field": "{NAME}",
  3506. "text-size": 12
  3507. },
  3508. "paint": {
  3509. "text-color": "#666",
  3510. "text-opacity": 1,
  3511. "text-halo-color": "rgba(255,255,255,0.75)",
  3512. "text-halo-width": 1,
  3513. "text-halo-blur": 1
  3514. }
  3515. },
  3516. {
  3517. "id": "大厦@北京",
  3518. "type": "symbol",
  3519. "source": "vector-tiles",
  3520. "source-layer": "大厦@北京",
  3521. "layout": {
  3522. "text-offset": [0, -0.5],
  3523. "text-anchor": "bottom",
  3524. "text-field": "{NAME}",
  3525. "text-size": 12
  3526. },
  3527. "paint": {
  3528. "text-color": "#666",
  3529. "text-opacity": 1,
  3530. "text-halo-color": "rgba(255,255,255,0.75)",
  3531. "text-halo-width": 1,
  3532. "text-halo-blur": 1
  3533. }
  3534. },
  3535. {
  3536. "id": "文化场所@北京",
  3537. "type": "symbol",
  3538. "source": "vector-tiles",
  3539. "source-layer": "文化场所@北京",
  3540. "layout": {
  3541. "text-offset": [0, -0.5],
  3542. "text-anchor": "bottom",
  3543. "text-field": "{NAME}",
  3544. "text-size": 12
  3545. },
  3546. "paint": {
  3547. "text-color": "#666",
  3548. "text-opacity": 1,
  3549. "text-halo-color": "rgba(255,255,255,0.75)",
  3550. "text-halo-width": 1,
  3551. "text-halo-blur": 1
  3552. }
  3553. },
  3554. {
  3555. "id": "运动场所@北京",
  3556. "type": "symbol",
  3557. "source": "vector-tiles",
  3558. "source-layer": "运动场所@北京",
  3559. "layout": {
  3560. "text-offset": [0, -0.5],
  3561. "text-anchor": "bottom",
  3562. "text-field": "{NAME}",
  3563. "text-size": 12
  3564. },
  3565. "paint": {
  3566. "text-color": "#666",
  3567. "text-opacity": 1,
  3568. "text-halo-color": "rgba(255,255,255,0.75)",
  3569. "text-halo-width": 1,
  3570. "text-halo-blur": 1
  3571. }
  3572. },
  3573. {
  3574. "id": "交通运输@北京",
  3575. "type": "symbol",
  3576. "source": "vector-tiles",
  3577. "source-layer": "交通运输@北京",
  3578. "layout": {
  3579. "text-offset": [0, -0.5],
  3580. "text-anchor": "bottom",
  3581. "text-field": "{NAME}",
  3582. "text-size": 12
  3583. },
  3584. "paint": {
  3585. "text-color": "#666",
  3586. "text-opacity": 1,
  3587. "text-halo-color": "rgba(255,255,255,0.75)",
  3588. "text-halo-width": 1,
  3589. "text-halo-blur": 1
  3590. }
  3591. },
  3592. {
  3593. "id": "其它@北京",
  3594. "type": "symbol",
  3595. "source": "vector-tiles",
  3596. "source-layer": "其它@北京",
  3597. "layout": {
  3598. "text-offset": [0, -0.5],
  3599. "text-anchor": "bottom",
  3600. "text-field": "{NAME}",
  3601. "text-size": 12
  3602. },
  3603. "filter": [
  3604. "==",
  3605. "NAME",
  3606. "公厕"
  3607. ],
  3608. "paint": {
  3609. "text-color": "#666",
  3610. "text-opacity": 1,
  3611. "text-halo-color": "rgba(255,255,255,0.75)",
  3612. "text-halo-width": 1,
  3613. "text-halo-blur": 1
  3614. }
  3615. },
  3616. {
  3617. "id": "服务行业@北京",
  3618. "type": "symbol",
  3619. "source": "vector-tiles",
  3620. "source-layer": "服务行业@北京",
  3621. "layout": {
  3622. "text-offset": [0, -0.5],
  3623. "text-anchor": "bottom",
  3624. "text-field": "{NAME}",
  3625. "text-size": 12
  3626. },
  3627. "paint": {
  3628. "text-color": "#666",
  3629. "text-opacity": 1,
  3630. "text-halo-color": "rgba(255,255,255,0.75)",
  3631. "text-halo-width": 1,
  3632. "text-halo-blur": 1
  3633. }
  3634. },
  3635. {
  3636. "id": "其它@北京2",
  3637. "type": "symbol",
  3638. "source": "vector-tiles",
  3639. "source-layer": "其它@北京",
  3640. "layout": {
  3641. "text-offset": [0, -0.5],
  3642. "text-anchor": "bottom",
  3643. "text-field": "{NAME}",
  3644. "text-size": 12
  3645. },
  3646. "filter": [
  3647. "==",
  3648. "NAME",
  3649. "停车场"
  3650. ],
  3651. "paint": {
  3652. "text-color": "#666",
  3653. "text-opacity": 1,
  3654. "text-halo-color": "rgba(255,255,255,0.75)",
  3655. "text-halo-width": 1,
  3656. "text-halo-blur": 1
  3657. }
  3658. },
  3659. {
  3660. "id": "邮政电信@北京",
  3661. "type": "symbol",
  3662. "source": "vector-tiles",
  3663. "source-layer": "邮政电信@北京",
  3664. "layout": {
  3665. "text-offset": [0, -0.5],
  3666. "text-anchor": "bottom",
  3667. "text-field": "{NAME}",
  3668. "text-size": 10,
  3669. "text-max-width": 18
  3670. },
  3671. "paint": {
  3672. "text-color": "#666",
  3673. "text-opacity": 1,
  3674. "text-halo-color": "rgba(255,255,255,0.75)",
  3675. "text-halo-width": 1,
  3676. "text-halo-blur": 1
  3677. }
  3678. },
  3679. {
  3680. "id": "商场@北京",
  3681. "type": "symbol",
  3682. "source": "vector-tiles",
  3683. "source-layer": "商场@北京",
  3684. "layout": {
  3685. "text-offset": [0, -0.5],
  3686. "text-anchor": "bottom",
  3687. "text-field": "{NAME}",
  3688. "text-size": 12
  3689. },
  3690. "paint": {
  3691. "text-color": "#666",
  3692. "text-opacity": 1,
  3693. "text-halo-color": "rgba(255,255,255,0.75)",
  3694. "text-halo-width": 1,
  3695. "text-halo-blur": 1
  3696. }
  3697. },
  3698. {
  3699. "id": "综合性商店@北京",
  3700. "type": "symbol",
  3701. "source": "vector-tiles",
  3702. "source-layer": "综合性商店@北京",
  3703. "layout": {
  3704. "text-offset": [0, -0.5],
  3705. "text-anchor": "bottom",
  3706. "text-field": "{NAME}",
  3707. "text-size": 12
  3708. },
  3709. "paint": {
  3710. "text-color": "#666",
  3711. "text-opacity": 1,
  3712. "text-halo-color": "rgba(255,255,255,0.75)",
  3713. "text-halo-width": 1,
  3714. "text-halo-blur": 1
  3715. }
  3716. },
  3717. {
  3718. "id": "饭店@北京",
  3719. "type": "symbol",
  3720. "source": "vector-tiles",
  3721. "source-layer": "饭店@北京",
  3722. "layout": {
  3723. "text-offset": [0, -0.5],
  3724. "text-anchor": "bottom",
  3725. "text-field": "{NAME}",
  3726. "text-size": 12
  3727. },
  3728. "paint": {
  3729. "text-color": "#666",
  3730. "text-opacity": 1,
  3731. "text-halo-color": "rgba(255,255,255,0.75)",
  3732. "text-halo-width": 1,
  3733. "text-halo-blur": 1
  3734. }
  3735. },
  3736. {
  3737. "id": "加油站@北京",
  3738. "type": "symbol",
  3739. "source": "vector-tiles",
  3740. "source-layer": "加油站@北京",
  3741. "layout": {
  3742. "text-offset": [0, -0.5],
  3743. "text-anchor": "bottom",
  3744. "text-field": "{NAME}",
  3745. "text-size": 12
  3746. },
  3747. "paint": {
  3748. "text-color": "#666",
  3749. "text-opacity": 1,
  3750. "text-halo-color": "rgba(255,255,255,0.75)",
  3751. "text-halo-width": 1,
  3752. "text-halo-blur": 1
  3753. }
  3754. },
  3755. {
  3756. "id": "建筑@北京",
  3757. "type": "symbol",
  3758. "source": "vector-tiles",
  3759. "source-layer": "建筑@北京",
  3760. "layout": {
  3761. "text-offset": [0, -0.5],
  3762. "text-anchor": "bottom",
  3763. "text-field": "{NAME}",
  3764. "text-size": 12
  3765. },
  3766. "paint": {
  3767. "text-color": "#666",
  3768. "text-opacity": 1,
  3769. "text-halo-color": "rgba(255,255,255,0.75)",
  3770. "text-halo-width": 1,
  3771. "text-halo-blur": 1
  3772. }
  3773. },
  3774. {
  3775. "id": "码头@北京",
  3776. "type": "symbol",
  3777. "source": "vector-tiles",
  3778. "source-layer": "码头@北京",
  3779. "layout": {
  3780. "text-offset": [0, -0.5],
  3781. "text-anchor": "bottom",
  3782. "text-field": "{NAME}",
  3783. "text-size": 12
  3784. },
  3785. "paint": {
  3786. "text-color": "#666",
  3787. "text-opacity": 1,
  3788. "text-halo-color": "rgba(255,255,255,0.75)",
  3789. "text-halo-width": 1,
  3790. "text-halo-blur": 1
  3791. }
  3792. },
  3793. {
  3794. "id": "机场@北京",
  3795. "type": "symbol",
  3796. "source": "vector-tiles",
  3797. "source-layer": "机场@北京",
  3798. "layout": {
  3799. "text-offset": [0, -0.5],
  3800. "text-anchor": "bottom",
  3801. "text-field": "{NAME}",
  3802. "text-size": 12
  3803. },
  3804. "paint": {
  3805. "text-color": "#666",
  3806. "text-opacity": 1,
  3807. "text-halo-color": "rgba(255,255,255,0.75)",
  3808. "text-halo-width": 1,
  3809. "text-halo-blur": 1
  3810. }
  3811. },
  3812. {
  3813. "id": "火车站@北京",
  3814. "type": "symbol",
  3815. "source": "vector-tiles",
  3816. "source-layer": "火车站@北京",
  3817. "layout": {
  3818. "text-offset": [0, -0.5],
  3819. "text-anchor": "bottom",
  3820. "text-field": "{NAME}",
  3821. "text-size": 12
  3822. },
  3823. "paint": {
  3824. "text-color": "#666",
  3825. "text-opacity": 1,
  3826. "text-halo-color": "rgba(255,255,255,0.75)",
  3827. "text-halo-width": 1,
  3828. "text-halo-blur": 1
  3829. }
  3830. },
  3831. {
  3832. "id": "地名@北京",
  3833. "type": "symbol",
  3834. "source": "vector-tiles",
  3835. "source-layer": "地名@北京",
  3836. "layout": {
  3837. "text-offset": [0, -0.3],
  3838. "text-anchor": "bottom",
  3839. "text-field": "{NAME}",
  3840. "text-size": 12
  3841. },
  3842. "paint": {
  3843. "text-color": "#666",
  3844. "text-opacity": 1,
  3845. "text-halo-color": "rgba(255,255,255,0.75)",
  3846. "text-halo-width": 1,
  3847. "text-halo-blur": 1
  3848. }
  3849. }
  3850. ]
  3851. }
  3852. },
  3853. osm: {
  3854. style: {
  3855. "version": 8,
  3856. "sources": {
  3857. "vector-tiles": {
  3858. "attribution": attribution,
  3859. "type": "vector",
  3860. "tiles": [host + "/iserver/services/map-beijing/rest/maps/beijingMap/tileFeature.mvt?returnAttributes=true&compressTolerance=-1&width=512&height=512&viewBounds={bbox-epsg-3857}&expands=0:0_2,132_128,138_64,141_32,143_16,145_8,147_4"]
  3861. }
  3862. },
  3863. "sprite": "https://iclient.supermap.io/web/styles/osm/sprite",
  3864. "glyphs": host + "/iserver/services/map-beijing/rest/maps/beijingMap/tileFeature/sdffonts/{fontstack}/{range}.pbf",
  3865. "layers": [
  3866. {
  3867. "id": "background",
  3868. "type": "background",
  3869. "layout": {},
  3870. "paint": {
  3871. "background-color": "#f8f4f0"
  3872. }
  3873. },
  3874. {
  3875. "id": "界线@北京",
  3876. "type": "line",
  3877. "source": "vector-tiles",
  3878. "source-layer": "界线@北京",
  3879. "layout": {
  3880. "line-join": "round"
  3881. },
  3882. "paint": {
  3883. "line-color": "#9e9cab",
  3884. "line-dasharray": [
  3885. 3,
  3886. 1,
  3887. 1,
  3888. 1
  3889. ],
  3890. "line-width": {
  3891. "base": 1.4,
  3892. "stops": [
  3893. [
  3894. 4,
  3895. 0.4
  3896. ],
  3897. [
  3898. 5,
  3899. 1
  3900. ],
  3901. [
  3902. 12,
  3903. 3
  3904. ]
  3905. ]
  3906. }
  3907. }
  3908. },
  3909. {
  3910. "id": "立交桥绿地R@北京",
  3911. "type": "fill",
  3912. "source": "vector-tiles",
  3913. "source-layer": "立交桥绿地R@北京",
  3914. "paint": {
  3915. "fill-color": "#6a4",
  3916. "fill-opacity": 0.1,
  3917. "fill-outline-color": "hsla(0, 0%, 0%, 0.03)",
  3918. "fill-antialias": true
  3919. }
  3920. },
  3921. {
  3922. "id": "绿地R@北京",
  3923. "type": "fill",
  3924. "source": "vector-tiles",
  3925. "source-layer": "绿地R@北京",
  3926. "paint": {
  3927. "fill-color": "#d8e8c8",
  3928. "fill-opacity": 1
  3929. }
  3930. },
  3931. {
  3932. "id": " 双线河R@北京",
  3933. "type": "fill",
  3934. "source": "vector-tiles",
  3935. "source-layer": "双线河R@北京",
  3936. "paint": {
  3937. "fill-color": "hsl(210, 67%, 85%)"
  3938. }
  3939. },
  3940. {
  3941. "id": "湖泊、水库R@北京",
  3942. "type": "fill",
  3943. "source": "vector-tiles",
  3944. "source-layer": "湖泊、水库R@北京",
  3945. "paint": {
  3946. "fill-color": "hsl(210, 67%, 85%)"
  3947. }
  3948. },
  3949. {
  3950. "id": " 四级道路L@北京1",
  3951. "type": "line",
  3952. "source": "vector-tiles",
  3953. "source-layer": "四级道路L@北京",
  3954. "layout": {
  3955. "line-cap": "round",
  3956. "line-join": "round"
  3957. },
  3958. "paint": {
  3959. "line-color": "#cfcdca",
  3960. "line-opacity": 1,
  3961. "line-width": {
  3962. "base": 1.2,
  3963. "stops": [
  3964. [
  3965. 12,
  3966. 0.5
  3967. ],
  3968. [
  3969. 13,
  3970. 1
  3971. ],
  3972. [
  3973. 14,
  3974. 4
  3975. ],
  3976. [
  3977. 20,
  3978. 15
  3979. ]
  3980. ]
  3981. }
  3982. }
  3983. },
  3984. {
  3985. "id": " 四级道路L@北京",
  3986. "type": "line",
  3987. "source": "vector-tiles",
  3988. "source-layer": "四级道路L@北京",
  3989. "layout": {
  3990. "line-cap": "round",
  3991. "line-join": "round"
  3992. },
  3993. "paint": {
  3994. "line-color": "#fff",
  3995. "line-opacity": 1,
  3996. "line-width": {
  3997. "base": 1.2,
  3998. "stops": [
  3999. [
  4000. 13.5,
  4001. 0
  4002. ],
  4003. [
  4004. 14,
  4005. 2.5
  4006. ],
  4007. [
  4008. 20,
  4009. 11.5
  4010. ]
  4011. ]
  4012. }
  4013. }
  4014. },
  4015. {
  4016. "id": " 三级道路L@北京1",
  4017. "type": "line",
  4018. "source": "vector-tiles",
  4019. "source-layer": "三级道路L@北京",
  4020. "layout": {
  4021. "line-cap": "round",
  4022. "line-join": "round"
  4023. },
  4024. "paint": {
  4025. "line-color": "#cfcdca",
  4026. "line-opacity": 1,
  4027. "line-width": {
  4028. "base": 1.2,
  4029. "stops": [
  4030. [
  4031. 12,
  4032. 0.5
  4033. ],
  4034. [
  4035. 13,
  4036. 1
  4037. ],
  4038. [
  4039. 14,
  4040. 4
  4041. ],
  4042. [
  4043. 20,
  4044. 15
  4045. ]
  4046. ]
  4047. }
  4048. }
  4049. },
  4050. {
  4051. "id": " 三级道路L@北京",
  4052. "type": "line",
  4053. "source": "vector-tiles",
  4054. "source-layer": "三级道路L@北京",
  4055. "layout": {
  4056. "line-cap": "round",
  4057. "line-join": "round"
  4058. },
  4059. "paint": {
  4060. "line-color": "#fff",
  4061. "line-opacity": 1,
  4062. "line-width": {
  4063. "base": 1.2,
  4064. "stops": [
  4065. [
  4066. 13.5,
  4067. 0
  4068. ],
  4069. [
  4070. 14,
  4071. 2.5
  4072. ],
  4073. [
  4074. 20,
  4075. 11.5
  4076. ]
  4077. ]
  4078. }
  4079. }
  4080. },
  4081. {
  4082. "id": "二级道路L@北京",
  4083. "type": "line",
  4084. "source": "vector-tiles",
  4085. "source-layer": "二级道路L@北京",
  4086. "layout": {
  4087. "line-cap": "round",
  4088. "line-join": "round",
  4089. "visibility": "visible"
  4090. },
  4091. "paint": {
  4092. "line-color": "#e9ac77",
  4093. "line-opacity": 1,
  4094. "line-width": {
  4095. "base": 1.2,
  4096. "stops": [
  4097. [
  4098. 8,
  4099. 1.5
  4100. ],
  4101. [
  4102. 20,
  4103. 17
  4104. ]
  4105. ]
  4106. }
  4107. }
  4108. },
  4109. {
  4110. "id": "二级道路L@北京1",
  4111. "type": "line",
  4112. "source": "vector-tiles",
  4113. "source-layer": "二级道路L@北京",
  4114. "layout": {
  4115. "line-cap": "round",
  4116. "line-join": "round",
  4117. "visibility": "visible"
  4118. },
  4119. "paint": {
  4120. "line-color": "#fea",
  4121. "line-width": {
  4122. "base": 1.2,
  4123. "stops": [
  4124. [
  4125. 8,
  4126. 0.5
  4127. ],
  4128. [
  4129. 20,
  4130. 13
  4131. ]
  4132. ]
  4133. }
  4134. }
  4135. },
  4136. {
  4137. "id": " 一级道路L@北京",
  4138. "type": "line",
  4139. "source": "vector-tiles",
  4140. "source-layer": "一级道路L@北京",
  4141. "layout": {
  4142. "line-cap": "round",
  4143. "line-join": "round",
  4144. "visibility": "visible"
  4145. },
  4146. "paint": {
  4147. "line-color": "#e9ac77",
  4148. "line-opacity": 1,
  4149. "line-width": {
  4150. "base": 1.2,
  4151. "stops": [
  4152. [
  4153. 7,
  4154. 1.5
  4155. ],
  4156. [
  4157. 20,
  4158. 22
  4159. ]
  4160. ]
  4161. }
  4162. }
  4163. },
  4164. {
  4165. "id": " 一级道路L@北京1",
  4166. "type": "line",
  4167. "source": "vector-tiles",
  4168. "source-layer": "一级道路L@北京",
  4169. "layout": {
  4170. "line-cap": "round",
  4171. "line-join": "round",
  4172. "visibility": "visible"
  4173. },
  4174. "paint": {
  4175. "line-color": "#fea",
  4176. "line-width": {
  4177. "base": 1.2,
  4178. "stops": [
  4179. [
  4180. 7,
  4181. 0.5
  4182. ],
  4183. [
  4184. 20,
  4185. 18
  4186. ]
  4187. ]
  4188. }
  4189. }
  4190. },
  4191. {
  4192. "id": " 省道L@北京",
  4193. "type": "line",
  4194. "source": "vector-tiles",
  4195. "source-layer": "省道L@北京",
  4196. "paint": {
  4197. "line-color": "#e9ac77",
  4198. "line-opacity": {
  4199. "stops": [
  4200. [
  4201. 5,
  4202. 0
  4203. ],
  4204. [
  4205. 6,
  4206. 1
  4207. ]
  4208. ]
  4209. },
  4210. "line-width": {
  4211. "base": 1.2,
  4212. "stops": [
  4213. [
  4214. 7,
  4215. 1.5
  4216. ],
  4217. [
  4218. 20,
  4219. 22
  4220. ]
  4221. ]
  4222. }
  4223. }
  4224. },
  4225. {
  4226. "id": " 省道L@北京1",
  4227. "type": "line",
  4228. "source": "vector-tiles",
  4229. "source-layer": "省道L@北京",
  4230. "layout": {
  4231. "line-cap": "round",
  4232. "line-join": "round",
  4233. "visibility": "visible"
  4234. },
  4235. "paint": {
  4236. "line-color": "#fea",
  4237. "line-width": {
  4238. "base": 1.2,
  4239. "stops": [
  4240. [
  4241. 7,
  4242. 0.5
  4243. ],
  4244. [
  4245. 20,
  4246. 18
  4247. ]
  4248. ]
  4249. }
  4250. }
  4251. },
  4252. {
  4253. "id": " 高速公路L@北京",
  4254. "type": "line",
  4255. "source": "vector-tiles",
  4256. "source-layer": "高速公路L@北京",
  4257. "layout": {
  4258. "line-cap": "round",
  4259. "line-join": "round",
  4260. "visibility": "visible"
  4261. },
  4262. "paint": {
  4263. "line-color": "#e9ac77",
  4264. "line-width": {
  4265. "base": 1.2,
  4266. "stops": [
  4267. [
  4268. 7,
  4269. 1.5
  4270. ],
  4271. [
  4272. 20,
  4273. 22
  4274. ]
  4275. ]
  4276. },
  4277. "line-opacity": 1
  4278. }
  4279. },
  4280. {
  4281. "id": " 高速公路L@北京1",
  4282. "type": "line",
  4283. "source": "vector-tiles",
  4284. "source-layer": "高速公路L@北京",
  4285. "layout": {
  4286. "line-cap": "round",
  4287. "line-join": "round",
  4288. "visibility": "visible"
  4289. },
  4290. "paint": {
  4291. "line-color": "#fc8",
  4292. "line-width": {
  4293. "base": 1.2,
  4294. "stops": [
  4295. [
  4296. 7,
  4297. 0.5
  4298. ],
  4299. [
  4300. 20,
  4301. 18
  4302. ]
  4303. ]
  4304. }
  4305. }
  4306. },
  4307. {
  4308. "id": "区政府驻地@北京",
  4309. "type": "symbol",
  4310. "source": "vector-tiles",
  4311. "source-layer": "区政府驻地@北京",
  4312. "layout": {
  4313. "text-offset": [-1.5, -0.5],
  4314. "text-anchor": "bottom-left",
  4315. "text-field": "{NAME}",
  4316. "text-max-width": 7,
  4317. "text-font": [
  4318. "DIN Offc Pro Medium",
  4319. "Arial Unicode MS Regular"
  4320. ],
  4321. "text-size": 22
  4322. },
  4323. "paint": {
  4324. "text-color": "hsl(230, 8%, 62%)",
  4325. "text-opacity": {
  4326. "base": 1,
  4327. "stops": [
  4328. [
  4329. 11.99,
  4330. 1
  4331. ],
  4332. [
  4333. 12,
  4334. 0
  4335. ]
  4336. ]
  4337. },
  4338. "text-halo-color": "#ffffff",
  4339. "text-halo-width": 1,
  4340. "text-halo-blur": 1
  4341. }
  4342. },
  4343. {
  4344. "id": "标志建筑@北京",
  4345. "type": "symbol",
  4346. "source": "vector-tiles",
  4347. "source-layer": "标志建筑@北京",
  4348. "layout": {
  4349. "text-offset": [-1.5, -0.5],
  4350. "text-anchor": "bottom-left",
  4351. "text-field": "{NAME}",
  4352. "text-max-width": 7,
  4353. "text-size": 14
  4354. },
  4355. "paint": {
  4356. "text-color": "hsl(26, 25%, 32%)",
  4357. "text-opacity": {
  4358. "base": 1,
  4359. "stops": [
  4360. [
  4361. 10.99,
  4362. 0
  4363. ],
  4364. [
  4365. 11,
  4366. 1
  4367. ]
  4368. ]
  4369. },
  4370. "text-halo-color": "#ffffff",
  4371. "text-halo-width": 1,
  4372. "text-halo-blur": 1
  4373. }
  4374. },
  4375. {
  4376. "id": " 四级道路Name",
  4377. "type": "symbol",
  4378. "source": "vector-tiles",
  4379. "source-layer": "四级道路L@北京",
  4380. "layout": {
  4381. "text-size": {
  4382. "base": 1,
  4383. "stops": [
  4384. [
  4385. 13,
  4386. 12
  4387. ],
  4388. [
  4389. 14,
  4390. 13
  4391. ]
  4392. ]
  4393. },
  4394. "text-field": "{道路名称}",
  4395. "symbol-placement": "line",
  4396. "text-rotation-alignment": "map"
  4397. },
  4398. "paint": {
  4399. "text-halo-blur": 0.5,
  4400. "text-color": "#765",
  4401. "text-opacity": {
  4402. "base": 1,
  4403. "stops": [
  4404. [
  4405. 14.99,
  4406. 0
  4407. ],
  4408. [
  4409. 15,
  4410. 1
  4411. ]
  4412. ]
  4413. },
  4414. "text-halo-width": 1
  4415. }
  4416. },
  4417. {
  4418. "id": " 三级道路Name",
  4419. "type": "symbol",
  4420. "source": "vector-tiles",
  4421. "source-layer": "三级道路L@北京",
  4422. "layout": {
  4423. "text-size": {
  4424. "base": 1,
  4425. "stops": [
  4426. [
  4427. 13,
  4428. 12
  4429. ],
  4430. [
  4431. 14,
  4432. 13
  4433. ]
  4434. ]
  4435. },
  4436. "text-field": "{道路名称}",
  4437. "symbol-placement": "line",
  4438. "text-rotation-alignment": "map"
  4439. },
  4440. "paint": {
  4441. "text-halo-blur": 0.5,
  4442. "text-color": "#765",
  4443. "text-halo-width": 1
  4444. }
  4445. },
  4446. {
  4447. "id": " 二级道路Name",
  4448. "type": "symbol",
  4449. "source": "vector-tiles",
  4450. "source-layer": "二级道路L@北京",
  4451. "layout": {
  4452. "text-size": {
  4453. "base": 1,
  4454. "stops": [
  4455. [
  4456. 13,
  4457. 12
  4458. ],
  4459. [
  4460. 14,
  4461. 13
  4462. ]
  4463. ]
  4464. },
  4465. "text-field": "{道路名称}",
  4466. "symbol-placement": "line",
  4467. "text-rotation-alignment": "map"
  4468. },
  4469. "paint": {
  4470. "text-halo-blur": 0.5,
  4471. "text-color": "#765",
  4472. "text-halo-width": 1
  4473. }
  4474. },
  4475. {
  4476. "id": " 一级道路Name",
  4477. "type": "symbol",
  4478. "source": "vector-tiles",
  4479. "source-layer": "一级道路L@北京",
  4480. "layout": {
  4481. "text-size": {
  4482. "base": 1,
  4483. "stops": [
  4484. [
  4485. 13,
  4486. 12
  4487. ],
  4488. [
  4489. 14,
  4490. 13
  4491. ]
  4492. ]
  4493. },
  4494. "text-field": "{道路名称}",
  4495. "symbol-placement": "line",
  4496. "text-rotation-alignment": "map"
  4497. },
  4498. "paint": {
  4499. "text-halo-blur": 0.5,
  4500. "text-color": "#765",
  4501. "text-opacity": {
  4502. "base": 1,
  4503. "stops": [
  4504. [
  4505. 13.99,
  4506. 0
  4507. ],
  4508. [
  4509. 14,
  4510. 1
  4511. ]
  4512. ]
  4513. },
  4514. "text-halo-width": 1
  4515. }
  4516. },
  4517. {
  4518. "id": " 省道Name",
  4519. "type": "symbol",
  4520. "source": "vector-tiles",
  4521. "source-layer": "省道L@北京",
  4522. "layout": {
  4523. "text-size": {
  4524. "base": 1,
  4525. "stops": [
  4526. [
  4527. 13,
  4528. 12
  4529. ],
  4530. [
  4531. 14,
  4532. 13
  4533. ]
  4534. ]
  4535. },
  4536. "text-field": "{道路名称}",
  4537. "symbol-placement": "line",
  4538. "text-rotation-alignment": "map"
  4539. },
  4540. "paint": {
  4541. "text-halo-blur": 0.5,
  4542. "text-color": "#765",
  4543. "text-halo-width": 1,
  4544. "text-opacity": {
  4545. "base": 1,
  4546. "stops": [
  4547. [
  4548. 12.99,
  4549. 0
  4550. ],
  4551. [
  4552. 13,
  4553. 1
  4554. ]
  4555. ]
  4556. }
  4557. }
  4558. },
  4559. {
  4560. "id": "立交桥名称P@北京",
  4561. "type": "symbol",
  4562. "source": "vector-tiles",
  4563. "source-layer": "立交桥名称P@北京",
  4564. "layout": {
  4565. "text-offset": [-1, -1],
  4566. "text-anchor": "bottom",
  4567. "text-field": "{NAME}",
  4568. "text-size": 12
  4569. },
  4570. "paint": {
  4571. "text-color": "#666",
  4572. "text-opacity": 1,
  4573. "text-halo-color": "#ffffff",
  4574. "text-halo-width": 1,
  4575. "text-halo-blur": 1
  4576. }
  4577. },
  4578. {
  4579. "id": "长途汽车站@北京",
  4580. "type": "symbol",
  4581. "source": "vector-tiles",
  4582. "source-layer": "长途汽车站@北京",
  4583. "layout": {
  4584. "icon-image": "bus_11",
  4585. "text-offset": [-1, -1],
  4586. "text-anchor": "bottom",
  4587. "text-field": "{NAME}",
  4588. "text-size": 12
  4589. },
  4590. "paint": {
  4591. "text-color": "#666",
  4592. "text-opacity": 1,
  4593. "text-halo-color": "#ffffff",
  4594. "text-halo-width": 1,
  4595. "text-halo-blur": 1
  4596. }
  4597. },
  4598. {
  4599. "id": "图书馆@北京",
  4600. "type": "symbol",
  4601. "source": "vector-tiles",
  4602. "source-layer": "图书馆@北京",
  4603. "layout": {
  4604. "icon-image": "library_11",
  4605. "text-offset": [-1, -1],
  4606. "text-anchor": "bottom",
  4607. "text-field": "{NAME}",
  4608. "text-size": 12
  4609. },
  4610. "paint": {
  4611. "text-color": "#666",
  4612. "text-opacity": 1,
  4613. "text-halo-color": "#ffffff",
  4614. "text-halo-width": 1,
  4615. "text-halo-blur": 1
  4616. }
  4617. },
  4618. {
  4619. "id": "公园@北京",
  4620. "type": "symbol",
  4621. "source": "vector-tiles",
  4622. "source-layer": "公园@北京",
  4623. "layout": {
  4624. "icon-image": "park_11",
  4625. "text-offset": [0, -0.5],
  4626. "text-anchor": "bottom",
  4627. "text-field": "{NAME}",
  4628. "text-size": 12
  4629. },
  4630. "paint": {
  4631. "text-color": "#666",
  4632. "text-opacity": 1,
  4633. "text-halo-color": "#ffffff",
  4634. "text-halo-width": 1,
  4635. "text-halo-blur": 1
  4636. }
  4637. },
  4638. {
  4639. "id": "综合性广场@北京",
  4640. "type": "symbol",
  4641. "source": "vector-tiles",
  4642. "source-layer": "综合性广场@北京",
  4643. "layout": {
  4644. "icon-image": "campsite_11",
  4645. "text-offset": [0, -0.5],
  4646. "text-anchor": "bottom",
  4647. "text-field": "{NAME}",
  4648. "text-size": 12
  4649. },
  4650. "paint": {
  4651. "text-color": "#666",
  4652. "text-opacity": 1,
  4653. "text-halo-color": "#ffffff",
  4654. "text-halo-width": 1,
  4655. "text-halo-blur": 1
  4656. }
  4657. },
  4658. {
  4659. "id": "旅游景点@北京",
  4660. "type": "symbol",
  4661. "source": "vector-tiles",
  4662. "source-layer": "旅游景点@北京",
  4663. "layout": {
  4664. "icon-image": "volcano_11",
  4665. "text-offset": [0, -0.5],
  4666. "text-anchor": "bottom",
  4667. "text-field": "{NAME}",
  4668. "text-size": 12
  4669. },
  4670. "paint": {
  4671. "text-color": "#666",
  4672. "text-opacity": 1,
  4673. "text-halo-color": "#ffffff",
  4674. "text-halo-width": 1,
  4675. "text-halo-blur": 1
  4676. }
  4677. },
  4678. {
  4679. "id": "医疗卫生@北京",
  4680. "type": "symbol",
  4681. "source": "vector-tiles",
  4682. "source-layer": "医疗卫生@北京",
  4683. "layout": {
  4684. "icon-image": "hospital_11",
  4685. "text-offset": [0, -0.5],
  4686. "text-anchor": "bottom",
  4687. "text-field": "{NAME}",
  4688. "text-size": 12
  4689. },
  4690. "paint": {
  4691. "text-color": "#666",
  4692. "text-opacity": 1,
  4693. "text-halo-color": "#ffffff",
  4694. "text-halo-width": 1,
  4695. "text-halo-blur": 1
  4696. }
  4697. },
  4698. {
  4699. "id": "娱乐场所@北京",
  4700. "type": "symbol",
  4701. "source": "vector-tiles",
  4702. "source-layer": "娱乐场所@北京",
  4703. "layout": {
  4704. "icon-image": "amusement_park_11",
  4705. "text-offset": [0, -0.5],
  4706. "text-anchor": "bottom",
  4707. "text-field": "{NAME}",
  4708. "text-size": 12
  4709. },
  4710. "paint": {
  4711. "text-color": "#666",
  4712. "text-opacity": 1,
  4713. "text-halo-color": "#ffffff",
  4714. "text-halo-width": 1,
  4715. "text-halo-blur": 1
  4716. }
  4717. },
  4718. {
  4719. "id": "大厦@北京",
  4720. "type": "symbol",
  4721. "source": "vector-tiles",
  4722. "source-layer": "大厦@北京",
  4723. "layout": {
  4724. "icon-image": "picnic_site_11",
  4725. "text-offset": [0, -0.5],
  4726. "text-anchor": "bottom",
  4727. "text-field": "{NAME}",
  4728. "text-size": 12
  4729. },
  4730. "paint": {
  4731. "text-color": "#666",
  4732. "text-opacity": 1,
  4733. "text-halo-color": "#ffffff",
  4734. "text-halo-width": 1,
  4735. "text-halo-blur": 1
  4736. }
  4737. },
  4738. {
  4739. "id": "文化场所@北京",
  4740. "type": "symbol",
  4741. "source": "vector-tiles",
  4742. "source-layer": "文化场所@北京",
  4743. "layout": {
  4744. "icon-image": "art_gallery_11",
  4745. "text-offset": [0, -0.5],
  4746. "text-anchor": "bottom",
  4747. "text-field": "{NAME}",
  4748. "text-size": 12
  4749. },
  4750. "paint": {
  4751. "text-color": "#666",
  4752. "text-opacity": 1,
  4753. "text-halo-color": "#ffffff",
  4754. "text-halo-width": 1,
  4755. "text-halo-blur": 1
  4756. }
  4757. },
  4758. {
  4759. "id": "运动场所@北京",
  4760. "type": "symbol",
  4761. "source": "vector-tiles",
  4762. "source-layer": "运动场所@北京",
  4763. "layout": {
  4764. "icon-image": "bicycle_share_11",
  4765. "text-offset": [0, -0.5],
  4766. "text-anchor": "bottom",
  4767. "text-field": "{NAME}",
  4768. "text-size": 12
  4769. },
  4770. "paint": {
  4771. "text-color": "#666",
  4772. "text-opacity": 1,
  4773. "text-halo-color": "#ffffff",
  4774. "text-halo-width": 1,
  4775. "text-halo-blur": 1
  4776. }
  4777. },
  4778. {
  4779. "id": "交通运输@北京",
  4780. "type": "symbol",
  4781. "source": "vector-tiles",
  4782. "source-layer": "交通运输@北京",
  4783. "layout": {
  4784. "icon-image": "bakery_11",
  4785. "text-offset": [0, -0.5],
  4786. "text-anchor": "bottom",
  4787. "text-field": "{NAME}",
  4788. "text-size": 12
  4789. },
  4790. "paint": {
  4791. "text-color": "#666",
  4792. "text-opacity": 1,
  4793. "text-halo-color": "#ffffff",
  4794. "text-halo-width": 1,
  4795. "text-halo-blur": 1
  4796. }
  4797. },
  4798. {
  4799. "id": "其它@北京",
  4800. "type": "symbol",
  4801. "source": "vector-tiles",
  4802. "source-layer": "其它@北京",
  4803. "layout": {
  4804. "icon-image": "toilet_11",
  4805. "text-offset": [0, -0.5],
  4806. "text-anchor": "bottom",
  4807. "text-field": "{NAME}",
  4808. "text-size": 12
  4809. },
  4810. "filter": [
  4811. "==",
  4812. "NAME",
  4813. "公厕"
  4814. ],
  4815. "paint": {
  4816. "text-color": "#666",
  4817. "text-opacity": 1,
  4818. "text-halo-color": "#ffffff",
  4819. "text-halo-width": 1,
  4820. "text-halo-blur": 1
  4821. }
  4822. },
  4823. {
  4824. "id": "服务行业@北京",
  4825. "type": "symbol",
  4826. "source": "vector-tiles",
  4827. "source-layer": "服务行业@北京",
  4828. "layout": {
  4829. "icon-image": "embassy_11",
  4830. "text-offset": [0, -0.5],
  4831. "text-anchor": "bottom",
  4832. "text-field": "{NAME}",
  4833. "text-size": 12
  4834. },
  4835. "paint": {
  4836. "text-color": "#666",
  4837. "text-opacity": 1,
  4838. "text-halo-color": "#ffffff",
  4839. "text-halo-width": 1,
  4840. "text-halo-blur": 1
  4841. }
  4842. },
  4843. {
  4844. "id": "其它@北京2",
  4845. "type": "symbol",
  4846. "source": "vector-tiles",
  4847. "source-layer": "其它@北京",
  4848. "layout": {
  4849. "icon-image": "car_11",
  4850. "text-offset": [0, -0.5],
  4851. "text-anchor": "bottom",
  4852. "text-field": "{NAME}",
  4853. "text-size": 12
  4854. },
  4855. "filter": [
  4856. "==",
  4857. "NAME",
  4858. "停车场"
  4859. ],
  4860. "paint": {
  4861. "text-color": "#666",
  4862. "text-opacity": 1,
  4863. "text-halo-color": "#ffffff",
  4864. "text-halo-width": 1,
  4865. "text-halo-blur": 1
  4866. }
  4867. },
  4868. {
  4869. "id": "邮政电信@北京",
  4870. "type": "symbol",
  4871. "source": "vector-tiles",
  4872. "source-layer": "邮政电信@北京",
  4873. "layout": {
  4874. "icon-image": "post_11",
  4875. "text-offset": [0, -0.5],
  4876. "text-anchor": "bottom",
  4877. "text-field": "{NAME}",
  4878. "text-size": 10,
  4879. "text-max-width": 18
  4880. },
  4881. "paint": {
  4882. "text-color": "#666",
  4883. "text-opacity": 1,
  4884. "text-halo-color": "#ffffff",
  4885. "text-halo-width": 1,
  4886. "text-halo-blur": 1
  4887. }
  4888. },
  4889. {
  4890. "id": "商场@北京",
  4891. "type": "symbol",
  4892. "source": "vector-tiles",
  4893. "source-layer": "商场@北京",
  4894. "layout": {
  4895. "icon-image": "grocery_11",
  4896. "text-offset": [0, -0.5],
  4897. "text-anchor": "bottom",
  4898. "text-field": "{NAME}",
  4899. "text-size": 12
  4900. },
  4901. "paint": {
  4902. "text-color": "#666",
  4903. "text-opacity": 1,
  4904. "text-halo-color": "#ffffff",
  4905. "text-halo-width": 1,
  4906. "text-halo-blur": 1
  4907. }
  4908. },
  4909. {
  4910. "id": "综合性商店@北京",
  4911. "type": "symbol",
  4912. "source": "vector-tiles",
  4913. "source-layer": "综合性商店@北京",
  4914. "layout": {
  4915. "icon-image": "grocery_11",
  4916. "text-offset": [0, -0.5],
  4917. "text-anchor": "bottom",
  4918. "text-field": "{NAME}",
  4919. "text-size": 12
  4920. },
  4921. "paint": {
  4922. "text-color": "#666",
  4923. "text-opacity": 1,
  4924. "text-halo-color": "#ffffff",
  4925. "text-halo-width": 1,
  4926. "text-halo-blur": 1
  4927. }
  4928. },
  4929. {
  4930. "id": "饭店@北京",
  4931. "type": "symbol",
  4932. "source": "vector-tiles",
  4933. "source-layer": "饭店@北京",
  4934. "layout": {
  4935. "icon-image": "restaurant_11",
  4936. "text-offset": [0, -0.5],
  4937. "text-anchor": "bottom",
  4938. "text-field": "{NAME}",
  4939. "text-size": 12
  4940. },
  4941. "paint": {
  4942. "text-color": "#666",
  4943. "text-opacity": 1,
  4944. "text-halo-color": "#ffffff",
  4945. "text-halo-width": 1,
  4946. "text-halo-blur": 1
  4947. }
  4948. },
  4949. {
  4950. "id": "加油站@北京",
  4951. "type": "symbol",
  4952. "source": "vector-tiles",
  4953. "source-layer": "加油站@北京",
  4954. "layout": {
  4955. "icon-image": "fuel_11",
  4956. "text-offset": [0, -0.5],
  4957. "text-anchor": "bottom",
  4958. "text-field": "{NAME}",
  4959. "text-size": 12
  4960. },
  4961. "paint": {
  4962. "text-color": "#666",
  4963. "text-opacity": 1,
  4964. "text-halo-color": "#ffffff",
  4965. "text-halo-width": 1,
  4966. "text-halo-blur": 1
  4967. }
  4968. },
  4969. {
  4970. "id": "建筑@北京",
  4971. "type": "symbol",
  4972. "source": "vector-tiles",
  4973. "source-layer": "建筑@北京",
  4974. "layout": {
  4975. "icon-image": "place_of_worship_11",
  4976. "text-offset": [0, -0.5],
  4977. "text-anchor": "bottom",
  4978. "text-field": "{NAME}",
  4979. "text-size": 12
  4980. },
  4981. "paint": {
  4982. "text-color": "#666",
  4983. "text-opacity": 1,
  4984. "text-halo-color": "#ffffff",
  4985. "text-halo-width": 1,
  4986. "text-halo-blur": 1
  4987. }
  4988. },
  4989. {
  4990. "id": "码头@北京",
  4991. "type": "symbol",
  4992. "source": "vector-tiles",
  4993. "source-layer": "码头@北京",
  4994. "layout": {
  4995. "icon-image": "harbor_11",
  4996. "text-offset": [0, -0.5],
  4997. "text-anchor": "bottom",
  4998. "text-field": "{NAME}",
  4999. "text-size": 12
  5000. },
  5001. "paint": {
  5002. "text-color": "#666",
  5003. "text-opacity": 1,
  5004. "text-halo-color": "#ffffff",
  5005. "text-halo-width": 1,
  5006. "text-halo-blur": 1
  5007. }
  5008. },
  5009. {
  5010. "id": "机场@北京",
  5011. "type": "symbol",
  5012. "source": "vector-tiles",
  5013. "source-layer": "机场@北京",
  5014. "layout": {
  5015. "icon-image": "airport_11",
  5016. "text-offset": [0, -0.5],
  5017. "text-anchor": "bottom",
  5018. "text-field": "{NAME}",
  5019. "text-size": 12
  5020. },
  5021. "paint": {
  5022. "text-color": "#666",
  5023. "text-opacity": 1,
  5024. "text-halo-color": "#ffffff",
  5025. "text-halo-width": 1,
  5026. "text-halo-blur": 1
  5027. }
  5028. },
  5029. {
  5030. "id": "火车站@北京",
  5031. "type": "symbol",
  5032. "source": "vector-tiles",
  5033. "source-layer": "火车站@北京",
  5034. "layout": {
  5035. "icon-image": "rail_15",
  5036. "text-offset": [0, -0.5],
  5037. "text-anchor": "bottom",
  5038. "text-field": "{NAME}",
  5039. "text-size": 12
  5040. },
  5041. "paint": {
  5042. "text-color": "#666",
  5043. "text-opacity": 1,
  5044. "text-halo-color": "#ffffff",
  5045. "text-halo-width": 1,
  5046. "text-halo-blur": 1
  5047. }
  5048. },
  5049. {
  5050. "id": "地名@北京",
  5051. "type": "symbol",
  5052. "source": "vector-tiles",
  5053. "source-layer": "地名@北京",
  5054. "layout": {
  5055. "icon-image": "dot_11",
  5056. "text-offset": [0, -0.3],
  5057. "text-anchor": "bottom",
  5058. "text-field": "{NAME}",
  5059. "text-size": 12
  5060. },
  5061. "paint": {
  5062. "text-color": "#666",
  5063. "text-opacity": 1,
  5064. "text-halo-color": "#ffffff",
  5065. "text-halo-width": 1,
  5066. "text-halo-blur": 1
  5067. }
  5068. },
  5069. ]
  5070. }
  5071. },
  5072. positron: {
  5073. style: {
  5074. "version": 8,
  5075. "sources": {
  5076. "vector-tiles": {
  5077. "attribution": attribution,
  5078. "type": "vector",
  5079. "tiles": [host + "/iserver/services/map-beijing/rest/maps/beijingMap/tileFeature.mvt?returnAttributes=true&compressTolerance=-1&width=512&height=512&viewBounds={bbox-epsg-3857}&expands=0:0_2,132_128,138_64,141_32,143_16,145_8,147_4"]
  5080. }
  5081. },
  5082. "glyphs": host + "/iserver/services/map-beijing/rest/maps/beijingMap/tileFeature/sdffonts/{fontstack}/{range}.pbf",
  5083. "layers": [
  5084. {
  5085. "id": "background",
  5086. "type": "background",
  5087. "layout": {},
  5088. "paint": {
  5089. "background-color": "rgb(242,243,240)"
  5090. }
  5091. },
  5092. {
  5093. "id": "立交桥绿地R@北京",
  5094. "type": "fill",
  5095. "source": "vector-tiles",
  5096. "source-layer": "立交桥绿地R@北京",
  5097. "paint": {
  5098. "fill-color": "rgb(220,224,220)",
  5099. "fill-opacity": 1
  5100. }
  5101. },
  5102. {
  5103. "id": "绿地R@北京",
  5104. "type": "fill",
  5105. "source": "vector-tiles",
  5106. "source-layer": "绿地R@北京",
  5107. "paint": {
  5108. "fill-color": "rgb(220,224,220)",
  5109. "fill-opacity": 1
  5110. }
  5111. },
  5112. {
  5113. "id": " 双线河R@北京",
  5114. "type": "fill",
  5115. "source": "vector-tiles",
  5116. "source-layer": "双线河R@北京",
  5117. "paint": {
  5118. "fill-color": "rgb(194, 200, 202)",
  5119. "fill-antialias": true,
  5120. "fill-outline-color": {
  5121. "base": 1,
  5122. "stops": [
  5123. [
  5124. 10,
  5125. "hsla(180, 6%, 63%, 0.82)"
  5126. ],
  5127. [
  5128. 22,
  5129. "hsla(180, 6%, 63%, 0.18)"
  5130. ]
  5131. ]
  5132. }
  5133. }
  5134. },
  5135. {
  5136. "id": "湖泊、水库R@北京",
  5137. "type": "fill",
  5138. "source": "vector-tiles",
  5139. "source-layer": "湖泊、水库R@北京",
  5140. "paint": {
  5141. "fill-color": "rgb(194, 200, 202)",
  5142. "fill-antialias": true,
  5143. "fill-outline-color": {
  5144. "base": 1,
  5145. "stops": [
  5146. [
  5147. 10,
  5148. "hsla(180, 6%, 63%, 0.82)"
  5149. ],
  5150. [
  5151. 22,
  5152. "hsla(180, 6%, 63%, 0.18)"
  5153. ]
  5154. ]
  5155. }
  5156. }
  5157. },
  5158. {
  5159. "id": " 四级道路L@北京",
  5160. "type": "line",
  5161. "source": "vector-tiles",
  5162. "source-layer": "四级道路L@北京",
  5163. "layout": {
  5164. "line-cap": "round",
  5165. "line-join": "round",
  5166. "visibility": "visible"
  5167. },
  5168. "paint": {
  5169. "line-color": "hsl(0, 0%, 88%)",
  5170. "line-width": {
  5171. "base": 1.55,
  5172. "stops": [
  5173. [
  5174. 13,
  5175. 1.8
  5176. ],
  5177. [
  5178. 20,
  5179. 20
  5180. ]
  5181. ]
  5182. },
  5183. "line-opacity": 0.9
  5184. }
  5185. },
  5186. {
  5187. "id": " 三级道路L@北京",
  5188. "type": "line",
  5189. "source": "vector-tiles",
  5190. "source-layer": "三级道路L@北京",
  5191. "layout": {
  5192. "line-cap": "round",
  5193. "line-join": "round",
  5194. "visibility": "visible"
  5195. },
  5196. "paint": {
  5197. "line-color": "#fff",
  5198. "line-width": {
  5199. "base": 1.3,
  5200. "stops": [
  5201. [
  5202. 10,
  5203. 2
  5204. ],
  5205. [
  5206. 20,
  5207. 20
  5208. ]
  5209. ]
  5210. }
  5211. }
  5212. },
  5213. {
  5214. "id": " 二级道路L@北京",
  5215. "type": "line",
  5216. "source": "vector-tiles",
  5217. "source-layer": "二级道路L@北京",
  5218. "layout": {
  5219. "line-cap": "butt",
  5220. "line-join": "miter",
  5221. "visibility": "visible"
  5222. },
  5223. "paint": {
  5224. "line-color": "rgb(213, 213, 213)",
  5225. "line-dasharray": [
  5226. 12,
  5227. 0
  5228. ],
  5229. "line-width": {
  5230. "base": 1.3,
  5231. "stops": [
  5232. [
  5233. 10,
  5234. 3
  5235. ],
  5236. [
  5237. 20,
  5238. 23
  5239. ]
  5240. ]
  5241. }
  5242. }
  5243. },
  5244. {
  5245. "id": " 二级道路L@北京1",
  5246. "type": "line",
  5247. "source": "vector-tiles",
  5248. "source-layer": "二级道路L@北京",
  5249. "layout": {
  5250. "line-cap": "round",
  5251. "line-join": "round",
  5252. "visibility": "visible"
  5253. },
  5254. "paint": {
  5255. "line-color": "#fff",
  5256. "line-width": {
  5257. "base": 1.3,
  5258. "stops": [
  5259. [
  5260. 10,
  5261. 2
  5262. ],
  5263. [
  5264. 20,
  5265. 20
  5266. ]
  5267. ]
  5268. }
  5269. }
  5270. },
  5271. {
  5272. "id": "一级道路L@北京",
  5273. "type": "line",
  5274. "source": "vector-tiles",
  5275. "source-layer": "一级道路L@北京",
  5276. "layout": {
  5277. "line-cap": "butt",
  5278. "line-join": "miter",
  5279. "visibility": "visible"
  5280. },
  5281. "paint": {
  5282. "line-color": "rgb(213, 213, 213)",
  5283. "line-width": {
  5284. "base": 1.4,
  5285. "stops": [
  5286. [
  5287. 6,
  5288. 3
  5289. ],
  5290. [
  5291. 20,
  5292. 40
  5293. ]
  5294. ]
  5295. },
  5296. "line-dasharray": [
  5297. 2,
  5298. 0
  5299. ],
  5300. "line-opacity": 1
  5301. }
  5302. },
  5303. {
  5304. "id": "一级道路L@北京1",
  5305. "type": "line",
  5306. "source": "vector-tiles",
  5307. "source-layer": "一级道路L@北京",
  5308. "layout": {
  5309. "line-cap": "round",
  5310. "line-join": "round",
  5311. "visibility": "visible"
  5312. },
  5313. "paint": {
  5314. "line-color": "#fff",
  5315. "line-width": {
  5316. "base": 1.4,
  5317. "stops": [
  5318. [
  5319. 6,
  5320. 1.3
  5321. ],
  5322. [
  5323. 20,
  5324. 30
  5325. ]
  5326. ]
  5327. }
  5328. }
  5329. },
  5330. {
  5331. "id": " 省道L@北京",
  5332. "type": "line",
  5333. "source": "vector-tiles",
  5334. "source-layer": "省道L@北京",
  5335. "layout": {
  5336. "line-cap": "butt",
  5337. "line-join": "miter",
  5338. "visibility": "visible"
  5339. },
  5340. "paint": {
  5341. "line-color": "rgb(213, 213, 213)",
  5342. "line-width": {
  5343. "base": 1.4,
  5344. "stops": [
  5345. [
  5346. 6,
  5347. 3
  5348. ],
  5349. [
  5350. 20,
  5351. 40
  5352. ]
  5353. ]
  5354. },
  5355. "line-dasharray": [
  5356. 2,
  5357. 0
  5358. ],
  5359. "line-opacity": 1
  5360. }
  5361. },
  5362. {
  5363. "id": " 省道L@北京1",
  5364. "type": "line",
  5365. "source": "vector-tiles",
  5366. "source-layer": "省道L@北京",
  5367. "layout": {
  5368. "line-cap": "round",
  5369. "line-join": "round",
  5370. "visibility": "visible"
  5371. },
  5372. "paint": {
  5373. "line-color": "#fff",
  5374. "line-width": {
  5375. "base": 1.4,
  5376. "stops": [
  5377. [
  5378. 6,
  5379. 1.3
  5380. ],
  5381. [
  5382. 20,
  5383. 30
  5384. ]
  5385. ]
  5386. }
  5387. }
  5388. },
  5389. {
  5390. "id": " 高速公路L@北京",
  5391. "type": "line",
  5392. "source": "vector-tiles",
  5393. "source-layer": "高速公路L@北京",
  5394. "layout": {
  5395. "line-cap": "butt",
  5396. "line-join": "miter",
  5397. "visibility": "visible"
  5398. },
  5399. "paint": {
  5400. "line-color": "rgb(213, 213, 213)",
  5401. "line-width": {
  5402. "base": 1.4,
  5403. "stops": [
  5404. [
  5405. 5.8,
  5406. 0
  5407. ],
  5408. [
  5409. 6,
  5410. 3
  5411. ],
  5412. [
  5413. 20,
  5414. 40
  5415. ]
  5416. ]
  5417. },
  5418. "line-dasharray": [
  5419. 2,
  5420. 0
  5421. ],
  5422. "line-opacity": 1
  5423. }
  5424. },
  5425. {
  5426. "id": " 高速公路L@北京1",
  5427. "type": "line",
  5428. "source": "vector-tiles",
  5429. "source-layer": "高速公路L@北京",
  5430. "layout": {
  5431. "line-cap": "round",
  5432. "line-join": "round",
  5433. "visibility": "visible"
  5434. },
  5435. "paint": {
  5436. "line-color": {
  5437. "base": 1,
  5438. "stops": [
  5439. [
  5440. 5.8,
  5441. "hsla(0, 0%, 85%, 0.53)"
  5442. ],
  5443. [
  5444. 6,
  5445. "#fff"
  5446. ]
  5447. ]
  5448. },
  5449. "line-width": {
  5450. "base": 1.4,
  5451. "stops": [
  5452. [
  5453. 4,
  5454. 2
  5455. ],
  5456. [
  5457. 6,
  5458. 1.3
  5459. ],
  5460. [
  5461. 20,
  5462. 30
  5463. ]
  5464. ]
  5465. }
  5466. }
  5467. },
  5468. {
  5469. "id": "区政府驻地@北京",
  5470. "type": "symbol",
  5471. "source": "vector-tiles",
  5472. "source-layer": "区政府驻地@北京",
  5473. "layout": {
  5474. "text-offset": [-1.5, -0.5],
  5475. "text-anchor": "bottom-left",
  5476. "text-field": "{NAME}",
  5477. "text-max-width": 7,
  5478. "text-font": [
  5479. "DIN Offc Pro Medium",
  5480. "Arial Unicode MS Regular"
  5481. ],
  5482. "text-size": 22
  5483. },
  5484. "paint": {
  5485. "text-color": "hsl(230, 8%, 62%)",
  5486. "text-opacity": {
  5487. "base": 1,
  5488. "stops": [
  5489. [
  5490. 11.99,
  5491. 1
  5492. ],
  5493. [
  5494. 12,
  5495. 0
  5496. ]
  5497. ]
  5498. },
  5499. "text-halo-color": "rgb(242,243,240)",
  5500. "text-halo-width": 1,
  5501. "text-halo-blur": 1
  5502. }
  5503. },
  5504. {
  5505. "id": "标志建筑@北京",
  5506. "type": "symbol",
  5507. "source": "vector-tiles",
  5508. "source-layer": "标志建筑@北京",
  5509. "layout": {
  5510. "text-offset": [-1.5, -0.5],
  5511. "text-anchor": "bottom-left",
  5512. "text-field": "{NAME}",
  5513. "text-max-width": 7,
  5514. "text-size": 14
  5515. },
  5516. "paint": {
  5517. "text-color": "hsl(26, 25%, 32%)",
  5518. "text-opacity": {
  5519. "base": 1,
  5520. "stops": [
  5521. [
  5522. 10.99,
  5523. 0
  5524. ],
  5525. [
  5526. 11,
  5527. 1
  5528. ]
  5529. ]
  5530. },
  5531. "text-halo-color": "rgb(242,243,240)",
  5532. "text-halo-width": 1,
  5533. "text-halo-blur": 1
  5534. }
  5535. },
  5536. {
  5537. "id": " 四级道路Name",
  5538. "type": "symbol",
  5539. "source": "vector-tiles",
  5540. "source-layer": "四级道路L@北京",
  5541. "layout": {
  5542. "text-size": 10,
  5543. "text-max-angle": 30,
  5544. "text-transform": "uppercase",
  5545. "symbol-spacing": 350,
  5546. "symbol-placement": "line",
  5547. "visibility": "visible",
  5548. "text-rotation-alignment": "map",
  5549. "text-pitch-alignment": "viewport",
  5550. "text-field": "{道路名称}"
  5551. },
  5552. "paint": {
  5553. "text-color": "#bbb",
  5554. "text-halo-color": "#fff",
  5555. "text-translate": [
  5556. 0,
  5557. 0
  5558. ],
  5559. "text-opacity": {
  5560. "base": 1,
  5561. "stops": [
  5562. [
  5563. 13.99,
  5564. 0
  5565. ],
  5566. [
  5567. 14,
  5568. 1
  5569. ]
  5570. ]
  5571. },
  5572. "text-halo-width": 2,
  5573. "text-halo-blur": 1
  5574. }
  5575. },
  5576. {
  5577. "id": " 三级道路Name",
  5578. "type": "symbol",
  5579. "source": "vector-tiles",
  5580. "source-layer": "三级道路L@北京",
  5581. "layout": {
  5582. "text-size": 10,
  5583. "text-max-angle": 30,
  5584. "text-transform": "uppercase",
  5585. "symbol-spacing": 350,
  5586. "symbol-placement": "line",
  5587. "visibility": "visible",
  5588. "text-rotation-alignment": "map",
  5589. "text-pitch-alignment": "viewport",
  5590. "text-field": "{道路名称}"
  5591. },
  5592. "paint": {
  5593. "text-color": "#bbb",
  5594. "text-halo-color": "#fff",
  5595. "text-translate": [
  5596. 0,
  5597. 0
  5598. ],
  5599. "text-opacity": {
  5600. "base": 1,
  5601. "stops": [
  5602. [
  5603. 13.99,
  5604. 0
  5605. ],
  5606. [
  5607. 14,
  5608. 1
  5609. ]
  5610. ]
  5611. },
  5612. "text-halo-width": 2,
  5613. "text-halo-blur": 1
  5614. }
  5615. },
  5616. {
  5617. "id": " 二级道路Name",
  5618. "type": "symbol",
  5619. "source": "vector-tiles",
  5620. "source-layer": "二级道路L@北京",
  5621. "layout": {
  5622. "text-size": 10,
  5623. "text-max-angle": 30,
  5624. "text-transform": "uppercase",
  5625. "symbol-spacing": 350,
  5626. "symbol-placement": "line",
  5627. "visibility": "visible",
  5628. "text-rotation-alignment": "map",
  5629. "text-pitch-alignment": "viewport",
  5630. "text-field": "{道路名称}"
  5631. },
  5632. "paint": {
  5633. "text-color": "#bbb",
  5634. "text-halo-color": "#fff",
  5635. "text-translate": [
  5636. 0,
  5637. 0
  5638. ],
  5639. "text-opacity": {
  5640. "base": 1,
  5641. "stops": [
  5642. [
  5643. 13.99,
  5644. 0
  5645. ],
  5646. [
  5647. 14,
  5648. 1
  5649. ]
  5650. ]
  5651. },
  5652. "text-halo-width": 2,
  5653. "text-halo-blur": 1
  5654. }
  5655. },
  5656. {
  5657. "id": " 一级道路Name",
  5658. "type": "symbol",
  5659. "source": "vector-tiles",
  5660. "source-layer": "一级道路L@北京",
  5661. "layout": {
  5662. "text-size": 10,
  5663. "text-max-angle": 30,
  5664. "text-transform": "uppercase",
  5665. "symbol-spacing": 350,
  5666. "symbol-placement": "line",
  5667. "visibility": "visible",
  5668. "text-rotation-alignment": "map",
  5669. "text-pitch-alignment": "viewport",
  5670. "text-field": "{道路名称}"
  5671. },
  5672. "paint": {
  5673. "text-color": "#bbb",
  5674. "text-halo-color": "#fff",
  5675. "text-translate": [
  5676. 0,
  5677. 0
  5678. ],
  5679. "text-opacity": {
  5680. "base": 1,
  5681. "stops": [
  5682. [
  5683. 12.99,
  5684. 0
  5685. ],
  5686. [
  5687. 13,
  5688. 1
  5689. ]
  5690. ]
  5691. },
  5692. "text-halo-width": 2,
  5693. "text-halo-blur": 1
  5694. }
  5695. },
  5696. {
  5697. "id": " 省道Name",
  5698. "type": "symbol",
  5699. "source": "vector-tiles",
  5700. "source-layer": "省道L@北京",
  5701. "layout": {
  5702. "text-size": 10,
  5703. "text-max-angle": 30,
  5704. "text-transform": "uppercase",
  5705. "symbol-spacing": 350,
  5706. "symbol-placement": "line",
  5707. "visibility": "visible",
  5708. "text-rotation-alignment": "map",
  5709. "text-pitch-alignment": "viewport",
  5710. "text-field": "{道路名称}"
  5711. },
  5712. "paint": {
  5713. "text-color": "#bbb",
  5714. "text-halo-color": "#fff",
  5715. "text-translate": [
  5716. 0,
  5717. 0
  5718. ],
  5719. "text-opacity": {
  5720. "base": 1,
  5721. "stops": [
  5722. [
  5723. 12.99,
  5724. 0
  5725. ],
  5726. [
  5727. 13,
  5728. 1
  5729. ]
  5730. ]
  5731. },
  5732. "text-halo-width": 2,
  5733. "text-halo-blur": 1
  5734. }
  5735. },
  5736. {
  5737. "id": "立交桥名称P@北京",
  5738. "type": "symbol",
  5739. "source": "vector-tiles",
  5740. "source-layer": "立交桥名称P@北京",
  5741. "layout": {
  5742. "text-offset": [-1, -1],
  5743. "text-anchor": "bottom",
  5744. "text-field": "{NAME}",
  5745. "text-size": 14
  5746. },
  5747. "paint": {
  5748. "text-color": "rgb(117, 129, 145)",
  5749. "text-opacity": 1,
  5750. "text-halo-color": "rgb(242,243,240)",
  5751. "text-halo-width": 1,
  5752. "text-halo-blur": 1
  5753. }
  5754. },
  5755. {
  5756. "id": "长途汽车站@北京",
  5757. "type": "symbol",
  5758. "source": "vector-tiles",
  5759. "source-layer": "长途汽车站@北京",
  5760. "layout": {
  5761. "text-offset": [-1, -1],
  5762. "text-anchor": "bottom",
  5763. "text-field": "{NAME}",
  5764. "text-size": 12
  5765. },
  5766. "paint": {
  5767. "text-color": "rgb(117, 129, 145)",
  5768. "text-opacity": 1,
  5769. "text-halo-color": "rgb(242,243,240)",
  5770. "text-halo-width": 1,
  5771. "text-halo-blur": 1
  5772. }
  5773. },
  5774. {
  5775. "id": "图书馆@北京",
  5776. "type": "symbol",
  5777. "source": "vector-tiles",
  5778. "source-layer": "图书馆@北京",
  5779. "layout": {
  5780. "text-offset": [-1, -1],
  5781. "text-anchor": "bottom",
  5782. "text-field": "{NAME}",
  5783. "text-size": 12
  5784. },
  5785. "paint": {
  5786. "text-color": "rgb(117, 129, 145)",
  5787. "text-opacity": 1,
  5788. "text-halo-color": "rgb(242,243,240)",
  5789. "text-halo-width": 1,
  5790. "text-halo-blur": 1
  5791. }
  5792. },
  5793. {
  5794. "id": "公园@北京",
  5795. "type": "symbol",
  5796. "source": "vector-tiles",
  5797. "source-layer": "公园@北京",
  5798. "layout": {
  5799. "text-offset": [0, -0.5],
  5800. "text-anchor": "bottom",
  5801. "text-field": "{NAME}",
  5802. "text-size": 12
  5803. },
  5804. "paint": {
  5805. "text-color": "rgb(117, 129, 145)",
  5806. "text-opacity": 1,
  5807. "text-halo-color": "rgb(242,243,240)",
  5808. "text-halo-width": 1,
  5809. "text-halo-blur": 1
  5810. }
  5811. },
  5812. {
  5813. "id": "综合性广场@北京",
  5814. "type": "symbol",
  5815. "source": "vector-tiles",
  5816. "source-layer": "综合性广场@北京",
  5817. "layout": {
  5818. "text-offset": [0, -0.5],
  5819. "text-anchor": "bottom",
  5820. "text-field": "{NAME}",
  5821. "text-size": 12
  5822. },
  5823. "paint": {
  5824. "text-color": "rgb(117, 129, 145)",
  5825. "text-opacity": 1,
  5826. "text-halo-color": "rgb(242,243,240)",
  5827. "text-halo-width": 1,
  5828. "text-halo-blur": 1
  5829. }
  5830. },
  5831. {
  5832. "id": "旅游景点@北京",
  5833. "type": "symbol",
  5834. "source": "vector-tiles",
  5835. "source-layer": "旅游景点@北京",
  5836. "layout": {
  5837. "text-offset": [0, -0.5],
  5838. "text-anchor": "bottom",
  5839. "text-field": "{NAME}",
  5840. "text-size": 12
  5841. },
  5842. "paint": {
  5843. "text-color": "rgb(117, 129, 145)",
  5844. "text-opacity": 1,
  5845. "text-halo-color": "rgb(242,243,240)",
  5846. "text-halo-width": 1,
  5847. "text-halo-blur": 1
  5848. }
  5849. },
  5850. {
  5851. "id": "医疗卫生@北京",
  5852. "type": "symbol",
  5853. "source": "vector-tiles",
  5854. "source-layer": "医疗卫生@北京",
  5855. "layout": {
  5856. "text-offset": [0, -0.5],
  5857. "text-anchor": "bottom",
  5858. "text-field": "{NAME}",
  5859. "text-size": 12
  5860. },
  5861. "paint": {
  5862. "text-color": "rgb(117, 129, 145)",
  5863. "text-opacity": 1,
  5864. "text-halo-color": "rgb(242,243,240)",
  5865. "text-halo-width": 1,
  5866. "text-halo-blur": 1
  5867. }
  5868. },
  5869. {
  5870. "id": "娱乐场所@北京",
  5871. "type": "symbol",
  5872. "source": "vector-tiles",
  5873. "source-layer": "娱乐场所@北京",
  5874. "layout": {
  5875. "text-offset": [0, -0.5],
  5876. "text-anchor": "bottom",
  5877. "text-field": "{NAME}",
  5878. "text-size": 12
  5879. },
  5880. "paint": {
  5881. "text-color": "rgb(117, 129, 145)",
  5882. "text-opacity": 1,
  5883. "text-halo-color": "rgb(242,243,240)",
  5884. "text-halo-width": 1,
  5885. "text-halo-blur": 1
  5886. }
  5887. },
  5888. {
  5889. "id": "大厦@北京",
  5890. "type": "symbol",
  5891. "source": "vector-tiles",
  5892. "source-layer": "大厦@北京",
  5893. "layout": {
  5894. "text-offset": [0, -0.5],
  5895. "text-anchor": "bottom",
  5896. "text-field": "{NAME}",
  5897. "text-size": 12
  5898. },
  5899. "paint": {
  5900. "text-color": "rgb(117, 129, 145)",
  5901. "text-opacity": 1,
  5902. "text-halo-color": "rgb(242,243,240)",
  5903. "text-halo-width": 1,
  5904. "text-halo-blur": 1
  5905. }
  5906. },
  5907. {
  5908. "id": "文化场所@北京",
  5909. "type": "symbol",
  5910. "source": "vector-tiles",
  5911. "source-layer": "文化场所@北京",
  5912. "layout": {
  5913. "text-offset": [0, -0.5],
  5914. "text-anchor": "bottom",
  5915. "text-field": "{NAME}",
  5916. "text-size": 12
  5917. },
  5918. "paint": {
  5919. "text-color": "rgb(117, 129, 145)",
  5920. "text-opacity": 1,
  5921. "text-halo-color": "rgb(242,243,240)",
  5922. "text-halo-width": 1,
  5923. "text-halo-blur": 1
  5924. }
  5925. },
  5926. {
  5927. "id": "运动场所@北京",
  5928. "type": "symbol",
  5929. "source": "vector-tiles",
  5930. "source-layer": "运动场所@北京",
  5931. "layout": {
  5932. "text-offset": [0, -0.5],
  5933. "text-anchor": "bottom",
  5934. "text-field": "{NAME}",
  5935. "text-size": 12
  5936. },
  5937. "paint": {
  5938. "text-color": "rgb(117, 129, 145)",
  5939. "text-opacity": 1,
  5940. "text-halo-color": "rgb(242,243,240)",
  5941. "text-halo-width": 1,
  5942. "text-halo-blur": 1
  5943. }
  5944. },
  5945. {
  5946. "id": "交通运输@北京",
  5947. "type": "symbol",
  5948. "source": "vector-tiles",
  5949. "source-layer": "交通运输@北京",
  5950. "layout": {
  5951. "text-offset": [0, -0.5],
  5952. "text-anchor": "bottom",
  5953. "text-field": "{NAME}",
  5954. "text-size": 12
  5955. },
  5956. "paint": {
  5957. "text-color": "rgb(117, 129, 145)",
  5958. "text-opacity": 1,
  5959. "text-halo-color": "rgb(242,243,240)",
  5960. "text-halo-width": 1,
  5961. "text-halo-blur": 1
  5962. }
  5963. },
  5964. {
  5965. "id": "其它@北京",
  5966. "type": "symbol",
  5967. "source": "vector-tiles",
  5968. "source-layer": "其它@北京",
  5969. "layout": {
  5970. "text-offset": [0, -0.5],
  5971. "text-anchor": "bottom",
  5972. "text-field": "{NAME}",
  5973. "text-size": 12
  5974. },
  5975. "filter": [
  5976. "==",
  5977. "NAME",
  5978. "公厕"
  5979. ],
  5980. "paint": {
  5981. "text-color": "rgb(117, 129, 145)",
  5982. "text-opacity": 1,
  5983. "text-halo-color": "rgb(242,243,240)",
  5984. "text-halo-width": 1,
  5985. "text-halo-blur": 1
  5986. }
  5987. },
  5988. {
  5989. "id": "服务行业@北京",
  5990. "type": "symbol",
  5991. "source": "vector-tiles",
  5992. "source-layer": "服务行业@北京",
  5993. "layout": {
  5994. "text-offset": [0, -0.5],
  5995. "text-anchor": "bottom",
  5996. "text-field": "{NAME}",
  5997. "text-size": 12
  5998. },
  5999. "paint": {
  6000. "text-color": "rgb(117, 129, 145)",
  6001. "text-opacity": 1,
  6002. "text-halo-color": "rgb(242,243,240)",
  6003. "text-halo-width": 1,
  6004. "text-halo-blur": 1
  6005. }
  6006. },
  6007. {
  6008. "id": "其它@北京2",
  6009. "type": "symbol",
  6010. "source": "vector-tiles",
  6011. "source-layer": "其它@北京",
  6012. "layout": {
  6013. "text-offset": [0, -0.5],
  6014. "text-anchor": "bottom",
  6015. "text-field": "{NAME}",
  6016. "text-size": 12
  6017. },
  6018. "filter": [
  6019. "==",
  6020. "NAME",
  6021. "停车场"
  6022. ],
  6023. "paint": {
  6024. "text-color": "rgb(117, 129, 145)",
  6025. "text-opacity": 1,
  6026. "text-halo-color": "rgb(242,243,240)",
  6027. "text-halo-width": 1,
  6028. "text-halo-blur": 1
  6029. }
  6030. },
  6031. {
  6032. "id": "邮政电信@北京",
  6033. "type": "symbol",
  6034. "source": "vector-tiles",
  6035. "source-layer": "邮政电信@北京",
  6036. "layout": {
  6037. "text-offset": [0, -0.5],
  6038. "text-anchor": "bottom",
  6039. "text-field": "{NAME}",
  6040. "text-size": 10,
  6041. "text-max-width": 18
  6042. },
  6043. "paint": {
  6044. "text-color": "rgb(117, 129, 145)",
  6045. "text-opacity": 1,
  6046. "text-halo-color": "rgb(242,243,240)",
  6047. "text-halo-width": 1,
  6048. "text-halo-blur": 1
  6049. }
  6050. },
  6051. {
  6052. "id": "商场@北京",
  6053. "type": "symbol",
  6054. "source": "vector-tiles",
  6055. "source-layer": "商场@北京",
  6056. "layout": {
  6057. "text-offset": [0, -0.5],
  6058. "text-anchor": "bottom",
  6059. "text-field": "{NAME}",
  6060. "text-size": 12
  6061. },
  6062. "paint": {
  6063. "text-color": "rgb(117, 129, 145)",
  6064. "text-opacity": 1,
  6065. "text-halo-color": "rgb(242,243,240)",
  6066. "text-halo-width": 1,
  6067. "text-halo-blur": 1
  6068. }
  6069. },
  6070. {
  6071. "id": "综合性商店@北京",
  6072. "type": "symbol",
  6073. "source": "vector-tiles",
  6074. "source-layer": "综合性商店@北京",
  6075. "layout": {
  6076. "text-offset": [0, -0.5],
  6077. "text-anchor": "bottom",
  6078. "text-field": "{NAME}",
  6079. "text-size": 12
  6080. },
  6081. "paint": {
  6082. "text-color": "rgb(117, 129, 145)",
  6083. "text-opacity": 1,
  6084. "text-halo-color": "rgb(242,243,240)",
  6085. "text-halo-width": 1,
  6086. "text-halo-blur": 1
  6087. }
  6088. },
  6089. {
  6090. "id": "饭店@北京",
  6091. "type": "symbol",
  6092. "source": "vector-tiles",
  6093. "source-layer": "饭店@北京",
  6094. "layout": {
  6095. "text-offset": [0, -0.5],
  6096. "text-anchor": "bottom",
  6097. "text-field": "{NAME}",
  6098. "text-size": 12
  6099. },
  6100. "paint": {
  6101. "text-color": "rgb(117, 129, 145)",
  6102. "text-opacity": 1,
  6103. "text-halo-color": "rgb(242,243,240)",
  6104. "text-halo-width": 1,
  6105. "text-halo-blur": 1
  6106. }
  6107. },
  6108. {
  6109. "id": "加油站@北京",
  6110. "type": "symbol",
  6111. "source": "vector-tiles",
  6112. "source-layer": "加油站@北京",
  6113. "layout": {
  6114. "text-offset": [0, -0.5],
  6115. "text-anchor": "bottom",
  6116. "text-field": "{NAME}",
  6117. "text-size": 12
  6118. },
  6119. "paint": {
  6120. "text-color": "rgb(117, 129, 145)",
  6121. "text-opacity": 1,
  6122. "text-halo-color": "rgb(242,243,240)",
  6123. "text-halo-width": 1,
  6124. "text-halo-blur": 1
  6125. }
  6126. },
  6127. {
  6128. "id": "建筑@北京",
  6129. "type": "symbol",
  6130. "source": "vector-tiles",
  6131. "source-layer": "建筑@北京",
  6132. "layout": {
  6133. "text-offset": [0, -0.5],
  6134. "text-anchor": "bottom",
  6135. "text-field": "{NAME}",
  6136. "text-size": 12
  6137. },
  6138. "paint": {
  6139. "text-color": "rgb(117, 129, 145)",
  6140. "text-opacity": 1,
  6141. "text-halo-color": "rgb(242,243,240)",
  6142. "text-halo-width": 1,
  6143. "text-halo-blur": 1
  6144. }
  6145. },
  6146. {
  6147. "id": "码头@北京",
  6148. "type": "symbol",
  6149. "source": "vector-tiles",
  6150. "source-layer": "码头@北京",
  6151. "layout": {
  6152. "text-offset": [0, -0.5],
  6153. "text-anchor": "bottom",
  6154. "text-field": "{NAME}",
  6155. "text-size": 12
  6156. },
  6157. "paint": {
  6158. "text-color": "rgb(117, 129, 145)",
  6159. "text-opacity": 1,
  6160. "text-halo-color": "rgb(242,243,240)",
  6161. "text-halo-width": 1,
  6162. "text-halo-blur": 1
  6163. }
  6164. },
  6165. {
  6166. "id": "机场@北京",
  6167. "type": "symbol",
  6168. "source": "vector-tiles",
  6169. "source-layer": "机场@北京",
  6170. "layout": {
  6171. "text-offset": [0, -0.5],
  6172. "text-anchor": "bottom",
  6173. "text-field": "{NAME}",
  6174. "text-size": 12
  6175. },
  6176. "paint": {
  6177. "text-color": "rgb(117, 129, 145)",
  6178. "text-opacity": 1,
  6179. "text-halo-color": "rgb(242,243,240)",
  6180. "text-halo-width": 1,
  6181. "text-halo-blur": 1
  6182. }
  6183. },
  6184. {
  6185. "id": "火车站@北京",
  6186. "type": "symbol",
  6187. "source": "vector-tiles",
  6188. "source-layer": "火车站@北京",
  6189. "layout": {
  6190. "text-offset": [0, -0.5],
  6191. "text-anchor": "bottom",
  6192. "text-field": "{NAME}",
  6193. "text-size": 12
  6194. },
  6195. "paint": {
  6196. "text-color": "rgb(117, 129, 145)",
  6197. "text-opacity": 1,
  6198. "text-halo-color": "rgb(242,243,240)",
  6199. "text-halo-width": 1,
  6200. "text-halo-blur": 1
  6201. }
  6202. },
  6203. {
  6204. "id": "地名@北京",
  6205. "type": "symbol",
  6206. "source": "vector-tiles",
  6207. "source-layer": "地名@北京",
  6208. "layout": {
  6209. "text-offset": [0, -0.3],
  6210. "text-anchor": "bottom",
  6211. "text-field": "{NAME}",
  6212. "text-size": 12
  6213. },
  6214. "paint": {
  6215. "text-color": "rgb(117, 129, 145)",
  6216. "text-opacity": 1,
  6217. "text-halo-color": "rgb(242,243,240)",
  6218. "text-halo-width": 1,
  6219. "text-halo-blur": 1
  6220. }
  6221. },]
  6222. }
  6223. },
  6224. };