bmap_offline_api_v3.0_min.js 284 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916
  1. window.TILE_VERSION = {
  2. ditu: {
  3. normal: {
  4. version: '088',
  5. updateDate: '20180829',
  6. },
  7. satellite: {
  8. version: '009',
  9. updateDate: '20180829',
  10. },
  11. normalTraffic: {
  12. version: '081',
  13. updateDate: '20180829',
  14. },
  15. satelliteTraffic: {
  16. version: '083',
  17. updateDate: '20180829',
  18. },
  19. mapJS: {
  20. version: '104',
  21. updateDate: '20180829',
  22. },
  23. satelliteStreet: {
  24. version: '083',
  25. updateDate: '20180829',
  26. },
  27. panoClick: {
  28. version: '1033',
  29. updateDate: '20180816',
  30. },
  31. panoUdt: {
  32. version: '20180816',
  33. updateDate: '20180816',
  34. },
  35. panoSwfAPI: {
  36. version: '20150123',
  37. updateDate: '20150123',
  38. },
  39. panoSwfPlace: {
  40. version: '20141112',
  41. updateDate: '20141112',
  42. },
  43. earthVector: {
  44. version: '001',
  45. updateDate: '20180829',
  46. },
  47. },
  48. webapp: {
  49. high_normal: {
  50. version: '001',
  51. updateDate: '20180829',
  52. },
  53. lower_normal: {
  54. version: '002',
  55. updateDate: '20180829',
  56. },
  57. },
  58. api_for_mobile: {
  59. vector: {
  60. version: '002',
  61. updateDate: '20180829',
  62. },
  63. vectorIcon: {
  64. version: '002',
  65. updateDate: '20180829',
  66. },
  67. },
  68. }
  69. window.BMAP_AUTHENTIC_KEY = ''
  70. ;(function () {
  71. function aa(a) {
  72. throw a
  73. }
  74. var l = void 0,
  75. q = !0,
  76. s = null,
  77. t = !1
  78. function u() {
  79. return function () {}
  80. }
  81. function ba(a) {
  82. return function (b) {
  83. this[a] = b
  84. }
  85. }
  86. function w(a) {
  87. return function () {
  88. return this[a]
  89. }
  90. }
  91. function ca(a) {
  92. return function () {
  93. return a
  94. }
  95. }
  96. var da,
  97. ea = []
  98. function ga(a) {
  99. return function () {
  100. return ea[a].apply(this, arguments)
  101. }
  102. }
  103. function ha(a, b) {
  104. return (ea[a] = b)
  105. }
  106. var ia,
  107. z = (ia = z || {
  108. version: '1.3.4',
  109. })
  110. z.aa = '$BAIDU$'
  111. window[z.aa] = window[z.aa] || {}
  112. z.object = z.object || {}
  113. z.extend = z.object.extend = function (a, b) {
  114. for (var c in b) b.hasOwnProperty(c) && (a[c] = b[c])
  115. return a
  116. }
  117. z.D = z.D || {}
  118. z.D.$ = function (a) {
  119. return 'string' == typeof a || a instanceof String
  120. ? document.getElementById(a)
  121. : a && a.nodeName && (1 == a.nodeType || 9 == a.nodeType)
  122. ? a
  123. : s
  124. }
  125. z.$ = z.Fc = z.D.$
  126. z.D.U = function (a) {
  127. a = z.D.$(a)
  128. if (a === s) return a
  129. a.style.display = 'none'
  130. return a
  131. }
  132. z.U = z.D.U
  133. z.lang = z.lang || {}
  134. z.lang.wg = function (a) {
  135. return '[object String]' == Object.prototype.toString.call(a)
  136. }
  137. z.wg = z.lang.wg
  138. z.D.Oj = function (a) {
  139. return z.lang.wg(a) ? document.getElementById(a) : a
  140. }
  141. z.Oj = z.D.Oj
  142. z.D.getElementsByClassName = function (a, b) {
  143. var c
  144. if (a.getElementsByClassName) c = a.getElementsByClassName(b)
  145. else {
  146. var e = a
  147. e == s && (e = document)
  148. c = []
  149. var e = e.getElementsByTagName('*'),
  150. f = e.length,
  151. g = RegExp('(^|\\s)' + b + '(\\s|$)'),
  152. i,
  153. k
  154. for (k = i = 0; i < f; i++) g.test(e[i].className) && ((c[k] = e[i]), k++)
  155. }
  156. return c
  157. }
  158. z.getElementsByClassName = z.D.getElementsByClassName
  159. z.D.contains = function (a, b) {
  160. var c = z.D.Oj,
  161. a = c(a),
  162. b = c(b)
  163. return a.contains
  164. ? a != b && a.contains(b)
  165. : !!(a.compareDocumentPosition(b) & 16)
  166. }
  167. z.ca = z.ca || {}
  168. ;/msie (\d+\.\d)/i.test(navigator.userAgent) &&
  169. (z.ca.ia = z.ia = document.documentMode || +RegExp.$1)
  170. var ja = {
  171. cellpadding: 'cellPadding',
  172. cellspacing: 'cellSpacing',
  173. colspan: 'colSpan',
  174. rowspan: 'rowSpan',
  175. valign: 'vAlign',
  176. usemap: 'useMap',
  177. frameborder: 'frameBorder',
  178. }
  179. 8 > z.ca.ia
  180. ? ((ja['for'] = 'htmlFor'), (ja['class'] = 'className'))
  181. : ((ja.htmlFor = 'for'), (ja.className = 'class'))
  182. z.D.RG = ja
  183. z.D.BF = function (a, b, c) {
  184. a = z.D.$(a)
  185. if (a === s) return a
  186. if ('style' == b) a.style.cssText = c
  187. else {
  188. b = z.D.RG[b] || b
  189. a.setAttribute(b, c)
  190. }
  191. return a
  192. }
  193. z.BF = z.D.BF
  194. z.D.CF = function (a, b) {
  195. a = z.D.$(a)
  196. if (a === s) return a
  197. for (var c in b) z.D.BF(a, c, b[c])
  198. return a
  199. }
  200. z.CF = z.D.CF
  201. z.Wk = z.Wk || {}
  202. ;(function () {
  203. var a = RegExp('(^[\\s\\t\\xa0\\u3000]+)|([\\u3000\\xa0\\s\\t]+$)', 'g')
  204. z.Wk.trim = function (b) {
  205. return ('' + b).replace(a, '')
  206. }
  207. })()
  208. z.trim = z.Wk.trim
  209. z.Wk.Wo = function (a, b) {
  210. var a = '' + a,
  211. c = Array.prototype.slice.call(arguments, 1),
  212. e = Object.prototype.toString
  213. if (c.length) {
  214. c =
  215. c.length == 1
  216. ? b !== s && /\[object Array\]|\[object Object\]/.test(e.call(b))
  217. ? b
  218. : c
  219. : c
  220. return a.replace(/#\{(.+?)\}/g, function (a, b) {
  221. var i = c[b]
  222. '[object Function]' == e.call(i) && (i = i(b))
  223. return 'undefined' == typeof i ? '' : i
  224. })
  225. }
  226. return a
  227. }
  228. z.Wo = z.Wk.Wo
  229. z.D.Pb = function (a, b) {
  230. a = z.D.$(a)
  231. if (a === s) return a
  232. for (
  233. var c = a.className.split(/\s+/),
  234. e = b.split(/\s+/),
  235. f,
  236. g = e.length,
  237. i,
  238. k = 0;
  239. k < g;
  240. ++k
  241. ) {
  242. i = 0
  243. for (f = c.length; i < f; ++i)
  244. if (c[i] == e[k]) {
  245. c.splice(i, 1)
  246. break
  247. }
  248. }
  249. a.className = c.join(' ')
  250. return a
  251. }
  252. z.Pb = z.D.Pb
  253. z.D.Vx = function (a, b, c) {
  254. a = z.D.$(a)
  255. if (a === s) return a
  256. var e
  257. if (a.insertAdjacentHTML) a.insertAdjacentHTML(b, c)
  258. else {
  259. e = a.ownerDocument.createRange()
  260. b = b.toUpperCase()
  261. if (b == 'AFTERBEGIN' || b == 'BEFOREEND') {
  262. e.selectNodeContents(a)
  263. e.collapse(b == 'AFTERBEGIN')
  264. } else {
  265. b = b == 'BEFOREBEGIN'
  266. e[b ? 'setStartBefore' : 'setEndAfter'](a)
  267. e.collapse(b)
  268. }
  269. e.insertNode(e.createContextualFragment(c))
  270. }
  271. return a
  272. }
  273. z.Vx = z.D.Vx
  274. z.D.show = function (a) {
  275. a = z.D.$(a)
  276. if (a === s) return a
  277. a.style.display = ''
  278. return a
  279. }
  280. z.show = z.D.show
  281. z.D.QD = function (a) {
  282. a = z.D.$(a)
  283. return a === s ? a : a.nodeType == 9 ? a : a.ownerDocument || a.document
  284. }
  285. z.D.Ua = function (a, b) {
  286. a = z.D.$(a)
  287. if (a === s) return a
  288. for (
  289. var c = b.split(/\s+/),
  290. e = a.className,
  291. f = ' ' + e + ' ',
  292. g = 0,
  293. i = c.length;
  294. g < i;
  295. g++
  296. )
  297. f.indexOf(' ' + c[g] + ' ') < 0 && (e = e + (' ' + c[g]))
  298. a.className = e
  299. return a
  300. }
  301. z.Ua = z.D.Ua
  302. z.D.PB = z.D.PB || {}
  303. z.D.Ol = z.D.Ol || []
  304. z.D.Ol.filter = function (a, b, c) {
  305. for (var e = 0, f = z.D.Ol, g; (g = f[e]); e++) if ((g = g[c])) b = g(a, b)
  306. return b
  307. }
  308. z.Wk.RO = function (a) {
  309. return a.indexOf('-') < 0 && a.indexOf('_') < 0
  310. ? a
  311. : a.replace(/[-_][^-_]/g, function (a) {
  312. return a.charAt(1).toUpperCase()
  313. })
  314. }
  315. z.D.m0 = function (a) {
  316. z.D.it(a, 'expand') ? z.D.Pb(a, 'expand') : z.D.Ua(a, 'expand')
  317. }
  318. z.D.it = function (a) {
  319. if (arguments.length <= 0 || typeof a === 'function') return this
  320. if (this.size() <= 0) return t
  321. var a = a.replace(/^\s+/g, '').replace(/\s+$/g, '').replace(/\s+/g, ' '),
  322. b = a.split(' '),
  323. c
  324. z.forEach(this, function (a) {
  325. for (var a = a.className, f = 0; f < b.length; f++)
  326. if (!~(' ' + a + ' ').indexOf(' ' + b[f] + ' ')) {
  327. c = t
  328. return
  329. }
  330. c !== t && (c = q)
  331. })
  332. return c
  333. }
  334. z.D.oj = function (a, b) {
  335. var c = z.D,
  336. a = c.$(a)
  337. if (a === s) return a
  338. var b = z.Wk.RO(b),
  339. e = a.style[b]
  340. if (!e)
  341. var f = c.PB[b],
  342. e = a.currentStyle || (z.ca.ia ? a.style : getComputedStyle(a, s)),
  343. e = f && f.get ? f.get(a, e) : e[f || b]
  344. if ((f = c.Ol)) e = f.filter(b, e, 'get')
  345. return e
  346. }
  347. z.oj = z.D.oj
  348. ;/opera\/(\d+\.\d)/i.test(navigator.userAgent) && (z.ca.opera = +RegExp.$1)
  349. z.ca.HM = /webkit/i.test(navigator.userAgent)
  350. z.ca.VY =
  351. /gecko/i.test(navigator.userAgent) &&
  352. !/like gecko/i.test(navigator.userAgent)
  353. z.ca.DE = 'CSS1Compat' == document.compatMode
  354. z.D.ga = function (a) {
  355. a = z.D.$(a)
  356. if (a === s) return a
  357. var b = z.D.QD(a),
  358. c = z.ca,
  359. e = z.D.oj
  360. c.VY > 0 && b.getBoxObjectFor && e(a, 'position')
  361. var f = {
  362. left: 0,
  363. top: 0,
  364. },
  365. g
  366. if (a == (c.ia && !c.DE ? b.body : b.documentElement)) return f
  367. if (a.getBoundingClientRect) {
  368. a = a.getBoundingClientRect()
  369. f.left =
  370. Math.floor(a.left) +
  371. Math.max(b.documentElement.scrollLeft, b.body.scrollLeft)
  372. f.top =
  373. Math.floor(a.top) +
  374. Math.max(b.documentElement.scrollTop, b.body.scrollTop)
  375. f.left = f.left - b.documentElement.clientLeft
  376. f.top = f.top - b.documentElement.clientTop
  377. a = b.body
  378. b = parseInt(e(a, 'borderLeftWidth'))
  379. e = parseInt(e(a, 'borderTopWidth'))
  380. if (c.ia && !c.DE) {
  381. f.left = f.left - (isNaN(b) ? 2 : b)
  382. f.top = f.top - (isNaN(e) ? 2 : e)
  383. }
  384. } else {
  385. g = a
  386. do {
  387. f.left = f.left + g.offsetLeft
  388. f.top = f.top + g.offsetTop
  389. if (c.HM > 0 && e(g, 'position') == 'fixed') {
  390. f.left = f.left + b.body.scrollLeft
  391. f.top = f.top + b.body.scrollTop
  392. break
  393. }
  394. g = g.offsetParent
  395. } while (g && g != a)
  396. if (c.opera > 0 || (c.HM > 0 && e(a, 'position') == 'absolute'))
  397. f.top = f.top - b.body.offsetTop
  398. for (g = a.offsetParent; g && g != b.body; ) {
  399. f.left = f.left - g.scrollLeft
  400. if (!c.opera || g.tagName != 'TR') f.top = f.top - g.scrollTop
  401. g = g.offsetParent
  402. }
  403. }
  404. return f
  405. }
  406. ;/firefox\/(\d+\.\d)/i.test(navigator.userAgent) && (z.ca.Te = +RegExp.$1)
  407. ;/BIDUBrowser/i.test(navigator.userAgent) && (z.ca.n2 = q)
  408. var ka = navigator.userAgent
  409. ;/(\d+\.\d)?(?:\.\d)?\s+safari\/?(\d+\.\d+)?/i.test(ka) &&
  410. !/chrome/i.test(ka) &&
  411. (z.ca.Iy = +(RegExp.$1 || RegExp.$2))
  412. ;/chrome\/(\d+\.\d)/i.test(navigator.userAgent) && (z.ca.Qw = +RegExp.$1)
  413. z.mc = z.mc || {}
  414. z.mc.Fb = function (a, b) {
  415. var c,
  416. e,
  417. f = a.length
  418. if ('function' == typeof b)
  419. for (e = 0; e < f; e++) {
  420. c = a[e]
  421. c = b.call(a, c, e)
  422. if (c === t) break
  423. }
  424. return a
  425. }
  426. z.Fb = z.mc.Fb
  427. z.lang.aa = function () {
  428. return 'TANGRAM__' + (window[z.aa]._counter++).toString(36)
  429. }
  430. window[z.aa]._counter = window[z.aa]._counter || 1
  431. window[z.aa]._instances = window[z.aa]._instances || {}
  432. z.lang.wt = function (a) {
  433. return '[object Function]' == Object.prototype.toString.call(a)
  434. }
  435. z.lang.Ca = function (a) {
  436. this.aa = a || z.lang.aa()
  437. window[z.aa]._instances[this.aa] = this
  438. }
  439. window[z.aa]._instances = window[z.aa]._instances || {}
  440. z.lang.Ca.prototype.ci = ga(0)
  441. z.lang.Ca.prototype.toString = function () {
  442. return '[object ' + (this.UQ || 'Object') + ']'
  443. }
  444. z.lang.Ju = function (a, b) {
  445. this.type = a
  446. this.returnValue = q
  447. this.target = b || s
  448. this.currentTarget = s
  449. }
  450. z.lang.Ca.prototype.addEventListener = function (a, b, c) {
  451. if (z.lang.wt(b)) {
  452. !b.fl && (b.fl = {})
  453. !this.Ci && (this.Ci = {})
  454. var e = this.Ci,
  455. f
  456. if (typeof c == 'string' && c) {
  457. ;/[^\w\-]/.test(c) && aa('nonstandard key:' + c)
  458. f = b.Nx = c
  459. }
  460. a.indexOf('on') != 0 && (a = 'on' + a)
  461. typeof e[a] != 'object' && (e[a] = {})
  462. typeof b.fl[a] != 'object' && (b.fl[a] = {})
  463. f = f || z.lang.aa()
  464. b.fl[a].Nx = f
  465. e[a][f] = b
  466. }
  467. }
  468. z.lang.Ca.prototype.removeEventListener = function (a, b) {
  469. a.indexOf('on') != 0 && (a = 'on' + a)
  470. if (z.lang.wt(b)) {
  471. if (!b.fl || !b.fl[a]) return
  472. b = b.fl[a].Nx
  473. } else if (!z.lang.wg(b)) return
  474. !this.Ci && (this.Ci = {})
  475. var c = this.Ci
  476. c[a] && c[a][b] && delete c[a][b]
  477. }
  478. z.lang.Ca.prototype.dispatchEvent = function (a, b) {
  479. z.lang.wg(a) && (a = new z.lang.Ju(a))
  480. !this.Ci && (this.Ci = {})
  481. var b = b || {},
  482. c
  483. for (c in b) a[c] = b[c]
  484. var e = this.Ci,
  485. f = a.type
  486. a.target = a.target || this
  487. a.currentTarget = this
  488. f.indexOf('on') != 0 && (f = 'on' + f)
  489. z.lang.wt(this[f]) && this[f].apply(this, arguments)
  490. if (typeof e[f] == 'object') for (c in e[f]) e[f][c].apply(this, arguments)
  491. return a.returnValue
  492. }
  493. z.lang.ta = function (a, b, c) {
  494. var e,
  495. f,
  496. g = a.prototype
  497. f = new Function()
  498. f.prototype = b.prototype
  499. f = a.prototype = new f()
  500. for (e in g) f[e] = g[e]
  501. a.prototype.constructor = a
  502. a.b0 = b.prototype
  503. if ('string' == typeof c) f.UQ = c
  504. }
  505. z.ta = z.lang.ta
  506. z.lang.Nc = function (a) {
  507. return window[z.aa]._instances[a] || s
  508. }
  509. z.platform = z.platform || {}
  510. z.platform.AM = /macintosh/i.test(navigator.userAgent)
  511. z.platform.h4 = /MicroMessenger/i.test(navigator.userAgent)
  512. z.platform.IM = /windows/i.test(navigator.userAgent)
  513. z.platform.cZ = /x11/i.test(navigator.userAgent)
  514. z.platform.Jm = /android/i.test(navigator.userAgent)
  515. ;/android (\d+\.\d)/i.test(navigator.userAgent) &&
  516. (z.platform.dK = z.dK = RegExp.$1)
  517. z.platform.XY = /ipad/i.test(navigator.userAgent)
  518. z.platform.zE = /iphone/i.test(navigator.userAgent)
  519. function la(a, b) {
  520. a.domEvent = b = window.event || b
  521. a.clientX = b.clientX || b.pageX
  522. a.clientY = b.clientY || b.pageY
  523. a.offsetX = b.offsetX || b.layerX
  524. a.offsetY = b.offsetY || b.layerY
  525. a.screenX = b.screenX
  526. a.screenY = b.screenY
  527. a.ctrlKey = b.ctrlKey || b.metaKey
  528. a.shiftKey = b.shiftKey
  529. a.altKey = b.altKey
  530. if (b.touches) {
  531. a.touches = []
  532. for (var c = 0; c < b.touches.length; c++)
  533. a.touches.push({
  534. clientX: b.touches[c].clientX,
  535. clientY: b.touches[c].clientY,
  536. screenX: b.touches[c].screenX,
  537. screenY: b.touches[c].screenY,
  538. pageX: b.touches[c].pageX,
  539. pageY: b.touches[c].pageY,
  540. target: b.touches[c].target,
  541. identifier: b.touches[c].identifier,
  542. })
  543. }
  544. if (b.changedTouches) {
  545. a.changedTouches = []
  546. for (c = 0; c < b.changedTouches.length; c++)
  547. a.changedTouches.push({
  548. clientX: b.changedTouches[c].clientX,
  549. clientY: b.changedTouches[c].clientY,
  550. screenX: b.changedTouches[c].screenX,
  551. screenY: b.changedTouches[c].screenY,
  552. pageX: b.changedTouches[c].pageX,
  553. pageY: b.changedTouches[c].pageY,
  554. target: b.changedTouches[c].target,
  555. identifier: b.changedTouches[c].identifier,
  556. })
  557. }
  558. if (b.targetTouches) {
  559. a.targetTouches = []
  560. for (c = 0; c < b.targetTouches.length; c++)
  561. a.targetTouches.push({
  562. clientX: b.targetTouches[c].clientX,
  563. clientY: b.targetTouches[c].clientY,
  564. screenX: b.targetTouches[c].screenX,
  565. screenY: b.targetTouches[c].screenY,
  566. pageX: b.targetTouches[c].pageX,
  567. pageY: b.targetTouches[c].pageY,
  568. target: b.targetTouches[c].target,
  569. identifier: b.targetTouches[c].identifier,
  570. })
  571. }
  572. a.rotation = b.rotation
  573. a.scale = b.scale
  574. return a
  575. }
  576. z.lang.hx = function (a) {
  577. var b = window[z.aa]
  578. b.eT && delete b.eT[a]
  579. }
  580. z.event = {}
  581. z.M = z.event.M = function (a, b, c) {
  582. if (!(a = z.$(a))) return a
  583. b = b.replace(/^on/, '')
  584. a.addEventListener
  585. ? a.addEventListener(b, c, t)
  586. : a.attachEvent && a.attachEvent('on' + b, c)
  587. return a
  588. }
  589. z.ed = z.event.ed = function (a, b, c) {
  590. if (!(a = z.$(a))) return a
  591. b = b.replace(/^on/, '')
  592. a.removeEventListener
  593. ? a.removeEventListener(b, c, t)
  594. : a.detachEvent && a.detachEvent('on' + b, c)
  595. return a
  596. }
  597. z.D.it = function (a, b) {
  598. if (!a || !a.className || typeof a.className != 'string') return t
  599. var c = -1
  600. try {
  601. c =
  602. a.className == b ||
  603. a.className.search(RegExp('(\\s|^)' + b + '(\\s|$)'))
  604. } catch (e) {
  605. return t
  606. }
  607. return c > -1
  608. }
  609. z.iL = (function () {
  610. function a(a) {
  611. document.addEventListener &&
  612. ((this.element = a),
  613. (this.lL = this.Dk ? 'touchstart' : 'mousedown'),
  614. (this.xD = this.Dk ? 'touchmove' : 'mousemove'),
  615. (this.wD = this.Dk ? 'touchend' : 'mouseup'),
  616. (this.oh = t),
  617. (this.mu = this.lu = 0),
  618. this.element.addEventListener(this.lL, this, t),
  619. ia.M(this.element, 'mousedown', u()),
  620. this.handleEvent(s))
  621. }
  622. a.prototype = {
  623. Dk: 'ontouchstart' in window || 'createTouch' in document,
  624. start: function (a) {
  625. ma(a)
  626. this.oh = t
  627. this.lu = this.Dk ? a.touches[0].clientX : a.clientX
  628. this.mu = this.Dk ? a.touches[0].clientY : a.clientY
  629. this.element.addEventListener(this.xD, this, t)
  630. this.element.addEventListener(this.wD, this, t)
  631. },
  632. move: function (a) {
  633. na(a)
  634. var c = this.Dk ? a.touches[0].clientY : a.clientY
  635. if (
  636. 10 <
  637. Math.abs((this.Dk ? a.touches[0].clientX : a.clientX) - this.lu) ||
  638. 10 < Math.abs(c - this.mu)
  639. )
  640. this.oh = q
  641. },
  642. end: function (a) {
  643. na(a)
  644. this.oh ||
  645. ((a = document.createEvent('Event')),
  646. a.initEvent('tap', t, q),
  647. this.element.dispatchEvent(a))
  648. this.element.removeEventListener(this.xD, this, t)
  649. this.element.removeEventListener(this.wD, this, t)
  650. },
  651. handleEvent: function (a) {
  652. if (a)
  653. switch (a.type) {
  654. case this.lL:
  655. this.start(a)
  656. break
  657. case this.xD:
  658. this.move(a)
  659. break
  660. case this.wD:
  661. this.end(a)
  662. }
  663. },
  664. }
  665. return function (b) {
  666. return new a(b)
  667. }
  668. })()
  669. var B = window.BMap || {}
  670. B.version = '3.0'
  671. B.gV = 0.34 > Math.random()
  672. 0 <= B.version.indexOf('#') && (B.version = '3.0')
  673. B.Fr = []
  674. B.Ye = function (a) {
  675. this.Fr.push(a)
  676. }
  677. B.ur = []
  678. B.Tm = function (a) {
  679. this.ur.push(a)
  680. }
  681. B.vV = B.apiLoad || u()
  682. B.Q0 =
  683. B.verify ||
  684. function () {
  685. B.version &&
  686. B.version >= 1.5 &&
  687. oa(B.Wc + '?qt=verify&ak=' + qa, function (a) {
  688. if (a && a.error !== 0) {
  689. if (typeof map !== 'undefined') {
  690. map.La().innerHTML = ''
  691. map.Ci = {}
  692. }
  693. B = s
  694. var b =
  695. '\u767e\u5ea6\u672a\u6388\u6743\u4f7f\u7528\u5730\u56feAPI\uff0c\u53ef\u80fd\u662f\u56e0\u4e3a\u60a8\u63d0\u4f9b\u7684\u5bc6\u94a5\u4e0d\u662f\u6709\u6548\u7684\u767e\u5ea6LBS\u5f00\u653e\u5e73\u53f0\u5bc6\u94a5\uff0c\u6216\u6b64\u5bc6\u94a5\u672a\u5bf9\u672c\u5e94\u7528\u7684\u767e\u5ea6\u5730\u56feJavaScriptAPI\u6388\u6743\u3002\u60a8\u53ef\u4ee5\u8bbf\u95ee\u5982\u4e0b\u7f51\u5740\u4e86\u89e3\u5982\u4f55\u83b7\u53d6\u6709\u6548\u7684\u5bc6\u94a5\uff1ahttp://lbsyun.baidu.com/apiconsole/key#\u3002'
  696. switch (a.error) {
  697. case 101:
  698. b =
  699. '\u5f00\u53d1\u8005\u7981\u7528\u4e86\u8be5ak\u7684jsapi\u670d\u52a1\u6743\u9650\u3002\u60a8\u53ef\u4ee5\u8bbf\u95ee\u5982\u4e0b\u7f51\u5740\u4e86\u89e3\u5982\u4f55\u83b7\u53d6\u6709\u6548\u7684\u5bc6\u94a5\uff1ahttp://lbsyun.baidu.com/apiconsole/key#\u3002'
  700. break
  701. case 102:
  702. b =
  703. '\u5f00\u53d1\u8005Referer\u4e0d\u6b63\u786e\u3002\u60a8\u53ef\u4ee5\u8bbf\u95ee\u5982\u4e0b\u7f51\u5740\u4e86\u89e3\u5982\u4f55\u83b7\u53d6\u6709\u6548\u7684\u5bc6\u94a5\uff1ahttp://lbsyun.baidu.com/apiconsole/key#\u3002'
  704. }
  705. alert(b)
  706. }
  707. })
  708. }
  709. var qa = window.BMAP_AUTHENTIC_KEY
  710. window.BMAP_AUTHENTIC_KEY = s
  711. var ra = window.BMap_loadScriptTime,
  712. sa = new Date().getTime(),
  713. ta = s,
  714. ua = q,
  715. va = 5042,
  716. xa = 5002,
  717. ya = 5003,
  718. za = 'load_mapclick',
  719. Aa = 5038,
  720. Ba = 5041,
  721. Ca = 5047,
  722. Da = 5036,
  723. Ea = 5039,
  724. Fa = 5037,
  725. Ga = 5040,
  726. Ha = 5011,
  727. Ia = 7e3
  728. var Ja = 0
  729. function Ka(a, b) {
  730. if ((a = z.$(a))) {
  731. var c = this
  732. z.lang.Ca.call(c)
  733. b = b || {}
  734. c.K = {
  735. tC: 200,
  736. Wb: q,
  737. px: t,
  738. nD: q,
  739. To: q,
  740. Uo: b.enableWheelZoom || t,
  741. gL: q,
  742. pD: q,
  743. Ns: q,
  744. nx: q,
  745. tD: q,
  746. Ro: b.enable3DBuilding || t,
  747. Ic: 25,
  748. b1: 240,
  749. iV: 450,
  750. Vb: G.Vb,
  751. Hd: G.Hd,
  752. Yx: !!b.Yx,
  753. gc: Math.round(b.minZoom) || 1,
  754. Yb: Math.round(b.maxZoom) || 19,
  755. Hb: b.mapType || La,
  756. e5: t,
  757. cL: b.drawer || Ja,
  758. ox: q,
  759. lx: 500,
  760. aX: b.enableHighResolution !== t,
  761. fj: b.enableMapClick !== t,
  762. devicePixelRatio: b.devicePixelRatio || window.devicePixelRatio || 1,
  763. fG: 99,
  764. ye: b.mapStyle || s,
  765. jZ: b.logoControl === t ? t : q,
  766. DV: [],
  767. Kw: b.beforeClickIcon || s,
  768. Ms: t,
  769. qN: q,
  770. }
  771. c.K.ye && (this.LY(c.K.ye.controls), this.sM(c.K.ye.geotableId))
  772. c.K.ye && c.K.ye.styleId && c.O3(c.K.ye.styleId)
  773. c.K.fm = {
  774. dark: {
  775. backColor: '#2D2D2D',
  776. textColor: '#bfbfbf',
  777. iconUrl: 'dicons',
  778. },
  779. normal: {
  780. backColor: '#F3F1EC',
  781. textColor: '#c61b1b',
  782. iconUrl: 'icons',
  783. },
  784. light: {
  785. backColor: '#EBF8FC',
  786. textColor: '#017fb4',
  787. iconUrl: 'licons',
  788. },
  789. }
  790. b.enableAutoResize && (c.K.nx = b.enableAutoResize)
  791. b.enableStreetEntrance === t && (c.K.tD = b.enableStreetEntrance)
  792. b.enableDeepZoom === t && (c.K.gL = b.enableDeepZoom)
  793. var e = c.K.DV
  794. if (H())
  795. for (var f = 0, g = e.length; f < g; f++)
  796. if (z.ca[e[f]]) {
  797. c.K.devicePixelRatio = 1
  798. break
  799. }
  800. e = -1 < navigator.userAgent.toLowerCase().indexOf('android')
  801. f = -1 < navigator.userAgent.toLowerCase().indexOf('mqqbrowser')
  802. if (
  803. -1 < navigator.userAgent.toLowerCase().indexOf('UCBrowser') ||
  804. (e && f)
  805. )
  806. c.K.fG = 99
  807. c.Wa = a
  808. c.IB(a)
  809. a.unselectable = 'on'
  810. a.innerHTML = ''
  811. a.appendChild(c.va())
  812. b.size && this.Ce(b.size)
  813. e = c.cb()
  814. c.width = e.width
  815. c.height = e.height
  816. c.offsetX = 0
  817. c.offsetY = 0
  818. c.platform = a.firstChild
  819. c.ze = c.platform.firstChild
  820. c.ze.style.width = c.width + 'px'
  821. c.ze.style.height = c.height + 'px'
  822. c.Yd = {}
  823. c.re = new J(0, 0)
  824. c.fc = new J(0, 0)
  825. c.Oa = 3
  826. c.Oc = 0
  827. c.LC = s
  828. c.KC = s
  829. c.Ub = ''
  830. c.Rw = ''
  831. c.Jh = {}
  832. c.Jh.custom = {}
  833. c.Sa = 0
  834. b.useWebGL === t && Na(t)
  835. c.P = new Oa(a, {
  836. of: 'api',
  837. jT: q,
  838. })
  839. c.P.U()
  840. c.P.GF(c)
  841. b = b || {}
  842. e = c.Hb = c.K.Hb
  843. c.cd = e.wm()
  844. e === Qa && Ra(xa)
  845. e === Sa && Ra(ya)
  846. e = c.K
  847. e.hP = Math.round(b.minZoom)
  848. e.gP = Math.round(b.maxZoom)
  849. c.bv()
  850. c.R = {
  851. Jc: t,
  852. nc: 0,
  853. Bt: 0,
  854. MM: 0,
  855. l4: 0,
  856. lC: t,
  857. pF: -1,
  858. Qe: [],
  859. }
  860. c.platform.style.cursor = c.K.Vb
  861. for (f = 0; f < B.Fr.length; f++) B.Fr[f](c)
  862. c.R.pF = f
  863. c.ba()
  864. K.load('map', function () {
  865. c.ib()
  866. })
  867. c.K.fj &&
  868. (setTimeout(function () {
  869. Ra(za)
  870. }, 1e3),
  871. K.load(
  872. 'mapclick',
  873. function () {
  874. window.MPC_Mgr = window.MPC_Mgr || {}
  875. window.MPC_Mgr[c.aa] = new Ta(c)
  876. },
  877. q
  878. ))
  879. Ua() &&
  880. K.load('oppc', function () {
  881. c.Dz()
  882. })
  883. H() &&
  884. K.load('opmb', function () {
  885. c.Dz()
  886. })
  887. a = s
  888. c.WB = []
  889. }
  890. }
  891. z.lang.ta(Ka, z.lang.Ca, 'Map')
  892. z.extend(Ka.prototype, {
  893. va: function () {
  894. var a = L('div'),
  895. b = a.style
  896. b.overflow = 'visible'
  897. b.position = 'absolute'
  898. b.zIndex = '0'
  899. b.top = b.left = '0px'
  900. var b = L('div', {
  901. class: 'BMap_mask',
  902. }),
  903. c = b.style
  904. c.position = 'absolute'
  905. c.top = c.left = '0px'
  906. c.zIndex = '9'
  907. c.overflow = 'hidden'
  908. c.WebkitUserSelect = 'none'
  909. a.appendChild(b)
  910. return a
  911. },
  912. IB: function (a) {
  913. var b = a.style
  914. b.overflow = 'hidden'
  915. 'absolute' !== Va(a).position &&
  916. ((b.position = 'relative'), (b.zIndex = 0))
  917. b.backgroundColor = '#F3F1EC'
  918. b.color = '#000'
  919. b.textAlign = 'left'
  920. },
  921. ba: function () {
  922. var a = this
  923. a.as = function () {
  924. var b = a.cb()
  925. if (a.width !== b.width || a.height !== b.height) {
  926. var c = new O(a.width, a.height),
  927. e = new P('onbeforeresize')
  928. e.size = c
  929. a.dispatchEvent(e)
  930. a.ik((b.width - a.width) / 2, (b.height - a.height) / 2)
  931. a.ze.style.width = (a.width = b.width) + 'px'
  932. a.ze.style.height = (a.height = b.height) + 'px'
  933. c = new P('onresize')
  934. c.size = b
  935. a.dispatchEvent(c)
  936. }
  937. }
  938. a.K.nx && (a.R.es = setInterval(a.as, 80))
  939. },
  940. ik: function (a, b, c, e) {
  941. var f = this.oa().dc(this.fa()),
  942. g = this.cd,
  943. i = q
  944. c && J.yM(c) && ((this.re = new J(c.lng, c.lat)), (i = t))
  945. if ((c = c && e ? g.vj(c, this.Ub) : this.fc))
  946. if (
  947. ((this.fc = new J(c.lng + a * f, c.lat - b * f)),
  948. (a = g.nh(this.fc, this.Ub)) && i)
  949. )
  950. this.re = a
  951. },
  952. Gg: function (a, b) {
  953. if (
  954. Wa(a) &&
  955. (this.bv(),
  956. this.dispatchEvent(new P('onzoomstart')),
  957. (a = this.Yn(a).zoom),
  958. a !== this.Oa)
  959. ) {
  960. this.Oc = this.Oa
  961. this.Oa = a
  962. var c
  963. b ? (c = b) : this.hh() && (c = this.hh().ga())
  964. c &&
  965. ((c = this.$b(c, this.Oc)),
  966. this.ik(
  967. this.width / 2 - c.x,
  968. this.height / 2 - c.y,
  969. this.xb(c, this.Oc),
  970. q
  971. ))
  972. this.dispatchEvent(new P('onzoomstartcode'))
  973. }
  974. },
  975. Qc: function (a) {
  976. this.Gg(a)
  977. },
  978. kG: function (a) {
  979. this.Gg(this.Oa + 1, a)
  980. },
  981. lG: function (a) {
  982. this.Gg(this.Oa - 1, a)
  983. },
  984. qi: function (a) {
  985. a instanceof J &&
  986. ((this.fc = this.cd.vj(a, this.Ub)),
  987. (this.re = J.yM(a)
  988. ? new J(a.lng, a.lat)
  989. : this.cd.nh(this.fc, this.Ub)))
  990. },
  991. Ag: function (a, b) {
  992. a = Math.round(a) || 0
  993. b = Math.round(b) || 0
  994. this.ik(-a, -b)
  995. },
  996. Aw: function (a) {
  997. a &&
  998. Xa(a.He) &&
  999. (a.He(this), this.dispatchEvent(new P('onaddcontrol', a)))
  1000. },
  1001. VN: function (a) {
  1002. a &&
  1003. Xa(a.remove) &&
  1004. (a.remove(), this.dispatchEvent(new P('onremovecontrol', a)))
  1005. },
  1006. yo: function (a) {
  1007. a &&
  1008. Xa(a.na) &&
  1009. (a.na(this), this.dispatchEvent(new P('onaddcontextmenu', a)))
  1010. },
  1011. Cp: function (a) {
  1012. a &&
  1013. Xa(a.remove) &&
  1014. (this.dispatchEvent(new P('onremovecontextmenu', a)), a.remove())
  1015. },
  1016. Ga: function (a) {
  1017. a &&
  1018. Xa(a.He) &&
  1019. (a.He(this), this.dispatchEvent(new P('onaddoverlay', a)))
  1020. },
  1021. Qb: function (a) {
  1022. a &&
  1023. Xa(a.remove) &&
  1024. (a.remove(), this.dispatchEvent(new P('onremoveoverlay', a)))
  1025. },
  1026. yK: function () {
  1027. this.dispatchEvent(new P('onclearoverlays'))
  1028. },
  1029. Oe: function (a) {
  1030. a && this.dispatchEvent(new P('onaddtilelayer', a))
  1031. },
  1032. Yf: function (a) {
  1033. a && this.dispatchEvent(new P('onremovetilelayer', a))
  1034. },
  1035. Dg: function (a) {
  1036. if (this.Hb !== a) {
  1037. var b = new P('onsetmaptype')
  1038. b.V4 = this.Hb
  1039. this.Hb = this.K.Hb = a
  1040. this.cd = this.Hb.wm()
  1041. this.ik(0, 0, this.Ka(), q)
  1042. this.bv()
  1043. var c = this.Yn(this.fa()).zoom
  1044. this.Gg(c)
  1045. this.dispatchEvent(b)
  1046. b = new P('onmaptypechange')
  1047. b.Oa = c
  1048. b.Hb = a
  1049. this.dispatchEvent(b)
  1050. ;(a === Ya || a === Sa) && Ra(ya)
  1051. }
  1052. },
  1053. Zf: function (a) {
  1054. var b = this
  1055. if (a instanceof J)
  1056. b.qi(a, {
  1057. noAnimation: q,
  1058. })
  1059. else if ($a(a))
  1060. if (b.Hb === Qa) {
  1061. var c = G.pC[a]
  1062. c && ((pt = c.k), b.Zf(pt))
  1063. } else {
  1064. var e = this.WH()
  1065. e.JF(function (c) {
  1066. 0 === e.xm() &&
  1067. 2 === e.Ia.result.type &&
  1068. (b.Zf(c.Ak(0).point), Qa.wk(a) && b.DF(a))
  1069. })
  1070. e.search(a, {
  1071. log: 'center',
  1072. })
  1073. }
  1074. },
  1075. Fd: function (a, b) {
  1076. '[object Undefined]' !== Object.prototype.toString.call(b) &&
  1077. (b = parseInt(b))
  1078. B.Fn('cus.fire', 'time', {
  1079. z_loadscripttime: sa - ra,
  1080. })
  1081. var c = this
  1082. if ($a(a))
  1083. if (c.Hb === Qa) {
  1084. var e = G.pC[a]
  1085. e && ((pt = e.k), c.Fd(pt, b))
  1086. } else {
  1087. var f = c.WH()
  1088. f.JF(function (e) {
  1089. if (
  1090. 0 === f.xm() &&
  1091. (2 === f.Ia.result.type || 11 === f.Ia.result.type)
  1092. ) {
  1093. var e = e.Ak(0).point,
  1094. g = b || ab.tx(f.Ia.content.level, c)
  1095. c.Fd(e, g)
  1096. Qa.wk(a) && c.DF(a)
  1097. }
  1098. })
  1099. f.search(a, {
  1100. log: 'center',
  1101. })
  1102. }
  1103. else if (a instanceof J && b) {
  1104. b = c.Yn(b).zoom
  1105. c.Oc = c.Oa || b
  1106. c.Oa = b
  1107. e = c.re
  1108. c.re = new J(a.lng, a.lat)
  1109. c.fc = c.cd.vj(c.re, c.Ub)
  1110. c.LC = c.LC || c.Oa
  1111. c.KC = c.KC || c.re
  1112. var g = new P('onload'),
  1113. i = new P('onloadcode')
  1114. g.point = new J(a.lng, a.lat)
  1115. g.pixel = c.$b(c.re, c.Oa)
  1116. g.zoom = b
  1117. c.loaded || ((c.loaded = q), c.dispatchEvent(g), ta || (ta = bb()))
  1118. c.dispatchEvent(i)
  1119. g = new P('onmoveend')
  1120. g.mv = 'centerAndZoom'
  1121. e.pb(c.re) || c.dispatchEvent(g)
  1122. c.dispatchEvent(new P('onmoveend'))
  1123. c.Oc !== c.Oa &&
  1124. ((e = new P('onzoomend')),
  1125. (e.mv = 'centerAndZoom'),
  1126. c.dispatchEvent(e))
  1127. c.K.Ro && c.Ro()
  1128. }
  1129. },
  1130. WH: function () {
  1131. this.R.YM || (this.R.YM = new cb(1))
  1132. return this.R.YM
  1133. },
  1134. reset: function () {
  1135. this.Fd(this.KC, this.LC, q)
  1136. },
  1137. enableDragging: function () {
  1138. this.K.Wb = q
  1139. },
  1140. disableDragging: function () {
  1141. this.K.Wb = t
  1142. },
  1143. enableInertialDragging: function () {
  1144. this.K.ox = q
  1145. },
  1146. disableInertialDragging: function () {
  1147. this.K.ox = t
  1148. },
  1149. enableScrollWheelZoom: function () {
  1150. this.K.Uo = q
  1151. },
  1152. disableScrollWheelZoom: function () {
  1153. this.K.Uo = t
  1154. },
  1155. enableContinuousZoom: function () {
  1156. this.K.To = q
  1157. },
  1158. disableContinuousZoom: function () {
  1159. this.K.To = t
  1160. },
  1161. enableDoubleClickZoom: function () {
  1162. this.K.nD = q
  1163. },
  1164. disableDoubleClickZoom: function () {
  1165. this.K.nD = t
  1166. },
  1167. enableKeyboard: function () {
  1168. this.K.px = q
  1169. },
  1170. disableKeyboard: function () {
  1171. this.K.px = t
  1172. },
  1173. enablePinchToZoom: function () {
  1174. this.K.Ns = q
  1175. },
  1176. disablePinchToZoom: function () {
  1177. this.K.Ns = t
  1178. },
  1179. enableAutoResize: function () {
  1180. this.K.nx = q
  1181. this.as()
  1182. this.R.es || (this.R.es = setInterval(this.as, 80))
  1183. },
  1184. disableAutoResize: function () {
  1185. this.K.nx = t
  1186. this.R.es && (clearInterval(this.R.es), (this.R.es = s))
  1187. },
  1188. Ro: function () {
  1189. this.K.Ro = q
  1190. this.Nn ||
  1191. ((this.Nn = new db({
  1192. pL: q,
  1193. })),
  1194. this.Oe(this.Nn))
  1195. },
  1196. KW: function () {
  1197. this.K.Ro = t
  1198. this.Nn && (this.Yf(this.Nn), (this.Nn = s), delete this.Nn)
  1199. },
  1200. cb: function () {
  1201. return this.xs && this.xs instanceof O
  1202. ? new O(this.xs.width, this.xs.height)
  1203. : new O(this.Wa.clientWidth, this.Wa.clientHeight)
  1204. },
  1205. Ce: function (a) {
  1206. a && a instanceof O
  1207. ? ((this.xs = a),
  1208. (this.Wa.style.width = a.width + 'px'),
  1209. (this.Wa.style.height = a.height + 'px'))
  1210. : (this.xs = s)
  1211. },
  1212. Ka: w('re'),
  1213. fa: w('Oa'),
  1214. ZV: function () {
  1215. this.as()
  1216. },
  1217. Yn: function (a) {
  1218. var b = this.K.gc,
  1219. c = this.K.Yb,
  1220. e = t,
  1221. a = Math.round(a)
  1222. a < b && ((e = q), (a = b))
  1223. a > c && ((e = q), (a = c))
  1224. return {
  1225. zoom: a,
  1226. yD: e,
  1227. }
  1228. },
  1229. La: w('Wa'),
  1230. $b: function (a, b) {
  1231. b = b || this.fa()
  1232. return this.cd.$b(a, b, this.fc, this.cb(), this.Ub)
  1233. },
  1234. xb: function (a, b) {
  1235. b = b || this.fa()
  1236. return this.cd.xb(a, b, this.fc, this.cb(), this.Ub)
  1237. },
  1238. Xe: function (a, b) {
  1239. if (a) {
  1240. var c = this.$b(new J(a.lng, a.lat), b)
  1241. c.x -= this.offsetX
  1242. c.y -= this.offsetY
  1243. return c
  1244. }
  1245. },
  1246. JN: function (a, b) {
  1247. if (a) {
  1248. var c = new Q(a.x, a.y)
  1249. c.x += this.offsetX
  1250. c.y += this.offsetY
  1251. return this.xb(c, b)
  1252. }
  1253. },
  1254. pointToPixelFor3D: function (a, b) {
  1255. var c = map.Ub
  1256. this.Hb === Qa && c && eb.EK(a, this, b)
  1257. },
  1258. P4: function (a, b) {
  1259. var c = map.Ub
  1260. this.Hb === Qa && c && eb.DK(a, this, b)
  1261. },
  1262. Q4: function (a, b) {
  1263. var c = this,
  1264. e = map.Ub
  1265. c.Hb === Qa &&
  1266. e &&
  1267. eb.EK(a, c, function (a) {
  1268. a.x -= c.offsetX
  1269. a.y -= c.offsetY
  1270. b && b(a)
  1271. })
  1272. },
  1273. L4: function (a, b) {
  1274. var c = map.Ub
  1275. this.Hb === Qa &&
  1276. c &&
  1277. ((a.x += this.offsetX), (a.y += this.offsetY), eb.DK(a, this, b))
  1278. },
  1279. ve: function (a) {
  1280. if (!this.Xx()) return new fb()
  1281. var b = a || {},
  1282. a = b.margins || [0, 0, 0, 0],
  1283. c = b.zoom || s,
  1284. b = this.xb(
  1285. {
  1286. x: a[3],
  1287. y: this.height - a[2],
  1288. },
  1289. c
  1290. ),
  1291. a = this.xb(
  1292. {
  1293. x: this.width - a[1],
  1294. y: a[0],
  1295. },
  1296. c
  1297. )
  1298. return new fb(b, a)
  1299. },
  1300. Xx: function () {
  1301. return !!this.loaded
  1302. },
  1303. nS: function (a, b) {
  1304. for (
  1305. var c = this.oa(),
  1306. e = b.margins || [10, 10, 10, 10],
  1307. f = b.zoomFactor || 0,
  1308. g = e[1] + e[3],
  1309. e = e[0] + e[2],
  1310. i = c.bp(),
  1311. k = (c = c.sm());
  1312. k >= i;
  1313. k--
  1314. ) {
  1315. var m = this.oa().dc(k)
  1316. if (a.YF().lng / m < this.width - g && a.YF().lat / m < this.height - e)
  1317. break
  1318. }
  1319. k += f
  1320. k < i && (k = i)
  1321. k > c && (k = c)
  1322. return k
  1323. },
  1324. ht: function (a, b) {
  1325. var c = {
  1326. center: this.Ka(),
  1327. zoom: this.fa(),
  1328. }
  1329. if (
  1330. !a ||
  1331. (!a instanceof fb && 0 === a.length) ||
  1332. (a instanceof fb && a.tj())
  1333. )
  1334. return c
  1335. var e = []
  1336. a instanceof fb ? (e.push(a.Rf()), e.push(a.Ve())) : (e = a.slice(0))
  1337. for (var b = b || {}, f = [], g = 0, i = e.length; g < i; g++)
  1338. f.push(this.cd.vj(e[g], this.Ub))
  1339. e = new fb()
  1340. for (g = f.length - 1; 0 <= g; g--) e.extend(f[g])
  1341. if (e.tj()) return c
  1342. c = e.Ka()
  1343. f = this.nS(e, b)
  1344. b.margins &&
  1345. ((e = b.margins),
  1346. (g = (e[1] - e[3]) / 2),
  1347. (e = (e[0] - e[2]) / 2),
  1348. (i = this.oa().dc(f)),
  1349. b.offset && ((g = b.offset.width), (e = b.offset.height)),
  1350. (c.lng += i * g),
  1351. (c.lat += i * e))
  1352. c = this.cd.nh(c, this.Ub)
  1353. return {
  1354. center: c,
  1355. zoom: f,
  1356. }
  1357. },
  1358. yh: function (a, b) {
  1359. var c
  1360. c = a && a.center ? a : this.ht(a, b)
  1361. var b = b || {},
  1362. e = b.delay || 200
  1363. if (c.zoom === this.Oa && b.enableAnimation !== t) {
  1364. var f = this
  1365. setTimeout(function () {
  1366. f.qi(c.center, {
  1367. duration: 210,
  1368. })
  1369. }, e)
  1370. } else this.Fd(c.center, c.zoom)
  1371. },
  1372. Tf: w('Yd'),
  1373. hh: function () {
  1374. return this.R.qb && this.R.qb.Xa() ? this.R.qb : s
  1375. },
  1376. getDistance: function (a, b) {
  1377. if (a && b) {
  1378. if (a.pb(b)) return 0
  1379. var c = 0,
  1380. c = S.$o(a, b)
  1381. if (c === s || c === l) c = 0
  1382. return c
  1383. }
  1384. },
  1385. Hx: function () {
  1386. var a = [],
  1387. b = this.ya,
  1388. c = this.Ee
  1389. if (b) for (var e in b) b[e] instanceof gb && a.push(b[e])
  1390. if (c) {
  1391. e = 0
  1392. for (b = c.length; e < b; e++) a.push(c[e])
  1393. }
  1394. return a
  1395. },
  1396. oa: w('Hb'),
  1397. Dz: function () {
  1398. for (var a = this.R.pF; a < B.Fr.length; a++) B.Fr[a](this)
  1399. this.R.pF = a
  1400. },
  1401. DF: function (a) {
  1402. //修改 setCurrentCity
  1403. //i_setCurrentCity(this, a);
  1404. this.Ub = Qa.wk(a)
  1405. this.Rw = Qa.BL(this.Ub)
  1406. this.Hb === Qa && this.cd instanceof hb && (this.cd.$i = this.Ub)
  1407. },
  1408. setDefaultCursor: function (a) {
  1409. this.K.Vb = a
  1410. this.platform && (this.platform.style.cursor = this.K.Vb)
  1411. },
  1412. getDefaultCursor: function () {
  1413. return this.K.Vb
  1414. },
  1415. setDraggingCursor: function (a) {
  1416. this.K.Hd = a
  1417. },
  1418. getDraggingCursor: function () {
  1419. return this.K.Hd
  1420. },
  1421. Sx: function () {
  1422. return this.K.aX && 1.5 <= this.K.devicePixelRatio
  1423. },
  1424. Cw: function (a, b) {
  1425. b ? this.Jh[b] || (this.Jh[b] = {}) : (b = 'custom')
  1426. a.tag = b
  1427. a instanceof ib && ((this.Jh[b][a.aa] = a), a.na(this))
  1428. var c = this
  1429. K.load(
  1430. 'hotspot',
  1431. function () {
  1432. c.Dz()
  1433. },
  1434. q
  1435. )
  1436. },
  1437. VZ: function (a, b) {
  1438. b || (b = 'custom')
  1439. this.Jh[b][a.aa] && delete this.Jh[b][a.aa]
  1440. },
  1441. dm: function (a) {
  1442. a || (a = 'custom')
  1443. this.Jh[a] = {}
  1444. },
  1445. bv: function () {
  1446. var a = this.Hb.bp(),
  1447. b = this.Hb.sm(),
  1448. c = this.K
  1449. c.gc = c.hP || a
  1450. c.Yb = c.gP || b
  1451. c.gc < a && (c.gc = a)
  1452. c.Yb > b && (c.Yb = b)
  1453. },
  1454. setMinZoom: function (a) {
  1455. a = Math.round(a)
  1456. a > this.K.Yb && (a = this.K.Yb)
  1457. this.K.hP = a
  1458. this.HJ()
  1459. },
  1460. setMaxZoom: function (a) {
  1461. a = Math.round(a)
  1462. a < this.K.gc && (a = this.K.gc)
  1463. this.K.gP = a
  1464. this.HJ()
  1465. },
  1466. HJ: function () {
  1467. this.bv()
  1468. var a = this.K
  1469. this.Oa < a.gc ? this.Qc(a.gc) : this.Oa > a.Yb && this.Qc(a.Yb)
  1470. var b = new P('onzoomspanchange')
  1471. b.gc = a.gc
  1472. b.Yb = a.Yb
  1473. this.dispatchEvent(b)
  1474. },
  1475. Q3: w('WB'),
  1476. getKey: function () {
  1477. return qa
  1478. },
  1479. Zt: function (a) {
  1480. var b = this
  1481. window.MPC_Mgr && window.MPC_Mgr[b.aa] && window.MPC_Mgr[b.aa].close()
  1482. b.K.fj = t
  1483. B.Fn('cus.fire', 'count', 'z_setmapstylecount')
  1484. if (a) {
  1485. b = this
  1486. a.styleJson && (a.styleStr = b.Z_(a.styleJson))
  1487. H() && z.ca.Iy
  1488. ? setTimeout(function () {
  1489. b.K.ye = a
  1490. b.dispatchEvent(new P('onsetcustomstyles', a))
  1491. }, 50)
  1492. : ((this.K.ye = a),
  1493. this.dispatchEvent(new P('onsetcustomstyles', a)),
  1494. this.sM(b.K.ye.geotableId))
  1495. var c = {
  1496. style: a.style,
  1497. }
  1498. a.features && 0 < a.features.length && (c.features = q)
  1499. a.styleJson && 0 < a.styleJson.length && (c.styleJson = q)
  1500. Ra(5050, c)
  1501. a.style &&
  1502. (c = b.K.fm[a.style]
  1503. ? b.K.fm[a.style].backColor
  1504. : b.K.fm.normal.backColor) &&
  1505. (this.La().style.backgroundColor = c)
  1506. }
  1507. },
  1508. LY: function (a) {
  1509. this.controls ||
  1510. (this.controls = {
  1511. navigationControl: new jb(),
  1512. scaleControl: new kb(),
  1513. overviewMapControl: new lb(),
  1514. mapTypeControl: new mb(),
  1515. })
  1516. var b = this,
  1517. c
  1518. for (c in this.controls) b.VN(b.controls[c])
  1519. a = a || []
  1520. z.mc.Fb(a, function (a) {
  1521. b.Aw(b.controls[a])
  1522. })
  1523. },
  1524. sM: function (a) {
  1525. a
  1526. ? (this.vs && this.vs.Cf === a) ||
  1527. (this.Yf(this.vs),
  1528. (this.vs = new nb({
  1529. geotableId: a,
  1530. })),
  1531. this.Oe(this.vs))
  1532. : this.Yf(this.vs)
  1533. },
  1534. Sb: function () {
  1535. var a = this.fa() >= this.K.fG && this.oa() === La && 18 >= this.fa(),
  1536. b = t
  1537. try {
  1538. document.createElement('canvas').getContext('2d'), (b = q)
  1539. } catch (c) {
  1540. b = t
  1541. }
  1542. return a && b
  1543. },
  1544. getCurrentCity: function () {
  1545. return {
  1546. name: this.$g,
  1547. code: this.fs,
  1548. }
  1549. },
  1550. tm: function () {
  1551. this.P.co()
  1552. return this.P
  1553. },
  1554. PY: function (a) {
  1555. B.alog('cus.fire', 'count', 'z_loadindoormapcount')
  1556. La.setMaxZoom(a.maxZoom || 19)
  1557. var b = new P('oninitindoorlayer')
  1558. b.vf = a
  1559. this.dispatchEvent(b)
  1560. this.K.Ms = t
  1561. },
  1562. D_: function (a) {
  1563. this.K.qN = a
  1564. this.Va.Jb.parentElement.style.display = a ? 'block' : 'none'
  1565. },
  1566. setPanorama: function (a) {
  1567. this.P = a
  1568. this.P.GF(this)
  1569. },
  1570. Z_: function (a) {
  1571. for (
  1572. var b = {
  1573. featureType: 't',
  1574. elementType: 'e',
  1575. visibility: 'v',
  1576. color: 'c',
  1577. lightness: 'l',
  1578. saturation: 's',
  1579. weight: 'w',
  1580. zoom: 'z',
  1581. hue: 'h',
  1582. },
  1583. c = {
  1584. all: 'all',
  1585. geometry: 'g',
  1586. 'geometry.fill': 'g.f',
  1587. 'geometry.stroke': 'g.s',
  1588. labels: 'l',
  1589. 'labels.text.fill': 'l.t.f',
  1590. 'labels.text.stroke': 'l.t.s',
  1591. 'lables.text': 'l.t',
  1592. 'labels.icon': 'l.i',
  1593. },
  1594. e = [],
  1595. f = 0,
  1596. g;
  1597. (g = a[f]);
  1598. f++
  1599. ) {
  1600. var i = g.stylers
  1601. delete g.stylers
  1602. z.extend(g, i)
  1603. var i = [],
  1604. k
  1605. for (k in b)
  1606. if (g[k])
  1607. if ('elementType' === k) i.push(b[k] + ':' + c[g[k]])
  1608. else {
  1609. switch (g[k]) {
  1610. case 'poilabel':
  1611. g[k] = 'poi'
  1612. break
  1613. case 'districtlabel':
  1614. g[k] = 'label'
  1615. }
  1616. i.push(b[k] + ':' + g[k])
  1617. }
  1618. 2 < i.length && e.push(i.join('|'))
  1619. }
  1620. return e.join(',')
  1621. },
  1622. })
  1623. function Ra(a, b) {
  1624. if (a) {
  1625. var b = b || {},
  1626. c = '',
  1627. e
  1628. for (e in b) c = c + '&' + e + '=' + encodeURIComponent(b[e])
  1629. var f = function (a) {
  1630. a &&
  1631. ((ob = q),
  1632. setTimeout(function () {
  1633. pb.src = B.Wc + 'images/blank.gif?' + a.src
  1634. }, 50))
  1635. },
  1636. g = function () {
  1637. var a = qb.shift()
  1638. a && f(a)
  1639. }
  1640. e = (1e8 * Math.random()).toFixed(0)
  1641. ob
  1642. ? qb.push({
  1643. src:
  1644. 'product=jsapi&sub_product=jsapi&v=' +
  1645. B.version +
  1646. '&sub_product_v=' +
  1647. B.version +
  1648. '&t=' +
  1649. e +
  1650. '&code=' +
  1651. a +
  1652. '&da_src=' +
  1653. a +
  1654. c,
  1655. })
  1656. : f({
  1657. src:
  1658. 'product=jsapi&sub_product=jsapi&v=' +
  1659. B.version +
  1660. '&sub_product_v=' +
  1661. B.version +
  1662. '&t=' +
  1663. e +
  1664. '&code=' +
  1665. a +
  1666. '&da_src=' +
  1667. a +
  1668. c,
  1669. })
  1670. rb ||
  1671. (z.M(pb, 'load', function () {
  1672. ob = t
  1673. g()
  1674. }),
  1675. z.M(pb, 'error', function () {
  1676. ob = t
  1677. g()
  1678. }),
  1679. (rb = q))
  1680. }
  1681. }
  1682. var ob,
  1683. rb,
  1684. qb = [],
  1685. pb = new Image()
  1686. Ra(5e3, {
  1687. device_pixel_ratio: window.devicePixelRatio,
  1688. platform: navigator.platform,
  1689. })
  1690. B.mM = {
  1691. TILE_BASE_URLS: [
  1692. 'gss0.bdstatic.com/5bwHcj7lABFU8t_jkk_Z1zRvfdw6buu',
  1693. 'gss0.bdstatic.com/5bwHcj7lABFV8t_jkk_Z1zRvfdw6buu',
  1694. 'gss0.bdstatic.com/5bwHcj7lABFS8t_jkk_Z1zRvfdw6buu',
  1695. 'gss0.bdstatic.com/5bwHcj7lABFT8t_jkk_Z1zRvfdw6buu',
  1696. 'gss0.bdstatic.com/5bwHcj7lABFY8t_jkk_Z1zRvfdw6buu',
  1697. ],
  1698. TILE_ONLINE_URLS: [
  1699. 'gss0.bdstatic.com/8bo_dTSlR1gBo1vgoIiO_jowehsv',
  1700. 'gss0.bdstatic.com/8bo_dTSlRMgBo1vgoIiO_jowehsv',
  1701. 'gss0.bdstatic.com/8bo_dTSlRcgBo1vgoIiO_jowehsv',
  1702. 'gss0.bdstatic.com/8bo_dTSlRsgBo1vgoIiO_jowehsv',
  1703. 'gss0.bdstatic.com/8bo_dTSlQ1gBo1vgoIiO_jowehsv',
  1704. ],
  1705. TIlE_PERSPECT_URLS: [
  1706. 'gss0.bdstatic.com/-OR1cTe9KgQFm2e88IuM_a',
  1707. 'gss0.bdstatic.com/-ON1cTe9KgQFm2e88IuM_a',
  1708. 'gss0.bdstatic.com/-OZ1cTe9KgQFm2e88IuM_a',
  1709. 'gss0.bdstatic.com/-OV1cTe9KgQFm2e88IuM_a',
  1710. ],
  1711. geolocControl: 'gsp0.baidu.com/8LkJsjOpB1gCo2Kml5_Y_D3',
  1712. TILES_YUN_HOST: [
  1713. 'gsp0.baidu.com/-eR1bSahKgkFkRGko9WTAnF6hhy',
  1714. 'gsp0.baidu.com/-eN1bSahKgkFkRGko9WTAnF6hhy',
  1715. 'gsp0.baidu.com/-eZ1bSahKgkFkRGko9WTAnF6hhy',
  1716. 'gsp0.baidu.com/-eV1bSahKgkFkRGko9WTAnF6hhy',
  1717. ],
  1718. traffic: 'gsp0.baidu.com/7_AZsjOpB1gCo2Kml5_Y_DAcsMJiwa',
  1719. iw_pano: 'gss0.bdstatic.com/5LUZemba_QUU8t7mm9GUKT-xh_',
  1720. message: 'gsp0.baidu.com/7vo0bSba2gU2pMbgoY3K',
  1721. baidumap: 'gsp0.baidu.com/80MWsjip0QIZ8tyhnq',
  1722. wuxian: 'gsp0.baidu.com/6a1OdTeaKgQFm2e88IuM_a',
  1723. pano: [
  1724. 'gss0.bdstatic.com/5LUZemba_QUU8t7mm9GUKT-xh_',
  1725. 'gss0.bdstatic.com/5LUZemfa_QUU8t7mm9GUKT-xh_',
  1726. 'gss0.bdstatic.com/5LUZemja_QUU8t7mm9GUKT-xh_',
  1727. ],
  1728. main_domain_nocdn: {
  1729. baidu: 'gsp0.baidu.com/9_Q4sjOpB1gCo2Kml5_Y_D3',
  1730. other: 'api.map.baidu.com',
  1731. },
  1732. main_domain_cdn: {
  1733. baidu: [
  1734. 'gss0.bdstatic.com/9_Q4vHSd2RZ3otebn9fN2DJv',
  1735. 'gss0.baidu.com/9_Q4vXSd2RZ3otebn9fN2DJv',
  1736. 'gss0.bdstatic.com/9_Q4vnSd2RZ3otebn9fN2DJv',
  1737. ],
  1738. other: ['api.map.baidu.com'],
  1739. webmap: ['gss0.baidu.com/6b1IcTe9R1gBo1vgoIiO_jowehsv'],
  1740. },
  1741. map_click: 'gsp0.baidu.com/80MWbzKh2wt3n2qy8IqW0jdnxx1xbK',
  1742. vector_traffic: 'gss0.bdstatic.com/8aZ1cTe9KgQIm2_p8IuM_a',
  1743. }
  1744. B.DY = {
  1745. TILE_BASE_URLS: [
  1746. 'shangetu0.map.bdimg.com',
  1747. 'shangetu1.map.bdimg.com',
  1748. 'shangetu2.map.bdimg.com',
  1749. 'shangetu3.map.bdimg.com',
  1750. 'shangetu4.map.bdimg.com',
  1751. ],
  1752. TILE_ONLINE_URLS: [
  1753. 'online0.map.bdimg.com',
  1754. 'online1.map.bdimg.com',
  1755. 'online2.map.bdimg.com',
  1756. 'online3.map.bdimg.com',
  1757. 'online4.map.bdimg.com',
  1758. ],
  1759. TIlE_PERSPECT_URLS: [
  1760. 'd0.map.baidu.com',
  1761. 'd1.map.baidu.com',
  1762. 'd2.map.baidu.com',
  1763. 'd3.map.baidu.com',
  1764. ],
  1765. geolocControl: 'loc.map.baidu.com',
  1766. TILES_YUN_HOST: [
  1767. 'g0.api.map.baidu.com',
  1768. 'g1.api.map.baidu.com',
  1769. 'g2.api.map.baidu.com',
  1770. 'g3.api.map.baidu.com',
  1771. ],
  1772. traffic: 'its.map.baidu.com:8002',
  1773. iw_pano: 'pcsv0.map.bdimg.com',
  1774. message: 'j.map.baidu.com',
  1775. baidumap: 'map.baidu.com',
  1776. wuxian: 'wuxian.baidu.com',
  1777. pano: ['pcsv0.map.bdimg.com', 'pcsv1.map.bdimg.com', 'pcsv2.map.bdimg.com'],
  1778. main_domain_nocdn: {
  1779. baidu: 'api.map.baidu.com',
  1780. },
  1781. main_domain_cdn: {
  1782. baidu: ['api0.map.bdimg.com', 'api1.map.bdimg.com', 'api2.map.bdimg.com'],
  1783. webmap: ['webmap0.map.bdimg.com'],
  1784. },
  1785. map_click: 'mapclick.map.baidu.com',
  1786. vector_traffic: 'or.map.bdimg.com',
  1787. }
  1788. B.F0 = {
  1789. 0: {
  1790. proto: 'http://',
  1791. domain: B.DY,
  1792. },
  1793. 1: {
  1794. proto: 'https://',
  1795. domain: B.mM,
  1796. },
  1797. 2: {
  1798. proto: 'https://',
  1799. domain: B.mM,
  1800. },
  1801. }
  1802. window.BMAP_PROTOCOL &&
  1803. 'https' === window.BMAP_PROTOCOL &&
  1804. (window.HOST_TYPE = 2)
  1805. B.xu = window.HOST_TYPE || '0'
  1806. B.url = B.F0[B.xu]
  1807. B.vp = B.url.proto + B.url.domain.baidumap + '/'
  1808. //B.vp =bmapcfg.home; //修改,本地工具资源引用(离线路径)
  1809. B.Wc =
  1810. B.url.proto +
  1811. ('2' == B.xu
  1812. ? B.url.domain.main_domain_nocdn.other
  1813. : B.url.domain.main_domain_nocdn.baidu) +
  1814. '/'
  1815. //B.Wc =bmapcfg.home; //修改,本地工具资源引用(离线路径)
  1816. //B.ka=B.url.proto+("2"==B.xu?B.url.domain.main_domain_cdn.other[0]:B.url.domain.main_domain_cdn.baidu[0])+"/";
  1817. B.ka = bmapcfg.home //修改,本地工具资源引用(离线路径)
  1818. // console.log(bmapcfg.home, '=============')
  1819. B.Yi = B.url.proto + B.url.domain.main_domain_cdn.webmap[0] + '/'
  1820. //B.Yi =bmapcfg.home; //修改,本地工具资源引用(离线路径)
  1821. B.vg = function (a, b) {
  1822. var c,
  1823. e,
  1824. b = b || ''
  1825. switch (a) {
  1826. case 'main_domain_nocdn':
  1827. c = B.Wc + b
  1828. break
  1829. case 'main_domain_cdn':
  1830. c = B.ka + b
  1831. break
  1832. default:
  1833. ;(e = B.url.domain[a]),
  1834. '[object Array]' == Object.prototype.toString.call(e)
  1835. ? ((c = []),
  1836. z.mc.Fb(e, function (a, e) {
  1837. c[e] = B.url.proto + a + '/' + b
  1838. }))
  1839. : (c = B.url.proto + B.url.domain[a] + '/' + b)
  1840. }
  1841. return c
  1842. }
  1843. function tb(a) {
  1844. var b = {
  1845. duration: 1e3,
  1846. Ic: 30,
  1847. No: 0,
  1848. kc: ub.UM,
  1849. Kt: u(),
  1850. }
  1851. this.dg = []
  1852. if (a) for (var c in a) b[c] = a[c]
  1853. this.j = b
  1854. if (Wa(b.No)) {
  1855. var e = this
  1856. setTimeout(function () {
  1857. e.start()
  1858. }, b.No)
  1859. } else b.No != vb && this.start()
  1860. }
  1861. var vb = 'INFINITE'
  1862. tb.prototype.start = function () {
  1863. this.Uu = bb()
  1864. this.gA = this.Uu + this.j.duration
  1865. wb(this)
  1866. }
  1867. tb.prototype.add = function (a) {
  1868. this.dg.push(a)
  1869. }
  1870. function wb(a) {
  1871. var b = bb()
  1872. b >= a.gA
  1873. ? (Xa(a.j.va) && a.j.va(a.j.kc(1)),
  1874. Xa(a.j.finish) && a.j.finish(),
  1875. 0 < a.dg.length &&
  1876. ((b = a.dg[0]), (b.dg = [].concat(a.dg.slice(1))), b.start()))
  1877. : ((a.Jy = a.j.kc((b - a.Uu) / a.j.duration)),
  1878. Xa(a.j.va) && a.j.va(a.Jy),
  1879. a.TF ||
  1880. (a.Yr = setTimeout(function () {
  1881. wb(a)
  1882. }, 1e3 / a.j.Ic)))
  1883. }
  1884. tb.prototype.stop = function (a) {
  1885. this.TF = q
  1886. for (var b = 0; b < this.dg.length; b++) this.dg[b].stop(), (this.dg[b] = s)
  1887. this.dg.length = 0
  1888. this.Yr && (clearTimeout(this.Yr), (this.Yr = s))
  1889. this.j.Kt(this.Jy)
  1890. a && ((this.gA = this.Uu), wb(this))
  1891. }
  1892. tb.prototype.cancel = ga(1)
  1893. var ub = {
  1894. UM: function (a) {
  1895. return a
  1896. },
  1897. reverse: function (a) {
  1898. return 1 - a
  1899. },
  1900. iD: function (a) {
  1901. return a * a
  1902. },
  1903. hD: function (a) {
  1904. return Math.pow(a, 3)
  1905. },
  1906. Ks: function (a) {
  1907. return -(a * (a - 2))
  1908. },
  1909. eL: function (a) {
  1910. return Math.pow(a - 1, 3) + 1
  1911. },
  1912. dL: function (a) {
  1913. return 0.5 > a ? 2 * a * a : -2 * (a - 2) * a - 1
  1914. },
  1915. R2: function (a) {
  1916. return 0.5 > a ? 4 * Math.pow(a, 3) : 4 * Math.pow(a - 1, 3) + 1
  1917. },
  1918. S2: function (a) {
  1919. return (1 - Math.cos(Math.PI * a)) / 2
  1920. },
  1921. }
  1922. ub['ease-in'] = ub.iD
  1923. ub['ease-out'] = ub.Ks
  1924. var G = {
  1925. oG: 34,
  1926. pG: 21,
  1927. qG: new O(21, 32),
  1928. wP: new O(10, 32),
  1929. vP: new O(24, 36),
  1930. uP: new O(12, 36),
  1931. mG: new O(13, 1),
  1932. qa: B.ka + 'images/',
  1933. a4: 'http://api0.map.bdimg.com/images/',
  1934. nG: B.ka + 'images/markers_new.png',
  1935. sP: 24,
  1936. tP: 73,
  1937. pC: {
  1938. '\u5317\u4eac': {
  1939. yy: 'bj',
  1940. k: new J(116.403874, 39.914889),
  1941. },
  1942. '\u4e0a\u6d77': {
  1943. yy: 'sh',
  1944. k: new J(121.487899, 31.249162),
  1945. },
  1946. '\u6df1\u5733': {
  1947. yy: 'sz',
  1948. k: new J(114.025974, 22.546054),
  1949. },
  1950. '\u5e7f\u5dde': {
  1951. yy: 'gz',
  1952. k: new J(113.30765, 23.120049),
  1953. },
  1954. },
  1955. fontFamily: 'arial,sans-serif',
  1956. }
  1957. z.ca.Te
  1958. ? (z.extend(G, {
  1959. TK: 'url(' + G.qa + 'ruler.cur),crosshair',
  1960. Vb: '-moz-grab',
  1961. Hd: '-moz-grabbing',
  1962. }),
  1963. z.platform.IM && (G.fontFamily = 'arial,simsun,sans-serif'))
  1964. : z.ca.Qw || z.ca.Iy
  1965. ? z.extend(G, {
  1966. TK: 'url(' + G.qa + 'ruler.cur) 2 6,crosshair',
  1967. Vb: 'url(' + G.qa + 'openhand.cur) 8 8,default',
  1968. Hd: 'url(' + G.qa + 'closedhand.cur) 8 8,move',
  1969. })
  1970. : z.extend(G, {
  1971. TK: 'url(' + G.qa + 'ruler.cur),crosshair',
  1972. Vb: 'url(' + G.qa + 'openhand.cur),default',
  1973. Hd: 'url(' + G.qa + 'closedhand.cur),move',
  1974. })
  1975. function xb(a, b) {
  1976. var c = a.style
  1977. c.left = b[0] + 'px'
  1978. c.top = b[1] + 'px'
  1979. }
  1980. function yb(a) {
  1981. 0 < z.ca.ia ? (a.unselectable = 'on') : (a.style.MozUserSelect = 'none')
  1982. }
  1983. function zb(a) {
  1984. return a && a.parentNode && 11 !== a.parentNode.nodeType
  1985. }
  1986. function Ab(a, b) {
  1987. z.D.Vx(a, 'beforeEnd', b)
  1988. return a.lastChild
  1989. }
  1990. function Bb(a) {
  1991. for (
  1992. var b = {
  1993. left: 0,
  1994. top: 0,
  1995. };
  1996. a && a.offsetParent;
  1997. )
  1998. (b.left += a.offsetLeft), (b.top += a.offsetTop), (a = a.offsetParent)
  1999. return b
  2000. }
  2001. function ma(a) {
  2002. a = window.event || a
  2003. a.stopPropagation ? a.stopPropagation() : (a.cancelBubble = q)
  2004. }
  2005. function Cb(a) {
  2006. a = window.event || a
  2007. a.preventDefault ? a.preventDefault() : (a.returnValue = t)
  2008. return t
  2009. }
  2010. function na(a) {
  2011. ma(a)
  2012. return Cb(a)
  2013. }
  2014. function Eb() {
  2015. var a = document.documentElement,
  2016. b = document.body
  2017. return a && (a.scrollTop || a.scrollLeft)
  2018. ? [a.scrollTop, a.scrollLeft]
  2019. : b
  2020. ? [b.scrollTop, b.scrollLeft]
  2021. : [0, 0]
  2022. }
  2023. function Fb(a, b) {
  2024. if (a && b)
  2025. return Math.round(
  2026. Math.sqrt(Math.pow(a.x - b.x, 2) + Math.pow(a.y - b.y, 2))
  2027. )
  2028. }
  2029. function Gb(a, b) {
  2030. var c = [],
  2031. b =
  2032. b ||
  2033. function (a) {
  2034. return a
  2035. },
  2036. e
  2037. for (e in a) c.push(e + '=' + b(a[e]))
  2038. return c.join('&')
  2039. }
  2040. function L(a, b, c) {
  2041. var e = document.createElement(a)
  2042. c && (e = document.createElementNS(c, a))
  2043. return z.D.CF(e, b || {})
  2044. }
  2045. function Va(a) {
  2046. if (a.currentStyle) return a.currentStyle
  2047. if (a.ownerDocument && a.ownerDocument.defaultView)
  2048. return a.ownerDocument.defaultView.getComputedStyle(a, s)
  2049. }
  2050. function Xa(a) {
  2051. return 'function' === typeof a
  2052. }
  2053. function Wa(a) {
  2054. return 'number' === typeof a
  2055. }
  2056. function $a(a) {
  2057. return 'string' == typeof a
  2058. }
  2059. function Hb(a) {
  2060. return 'undefined' != typeof a
  2061. }
  2062. function Ib(a) {
  2063. return 'object' == typeof a
  2064. }
  2065. var Jb = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='
  2066. function Kb(a) {
  2067. for (var b = '', c = 0; c < a.length; c++) {
  2068. var e = a.charCodeAt(c) << 1,
  2069. f = (e = e.toString(2))
  2070. 8 > e.length && ((f = '00000000' + e), (f = f.substr(e.length, 8)))
  2071. b += f
  2072. }
  2073. a = 5 - (b.length % 5)
  2074. e = []
  2075. for (c = 0; c < a; c++) e[c] = '0'
  2076. b = e.join('') + b
  2077. f = []
  2078. for (c = 0; c < b.length / 5; c++)
  2079. (e = b.substr(5 * c, 5)), f.push(String.fromCharCode(parseInt(e, 2) + 50))
  2080. return f.join('') + a.toString()
  2081. }
  2082. function Lb(a) {
  2083. var b = '',
  2084. c,
  2085. e,
  2086. f = '',
  2087. g,
  2088. i = '',
  2089. k = 0
  2090. g = /[^A-Za-z0-9\+\/\=]/g
  2091. if (!a || g.exec(a)) return a
  2092. a = a.replace(/[^A-Za-z0-9\+\/\=]/g, '')
  2093. do
  2094. (c = Jb.indexOf(a.charAt(k++))),
  2095. (e = Jb.indexOf(a.charAt(k++))),
  2096. (g = Jb.indexOf(a.charAt(k++))),
  2097. (i = Jb.indexOf(a.charAt(k++))),
  2098. (c = (c << 2) | (e >> 4)),
  2099. (e = ((e & 15) << 4) | (g >> 2)),
  2100. (f = ((g & 3) << 6) | i),
  2101. (b += String.fromCharCode(c)),
  2102. 64 != g && (b += String.fromCharCode(e)),
  2103. 64 != i && (b += String.fromCharCode(f))
  2104. while (k < a.length)
  2105. return b
  2106. }
  2107. var P = z.lang.Ju
  2108. function H() {
  2109. return !(!z.platform.zE && !z.platform.XY && !z.platform.Jm)
  2110. }
  2111. function Ua() {
  2112. return !(!z.platform.IM && !z.platform.AM && !z.platform.cZ)
  2113. }
  2114. function bb() {
  2115. return new Date().getTime()
  2116. }
  2117. function Mb() {
  2118. var a = document.body.appendChild(L('div'))
  2119. a.innerHTML = '<v:shape id="vml_tester1" adj="1" />'
  2120. var b = a.firstChild
  2121. if (!b.style) return t
  2122. b.style.behavior = 'url(#default#VML)'
  2123. b = b ? 'object' === typeof b.adj : q
  2124. a.parentNode.removeChild(a)
  2125. return b
  2126. }
  2127. function Nb() {
  2128. return !!document.implementation.hasFeature(
  2129. 'http://www.w3.org/TR/SVG11/feature#Shape',
  2130. '1.1'
  2131. )
  2132. }
  2133. function Ob() {
  2134. return !!L('canvas').getContext
  2135. }
  2136. function Pb(a) {
  2137. return (a * Math.PI) / 180
  2138. }
  2139. B.iZ = (function () {
  2140. var a = q,
  2141. b = q,
  2142. c = q,
  2143. e = q,
  2144. f = 0,
  2145. g = 0,
  2146. i = 0,
  2147. k = 0
  2148. return {
  2149. eR: function () {
  2150. f += 1
  2151. a &&
  2152. ((a = t),
  2153. setTimeout(function () {
  2154. Ra(5054, {
  2155. pic: f,
  2156. })
  2157. a = q
  2158. f = 0
  2159. }, 1e4))
  2160. },
  2161. v1: function () {
  2162. g += 1
  2163. b &&
  2164. ((b = t),
  2165. setTimeout(function () {
  2166. Ra(5055, {
  2167. move: g,
  2168. })
  2169. b = q
  2170. g = 0
  2171. }, 1e4))
  2172. },
  2173. x1: function () {
  2174. i += 1
  2175. c &&
  2176. ((c = t),
  2177. setTimeout(function () {
  2178. Ra(5056, {
  2179. zoom: i,
  2180. })
  2181. c = q
  2182. i = 0
  2183. }, 1e4))
  2184. },
  2185. w1: function (a) {
  2186. k += a
  2187. e &&
  2188. ((e = t),
  2189. setTimeout(function () {
  2190. Ra(5057, {
  2191. tile: k,
  2192. })
  2193. e = q
  2194. k = 0
  2195. }, 5e3))
  2196. },
  2197. }
  2198. })()
  2199. B.iq = {
  2200. DG: '#83a1ff',
  2201. kq: '#808080',
  2202. }
  2203. function Qb(a, b, c) {
  2204. b.Om || ((b.Om = []), (b.handle = {}))
  2205. b.Om.push({
  2206. filter: c,
  2207. nm: a,
  2208. })
  2209. b.addEventListener ||
  2210. (b.addEventListener = function (a, c) {
  2211. b.attachEvent('on' + a, c)
  2212. })
  2213. b.handle.click ||
  2214. (b.addEventListener(
  2215. 'click',
  2216. function (a) {
  2217. for (var c = a.target || a.srcElement; c != b; ) {
  2218. Rb(b.Om, function (b, i) {
  2219. RegExp(i.filter).test(c.getAttribute('filter')) &&
  2220. i.nm.call(c, a, c.getAttribute('filter'))
  2221. })
  2222. c = c.parentNode
  2223. }
  2224. },
  2225. t
  2226. ),
  2227. (b.handle.click = q))
  2228. }
  2229. function Rb(a, b) {
  2230. for (var c = 0, e = a.length; c < e; c++) b(c, a[c])
  2231. }
  2232. void (function (a, b, c) {
  2233. void (function (a, b, c) {
  2234. function i(a) {
  2235. if (!a.Mo) {
  2236. for (var c = q, e = [], g = a.ZZ, k = 0; g && k < g.length; k++) {
  2237. var m = g[k],
  2238. n = (pa[m] = pa[m] || {})
  2239. if (n.Mo || n == a) e.push(n.Nc)
  2240. else {
  2241. c = t
  2242. if (
  2243. !n.DW &&
  2244. ((m = (Ma.get('alias') || {})[m] || m + '.js'), !R[m])
  2245. ) {
  2246. R[m] = q
  2247. var o = b.createElement('script'),
  2248. p = b.getElementsByTagName('script')[0]
  2249. o.async = q
  2250. o.src = m
  2251. p.parentNode.insertBefore(o, p)
  2252. }
  2253. n.bz = n.bz || {}
  2254. n.bz[a.name] = a
  2255. }
  2256. }
  2257. if (c) {
  2258. a.Mo = q
  2259. a.KK && (a.Nc = a.KK.apply(a, e))
  2260. for (var v in a.bz) i(a.bz[v])
  2261. }
  2262. }
  2263. }
  2264. function k(a) {
  2265. return (a || new Date()) - F
  2266. }
  2267. function m(a, b, c) {
  2268. if (a) {
  2269. 'string' == typeof a && ((c = b), (b = a), (a = M))
  2270. try {
  2271. a == M
  2272. ? ((N[b] = N[b] || []), N[b].unshift(c))
  2273. : a.addEventListener
  2274. ? a.addEventListener(b, c, t)
  2275. : a.attachEvent && a.attachEvent('on' + b, c)
  2276. } catch (e) {}
  2277. }
  2278. }
  2279. function n(a, b, c) {
  2280. if (a) {
  2281. 'string' == typeof a && ((c = b), (b = a), (a = M))
  2282. try {
  2283. if (a == M) {
  2284. var e = N[b]
  2285. if (e) for (var f = e.length; f--; ) e[f] === c && e.splice(f, 1)
  2286. } else
  2287. a.removeEventListener
  2288. ? a.removeEventListener(b, c, t)
  2289. : a.detachEvent && a.detachEvent('on' + b, c)
  2290. } catch (g) {}
  2291. }
  2292. }
  2293. function o(a) {
  2294. var b = N[a],
  2295. c = 0
  2296. if (b) {
  2297. for (var e = [], f = arguments, g = 1; g < f.length; g++) e.push(f[g])
  2298. for (g = b.length; g--; ) b[g].apply(this, e) && c++
  2299. return c
  2300. }
  2301. }
  2302. function p(a, b) {
  2303. if (a && b) {
  2304. var c = new Image(1, 1),
  2305. e = [],
  2306. f = 'img_' + +new Date(),
  2307. g
  2308. for (g in b) b[g] && e.push(g + '=' + encodeURIComponent(b[g]))
  2309. M[f] = c
  2310. c.onload = c.onerror = function () {
  2311. M[f] = c = c.onload = c.onerror = s
  2312. delete M[f]
  2313. }
  2314. c.src = a + '?' + e.join('&')
  2315. }
  2316. }
  2317. function v() {
  2318. var a = arguments,
  2319. b = a[0]
  2320. if (this.JK || /^(on|un|set|get|create)$/.test(b)) {
  2321. for (var b = y.prototype[b], c = [], e = 1, f = a.length; e < f; e++)
  2322. c.push(a[e])
  2323. 'function' == typeof b && b.apply(this, c)
  2324. } else this.iK.push(a)
  2325. }
  2326. function x(a, b) {
  2327. var c = {},
  2328. e
  2329. for (e in a) a.hasOwnProperty(e) && (c[e] = a[e])
  2330. for (e in b) b.hasOwnProperty(e) && (c[e] = b[e])
  2331. return c
  2332. }
  2333. function y(a) {
  2334. this.name = a
  2335. this.Ps = {
  2336. protocolParameter: {
  2337. postUrl: s,
  2338. protocolParameter: s,
  2339. },
  2340. }
  2341. this.iK = []
  2342. this.alog = M
  2343. }
  2344. function A(a) {
  2345. a = a || 'default'
  2346. if ('*' == a) {
  2347. var a = [],
  2348. b
  2349. for (b in fa) a.push(fa[b])
  2350. return a
  2351. }
  2352. ;(b = fa[a]) || (b = fa[a] = new y(a))
  2353. return b
  2354. }
  2355. var E = c.alog
  2356. if (!E || !E.Mo) {
  2357. var C = b.all && a.attachEvent,
  2358. F = (E && E.IE) || +new Date(),
  2359. D =
  2360. a.o4 ||
  2361. (+new Date()).toString(36) +
  2362. Math.random().toString(36).substr(2, 3),
  2363. I = 0,
  2364. R = {},
  2365. M = function (a) {
  2366. var b = arguments,
  2367. c,
  2368. e,
  2369. f,
  2370. g
  2371. if ('define' == a || 'require' == a) {
  2372. for (e = 1; e < b.length; e++)
  2373. switch (typeof b[e]) {
  2374. case 'string':
  2375. c = b[e]
  2376. break
  2377. case 'object':
  2378. f = b[e]
  2379. break
  2380. case 'function':
  2381. g = b[e]
  2382. }
  2383. 'require' == a && (c && !f && (f = [c]), (c = s))
  2384. c = !c ? '#' + I++ : c
  2385. e = pa[c] = pa[c] || {}
  2386. e.Mo ||
  2387. ((e.name = c),
  2388. (e.ZZ = f),
  2389. (e.KK = g),
  2390. 'define' == a && (e.DW = q),
  2391. i(e))
  2392. } else
  2393. 'function' == typeof a
  2394. ? a(M)
  2395. : ('' + a).replace(
  2396. /^(?:([\w$_]+)\.)?(\w+)$/,
  2397. function (a, c, e) {
  2398. b[0] = e
  2399. v.apply(M.bG(c), b)
  2400. }
  2401. )
  2402. },
  2403. N = {},
  2404. fa = {},
  2405. pa = {
  2406. i2: {
  2407. name: 'alog',
  2408. Mo: q,
  2409. Nc: M,
  2410. },
  2411. }
  2412. y.prototype.start = y.prototype.create = function (a) {
  2413. if (!this.JK) {
  2414. 'object' == typeof a && this.set(a)
  2415. this.JK = new Date()
  2416. for (this.Qs('create', this); (a = this.iK.shift()); )
  2417. v.apply(this, a)
  2418. }
  2419. }
  2420. y.prototype.send = function (a, b) {
  2421. var c = x(
  2422. {
  2423. ts: k().toString(36),
  2424. t: a,
  2425. sid: D,
  2426. },
  2427. this.Ps
  2428. )
  2429. if ('object' == typeof b) c = x(c, b)
  2430. else {
  2431. var e = arguments
  2432. switch (a) {
  2433. case 'pageview':
  2434. e[1] && (c.page = e[1])
  2435. e[2] && (c.title = e[2])
  2436. break
  2437. case 'event':
  2438. e[1] && (c.eventCategory = e[1])
  2439. e[2] && (c.eventAction = e[2])
  2440. e[3] && (c.eventLabel = e[3])
  2441. e[4] && (c.eventValue = e[4])
  2442. break
  2443. case 'timing':
  2444. e[1] && (c.timingCategory = e[1])
  2445. e[2] && (c.timingVar = e[2])
  2446. e[3] && (c.timingValue = e[3])
  2447. e[4] && (c.timingLabel = e[4])
  2448. break
  2449. case 'exception':
  2450. e[1] && (c.exDescription = e[1])
  2451. e[2] && (c.exFatal = e[2])
  2452. break
  2453. default:
  2454. return
  2455. }
  2456. }
  2457. this.Qs('send', c)
  2458. var f
  2459. if ((e = this.Ps.protocolParameter)) {
  2460. var g = {}
  2461. for (f in c) e[f] !== s && (g[e[f] || f] = c[f])
  2462. f = g
  2463. } else f = c
  2464. p(this.Ps.postUrl, f)
  2465. }
  2466. y.prototype.set = function (a, b) {
  2467. if ('string' == typeof a)
  2468. 'protocolParameter' == a &&
  2469. (b = x(
  2470. {
  2471. postUrl: s,
  2472. protocolParameter: s,
  2473. },
  2474. b
  2475. )),
  2476. (this.Ps[a] = b)
  2477. else if ('object' == typeof a) for (var c in a) this.set(c, a[c])
  2478. }
  2479. y.prototype.get = function (a, b) {
  2480. var c = this.Ps[a]
  2481. 'function' == typeof b && b(c)
  2482. return c
  2483. }
  2484. y.prototype.Qs = function (a, b) {
  2485. return M.Qs(this.name + '.' + a, b)
  2486. }
  2487. y.prototype.M = function (a, b) {
  2488. M.M(this.name + '.' + a, b)
  2489. }
  2490. y.prototype.ed = function (a, b) {
  2491. M.ed(this.name + '.' + a, b)
  2492. }
  2493. M.name = 'alog'
  2494. M.BO = D
  2495. M.Mo = q
  2496. M.timestamp = k
  2497. M.ed = n
  2498. M.M = m
  2499. M.Qs = o
  2500. M.bG = A
  2501. M('init')
  2502. var wa = y.prototype
  2503. T(wa, {
  2504. start: wa.start,
  2505. create: wa.create,
  2506. send: wa.send,
  2507. set: wa.set,
  2508. get: wa.get,
  2509. on: wa.M,
  2510. un: wa.ed,
  2511. fire: wa.Qs,
  2512. })
  2513. var Ma = A()
  2514. Ma.set('protocolParameter', {
  2515. h2: s,
  2516. })
  2517. if (E) {
  2518. wa = [].concat(E.wb || [], E.Wm || [])
  2519. E.wb = E.Wm = s
  2520. for (var sb in M) M.hasOwnProperty(sb) && (E[sb] = M[sb])
  2521. M.wb = M.Wm = {
  2522. push: function (a) {
  2523. M.apply(M, a)
  2524. },
  2525. }
  2526. for (E = 0; E < wa.length; E++) M.apply(M, wa[E])
  2527. }
  2528. c.alog = M
  2529. C &&
  2530. m(b, 'mouseup', function (a) {
  2531. a = a.target || a.srcElement
  2532. 1 == a.nodeType && /^ajavascript:/i.test(a.tagName + a.href)
  2533. })
  2534. var Za = t
  2535. a.onerror = function (a, b, e, f) {
  2536. var i = q
  2537. !b && /^script error/i.test(a) && (Za ? (i = t) : (Za = q))
  2538. i &&
  2539. c.alog('exception.send', 'exception', {
  2540. Ht: a,
  2541. HE: b,
  2542. Dt: e,
  2543. hs: f,
  2544. })
  2545. return t
  2546. }
  2547. c.alog('exception.on', 'catch', function (a) {
  2548. c.alog('exception.send', 'exception', {
  2549. Ht: a.Ht,
  2550. HE: a.path,
  2551. Dt: a.Dt,
  2552. method: a.method,
  2553. rL: 'catch',
  2554. })
  2555. })
  2556. }
  2557. })(a, b, c)
  2558. void (function (a, b, c) {
  2559. var i = '18_3'
  2560. H() && (i = '18_4')
  2561. var k = 'http://static.tieba.baidu.com'
  2562. 'https:' === a.location.protocol &&
  2563. (k = 'https://gsp0.baidu.com/5aAHeD3nKhI2p27j8IqW0jdnxx1xbK')
  2564. var m = Math.random,
  2565. k = k + '/tb/pms/img/st.gif',
  2566. n = {
  2567. wh: '0.1',
  2568. },
  2569. o = {
  2570. wh: '0.1',
  2571. },
  2572. p = {
  2573. wh: '0.1',
  2574. },
  2575. v = {
  2576. wh: '0',
  2577. }
  2578. if (n && n.wh && m() < n.wh) {
  2579. var x = c.alog.bG('monkey'),
  2580. y,
  2581. n = a.screen,
  2582. A = b.referrer
  2583. x.set('ver', 5)
  2584. x.set('pid', 241)
  2585. n && x.set('px', n.width + '*' + n.height)
  2586. x.set('ref', A)
  2587. c.alog('monkey.on', 'create', function () {
  2588. y = c.alog.timestamp
  2589. x.set('protocolParameter', {
  2590. reports: s,
  2591. })
  2592. })
  2593. c.alog('monkey.on', 'send', function (a) {
  2594. 'pageview' == a.t && (a.cmd = 'open')
  2595. a.now && ((a.ts = y(a.now).toString(36)), (a.now = ''))
  2596. })
  2597. c.alog('monkey.create', {
  2598. page: i,
  2599. pid: '241',
  2600. p: '18',
  2601. dv: 6,
  2602. postUrl: k,
  2603. reports: {
  2604. refer: 1,
  2605. },
  2606. })
  2607. c.alog('monkey.send', 'pageview', {
  2608. now: +new Date(),
  2609. })
  2610. }
  2611. if (o && o.wh && m() < o.wh) {
  2612. var E = t
  2613. a.onerror = function (a, b, e, f) {
  2614. var i = q
  2615. !b && /^script error/i.test(a) && (E ? (i = t) : (E = q))
  2616. i &&
  2617. c.alog('exception.send', 'exception', {
  2618. Ht: a,
  2619. HE: b,
  2620. Dt: e,
  2621. hs: f,
  2622. })
  2623. return t
  2624. }
  2625. c.alog('exception.on', 'catch', function (a) {
  2626. c.alog('exception.send', 'exception', {
  2627. Ht: a.Ht,
  2628. HE: a.path,
  2629. Dt: a.Dt,
  2630. method: a.method,
  2631. rL: 'catch',
  2632. })
  2633. })
  2634. c.alog('exception.create', {
  2635. postUrl: k,
  2636. dv: 7,
  2637. page: i,
  2638. pid: '170',
  2639. p: '18',
  2640. })
  2641. }
  2642. p &&
  2643. p.wh &&
  2644. m() < p.wh &&
  2645. (c.alog('cus.on', 'time', function (a) {
  2646. var b = {},
  2647. e = t,
  2648. f
  2649. if ('[object Object]' === a.toString()) {
  2650. for (var i in a)
  2651. 'page' == i
  2652. ? (b.page = a[i])
  2653. : ((f = parseInt(a[i])),
  2654. 0 < f && /^z_/.test(i) && ((e = q), (b[i] = f)))
  2655. e && c.alog('cus.send', 'time', b)
  2656. }
  2657. }),
  2658. c.alog('cus.on', 'count', function (a) {
  2659. var b = {},
  2660. e = t
  2661. 'string' === typeof a && (a = [a])
  2662. if (a instanceof Array)
  2663. for (var f = 0; f < a.length; f++)
  2664. /^z_/.test(a[f])
  2665. ? ((e = q), (b[a[f]] = 1))
  2666. : /^page:/.test(a[f]) && (b.page = a[f].substring(5))
  2667. e && c.alog('cus.send', 'count', b)
  2668. }),
  2669. c.alog('cus.create', {
  2670. dv: 3,
  2671. postUrl: k,
  2672. page: i,
  2673. p: '18',
  2674. }))
  2675. if (v && v.wh && m() < v.wh) {
  2676. var C = ['Moz', 'O', 'ms', 'Webkit'],
  2677. F = ['-webkit-', '-moz-', '-o-', '-ms-'],
  2678. D = function () {
  2679. return typeof b.createElement !== 'function'
  2680. ? b.createElement(arguments[0])
  2681. : b.createElement.apply(b, arguments)
  2682. },
  2683. I = D('dpFeatureTest').style,
  2684. R = function (a) {
  2685. return M(a, l, l)
  2686. },
  2687. M = function (a, b, c) {
  2688. var e = a.charAt(0).toUpperCase() + a.slice(1),
  2689. f = (a + ' ' + C.join(e + ' ') + e).split(' ')
  2690. if (typeof b === 'string' || typeof b === 'undefined')
  2691. return N(f, b)
  2692. f = (a + ' ' + C.join(e + ' ') + e).split(' ')
  2693. a: {
  2694. var a = f,
  2695. g
  2696. for (g in a)
  2697. if (a[g] in b) {
  2698. if (c === t) {
  2699. b = a[g]
  2700. break a
  2701. }
  2702. g = b[a[g]]
  2703. b = typeof g === 'function' ? fnBind(g, c || b) : g
  2704. break a
  2705. }
  2706. b = t
  2707. }
  2708. return b
  2709. },
  2710. N = function (a, b) {
  2711. var c, e, f
  2712. e = a.length
  2713. for (c = 0; c < e; c++) {
  2714. f = a[c]
  2715. ~('' + f).indexOf('-') && (f = fa(f))
  2716. if (I[f] !== l) return b == 'pfx' ? f : q
  2717. }
  2718. return t
  2719. },
  2720. fa = function (a) {
  2721. return a
  2722. .replace(/([a-z])-([a-z])/g, function (a, b, c) {
  2723. return b + c.toUpperCase()
  2724. })
  2725. .replace(/^-/, '')
  2726. },
  2727. pa = function (a, b, c) {
  2728. if (a.indexOf('@') === 0) return atRule(a)
  2729. a.indexOf('-') != -1 && (a = fa(a))
  2730. return !b ? M(a, 'pfx') : M(a, b, c)
  2731. },
  2732. wa = function () {
  2733. var a = D('canvas')
  2734. return !(!a.getContext || !a.getContext('2d'))
  2735. },
  2736. Ma = function () {
  2737. var a = D('div')
  2738. return 'draggable' in a || ('ondragstart' in a && 'ondrop' in a)
  2739. },
  2740. sb = function () {
  2741. try {
  2742. localStorage.setItem('localStorage', 'localStorage')
  2743. localStorage.removeItem('localStorage')
  2744. return q
  2745. } catch (a) {
  2746. return t
  2747. }
  2748. },
  2749. Za = function () {
  2750. return 'content' in b.createElement('template')
  2751. },
  2752. Pa = function () {
  2753. return 'createShadowRoot' in b.createElement('a')
  2754. },
  2755. oi = function () {
  2756. return 'registerElement' in b
  2757. },
  2758. pi = function () {
  2759. return 'import' in b.createElement('link')
  2760. },
  2761. qi = function () {
  2762. return 'getItems' in b
  2763. },
  2764. ri = function () {
  2765. return 'EventSource' in window
  2766. },
  2767. re = function (a, b) {
  2768. var c = new Image()
  2769. c.onload = function () {
  2770. b(a, c.width > 0 && c.height > 0)
  2771. }
  2772. c.onerror = function () {
  2773. b(a, t)
  2774. }
  2775. c.src =
  2776. 'data:image/webp;base64,' +
  2777. {
  2778. r4: 'UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA',
  2779. q4: 'UklGRhoAAABXRUJQVlA4TA0AAAAvAAAAEAcQERGIiP4HAA==',
  2780. alpha:
  2781. 'UklGRkoAAABXRUJQVlA4WAoAAAAQAAAAAAAAAAAAQUxQSAwAAAARBxAR/Q9ERP8DAABWUDggGAAAABQBAJ0BKgEAAQAAAP4AAA3AAP7mtQAAAA==',
  2782. kk: 'UklGRlIAAABXRUJQVlA4WAoAAAASAAAAAAAAAAAAQU5JTQYAAAD/////AABBTk1GJgAAAAAAAAAAAAAAAAAAAGQAAABWUDhMDQAAAC8AAAAQBxAREYiI/gcA',
  2783. }[a]
  2784. },
  2785. se = function (a, b) {
  2786. return (Tb.ei['WebP-' + a] = b)
  2787. },
  2788. si = function () {
  2789. return 'openDatabase' in a
  2790. },
  2791. ti = function () {
  2792. return 'performance' in a && 'timing' in a.performance
  2793. },
  2794. ui = function () {
  2795. return 'performance' in a && 'mark' in a.performance
  2796. },
  2797. vi = function () {
  2798. return !(
  2799. !Array.prototype ||
  2800. !Array.prototype.every ||
  2801. !Array.prototype.filter ||
  2802. !Array.prototype.forEach ||
  2803. !Array.prototype.indexOf ||
  2804. !Array.prototype.lastIndexOf ||
  2805. !Array.prototype.map ||
  2806. !Array.prototype.some ||
  2807. !Array.prototype.reduce ||
  2808. !Array.prototype.reduceRight ||
  2809. !Array.isArray
  2810. )
  2811. },
  2812. wi = function () {
  2813. return (
  2814. 'Promise' in a &&
  2815. 'cast' in a.lq &&
  2816. 'resolve' in a.lq &&
  2817. 'reject' in a.lq &&
  2818. 'all' in a.lq &&
  2819. 'race' in a.lq &&
  2820. (function () {
  2821. var b
  2822. new a.lq(function (a) {
  2823. b = a
  2824. })
  2825. return typeof b === 'function'
  2826. })()
  2827. )
  2828. },
  2829. xi = function () {
  2830. var b = !!a.i1,
  2831. c = a.XMLHttpRequest && 'withCredentials' in new XMLHttpRequest()
  2832. return !!a.l1 && b && c
  2833. },
  2834. yi = function () {
  2835. return 'geolocation' in navigator
  2836. },
  2837. zi = function () {
  2838. var b = D('canvas'),
  2839. c =
  2840. 'probablySupportsContext' in b
  2841. ? 'probablySupportsContext'
  2842. : 'supportsContext'
  2843. return c in b
  2844. ? b[c]('webgl') || b[c]('experimental-webgl')
  2845. : 'WebGLRenderingContext' in a
  2846. },
  2847. Ai = function () {
  2848. return (
  2849. !!b.createElementNS &&
  2850. !!b.createElementNS('http://www.w3.org/2000/svg', 'svg').A2
  2851. )
  2852. },
  2853. Bi = function () {
  2854. return !!a.s1
  2855. },
  2856. Ci = function () {
  2857. return 'WebSocket' in a && a.p1.f1 === 2
  2858. },
  2859. Di = function () {
  2860. return !!b.createElement('video').canPlayType
  2861. },
  2862. Ei = function () {
  2863. return !!b.createElement('audio').canPlayType
  2864. },
  2865. Fi = function () {
  2866. return !!(a.history && 'pushState' in a.history)
  2867. },
  2868. Gi = function () {
  2869. return !(!a.g1 || !a.h1)
  2870. },
  2871. Hi = function () {
  2872. return 'postMessage' in window
  2873. },
  2874. Ii = function () {
  2875. return (
  2876. !!a.webkitNotifications ||
  2877. ('Notification' in a &&
  2878. 'permission' in a.PP &&
  2879. 'requestPermission' in a.PP)
  2880. )
  2881. },
  2882. Ji = function () {
  2883. for (
  2884. var b = ['webkit', 'moz', 'o', 'ms'],
  2885. c = a.requestAnimationFrame,
  2886. f = 0;
  2887. f < b.length && !c;
  2888. ++f
  2889. )
  2890. c = a[b[f] + 'RequestAnimationFrame']
  2891. return !!c
  2892. },
  2893. Ki = function () {
  2894. return 'JSON' in a && 'parse' in JSON && 'stringify' in JSON
  2895. },
  2896. Li = function () {
  2897. return !(
  2898. !pa('exitFullscreen', b, t) && !pa('cancelFullScreen', b, t)
  2899. )
  2900. },
  2901. Mi = function () {
  2902. return !!pa('Intl', a)
  2903. },
  2904. Ni = function () {
  2905. return R('flexBasis')
  2906. },
  2907. Oi = function () {
  2908. return !!R('perspective')
  2909. },
  2910. Pi = function () {
  2911. return R('shapeOutside')
  2912. },
  2913. Qi = function () {
  2914. var a = D('div')
  2915. a.style.cssText = F.join('filter:blur(2px); ')
  2916. return (
  2917. !!a.style.length && (b.documentMode === l || b.documentMode > 9)
  2918. )
  2919. },
  2920. Ri = function () {
  2921. return (
  2922. 'XMLHttpRequest' in a && 'withCredentials' in new XMLHttpRequest()
  2923. )
  2924. },
  2925. Si = function () {
  2926. return D('progress').max !== l
  2927. },
  2928. Ti = function () {
  2929. return D('meter').max !== l
  2930. },
  2931. Ui = function () {
  2932. return 'sendBeacon' in navigator
  2933. },
  2934. Vi = function () {
  2935. return R('borderRadius')
  2936. },
  2937. Wi = function () {
  2938. return R('boxShadow')
  2939. },
  2940. Xi = function () {
  2941. var a = D('div').style
  2942. a.cssText = F.join('opacity:.55;')
  2943. return /^0.55$/.test(a.opacity)
  2944. },
  2945. Yi = function () {
  2946. return N(['textShadow'], l)
  2947. },
  2948. Zi = function () {
  2949. return R('animationName')
  2950. },
  2951. $i = function () {
  2952. return R('transition')
  2953. },
  2954. aj = function () {
  2955. return (
  2956. navigator.userAgent.indexOf('Android 2.') === -1 && R('transform')
  2957. )
  2958. },
  2959. Tb = {
  2960. ei: {},
  2961. pa: function (a, b, c) {
  2962. this.ei[a] = b.apply(this, [].slice.call(arguments, 2))
  2963. },
  2964. Ed: function (a, b) {
  2965. a.apply(this, [].slice.call(arguments, 1))
  2966. },
  2967. f_: function () {
  2968. this.pa('bdrs', Vi)
  2969. this.pa('bxsd', Wi)
  2970. this.pa('opat', Xi)
  2971. this.pa('txsd', Yi)
  2972. this.pa('anim', Zi)
  2973. this.pa('trsi', $i)
  2974. this.pa('trfm', aj)
  2975. this.pa('flex', Ni)
  2976. this.pa('3dtr', Oi)
  2977. this.pa('shpe', Pi)
  2978. this.pa('fltr', Qi)
  2979. this.pa('cavs', wa)
  2980. this.pa('dgdp', Ma)
  2981. this.pa('locs', sb)
  2982. this.pa('wctem', Za)
  2983. this.pa('wcsdd', Pa)
  2984. this.pa('wccse', oi)
  2985. this.pa('wchti', pi)
  2986. this.Ed(re, 'lossy', se)
  2987. this.Ed(re, 'lossless', se)
  2988. this.Ed(re, 'alpha', se)
  2989. this.Ed(re, 'animation', se)
  2990. this.pa('wsql', si)
  2991. this.pa('natm', ti)
  2992. this.pa('ustm', ui)
  2993. this.pa('arra', vi)
  2994. this.pa('prms', wi)
  2995. this.pa('xhr2', xi)
  2996. this.pa('wbgl', zi)
  2997. this.pa('geol', yi)
  2998. this.pa('svg', Ai)
  2999. this.pa('work', Bi)
  3000. this.pa('wbsk', Ci)
  3001. this.pa('vido', Di)
  3002. this.pa('audo', Ei)
  3003. this.pa('hsty', Fi)
  3004. this.pa('file', Gi)
  3005. this.pa('psmg', Hi)
  3006. this.pa('wknf', Ii)
  3007. this.pa('rqaf', Ji)
  3008. this.pa('json', Ki)
  3009. this.pa('flsc', Li)
  3010. this.pa('i18n', Mi)
  3011. this.pa('cors', Ri)
  3012. this.pa('prog', Si)
  3013. this.pa('metr', Ti)
  3014. this.pa('becn', Ui)
  3015. this.pa('mcrd', qi)
  3016. this.pa('esrc', ri)
  3017. },
  3018. },
  3019. x = c.alog.bG('feature')
  3020. x.M('commit', function () {
  3021. Tb.f_()
  3022. var a = setInterval(function () {
  3023. if (
  3024. 'WebP-lossy' in Tb.ei &&
  3025. 'WebP-lossless' in Tb.ei &&
  3026. 'WebP-alpha' in Tb.ei &&
  3027. 'WebP-animation' in Tb.ei
  3028. ) {
  3029. for (var b in Tb.ei) Tb.ei[b] = Tb.ei[b] ? 'y' : 'n'
  3030. x.send('feature', Tb.ei)
  3031. clearInterval(a)
  3032. }
  3033. }, 500)
  3034. })
  3035. c.alog('feature.create', {
  3036. P2: 4,
  3037. R4: k,
  3038. page: i,
  3039. wb: '18',
  3040. })
  3041. c.alog('feature.fire', 'commit')
  3042. }
  3043. })(a, b, c)
  3044. })(window, document, B)
  3045. B.Fn = B.alog || u()
  3046. B.alog('cus.fire', 'count', 'z_loadscriptcount')
  3047. 'https:' === location.protocol && B.alog('cus.fire', 'count', 'z_httpscount')
  3048. function Sb(a) {
  3049. var b = window.TILE_VERSION,
  3050. c = '20170927'
  3051. b &&
  3052. b.ditu &&
  3053. ((b = b.ditu), b[a] && b[a].updateDate && (c = b[a].updateDate))
  3054. return c
  3055. }
  3056. function oa(a, b) {
  3057. if (/^http/.test(a)) return //修改 屏蔽ak验证,若调用外部资源直接返回
  3058. if (b) {
  3059. var c = (1e5 * Math.random()).toFixed(0)
  3060. B._rd['_cbk' + c] = function (a) {
  3061. b && b(a)
  3062. delete B._rd['_cbk' + c]
  3063. }
  3064. a += '&callback=BMap._rd._cbk' + c
  3065. }
  3066. var e = L('script', {
  3067. type: 'text/javascript',
  3068. })
  3069. e.charset = 'utf-8'
  3070. e.src = a
  3071. e.addEventListener
  3072. ? e.addEventListener(
  3073. 'load',
  3074. function (a) {
  3075. a = a.target
  3076. a.parentNode.removeChild(a)
  3077. },
  3078. t
  3079. )
  3080. : e.attachEvent &&
  3081. e.attachEvent('onreadystatechange', function () {
  3082. var a = window.event.srcElement
  3083. a &&
  3084. ('loaded' == a.readyState || 'complete' == a.readyState) &&
  3085. a.parentNode.removeChild(a)
  3086. })
  3087. setTimeout(function () {
  3088. document.getElementsByTagName('head')[0].appendChild(e)
  3089. e = s
  3090. }, 1)
  3091. }
  3092. var Ub = {
  3093. //修改,这里是所有的模块,用到时自动加载(在线),离线的话要先下载下来放到本地,如http://api0.map.bdimg.com/getmodules?v=3.0&mod=模块1,模块2
  3094. //模块命名格式是map_dbwcej,直接拼接起来
  3095. map: 'dbwcej',
  3096. common: 'wkrfcz',
  3097. style: 'fkofpc',
  3098. tile: 'ok3b3m',
  3099. vectordrawlib: '4pdipq',
  3100. newvectordrawlib: 'wbnuee',
  3101. groundoverlay: 'ekozhc',
  3102. pointcollection: 'feabuc',
  3103. marker: '00uyqy',
  3104. symbol: 'cq3a5n',
  3105. canvablepath: 'dia5aw',
  3106. vmlcontext: 'phwtog',
  3107. markeranimation: 'rfnmxu',
  3108. poly: 'r52vuo',
  3109. draw: 'jb4osz',
  3110. drawbysvg: 'vxyn51',
  3111. drawbyvml: 'whxmqq',
  3112. drawbycanvas: 'ufwkvb',
  3113. infowindow: 'wtflsn',
  3114. oppc: '10riq5',
  3115. opmb: '2c1ejz',
  3116. menu: '152mop',
  3117. control: 'hlzh1t',
  3118. navictrl: 'h32mnb',
  3119. geoctrl: 'xprajs',
  3120. copyrightctrl: 'gmc2ps',
  3121. citylistcontrol: 'ms3ahy',
  3122. scommon: 'oadc3d',
  3123. local: 'k0pcpi',
  3124. route: 'v4yyam',
  3125. othersearch: 'pwg4ey',
  3126. mapclick: 'e40viw',
  3127. buslinesearch: 'vxmb31',
  3128. hotspot: 'vuwxs4',
  3129. autocomplete: 'punr3o',
  3130. coordtrans: 'lmf5kv',
  3131. coordtransutils: 'd33qf1',
  3132. convertor: 'd0ze2w',
  3133. clayer: '0hwrfx',
  3134. pservice: 'j5tlrp',
  3135. pcommon: 'yqek4k',
  3136. panorama: 'jbqj24',
  3137. panoramaflash: 'dm4xq2',
  3138. vector: '2hrruc',
  3139. }
  3140. z.Wy = (function () {
  3141. function a(a) {
  3142. return e && !!c[b + a + '_' + Ub[a]]
  3143. }
  3144. var b = 'BMap_',
  3145. c = window.localStorage,
  3146. e = 'localStorage' in window && c !== s && c !== l
  3147. return {
  3148. ZY: e,
  3149. set: function (a, g) {
  3150. if (e) {
  3151. for (var i = b + a + '_', k = c.length, m; k--; )
  3152. (m = c.key(k)), -1 < m.indexOf(i) && c.removeItem(m)
  3153. try {
  3154. c.setItem(b + a + '_' + Ub[a], g)
  3155. } catch (n) {
  3156. c.clear()
  3157. }
  3158. }
  3159. },
  3160. get: function (f) {
  3161. return e && a(f) ? c.getItem(b + f + '_' + Ub[f]) : t
  3162. },
  3163. uK: a,
  3164. }
  3165. })()
  3166. function K() {}
  3167. z.object.extend(K, {
  3168. Cj: {
  3169. EG: -1,
  3170. cQ: 0,
  3171. cq: 1,
  3172. },
  3173. GL: function () {
  3174. var a = 'canvablepath',
  3175. b = B.gV ? 'newvectordrawlib' : 'vectordrawlib'
  3176. if (!H() || !Ob()) Nb() || (Mb() ? (a = 'vmlcontext') : Ob())
  3177. return {
  3178. tile: [b, 'style'],
  3179. control: [],
  3180. marker: ['symbol'],
  3181. symbol: ['canvablepath', 'common'],
  3182. canvablepath: 'canvablepath' === a ? [] : [a],
  3183. vmlcontext: [],
  3184. style: [],
  3185. poly: ['marker', 'drawbycanvas', 'drawbysvg', 'drawbyvml'],
  3186. drawbysvg: ['draw'],
  3187. drawbyvml: ['draw'],
  3188. drawbycanvas: ['draw'],
  3189. infowindow: ['common', 'marker'],
  3190. menu: [],
  3191. oppc: [],
  3192. opmb: [],
  3193. scommon: [],
  3194. local: ['scommon'],
  3195. route: ['scommon'],
  3196. othersearch: ['scommon'],
  3197. autocomplete: ['scommon'],
  3198. citylistcontrol: ['autocomplete'],
  3199. mapclick: ['scommon'],
  3200. buslinesearch: ['route'],
  3201. hotspot: [],
  3202. coordtransutils: ['coordtrans'],
  3203. convertor: [],
  3204. clayer: ['tile'],
  3205. pservice: [],
  3206. pcommon: ['style', 'pservice'],
  3207. panorama: ['pcommon'],
  3208. panoramaflash: ['pcommon'],
  3209. }
  3210. },
  3211. U4: {},
  3212. wG: {
  3213. tQ: B.ka + 'getmodules?v=3.0',
  3214. WU: 5e3,
  3215. },
  3216. MC: t,
  3217. Rd: {
  3218. xl: {},
  3219. Hn: [],
  3220. cw: [],
  3221. },
  3222. load: function (a, b, c) {
  3223. var e = this.kb(a)
  3224. if (e.Me == this.Cj.cq) c && b()
  3225. else {
  3226. if (e.Me == this.Cj.EG) {
  3227. this.AK(a)
  3228. this.SN(a)
  3229. var f = this
  3230. f.MC == t &&
  3231. ((f.MC = q),
  3232. setTimeout(function () {
  3233. for (var a = [], b = 0, c = f.Rd.Hn.length; b < c; b++) {
  3234. var e = f.Rd.Hn[b],
  3235. n = ''
  3236. ia.Wy.uK(e)
  3237. ? (n = ia.Wy.get(e))
  3238. : ((n = ''), a.push(e + '_' + Ub[e]))
  3239. f.Rd.cw.push({
  3240. jN: e,
  3241. ZE: n,
  3242. })
  3243. }
  3244. f.MC = t
  3245. f.Rd.Hn.length = 0
  3246. //0 == a.length ? f.kL() : oa(f.wG.tQ + "&mod=" + a.join(","))
  3247. // 修改 加载本地模块文件,在 modules 目录下
  3248. console.log(a) //打印所需模块
  3249. if (a.length > 0) {
  3250. for (i = 0; i < a.length; i++) {
  3251. mf = bmapcfg.home + 'modules/' + a[i] + '.js'
  3252. oa(mf)
  3253. // console.log('加载模块文件:' + mf) //IE error
  3254. }
  3255. } else {
  3256. f.kL()
  3257. }
  3258. //就到这
  3259. }, 1))
  3260. e.Me = this.Cj.cQ
  3261. }
  3262. e.Yu.push(b)
  3263. }
  3264. },
  3265. AK: function (a) {
  3266. if (a && this.GL()[a])
  3267. for (var a = this.GL()[a], b = 0; b < a.length; b++)
  3268. this.AK(a[b]), this.Rd.xl[a[b]] || this.SN(a[b])
  3269. },
  3270. SN: function (a) {
  3271. for (var b = 0; b < this.Rd.Hn.length; b++) if (this.Rd.Hn[b] == a) return
  3272. this.Rd.Hn.push(a)
  3273. },
  3274. e_: function (a, b) {
  3275. var c = this.kb(a)
  3276. try {
  3277. eval(b)
  3278. } catch (e) {
  3279. return
  3280. }
  3281. c.Me = this.Cj.cq
  3282. for (var f = 0, g = c.Yu.length; f < g; f++) c.Yu[f]()
  3283. c.Yu.length = 0
  3284. },
  3285. uK: function (a, b) {
  3286. var c = this
  3287. c.timeout = setTimeout(function () {
  3288. c.Rd.xl[a].Me != c.Cj.cq
  3289. ? (c.remove(a), c.load(a, b))
  3290. : clearTimeout(c.timeout)
  3291. }, c.wG.WU)
  3292. },
  3293. kb: function (a) {
  3294. this.Rd.xl[a] ||
  3295. ((this.Rd.xl[a] = {}),
  3296. (this.Rd.xl[a].Me = this.Cj.EG),
  3297. (this.Rd.xl[a].Yu = []))
  3298. return this.Rd.xl[a]
  3299. },
  3300. remove: function (a) {
  3301. delete this.kb(a)
  3302. },
  3303. WV: function (a, b) {
  3304. for (var c = this.Rd.cw, e = q, f = 0, g = c.length; f < g; f++)
  3305. '' == c[f].ZE && (c[f].jN == a ? (c[f].ZE = b) : (e = t))
  3306. e && this.kL()
  3307. },
  3308. kL: function () {
  3309. for (var a = this.Rd.cw, b = 0, c = a.length; b < c; b++)
  3310. this.e_(a[b].jN, a[b].ZE)
  3311. this.Rd.cw.length = 0
  3312. },
  3313. })
  3314. function Q(a, b) {
  3315. this.x = a || 0
  3316. this.y = b || 0
  3317. this.x = this.x
  3318. this.y = this.y
  3319. }
  3320. Q.prototype.pb = function (a) {
  3321. return a && a.x == this.x && a.y == this.y
  3322. }
  3323. function O(a, b) {
  3324. this.width = a || 0
  3325. this.height = b || 0
  3326. }
  3327. O.prototype.pb = function (a) {
  3328. return a && this.width == a.width && this.height == a.height
  3329. }
  3330. function ib(a, b) {
  3331. a &&
  3332. ((this.Lb = a),
  3333. (this.aa = 'spot' + ib.aa++),
  3334. (b = b || {}),
  3335. (this.Wg = b.text || ''),
  3336. (this.Jv = b.offsets ? b.offsets.slice(0) : [5, 5, 5, 5]),
  3337. (this.JJ = b.userData || s),
  3338. (this.Lh = b.minZoom || s),
  3339. (this.Hf = b.maxZoom || s))
  3340. }
  3341. ib.aa = 0
  3342. z.extend(ib.prototype, {
  3343. na: function (a) {
  3344. this.Lh == s && (this.Lh = a.K.gc)
  3345. this.Hf == s && (this.Hf = a.K.Yb)
  3346. },
  3347. sa: function (a) {
  3348. a instanceof J && (this.Lb = a)
  3349. },
  3350. ga: w('Lb'),
  3351. cu: ba('Wg'),
  3352. eE: w('Wg'),
  3353. setUserData: ba('JJ'),
  3354. getUserData: w('JJ'),
  3355. })
  3356. function Vb() {
  3357. this.B = s
  3358. this.Mb = 'control'
  3359. this.Qa = this.nK = q
  3360. }
  3361. z.lang.ta(Vb, z.lang.Ca, 'Control')
  3362. z.extend(Vb.prototype, {
  3363. initialize: function (a) {
  3364. this.B = a
  3365. if (this.C) return a.Wa.appendChild(this.C), this.C
  3366. },
  3367. He: function (a) {
  3368. !this.C &&
  3369. this.initialize &&
  3370. Xa(this.initialize) &&
  3371. (this.C = this.initialize(a))
  3372. this.j = this.j || {
  3373. Cg: t,
  3374. }
  3375. this.IB()
  3376. this.Nr()
  3377. this.C && (this.C.mr = this)
  3378. },
  3379. IB: function () {
  3380. var a = this.C
  3381. if (a) {
  3382. var b = a.style
  3383. b.position = 'absolute'
  3384. b.zIndex = this.Hz || '10'
  3385. b.MozUserSelect = 'none'
  3386. b.WebkitTextSizeAdjust = 'none'
  3387. this.j.Cg || z.D.Ua(a, 'BMap_noprint')
  3388. H() || z.M(a, 'contextmenu', na)
  3389. }
  3390. },
  3391. remove: function () {
  3392. this.B = s
  3393. this.C &&
  3394. (this.C.parentNode && this.C.parentNode.removeChild(this.C),
  3395. (this.C = this.C.mr = s))
  3396. },
  3397. Aa: function () {
  3398. this.C = Ab(this.B.Wa, "<div unselectable='on'></div>")
  3399. this.Qa == t && z.D.U(this.C)
  3400. return this.C
  3401. },
  3402. Nr: function () {
  3403. this.uc(this.j.anchor)
  3404. },
  3405. uc: function (a) {
  3406. if (this.j2 || !Wa(a) || isNaN(a) || a < Wb || 3 < a)
  3407. a = this.defaultAnchor
  3408. this.j = this.j || {
  3409. Cg: t,
  3410. }
  3411. this.j.za = this.j.za || this.defaultOffset
  3412. var b = this.j.anchor
  3413. this.j.anchor = a
  3414. if (this.C) {
  3415. var c = this.C,
  3416. e = this.j.za.width,
  3417. f = this.j.za.height
  3418. c.style.left = c.style.top = c.style.right = c.style.bottom = 'auto'
  3419. switch (a) {
  3420. case Wb:
  3421. c.style.top = f + 'px'
  3422. c.style.left = e + 'px'
  3423. break
  3424. case Xb:
  3425. c.style.top = f + 'px'
  3426. c.style.right = e + 'px'
  3427. break
  3428. case Yb:
  3429. c.style.bottom = f + 'px'
  3430. c.style.left = e + 'px'
  3431. break
  3432. case 3:
  3433. ;(c.style.bottom = f + 'px'), (c.style.right = e + 'px')
  3434. }
  3435. c = ['TL', 'TR', 'BL', 'BR']
  3436. z.D.Pb(this.C, 'anchor' + c[b])
  3437. z.D.Ua(this.C, 'anchor' + c[a])
  3438. }
  3439. },
  3440. HD: function () {
  3441. return this.j.anchor
  3442. },
  3443. getContainer: w('C'),
  3444. Ze: function (a) {
  3445. a instanceof O &&
  3446. ((this.j = this.j || {
  3447. Cg: t,
  3448. }),
  3449. (this.j.za = new O(a.width, a.height)),
  3450. this.C && this.uc(this.j.anchor))
  3451. },
  3452. Sf: function () {
  3453. return this.j.za
  3454. },
  3455. Jd: w('C'),
  3456. show: function () {
  3457. this.Qa != q && ((this.Qa = q), this.C && z.D.show(this.C))
  3458. },
  3459. U: function () {
  3460. this.Qa != t && ((this.Qa = t), this.C && z.D.U(this.C))
  3461. },
  3462. isPrintable: function () {
  3463. return !!this.j.Cg
  3464. },
  3465. jh: function () {
  3466. return !this.C && !this.B ? t : !!this.Qa
  3467. },
  3468. })
  3469. var Wb = 0,
  3470. Xb = 1,
  3471. Yb = 2
  3472. function jb(a) {
  3473. Vb.call(this)
  3474. a = a || {}
  3475. this.j = {
  3476. Cg: t,
  3477. OF: a.showZoomInfo || q,
  3478. anchor: a.anchor,
  3479. za: a.offset,
  3480. type: a.type,
  3481. $W: a.enableGeolocation || t,
  3482. }
  3483. this.defaultAnchor = H() ? 3 : Wb
  3484. this.defaultOffset = new O(10, 10)
  3485. this.uc(a.anchor)
  3486. this.hn(a.type)
  3487. this.De()
  3488. }
  3489. z.lang.ta(jb, Vb, 'NavigationControl')
  3490. z.extend(jb.prototype, {
  3491. initialize: function (a) {
  3492. this.B = a
  3493. return this.C
  3494. },
  3495. hn: function (a) {
  3496. this.j.type = Wa(a) && 0 <= a && 3 >= a ? a : 0
  3497. },
  3498. ip: function () {
  3499. return this.j.type
  3500. },
  3501. De: function () {
  3502. var a = this
  3503. K.load('navictrl', function () {
  3504. a.zf()
  3505. })
  3506. },
  3507. })
  3508. function Zb(a) {
  3509. Vb.call(this)
  3510. a = a || {}
  3511. this.j = {
  3512. anchor: a.anchor || Yb,
  3513. za: a.offset || new O(10, 30),
  3514. O_: a.showAddressBar !== t,
  3515. U2: a.enableAutoLocation || t,
  3516. bN: a.locationIcon || s,
  3517. }
  3518. var b = this
  3519. this.Hz = 1200
  3520. b.I0 = []
  3521. this.pe = []
  3522. K.load('geoctrl', function () {
  3523. ;(function e() {
  3524. if (0 !== b.pe.length) {
  3525. var a = b.pe.shift()
  3526. b[a.method].apply(b, a.arguments)
  3527. e()
  3528. }
  3529. })()
  3530. b.sQ()
  3531. })
  3532. Ra(Ia)
  3533. }
  3534. z.lang.ta(Zb, Vb, 'GeolocationControl')
  3535. z.extend(Zb.prototype, {
  3536. location: function () {
  3537. this.pe.push({
  3538. method: 'location',
  3539. arguments: arguments,
  3540. })
  3541. },
  3542. getAddressComponent: ca(s),
  3543. })
  3544. function $b(a) {
  3545. Vb.call(this)
  3546. a = a || {}
  3547. this.j = {
  3548. Cg: t,
  3549. anchor: a.anchor,
  3550. za: a.offset,
  3551. }
  3552. this.cc = []
  3553. this.defaultAnchor = Yb
  3554. this.defaultOffset = new O(5, 2)
  3555. this.uc(a.anchor)
  3556. this.nK = t
  3557. this.De()
  3558. }
  3559. z.lang.ta($b, Vb, 'CopyrightControl')
  3560. z.object.extend($b.prototype, {
  3561. initialize: function (a) {
  3562. this.B = a
  3563. return this.C
  3564. },
  3565. Bw: function (a) {
  3566. if (a && Wa(a.id) && !isNaN(a.id)) {
  3567. var b = {
  3568. bounds: s,
  3569. content: '',
  3570. },
  3571. c
  3572. for (c in a) b[c] = a[c]
  3573. if ((a = this.pm(a.id))) for (var e in b) a[e] = b[e]
  3574. else this.cc.push(b)
  3575. }
  3576. },
  3577. pm: function (a) {
  3578. for (var b = 0, c = this.cc.length; b < c; b++)
  3579. if (this.cc[b].id == a) return this.cc[b]
  3580. },
  3581. PD: w('cc'),
  3582. qF: function (a) {
  3583. for (var b = 0, c = this.cc.length; b < c; b++)
  3584. this.cc[b].id == a &&
  3585. ((r = this.cc.splice(b, 1)), b--, (c = this.cc.length))
  3586. },
  3587. De: function () {
  3588. var a = this
  3589. K.load('copyrightctrl', function () {
  3590. a.zf()
  3591. })
  3592. },
  3593. })
  3594. function lb(a) {
  3595. Vb.call(this)
  3596. a = a || {}
  3597. this.j = {
  3598. Cg: t,
  3599. size: a.size || new O(150, 150),
  3600. padding: 5,
  3601. Xa: a.isOpen === q ? q : t,
  3602. $0: 4,
  3603. za: a.offset,
  3604. anchor: a.anchor,
  3605. }
  3606. this.defaultAnchor = 3
  3607. this.defaultOffset = new O(0, 0)
  3608. this.Bq = this.Cq = 13
  3609. this.uc(a.anchor)
  3610. this.Ce(this.j.size)
  3611. this.De()
  3612. }
  3613. z.lang.ta(lb, Vb, 'OverviewMapControl')
  3614. z.extend(lb.prototype, {
  3615. initialize: function (a) {
  3616. this.B = a
  3617. return this.C
  3618. },
  3619. uc: function (a) {
  3620. Vb.prototype.uc.call(this, a)
  3621. },
  3622. se: function () {
  3623. this.se.mo = q
  3624. this.j.Xa = !this.j.Xa
  3625. this.C || (this.se.mo = t)
  3626. },
  3627. Ce: function (a) {
  3628. a instanceof O || (a = new O(150, 150))
  3629. a.width = 0 < a.width ? a.width : 150
  3630. a.height = 0 < a.height ? a.height : 150
  3631. this.j.size = a
  3632. },
  3633. cb: function () {
  3634. return this.j.size
  3635. },
  3636. Xa: function () {
  3637. return this.j.Xa
  3638. },
  3639. De: function () {
  3640. var a = this
  3641. K.load('control', function () {
  3642. a.zf()
  3643. })
  3644. },
  3645. })
  3646. function ac(a) {
  3647. Vb.call(this)
  3648. a = a || {}
  3649. this.defaultAnchor = Wb
  3650. this.TV = a.canCheckSize === t ? t : q
  3651. this.$i = ''
  3652. this.defaultOffset = new O(10, 10)
  3653. this.onChangeBefore = []
  3654. this.onChangeAfter = []
  3655. this.onChangeSuccess = []
  3656. this.j = {
  3657. Cg: t,
  3658. za: a.offset || this.defaultOffset,
  3659. anchor: a.anchor || this.defaultAnchor,
  3660. expand: !!a.expand,
  3661. }
  3662. a.onChangeBefore &&
  3663. Xa(a.onChangeBefore) &&
  3664. this.onChangeBefore.push(a.onChangeBefore)
  3665. a.onChangeAfter &&
  3666. Xa(a.onChangeAfter) &&
  3667. this.onChangeAfter.push(a.onChangeAfter)
  3668. a.onChangeSuccess &&
  3669. Xa(a.onChangeSuccess) &&
  3670. this.onChangeSuccess.push(a.onChangeSuccess)
  3671. this.uc(a.anchor)
  3672. this.De()
  3673. }
  3674. z.lang.ta(ac, Vb, 'CityListControl')
  3675. z.object.extend(ac.prototype, {
  3676. initialize: function (a) {
  3677. this.B = a
  3678. return this.C
  3679. },
  3680. De: function () {
  3681. var a = this
  3682. K.load(
  3683. 'citylistcontrol',
  3684. function () {
  3685. a.zf()
  3686. },
  3687. q
  3688. )
  3689. },
  3690. })
  3691. function kb(a) {
  3692. Vb.call(this)
  3693. a = a || {}
  3694. this.j = {
  3695. Cg: t,
  3696. color: 'black',
  3697. fd: 'metric',
  3698. za: a.offset,
  3699. }
  3700. this.defaultAnchor = Yb
  3701. this.defaultOffset = new O(81, 18)
  3702. this.uc(a.anchor)
  3703. this.Uh = {
  3704. metric: {
  3705. name: 'metric',
  3706. CK: 1,
  3707. rM: 1e3,
  3708. bP: '\u7c73',
  3709. cP: '\u516c\u91cc',
  3710. },
  3711. us: {
  3712. name: 'us',
  3713. CK: 3.2808,
  3714. rM: 5280,
  3715. bP: '\u82f1\u5c3a',
  3716. cP: '\u82f1\u91cc',
  3717. },
  3718. }
  3719. this.Uh[this.j.fd] || (this.j.fd = 'metric')
  3720. this.gJ = s
  3721. this.GI = {}
  3722. this.De()
  3723. }
  3724. z.lang.ta(kb, Vb, 'ScaleControl')
  3725. z.object.extend(kb.prototype, {
  3726. initialize: function (a) {
  3727. this.B = a
  3728. return this.C
  3729. },
  3730. Pk: function (a) {
  3731. this.j.color = a + ''
  3732. },
  3733. n3: function () {
  3734. return this.j.color
  3735. },
  3736. LF: function (a) {
  3737. this.j.fd = (this.Uh[a] && this.Uh[a].name) || this.j.fd
  3738. },
  3739. sY: function () {
  3740. return this.j.fd
  3741. },
  3742. De: function () {
  3743. var a = this
  3744. K.load('control', function () {
  3745. a.zf()
  3746. })
  3747. },
  3748. })
  3749. var bc = 0
  3750. function mb(a) {
  3751. Vb.call(this)
  3752. a = a || {}
  3753. this.defaultAnchor = Xb
  3754. this.defaultOffset = new O(10, 10)
  3755. this.j = {
  3756. Cg: t,
  3757. mh: [La, Ya, Sa, Qa],
  3758. BW: ['B_DIMENSIONAL_MAP', 'B_SATELLITE_MAP', 'B_NORMAL_MAP'],
  3759. type: a.type || bc,
  3760. za: a.offset || this.defaultOffset,
  3761. dX: q,
  3762. }
  3763. this.uc(a.anchor)
  3764. '[object Array]' == Object.prototype.toString.call(a.mapTypes) &&
  3765. (this.j.mh = a.mapTypes.slice(0))
  3766. this.De()
  3767. }
  3768. z.lang.ta(mb, Vb, 'MapTypeControl')
  3769. z.object.extend(mb.prototype, {
  3770. initialize: function (a) {
  3771. this.B = a
  3772. return this.C
  3773. },
  3774. Xy: function (a) {
  3775. this.B.ao = a
  3776. },
  3777. De: function () {
  3778. var a = this
  3779. K.load(
  3780. 'control',
  3781. function () {
  3782. a.zf()
  3783. },
  3784. q
  3785. )
  3786. },
  3787. })
  3788. function cc(a) {
  3789. Vb.call(this)
  3790. a = a || {}
  3791. this.j = {
  3792. Cg: t,
  3793. za: a.offset,
  3794. anchor: a.anchor,
  3795. }
  3796. this.Ni = t
  3797. this.hw = s
  3798. this.QI = new dc({
  3799. of: 'api',
  3800. })
  3801. this.RI = new ec(s, {
  3802. of: 'api',
  3803. })
  3804. this.defaultAnchor = Xb
  3805. this.defaultOffset = new O(10, 10)
  3806. this.uc(a.anchor)
  3807. this.De()
  3808. Ra(va)
  3809. }
  3810. z.lang.ta(cc, Vb, 'PanoramaControl')
  3811. z.extend(cc.prototype, {
  3812. initialize: function (a) {
  3813. this.B = a
  3814. return this.C
  3815. },
  3816. De: function () {
  3817. var a = this
  3818. K.load('control', function () {
  3819. a.zf()
  3820. })
  3821. },
  3822. })
  3823. function fc(a) {
  3824. z.lang.Ca.call(this)
  3825. this.j = {
  3826. Wa: s,
  3827. cursor: 'default',
  3828. }
  3829. this.j = z.extend(this.j, a)
  3830. this.Mb = 'contextmenu'
  3831. this.B = s
  3832. this.xa = []
  3833. this.Kf = []
  3834. this.Fe = []
  3835. this.fx = this.qs = s
  3836. this.Kh = t
  3837. var b = this
  3838. K.load('menu', function () {
  3839. b.ib()
  3840. })
  3841. }
  3842. z.lang.ta(fc, z.lang.Ca, 'ContextMenu')
  3843. z.object.extend(fc.prototype, {
  3844. na: function (a, b) {
  3845. this.B = a
  3846. this.Cl = b || s
  3847. },
  3848. remove: function () {
  3849. this.B = this.Cl = s
  3850. },
  3851. Dw: function (a) {
  3852. if (a && !('menuitem' != a.Mb || '' == a.Wg || 0 >= a.Vi)) {
  3853. for (var b = 0, c = this.xa.length; b < c; b++)
  3854. if (this.xa[b] === a) return
  3855. this.xa.push(a)
  3856. this.Kf.push(a)
  3857. }
  3858. },
  3859. removeItem: function (a) {
  3860. if (a && 'menuitem' == a.Mb) {
  3861. for (var b = 0, c = this.xa.length; b < c; b++)
  3862. this.xa[b] === a && (this.xa[b].remove(), this.xa.splice(b, 1), c--)
  3863. b = 0
  3864. for (c = this.Kf.length; b < c; b++)
  3865. this.Kf[b] === a && (this.Kf[b].remove(), this.Kf.splice(b, 1), c--)
  3866. }
  3867. },
  3868. bC: function () {
  3869. this.xa.push({
  3870. Mb: 'divider',
  3871. Lj: this.Fe.length,
  3872. })
  3873. this.Fe.push({
  3874. D: s,
  3875. })
  3876. },
  3877. sF: function (a) {
  3878. if (this.Fe[a]) {
  3879. for (var b = 0, c = this.xa.length; b < c; b++)
  3880. this.xa[b] &&
  3881. 'divider' == this.xa[b].Mb &&
  3882. this.xa[b].Lj == a &&
  3883. (this.xa.splice(b, 1), c--),
  3884. this.xa[b] &&
  3885. 'divider' == this.xa[b].Mb &&
  3886. this.xa[b].Lj > a &&
  3887. this.xa[b].Lj--
  3888. this.Fe.splice(a, 1)
  3889. }
  3890. },
  3891. Jd: w('C'),
  3892. show: function () {
  3893. this.Kh != q && (this.Kh = q)
  3894. },
  3895. U: function () {
  3896. this.Kh != t && (this.Kh = t)
  3897. },
  3898. t_: function (a) {
  3899. a && (this.j.cursor = a)
  3900. },
  3901. getItem: function (a) {
  3902. return this.Kf[a]
  3903. },
  3904. })
  3905. var gc = G.qa + 'menu_zoom_in.png',
  3906. hc = G.qa + 'menu_zoom_out.png'
  3907. function ic(a, b, c) {
  3908. if (a && Xa(b)) {
  3909. z.lang.Ca.call(this)
  3910. this.j = {
  3911. width: 100,
  3912. id: '',
  3913. Dm: '',
  3914. }
  3915. c = c || {}
  3916. this.j.width = 1 * c.width ? c.width : 100
  3917. this.j.id = c.id ? c.id : ''
  3918. this.j.Dm = c.iconUrl ? c.iconUrl : ''
  3919. this.Wg = a + ''
  3920. this.Kz = b
  3921. this.B = s
  3922. this.Mb = 'menuitem'
  3923. this.Ur = this.yv = this.C = this.Eh = s
  3924. this.Ih = q
  3925. var e = this
  3926. K.load('menu', function () {
  3927. e.ib()
  3928. })
  3929. }
  3930. }
  3931. z.lang.ta(ic, z.lang.Ca, 'MenuItem')
  3932. z.object.extend(ic.prototype, {
  3933. na: function (a, b) {
  3934. this.B = a
  3935. this.Eh = b
  3936. },
  3937. remove: function () {
  3938. this.B = this.Eh = s
  3939. },
  3940. cu: function (a) {
  3941. a && (this.Wg = a + '')
  3942. },
  3943. Rb: function (a) {
  3944. a && (this.j.Dm = a)
  3945. },
  3946. Jd: w('C'),
  3947. enable: function () {
  3948. this.Ih = q
  3949. },
  3950. disable: function () {
  3951. this.Ih = t
  3952. },
  3953. })
  3954. function fb(a, b) {
  3955. a && !b && (b = a)
  3956. this.Ie = this.Xd = this.Ne = this.Zd = this.Pl = this.Al = s
  3957. a &&
  3958. ((this.Pl = new J(a.lng, a.lat)),
  3959. (this.Al = new J(b.lng, b.lat)),
  3960. (this.Ne = a.lng),
  3961. (this.Zd = a.lat),
  3962. (this.Ie = b.lng),
  3963. (this.Xd = b.lat))
  3964. }
  3965. z.object.extend(fb.prototype, {
  3966. tj: function () {
  3967. return !this.Pl || !this.Al
  3968. },
  3969. pb: function (a) {
  3970. return !(a instanceof fb) || this.tj()
  3971. ? t
  3972. : this.Ve().pb(a.Ve()) && this.Rf().pb(a.Rf())
  3973. },
  3974. Ve: w('Pl'),
  3975. Rf: w('Al'),
  3976. kW: function (a) {
  3977. return !(a instanceof fb) || this.tj() || a.tj()
  3978. ? t
  3979. : a.Ne > this.Ne && a.Ie < this.Ie && a.Zd > this.Zd && a.Xd < this.Xd
  3980. },
  3981. Ka: function () {
  3982. return this.tj()
  3983. ? s
  3984. : new J((this.Ne + this.Ie) / 2, (this.Zd + this.Xd) / 2)
  3985. },
  3986. ot: function (a) {
  3987. if (
  3988. !(a instanceof fb) ||
  3989. Math.max(a.Ne, a.Ie) < Math.min(this.Ne, this.Ie) ||
  3990. Math.min(a.Ne, a.Ie) > Math.max(this.Ne, this.Ie) ||
  3991. Math.max(a.Zd, a.Xd) < Math.min(this.Zd, this.Xd) ||
  3992. Math.min(a.Zd, a.Xd) > Math.max(this.Zd, this.Xd)
  3993. )
  3994. return s
  3995. var b = Math.max(this.Ne, a.Ne),
  3996. c = Math.min(this.Ie, a.Ie),
  3997. e = Math.max(this.Zd, a.Zd),
  3998. a = Math.min(this.Xd, a.Xd)
  3999. return new fb(new J(b, e), new J(c, a))
  4000. },
  4001. js: function (a) {
  4002. return !(a instanceof J) || this.tj()
  4003. ? t
  4004. : a.lng >= this.Ne &&
  4005. a.lng <= this.Ie &&
  4006. a.lat >= this.Zd &&
  4007. a.lat <= this.Xd
  4008. },
  4009. extend: function (a) {
  4010. if (a instanceof J) {
  4011. var b = a.lng,
  4012. a = a.lat
  4013. this.Pl || (this.Pl = new J(0, 0))
  4014. this.Al || (this.Al = new J(0, 0))
  4015. if (!this.Ne || this.Ne > b) this.Pl.lng = this.Ne = b
  4016. if (!this.Ie || this.Ie < b) this.Al.lng = this.Ie = b
  4017. if (!this.Zd || this.Zd > a) this.Pl.lat = this.Zd = a
  4018. if (!this.Xd || this.Xd < a) this.Al.lat = this.Xd = a
  4019. }
  4020. },
  4021. YF: function () {
  4022. return this.tj()
  4023. ? new J(0, 0)
  4024. : new J(Math.abs(this.Ie - this.Ne), Math.abs(this.Xd - this.Zd))
  4025. },
  4026. })
  4027. function J(a, b) {
  4028. isNaN(a) && ((a = Lb(a)), (a = isNaN(a) ? 0 : a))
  4029. $a(a) && (a = parseFloat(a))
  4030. isNaN(b) && ((b = Lb(b)), (b = isNaN(b) ? 0 : b))
  4031. $a(b) && (b = parseFloat(b))
  4032. this.lng = a
  4033. this.lat = b
  4034. }
  4035. J.yM = function (a) {
  4036. return a && 180 >= a.lng && -180 <= a.lng && 74 >= a.lat && -74 <= a.lat
  4037. }
  4038. J.prototype.pb = function (a) {
  4039. return a && this.lat == a.lat && this.lng == a.lng
  4040. }
  4041. function jc() {}
  4042. jc.prototype.kh = function () {
  4043. aa('lngLatToPoint\u65b9\u6cd5\u672a\u5b9e\u73b0')
  4044. }
  4045. jc.prototype.xj = function () {
  4046. aa('pointToLngLat\u65b9\u6cd5\u672a\u5b9e\u73b0')
  4047. }
  4048. function kc() {}
  4049. var eb = {
  4050. EK: function (a, b, c) {
  4051. K.load(
  4052. 'coordtransutils',
  4053. function () {
  4054. eb.AV(a, b, c)
  4055. },
  4056. q
  4057. )
  4058. },
  4059. DK: function (a, b, c) {
  4060. K.load(
  4061. 'coordtransutils',
  4062. function () {
  4063. eb.zV(a, b, c)
  4064. },
  4065. q
  4066. )
  4067. },
  4068. }
  4069. function lc() {
  4070. this.Pa = []
  4071. var a = this
  4072. K.load('convertor', function () {
  4073. a.qQ()
  4074. })
  4075. }
  4076. z.ta(lc, z.lang.Ca, 'Convertor')
  4077. z.extend(lc.prototype, {
  4078. translate: function (a, b, c, e) {
  4079. this.Pa.push({
  4080. method: 'translate',
  4081. arguments: [a, b, c, e],
  4082. })
  4083. },
  4084. })
  4085. T(lc.prototype, {
  4086. translate: lc.prototype.translate,
  4087. })
  4088. function S() {}
  4089. S.prototype = new jc()
  4090. z.extend(S, {
  4091. GP: 6370996.81,
  4092. IG: [1.289059486e7, 8362377.87, 5591021, 3481989.83, 1678043.12, 0],
  4093. Nu: [75, 60, 45, 30, 15, 0],
  4094. MP: [
  4095. [
  4096. 1.410526172116255e-8, 8.98305509648872e-6, -1.9939833816331,
  4097. 200.9824383106796, -187.2403703815547, 91.6087516669843,
  4098. -23.38765649603339, 2.57121317296198, -0.03801003308653, 1.73379812e7,
  4099. ],
  4100. [
  4101. -7.435856389565537e-9, 8.983055097726239e-6, -0.78625201886289,
  4102. 96.32687599759846, -1.85204757529826, -59.36935905485877,
  4103. 47.40033549296737, -16.50741931063887, 2.28786674699375, 1.026014486e7,
  4104. ],
  4105. [
  4106. -3.030883460898826e-8, 8.98305509983578e-6, 0.30071316287616,
  4107. 59.74293618442277, 7.357984074871, -25.38371002664745,
  4108. 13.45380521110908, -3.29883767235584, 0.32710905363475, 6856817.37,
  4109. ],
  4110. [
  4111. -1.981981304930552e-8, 8.983055099779535e-6, 0.03278182852591,
  4112. 40.31678527705744, 0.65659298677277, -4.44255534477492,
  4113. 0.85341911805263, 0.12923347998204, -0.04625736007561, 4482777.06,
  4114. ],
  4115. [
  4116. 3.09191371068437e-9, 8.983055096812155e-6, 6.995724062e-5,
  4117. 23.10934304144901, -2.3663490511e-4, -0.6321817810242,
  4118. -0.00663494467273, 0.03430082397953, -0.00466043876332, 2555164.4,
  4119. ],
  4120. [
  4121. 2.890871144776878e-9, 8.983055095805407e-6, -3.068298e-8,
  4122. 7.47137025468032, -3.53937994e-6, -0.02145144861037, -1.234426596e-5,
  4123. 1.0322952773e-4, -3.23890364e-6, 826088.5,
  4124. ],
  4125. ],
  4126. FG: [
  4127. [
  4128. -0.0015702102444, 111320.7020616939, 1704480524535203,
  4129. -10338987376042340, 26112667856603880, -35149669176653700,
  4130. 26595700718403920, -10725012454188240, 1800819912950474, 82.5,
  4131. ],
  4132. [
  4133. 8.277824516172526e-4, 111320.7020463578, 6.477955746671607e8,
  4134. -4.082003173641316e9, 1.077490566351142e10, -1.517187553151559e10,
  4135. 1.205306533862167e10, -5.124939663577472e9, 9.133119359512032e8, 67.5,
  4136. ],
  4137. [
  4138. 0.00337398766765, 111320.7020202162, 4481351.045890365,
  4139. -2.339375119931662e7, 7.968221547186455e7, -1.159649932797253e8,
  4140. 9.723671115602145e7, -4.366194633752821e7, 8477230.501135234, 52.5,
  4141. ],
  4142. [
  4143. 0.00220636496208, 111320.7020209128, 51751.86112841131,
  4144. 3796837.749470245, 992013.7397791013, -1221952.21711287,
  4145. 1340652.697009075, -620943.6990984312, 144416.9293806241, 37.5,
  4146. ],
  4147. [
  4148. -3.441963504368392e-4, 111320.7020576856, 278.2353980772752,
  4149. 2485758.690035394, 6070.750963243378, 54821.18345352118,
  4150. 9540.606633304236, -2710.55326746645, 1405.483844121726, 22.5,
  4151. ],
  4152. [
  4153. -3.218135878613132e-4, 111320.7020701615, 0.00369383431289,
  4154. 823725.6402795718, 0.46104986909093, 2351.343141331292,
  4155. 1.58060784298199, 8.77738589078284, 0.37238884252424, 7.45,
  4156. ],
  4157. ],
  4158. t3: function (a, b) {
  4159. if (!a || !b) return 0
  4160. var c,
  4161. e,
  4162. a = this.Tb(a)
  4163. if (!a) return 0
  4164. c = this.Xk(a.lng)
  4165. e = this.Xk(a.lat)
  4166. b = this.Tb(b)
  4167. return !b ? 0 : this.pf(c, this.Xk(b.lng), e, this.Xk(b.lat))
  4168. },
  4169. $o: function (a, b) {
  4170. if (!a || !b) return 0
  4171. a.lng = this.WD(a.lng, -180, 180)
  4172. a.lat = this.aE(a.lat, -74, 74)
  4173. b.lng = this.WD(b.lng, -180, 180)
  4174. b.lat = this.aE(b.lat, -74, 74)
  4175. return this.pf(
  4176. this.Xk(a.lng),
  4177. this.Xk(b.lng),
  4178. this.Xk(a.lat),
  4179. this.Xk(b.lat)
  4180. )
  4181. },
  4182. Tb: function (a) {
  4183. if (a === s || a === l) return new J(0, 0)
  4184. var b, c
  4185. b = new J(Math.abs(a.lng), Math.abs(a.lat))
  4186. for (var e = 0; e < this.IG.length; e++)
  4187. if (b.lat >= this.IG[e]) {
  4188. c = this.MP[e]
  4189. break
  4190. }
  4191. a = this.FK(a, c)
  4192. return (a = new J(a.lng.toFixed(6), a.lat.toFixed(6)))
  4193. },
  4194. Eb: function (a) {
  4195. if (
  4196. a === s ||
  4197. a === l ||
  4198. 180 < a.lng ||
  4199. -180 > a.lng ||
  4200. 90 < a.lat ||
  4201. -90 > a.lat
  4202. )
  4203. return new J(0, 0)
  4204. var b, c
  4205. a.lng = this.WD(a.lng, -180, 180)
  4206. a.lat = this.aE(a.lat, -74, 74)
  4207. b = new J(a.lng, a.lat)
  4208. for (var e = 0; e < this.Nu.length; e++)
  4209. if (b.lat >= this.Nu[e]) {
  4210. c = this.FG[e]
  4211. break
  4212. }
  4213. if (!c)
  4214. for (e = 0; e < this.Nu.length; e++)
  4215. if (b.lat <= -this.Nu[e]) {
  4216. c = this.FG[e]
  4217. break
  4218. }
  4219. a = this.FK(a, c)
  4220. return (a = new J(a.lng.toFixed(2), a.lat.toFixed(2)))
  4221. },
  4222. FK: function (a, b) {
  4223. if (a && b) {
  4224. var c = b[0] + b[1] * Math.abs(a.lng),
  4225. e = Math.abs(a.lat) / b[9],
  4226. e =
  4227. b[2] +
  4228. b[3] * e +
  4229. b[4] * e * e +
  4230. b[5] * e * e * e +
  4231. b[6] * e * e * e * e +
  4232. b[7] * e * e * e * e * e +
  4233. b[8] * e * e * e * e * e * e,
  4234. c = c * (0 > a.lng ? -1 : 1),
  4235. e = e * (0 > a.lat ? -1 : 1)
  4236. return new J(c, e)
  4237. }
  4238. },
  4239. pf: function (a, b, c, e) {
  4240. return (
  4241. this.GP *
  4242. Math.acos(
  4243. Math.sin(c) * Math.sin(e) +
  4244. Math.cos(c) * Math.cos(e) * Math.cos(b - a)
  4245. )
  4246. )
  4247. },
  4248. Xk: function (a) {
  4249. return (Math.PI * a) / 180
  4250. },
  4251. B5: function (a) {
  4252. return (180 * a) / Math.PI
  4253. },
  4254. aE: function (a, b, c) {
  4255. b != s && (a = Math.max(a, b))
  4256. c != s && (a = Math.min(a, c))
  4257. return a
  4258. },
  4259. WD: function (a, b, c) {
  4260. for (; a > c; ) a -= c - b
  4261. for (; a < b; ) a += c - b
  4262. return a
  4263. },
  4264. })
  4265. z.extend(S.prototype, {
  4266. vj: function (a) {
  4267. return S.Eb(a)
  4268. },
  4269. kh: function (a) {
  4270. a = S.Eb(a)
  4271. return new Q(a.lng, a.lat)
  4272. },
  4273. nh: function (a) {
  4274. return S.Tb(a)
  4275. },
  4276. xj: function (a) {
  4277. a = new J(a.x, a.y)
  4278. return S.Tb(a)
  4279. },
  4280. $b: function (a, b, c, e, f) {
  4281. if (a)
  4282. return (
  4283. (a = this.vj(a, f)),
  4284. (b = this.dc(b)),
  4285. new Q(
  4286. Math.round((a.lng - c.lng) / b + e.width / 2),
  4287. Math.round((c.lat - a.lat) / b + e.height / 2)
  4288. )
  4289. )
  4290. },
  4291. xb: function (a, b, c, e, f) {
  4292. if (a)
  4293. return (
  4294. (b = this.dc(b)),
  4295. this.nh(
  4296. new J(
  4297. c.lng + b * (a.x - e.width / 2),
  4298. c.lat - b * (a.y - e.height / 2)
  4299. ),
  4300. f
  4301. )
  4302. )
  4303. },
  4304. dc: function (a) {
  4305. return Math.pow(2, 18 - a)
  4306. },
  4307. })
  4308. function hb() {
  4309. this.$i = 'bj'
  4310. }
  4311. hb.prototype = new S()
  4312. z.extend(hb.prototype, {
  4313. vj: function (a, b) {
  4314. return this.bR(b, S.Eb(a))
  4315. },
  4316. nh: function (a, b) {
  4317. return S.Tb(this.cR(b, a))
  4318. },
  4319. lngLatToPointFor3D: function (a, b) {
  4320. var c = this,
  4321. e = S.Eb(a)
  4322. K.load(
  4323. 'coordtrans',
  4324. function () {
  4325. var a = kc.ZD(c.$i || 'bj', e),
  4326. a = new Q(a.x, a.y)
  4327. b && b(a)
  4328. },
  4329. q
  4330. )
  4331. },
  4332. pointToLngLatFor3D: function (a, b) {
  4333. var c = this,
  4334. e = new J(a.x, a.y)
  4335. K.load(
  4336. 'coordtrans',
  4337. function () {
  4338. var a = kc.XD(c.$i || 'bj', e),
  4339. a = new J(a.lng, a.lat),
  4340. a = S.Tb(a)
  4341. b && b(a)
  4342. },
  4343. q
  4344. )
  4345. },
  4346. bR: function (a, b) {
  4347. if (K.kb('coordtrans').Me == K.Cj.cq) {
  4348. var c = kc.ZD(a || 'bj', b)
  4349. return new J(c.x, c.y)
  4350. }
  4351. K.load('coordtrans', u())
  4352. return new J(0, 0)
  4353. },
  4354. cR: function (a, b) {
  4355. if (K.kb('coordtrans').Me == K.Cj.cq) {
  4356. var c = kc.XD(a || 'bj', b)
  4357. return new J(c.lng, c.lat)
  4358. }
  4359. K.load('coordtrans', u())
  4360. return new J(0, 0)
  4361. },
  4362. dc: function (a) {
  4363. return Math.pow(2, 20 - a)
  4364. },
  4365. })
  4366. function mc() {
  4367. this.Mb = 'overlay'
  4368. }
  4369. z.lang.ta(mc, z.lang.Ca, 'Overlay')
  4370. mc.Ck = function (a) {
  4371. a *= 1
  4372. return !a ? 0 : (-1e5 * a) << 1
  4373. }
  4374. z.extend(mc.prototype, {
  4375. He: function (a) {
  4376. if (!this.V && Xa(this.initialize) && (this.V = this.initialize(a)))
  4377. this.V.style.WebkitUserSelect = 'none'
  4378. this.draw()
  4379. },
  4380. initialize: function () {
  4381. aa('initialize\u65b9\u6cd5\u672a\u5b9e\u73b0')
  4382. },
  4383. draw: function () {
  4384. aa('draw\u65b9\u6cd5\u672a\u5b9e\u73b0')
  4385. },
  4386. remove: function () {
  4387. this.V && this.V.parentNode && this.V.parentNode.removeChild(this.V)
  4388. this.V = s
  4389. this.dispatchEvent(new P('onremove'))
  4390. },
  4391. U: function () {
  4392. this.V && z.D.U(this.V)
  4393. },
  4394. show: function () {
  4395. this.V && z.D.show(this.V)
  4396. },
  4397. jh: function () {
  4398. return !this.V ||
  4399. 'none' == this.V.style.display ||
  4400. 'hidden' == this.V.style.visibility
  4401. ? t
  4402. : q
  4403. },
  4404. })
  4405. B.Ye(function (a) {
  4406. function b(a, b) {
  4407. var c = L('div'),
  4408. i = c.style
  4409. i.position = 'absolute'
  4410. i.top = i.left = i.width = i.height = '0'
  4411. i.zIndex = b
  4412. a.appendChild(c)
  4413. return c
  4414. }
  4415. var c = a.R
  4416. c.rd = a.rd = b(a.platform, 200)
  4417. a.Yd.BD = b(c.rd, 800)
  4418. a.Yd.RE = b(c.rd, 700)
  4419. a.Yd.sL = b(c.rd, 600)
  4420. a.Yd.KE = b(c.rd, 500)
  4421. a.Yd.fN = b(c.rd, 400)
  4422. a.Yd.gN = b(c.rd, 300)
  4423. a.Yd.nP = b(c.rd, 201)
  4424. a.Yd.Et = b(c.rd, 200)
  4425. })
  4426. function gb() {
  4427. z.lang.Ca.call(this)
  4428. mc.call(this)
  4429. this.map = s
  4430. this.Qa = q
  4431. this.zb = s
  4432. this.vH = 0
  4433. }
  4434. z.lang.ta(gb, mc, 'OverlayInternal')
  4435. z.extend(gb.prototype, {
  4436. initialize: function (a) {
  4437. this.map = a
  4438. z.lang.Ca.call(this, this.aa)
  4439. return s
  4440. },
  4441. Dx: w('map'),
  4442. draw: u(),
  4443. Ej: u(),
  4444. remove: function () {
  4445. this.map = s
  4446. z.lang.hx(this.aa)
  4447. mc.prototype.remove.call(this)
  4448. },
  4449. U: function () {
  4450. this.Qa !== t && (this.Qa = t)
  4451. },
  4452. show: function () {
  4453. this.Qa !== q && (this.Qa = q)
  4454. },
  4455. jh: function () {
  4456. return !this.V ? t : !!this.Qa
  4457. },
  4458. La: w('V'),
  4459. lO: function (a) {
  4460. var a = a || {},
  4461. b
  4462. for (b in a) this.z[b] = a[b]
  4463. },
  4464. Sp: ba('zIndex'),
  4465. gj: function () {
  4466. this.z.gj = q
  4467. },
  4468. MW: function () {
  4469. this.z.gj = t
  4470. },
  4471. yo: ba('lg'),
  4472. Cp: function () {
  4473. this.lg = s
  4474. },
  4475. })
  4476. function nc() {
  4477. this.map = s
  4478. this.ya = {}
  4479. this.Ee = []
  4480. }
  4481. B.Ye(function (a) {
  4482. var b = new nc()
  4483. b.map = a
  4484. a.ya = b.ya
  4485. a.Ee = b.Ee
  4486. a.addEventListener('load', function (a) {
  4487. b.draw(a)
  4488. })
  4489. a.addEventListener('moveend', function (a) {
  4490. b.draw(a)
  4491. })
  4492. ;(z.ca.ia && 8 > z.ca.ia) || 'BackCompat' === document.compatMode
  4493. ? a.addEventListener('zoomend', function (a) {
  4494. setTimeout(function () {
  4495. b.draw(a)
  4496. }, 20)
  4497. })
  4498. : a.addEventListener('zoomend', function (a) {
  4499. b.draw(a)
  4500. })
  4501. a.addEventListener('maptypechange', function (a) {
  4502. b.draw(a)
  4503. })
  4504. a.addEventListener('addoverlay', function (a) {
  4505. a = a.target
  4506. if (a instanceof gb) b.ya[a.aa] || (b.ya[a.aa] = a)
  4507. else {
  4508. for (var e = t, f = 0, g = b.Ee.length; f < g; f++)
  4509. if (b.Ee[f] === a) {
  4510. e = q
  4511. break
  4512. }
  4513. e || b.Ee.push(a)
  4514. }
  4515. })
  4516. a.addEventListener('removeoverlay', function (a) {
  4517. a = a.target
  4518. if (a instanceof gb) delete b.ya[a.aa]
  4519. else
  4520. for (var e = 0, f = b.Ee.length; e < f; e++)
  4521. if (b.Ee[e] === a) {
  4522. b.Ee.splice(e, 1)
  4523. break
  4524. }
  4525. })
  4526. a.addEventListener('clearoverlays', function () {
  4527. this.Yc()
  4528. for (var a in b.ya) b.ya[a].z.gj && (b.ya[a].remove(), delete b.ya[a])
  4529. a = 0
  4530. for (var e = b.Ee.length; a < e; a++)
  4531. b.Ee[a].enableMassClear !== t &&
  4532. (b.Ee[a].remove(), (b.Ee[a] = s), b.Ee.splice(a, 1), a--, e--)
  4533. })
  4534. a.addEventListener('infowindowopen', function () {
  4535. var a = this.zb
  4536. a && (z.D.U(a.Ac), z.D.U(a.ac))
  4537. })
  4538. a.addEventListener('movestart', function () {
  4539. this.hh() && this.hh().mJ()
  4540. })
  4541. a.addEventListener('moveend', function () {
  4542. this.hh() && this.hh().cJ()
  4543. })
  4544. })
  4545. nc.prototype.draw = function (a) {
  4546. if (B.hq) {
  4547. var b = B.hq.Ws(this.map)
  4548. 'canvas' === b.Mb && b.canvas && b.XQ(b.canvas.getContext('2d'))
  4549. }
  4550. for (var c in this.ya) this.ya[c].draw(a)
  4551. z.mc.Fb(this.Ee, function (a) {
  4552. a.draw()
  4553. })
  4554. this.map.R.qb && this.map.R.qb.sa()
  4555. B.hq && b.IF()
  4556. }
  4557. function oc(a) {
  4558. gb.call(this)
  4559. a = a || {}
  4560. this.z = {
  4561. strokeColor: a.strokeColor || '#3a6bdb',
  4562. rc: a.strokeWeight || 5,
  4563. td: a.strokeOpacity || 0.65,
  4564. strokeStyle: a.strokeStyle || 'solid',
  4565. gj: a.enableMassClear === t ? t : q,
  4566. zk: s,
  4567. um: s,
  4568. mf: a.enableEditing === q ? q : t,
  4569. kN: 5,
  4570. G0: t,
  4571. jf: a.enableClicking === t ? t : q,
  4572. ji: a.icons && 0 < a.icons.length ? a.icons : s,
  4573. }
  4574. 0 >= this.z.rc && (this.z.rc = 5)
  4575. if (0 > this.z.td || 1 < this.z.td) this.z.td = 0.65
  4576. if (0 > this.z.tg || 1 < this.z.tg) this.z.tg = 0.65
  4577. 'solid' != this.z.strokeStyle &&
  4578. 'dashed' != this.z.strokeStyle &&
  4579. (this.z.strokeStyle = 'solid')
  4580. this.V = s
  4581. this.Vu = new fb(0, 0)
  4582. this.gf = []
  4583. this.tc = []
  4584. this.Ra = {}
  4585. }
  4586. z.lang.ta(oc, gb, 'Graph')
  4587. oc.yx = function (a) {
  4588. var b = []
  4589. if (!a) return b
  4590. $a(a) &&
  4591. z.mc.Fb(a.split(';'), function (a) {
  4592. a = a.split(',')
  4593. b.push(new J(a[0], a[1]))
  4594. })
  4595. '[object Array]' == Object.prototype.toString.apply(a) &&
  4596. 0 < a.length &&
  4597. (b = a)
  4598. return b
  4599. }
  4600. oc.eF = [0.09, 0.005, 1.0e-4, 1.0e-5]
  4601. z.extend(oc.prototype, {
  4602. initialize: function (a) {
  4603. this.map = a
  4604. return s
  4605. },
  4606. draw: u(),
  4607. Mr: function (a) {
  4608. this.gf.length = 0
  4609. this.ja = oc.yx(a).slice(0)
  4610. this.Bh()
  4611. },
  4612. ke: function (a) {
  4613. this.Mr(a)
  4614. },
  4615. Bh: function () {
  4616. if (this.ja) {
  4617. var a = this
  4618. a.Vu = new fb()
  4619. z.mc.Fb(this.ja, function (b) {
  4620. a.Vu.extend(b)
  4621. })
  4622. }
  4623. },
  4624. Ue: w('ja'),
  4625. gn: function (a, b) {
  4626. b &&
  4627. this.ja[a] &&
  4628. ((this.gf.length = 0), (this.ja[a] = new J(b.lng, b.lat)), this.Bh())
  4629. },
  4630. setStrokeColor: function (a) {
  4631. this.z.strokeColor = a
  4632. },
  4633. jY: function () {
  4634. return this.z.strokeColor
  4635. },
  4636. Rp: function (a) {
  4637. 0 < a && (this.z.rc = a)
  4638. },
  4639. WL: function () {
  4640. return this.z.rc
  4641. },
  4642. Pp: function (a) {
  4643. a == l || 1 < a || 0 > a || (this.z.td = a)
  4644. },
  4645. kY: function () {
  4646. return this.z.td
  4647. },
  4648. Xt: function (a) {
  4649. 1 < a || 0 > a || (this.z.tg = a)
  4650. },
  4651. HX: function () {
  4652. return this.z.tg
  4653. },
  4654. Qp: function (a) {
  4655. ;('solid' != a && 'dashed' != a) || (this.z.strokeStyle = a)
  4656. },
  4657. VL: function () {
  4658. return this.z.strokeStyle
  4659. },
  4660. setFillColor: function (a) {
  4661. this.z.fillColor = a || ''
  4662. },
  4663. GX: function () {
  4664. return this.z.fillColor
  4665. },
  4666. ve: w('Vu'),
  4667. remove: function () {
  4668. this.map && this.map.removeEventListener('onmousemove', this.vv)
  4669. gb.prototype.remove.call(this)
  4670. this.gf.length = 0
  4671. },
  4672. mf: function () {
  4673. if (!(2 > this.ja.length)) {
  4674. this.z.mf = q
  4675. var a = this
  4676. K.load(
  4677. 'poly',
  4678. function () {
  4679. a.Ul()
  4680. },
  4681. q
  4682. )
  4683. }
  4684. },
  4685. LW: function () {
  4686. this.z.mf = t
  4687. var a = this
  4688. K.load(
  4689. 'poly',
  4690. function () {
  4691. a.nk()
  4692. },
  4693. q
  4694. )
  4695. },
  4696. DX: function () {
  4697. return this.z.mf
  4698. },
  4699. })
  4700. function pc(a) {
  4701. gb.call(this)
  4702. this.V = this.map = s
  4703. this.z = {
  4704. width: 0,
  4705. height: 0,
  4706. za: new O(0, 0),
  4707. opacity: 1,
  4708. background: 'transparent',
  4709. ey: 1,
  4710. SM: '#000',
  4711. hZ: 'solid',
  4712. point: s,
  4713. }
  4714. this.lO(a)
  4715. this.point = this.z.point
  4716. }
  4717. z.lang.ta(pc, gb, 'Division')
  4718. z.extend(pc.prototype, {
  4719. Ej: function () {
  4720. var a = this.z,
  4721. b = this.content,
  4722. c = ['<div class="BMap_Division" style="position:absolute;']
  4723. c.push('width:' + a.width + 'px;display:block;')
  4724. c.push('overflow:hidden;')
  4725. 'none' != a.borderColor &&
  4726. c.push('border:' + a.ey + 'px ' + a.hZ + ' ' + a.SM + ';')
  4727. c.push(
  4728. 'opacity:' + a.opacity + '; filter:(opacity=' + 100 * a.opacity + ')'
  4729. )
  4730. c.push('background:' + a.background + ';')
  4731. c.push('z-index:60;">')
  4732. c.push(b)
  4733. c.push('</div>')
  4734. this.V = Ab(this.map.Tf().RE, c.join(''))
  4735. },
  4736. initialize: function (a) {
  4737. this.map = a
  4738. this.Ej()
  4739. this.V &&
  4740. z.M(this.V, H() ? 'touchstart' : 'mousedown', function (a) {
  4741. ma(a)
  4742. })
  4743. return this.V
  4744. },
  4745. draw: function () {
  4746. var a = this.map.Xe(this.z.point)
  4747. this.z.za = new O(
  4748. -Math.round(this.z.width / 2) - Math.round(this.z.ey),
  4749. -Math.round(this.z.height / 2) - Math.round(this.z.ey)
  4750. )
  4751. this.V.style.left = a.x + this.z.za.width + 'px'
  4752. this.V.style.top = a.y + this.z.za.height + 'px'
  4753. },
  4754. ga: function () {
  4755. return this.z.point
  4756. },
  4757. L1: function () {
  4758. return this.map.$b(this.ga())
  4759. },
  4760. sa: function (a) {
  4761. this.z.point = a
  4762. this.draw()
  4763. },
  4764. u_: function (a, b) {
  4765. this.z.width = Math.round(a)
  4766. this.z.height = Math.round(b)
  4767. this.V &&
  4768. ((this.V.style.width = this.z.width + 'px'),
  4769. (this.V.style.height = this.z.height + 'px'),
  4770. this.draw())
  4771. },
  4772. })
  4773. function qc(a, b, c) {
  4774. a &&
  4775. b &&
  4776. ((this.imageUrl = a),
  4777. (this.size = b),
  4778. (a = new O(Math.floor(b.width / 2), Math.floor(b.height / 2))),
  4779. (c = c || {}),
  4780. (a = c.anchor || a),
  4781. (b = c.imageOffset || new O(0, 0)),
  4782. (this.imageSize = c.imageSize),
  4783. (this.anchor = a),
  4784. (this.imageOffset = b),
  4785. (this.infoWindowAnchor = c.infoWindowAnchor || this.anchor),
  4786. (this.printImageUrl = c.printImageUrl || ''))
  4787. }
  4788. z.extend(qc.prototype, {
  4789. mO: function (a) {
  4790. a && (this.imageUrl = a)
  4791. },
  4792. K_: function (a) {
  4793. a && (this.printImageUrl = a)
  4794. },
  4795. Ce: function (a) {
  4796. a && (this.size = new O(a.width, a.height))
  4797. },
  4798. uc: function (a) {
  4799. a && (this.anchor = new O(a.width, a.height))
  4800. },
  4801. Yt: function (a) {
  4802. a && (this.imageOffset = new O(a.width, a.height))
  4803. },
  4804. z_: function (a) {
  4805. a && (this.infoWindowAnchor = new O(a.width, a.height))
  4806. },
  4807. w_: function (a) {
  4808. a && (this.imageSize = new O(a.width, a.height))
  4809. },
  4810. toString: ca('Icon'),
  4811. })
  4812. function rc(a, b) {
  4813. if (a) {
  4814. b = b || {}
  4815. this.style = {
  4816. anchor: b.anchor || new O(0, 0),
  4817. fillColor: b.fillColor || '#000',
  4818. tg: b.fillOpacity || 0,
  4819. scale: b.scale || 1,
  4820. rotation: b.rotation || 0,
  4821. strokeColor: b.strokeColor || '#000',
  4822. td: b.strokeOpacity || 1,
  4823. rc: b.strokeWeight,
  4824. }
  4825. this.Mb = 'number' === typeof a ? a : 'UserDefined'
  4826. this.Di = this.style.anchor
  4827. this.rr = new O(0, 0)
  4828. this.anchor = s
  4829. this.vB = a
  4830. var c = this
  4831. K.load(
  4832. 'symbol',
  4833. function () {
  4834. c.Mn()
  4835. },
  4836. q
  4837. )
  4838. }
  4839. }
  4840. z.extend(rc.prototype, {
  4841. setPath: ba('vB'),
  4842. setAnchor: function (a) {
  4843. this.Di = this.style.anchor = a
  4844. },
  4845. setRotation: function (a) {
  4846. this.style.rotation = a
  4847. },
  4848. setScale: function (a) {
  4849. this.style.scale = a
  4850. },
  4851. setStrokeWeight: function (a) {
  4852. this.style.rc = a
  4853. },
  4854. setStrokeColor: function (a) {
  4855. a = z.is.AC(a, this.style.td)
  4856. this.style.strokeColor = a
  4857. },
  4858. setStrokeOpacity: function (a) {
  4859. this.style.td = a
  4860. },
  4861. setFillOpacity: function (a) {
  4862. this.style.tg = a
  4863. },
  4864. setFillColor: function (a) {
  4865. this.style.fillColor = a
  4866. },
  4867. })
  4868. function sc(a, b, c, e) {
  4869. a &&
  4870. ((this.Ov = {}),
  4871. (this.qL = e ? !!e : t),
  4872. (this.Vc = []),
  4873. (this.c0 = a instanceof rc ? a : s),
  4874. (this.WI = b === l ? q : !!(b.indexOf('%') + 1)),
  4875. (this.Zj = isNaN(parseFloat(b))
  4876. ? 1
  4877. : this.WI
  4878. ? parseFloat(b) / 100
  4879. : parseFloat(b)),
  4880. (this.XI = !!(c.indexOf('%') + 1)),
  4881. (this.repeat =
  4882. c != l ? (this.XI ? parseFloat(c) / 100 : parseFloat(c)) : 0))
  4883. }
  4884. function tc(a, b) {
  4885. z.lang.Ca.call(this)
  4886. this.content = a
  4887. this.map = s
  4888. b = b || {}
  4889. this.z = {
  4890. width: b.width || 0,
  4891. height: b.height || 0,
  4892. maxWidth: b.maxWidth || 730,
  4893. za: b.offset || new O(0, 0),
  4894. title: b.title || '',
  4895. SE: b.maxContent || '',
  4896. dh: b.enableMaximize || t,
  4897. Ls: b.enableAutoPan === t ? t : q,
  4898. lD: b.enableCloseOnClick === t ? t : q,
  4899. margin: b.margin || [10, 10, 40, 10],
  4900. vC: b.collisions || [
  4901. [10, 10],
  4902. [10, 10],
  4903. [10, 10],
  4904. [10, 10],
  4905. ],
  4906. GY: t,
  4907. AZ: b.onClosing || ca(q),
  4908. hL: t,
  4909. qD: b.enableParano === q ? q : t,
  4910. message: b.message,
  4911. sD: b.enableSearchTool === q ? q : t,
  4912. Ox: b.headerContent || '',
  4913. mD: b.enableContentScroll || t,
  4914. }
  4915. if (
  4916. 0 != this.z.width &&
  4917. (220 > this.z.width && (this.z.width = 220), 730 < this.z.width)
  4918. )
  4919. this.z.width = 730
  4920. if (
  4921. 0 != this.z.height &&
  4922. (60 > this.z.height && (this.z.height = 60), 650 < this.z.height)
  4923. )
  4924. this.z.height = 650
  4925. if (
  4926. 0 != this.z.maxWidth &&
  4927. (220 > this.z.maxWidth && (this.z.maxWidth = 220), 730 < this.z.maxWidth)
  4928. )
  4929. this.z.maxWidth = 730
  4930. this.de = t
  4931. this.yi = G.qa
  4932. this.fb = s
  4933. var c = this
  4934. K.load('infowindow', function () {
  4935. c.ib()
  4936. })
  4937. }
  4938. z.lang.ta(tc, z.lang.Ca, 'InfoWindow')
  4939. z.extend(tc.prototype, {
  4940. setWidth: function (a) {
  4941. ;(!a && 0 != a) ||
  4942. isNaN(a) ||
  4943. 0 > a ||
  4944. (0 != a && (220 > a && (a = 220), 730 < a && (a = 730)),
  4945. (this.z.width = a))
  4946. },
  4947. setHeight: function (a) {
  4948. ;(!a && 0 != a) ||
  4949. isNaN(a) ||
  4950. 0 > a ||
  4951. (0 != a && (60 > a && (a = 60), 650 < a && (a = 650)),
  4952. (this.z.height = a))
  4953. },
  4954. qO: function (a) {
  4955. ;(!a && 0 != a) ||
  4956. isNaN(a) ||
  4957. 0 > a ||
  4958. (0 != a && (220 > a && (a = 220), 730 < a && (a = 730)),
  4959. (this.z.maxWidth = a))
  4960. },
  4961. Ec: function (a) {
  4962. this.z.title = a
  4963. },
  4964. getTitle: function () {
  4965. return this.z.title
  4966. },
  4967. dd: ba('content'),
  4968. xk: w('content'),
  4969. $t: function (a) {
  4970. this.z.SE = a + ''
  4971. },
  4972. je: u(),
  4973. Ls: function () {
  4974. this.z.Ls = q
  4975. },
  4976. disableAutoPan: function () {
  4977. this.z.Ls = t
  4978. },
  4979. enableCloseOnClick: function () {
  4980. this.z.lD = q
  4981. },
  4982. disableCloseOnClick: function () {
  4983. this.z.lD = t
  4984. },
  4985. dh: function () {
  4986. this.z.dh = q
  4987. },
  4988. kx: function () {
  4989. this.z.dh = t
  4990. },
  4991. show: function () {
  4992. this.Qa = q
  4993. },
  4994. U: function () {
  4995. this.Qa = t
  4996. },
  4997. close: function () {
  4998. this.U()
  4999. },
  5000. hy: function () {
  5001. this.de = q
  5002. },
  5003. restore: function () {
  5004. this.de = t
  5005. },
  5006. jh: function () {
  5007. return this.Xa()
  5008. },
  5009. Xa: ca(t),
  5010. ga: function () {
  5011. if (this.fb && this.fb.ga) return this.fb.ga()
  5012. },
  5013. Sf: function () {
  5014. return this.z.za
  5015. },
  5016. })
  5017. Ka.prototype.pc = function (a, b) {
  5018. if (a instanceof tc && b instanceof J) {
  5019. var c = this.R
  5020. c.Nm
  5021. ? c.Nm.sa(b)
  5022. : ((c.Nm = new U(b, {
  5023. icon: new qc(G.qa + 'blank.gif', {
  5024. width: 1,
  5025. height: 1,
  5026. }),
  5027. offset: new O(0, 0),
  5028. clickable: t,
  5029. })),
  5030. (c.Nm.bS = 1))
  5031. this.Ga(c.Nm)
  5032. c.Nm.pc(a)
  5033. }
  5034. }
  5035. Ka.prototype.Yc = function () {
  5036. var a = this.R.qb || this.R.rl
  5037. a && a.fb && a.fb.Yc()
  5038. }
  5039. gb.prototype.pc = function (a) {
  5040. this.map &&
  5041. (this.map.Yc(),
  5042. (a.Qa = q),
  5043. (this.map.R.rl = a),
  5044. (a.fb = this),
  5045. z.lang.Ca.call(a, a.aa))
  5046. }
  5047. gb.prototype.Yc = function () {
  5048. this.map &&
  5049. this.map.R.rl &&
  5050. ((this.map.R.rl.Qa = t), z.lang.hx(this.map.R.rl.aa), (this.map.R.rl = s))
  5051. }
  5052. function uc(a, b) {
  5053. gb.call(this)
  5054. this.content = a
  5055. this.V = this.map = s
  5056. b = b || {}
  5057. this.z = {
  5058. width: 0,
  5059. za: b.offset || new O(0, 0),
  5060. Wp: {
  5061. backgroundColor: '#fff',
  5062. border: '1px solid #f00',
  5063. padding: '1px',
  5064. whiteSpace: 'nowrap',
  5065. font: '12px ' + G.fontFamily,
  5066. zIndex: '80',
  5067. MozUserSelect: 'none',
  5068. },
  5069. position: b.position || s,
  5070. gj: b.enableMassClear === t ? t : q,
  5071. jf: q,
  5072. }
  5073. 0 > this.z.width && (this.z.width = 0)
  5074. Hb(b.enableClicking) && (this.z.jf = b.enableClicking)
  5075. this.point = this.z.position
  5076. var c = this
  5077. K.load('marker', function () {
  5078. c.ib()
  5079. })
  5080. }
  5081. z.lang.ta(uc, gb, 'Label')
  5082. z.extend(uc.prototype, {
  5083. ga: function () {
  5084. return this.Dv ? this.Dv.ga() : this.point
  5085. },
  5086. sa: function (a) {
  5087. a instanceof J &&
  5088. !this.Ex() &&
  5089. (this.point = this.z.position = new J(a.lng, a.lat))
  5090. },
  5091. dd: ba('content'),
  5092. HF: function (a) {
  5093. 0 <= a && 1 >= a && (this.z.opacity = a)
  5094. },
  5095. Ze: function (a) {
  5096. a instanceof O && (this.z.za = new O(a.width, a.height))
  5097. },
  5098. Sf: function () {
  5099. return this.z.za
  5100. },
  5101. Md: function (a) {
  5102. a = a || {}
  5103. this.z.Wp = z.extend(this.z.Wp, a)
  5104. },
  5105. ti: function (a) {
  5106. return this.Md(a)
  5107. },
  5108. Ec: function (a) {
  5109. this.z.title = a || ''
  5110. },
  5111. getTitle: function () {
  5112. return this.z.title
  5113. },
  5114. pO: function (a) {
  5115. this.point = (this.Dv = a)
  5116. ? (this.z.position = a.ga())
  5117. : (this.z.position = s)
  5118. },
  5119. Ex: function () {
  5120. return this.Dv || s
  5121. },
  5122. xk: w('content'),
  5123. })
  5124. function vc(a, b) {
  5125. if (0 !== arguments.length) {
  5126. gb.apply(this, arguments)
  5127. b = b || {}
  5128. this.z = {
  5129. bb: a,
  5130. opacity: b.opacity || 1,
  5131. Gm: b.Gm || '',
  5132. Bs: b.displayOnMinLevel || 1,
  5133. gj: b.enableMassClear === t ? t : q,
  5134. As: b.displayOnMaxLevel || 19,
  5135. X_: b.stretch || t,
  5136. }
  5137. var c = this
  5138. K.load('groundoverlay', function () {
  5139. c.ib()
  5140. })
  5141. }
  5142. }
  5143. z.lang.ta(vc, gb, 'GroundOverlay')
  5144. z.extend(vc.prototype, {
  5145. setBounds: function (a) {
  5146. this.z.bb = a
  5147. },
  5148. getBounds: function () {
  5149. return this.z.bb
  5150. },
  5151. setOpacity: function (a) {
  5152. this.z.opacity = a
  5153. },
  5154. getOpacity: function () {
  5155. return this.z.opacity
  5156. },
  5157. setImageURL: function (a) {
  5158. this.z.Gm = a
  5159. },
  5160. getImageURL: function () {
  5161. return this.z.Gm
  5162. },
  5163. setDisplayOnMinLevel: function (a) {
  5164. this.z.Bs = a
  5165. },
  5166. getDisplayOnMinLevel: function () {
  5167. return this.z.Bs
  5168. },
  5169. setDisplayOnMaxLevel: function (a) {
  5170. this.z.As = a
  5171. },
  5172. getDisplayOnMaxLevel: function () {
  5173. return this.z.As
  5174. },
  5175. })
  5176. var wc = 3,
  5177. xc = 4
  5178. function yc() {
  5179. var a = document.createElement('canvas')
  5180. return !(!a.getContext || !a.getContext('2d'))
  5181. }
  5182. function zc(a, b) {
  5183. var c = this
  5184. yc() &&
  5185. (a === l && aa(Error('\u6ca1\u6709\u4f20\u5165points\u6570\u636e')),
  5186. '[object Array]' !== Object.prototype.toString.call(a) &&
  5187. aa(Error('points\u6570\u636e\u4e0d\u662f\u6570\u7ec4')),
  5188. (b = b || {}),
  5189. gb.apply(c, arguments),
  5190. (c.ea = {
  5191. ja: a,
  5192. }),
  5193. (c.z = {
  5194. shape: b.shape || wc,
  5195. size: b.size || xc,
  5196. color: b.color || '#fa937e',
  5197. gj: q,
  5198. }),
  5199. (this.sB = []),
  5200. (this.pe = []),
  5201. K.load('pointcollection', function () {
  5202. for (var a = 0, b; (b = c.sB[a]); a++) c[b.method].apply(c, b.arguments)
  5203. for (a = 0; (b = c.pe[a]); a++) c[b.method].apply(c, b.arguments)
  5204. }))
  5205. }
  5206. z.lang.ta(zc, gb, 'PointCollection')
  5207. z.extend(zc.prototype, {
  5208. initialize: function (a) {
  5209. this.sB &&
  5210. this.sB.push({
  5211. method: 'initialize',
  5212. arguments: arguments,
  5213. })
  5214. },
  5215. setPoints: function (a) {
  5216. this.pe &&
  5217. this.pe.push({
  5218. method: 'setPoints',
  5219. arguments: arguments,
  5220. })
  5221. },
  5222. setStyles: function (a) {
  5223. this.pe &&
  5224. this.pe.push({
  5225. method: 'setStyles',
  5226. arguments: arguments,
  5227. })
  5228. },
  5229. clear: function () {
  5230. this.pe &&
  5231. this.pe.push({
  5232. method: 'clear',
  5233. arguments: arguments,
  5234. })
  5235. },
  5236. remove: function () {
  5237. this.pe &&
  5238. this.pe.push({
  5239. method: 'remove',
  5240. arguments: arguments,
  5241. })
  5242. },
  5243. })
  5244. var Ac = new qc(G.qa + 'marker_red_sprite.png', new O(19, 25), {
  5245. anchor: new O(10, 25),
  5246. infoWindowAnchor: new O(10, 0),
  5247. }),
  5248. Bc = new qc(G.qa + 'marker_red_sprite.png', new O(20, 11), {
  5249. anchor: new O(6, 11),
  5250. imageOffset: new O(-19, -13),
  5251. })
  5252. function U(a, b) {
  5253. gb.call(this)
  5254. b = b || {}
  5255. this.point = a
  5256. this.yq = this.map = s
  5257. this.z = {
  5258. za: b.offset || new O(0, 0),
  5259. rj: b.icon || Ac,
  5260. Sk: Bc,
  5261. title: b.title || '',
  5262. label: s,
  5263. lK: b.baseZIndex || 0,
  5264. jf: q,
  5265. X5: t,
  5266. EE: t,
  5267. gj: b.enableMassClear === t ? t : q,
  5268. Wb: t,
  5269. UN: b.raiseOnDrag === q ? q : t,
  5270. aO: t,
  5271. Hd: b.draggingCursor || G.Hd,
  5272. rotation: b.rotation || 0,
  5273. }
  5274. b.icon && !b.shadow && (this.z.Sk = s)
  5275. b.enableDragging && (this.z.Wb = b.enableDragging)
  5276. Hb(b.enableClicking) && (this.z.jf = b.enableClicking)
  5277. var c = this
  5278. K.load('marker', function () {
  5279. c.ib()
  5280. })
  5281. }
  5282. U.Qu = mc.Ck(-90) + 1e6
  5283. U.AG = U.Qu + 1e6
  5284. z.lang.ta(U, gb, 'Marker')
  5285. z.extend(U.prototype, {
  5286. Rb: function (a) {
  5287. if (a instanceof qc || a instanceof rc) this.z.rj = a
  5288. },
  5289. ap: function () {
  5290. return this.z.rj
  5291. },
  5292. Oy: function (a) {
  5293. a instanceof qc && (this.z.Sk = a)
  5294. },
  5295. getShadow: function () {
  5296. return this.z.Sk
  5297. },
  5298. dn: function (a) {
  5299. this.z.label = a || s
  5300. },
  5301. VD: function () {
  5302. return this.z.label
  5303. },
  5304. Wb: function () {
  5305. this.z.Wb = q
  5306. },
  5307. TC: function () {
  5308. this.z.Wb = t
  5309. },
  5310. ga: w('point'),
  5311. sa: function (a) {
  5312. a instanceof J && (this.point = new J(a.lng, a.lat))
  5313. },
  5314. ui: function (a, b) {
  5315. this.z.EE = !!a
  5316. a && (this.XG = b || 0)
  5317. },
  5318. Ec: function (a) {
  5319. this.z.title = a + ''
  5320. },
  5321. getTitle: function () {
  5322. return this.z.title
  5323. },
  5324. Ze: function (a) {
  5325. a instanceof O && (this.z.za = a)
  5326. },
  5327. Sf: function () {
  5328. return this.z.za
  5329. },
  5330. bn: ba('yq'),
  5331. Op: function (a) {
  5332. this.z.rotation = a
  5333. },
  5334. TL: function () {
  5335. return this.z.rotation
  5336. },
  5337. })
  5338. function Cc(a) {
  5339. this.options = a || {}
  5340. this.GZ = this.options.paneName || 'labelPane'
  5341. this.zIndex = this.options.zIndex || 0
  5342. }
  5343. z.lang.ta(Cc, gb, 'CanvasLayer')
  5344. Cc.prototype.initialize = function (a) {
  5345. this.B = a
  5346. var b = (this.canvas = document.createElement('canvas')),
  5347. c = this.canvas.getContext('2d')
  5348. b.style.cssText =
  5349. 'position:absolute;left:0;top:0;z-index:' + this.zIndex + ';'
  5350. Dc(this)
  5351. Ec(c)
  5352. a.getPanes()[this.GZ].appendChild(b)
  5353. var e = this
  5354. a.addEventListener('resize', function () {
  5355. Dc(e)
  5356. e.ib()
  5357. })
  5358. return this.canvas
  5359. }
  5360. function Dc(a) {
  5361. var b = a.B.cb(),
  5362. a = a.canvas
  5363. a.width = b.width
  5364. a.height = b.height
  5365. a.style.width = a.width + 'px'
  5366. a.style.height = a.height + 'px'
  5367. }
  5368. function Ec(a) {
  5369. var b =
  5370. (window.devicePixelRatio || 1) /
  5371. (a.CV || a.T5 || a.x4 || a.y4 || a.B4 || a.CV || 1),
  5372. c = a.canvas.width,
  5373. e = a.canvas.height
  5374. a.canvas.width = c * b
  5375. a.canvas.height = e * b
  5376. a.canvas.style.width = c + 'px'
  5377. a.canvas.style.height = e + 'px'
  5378. a.scale(b, b)
  5379. }
  5380. Cc.prototype.draw = function () {
  5381. var a = this,
  5382. b = arguments
  5383. clearTimeout(a.j0)
  5384. a.j0 = setTimeout(function () {
  5385. a.ib.apply(a, b)
  5386. }, 15)
  5387. }
  5388. da = Cc.prototype
  5389. da.ib = function () {
  5390. var a = this.B
  5391. this.canvas.style.left = -a.offsetX + 'px'
  5392. this.canvas.style.top = -a.offsetY + 'px'
  5393. this.dispatchEvent('draw')
  5394. this.options.update && this.options.update.apply(this, arguments)
  5395. }
  5396. da.La = w('canvas')
  5397. da.show = function () {
  5398. this.canvas || this.B.Ga(this)
  5399. this.canvas.style.display = 'block'
  5400. }
  5401. da.U = function () {
  5402. this.canvas.style.display = 'none'
  5403. }
  5404. da.Sp = function (a) {
  5405. this.canvas.style.zIndex = a
  5406. }
  5407. da.Ck = w('zIndex')
  5408. function Fc(a, b) {
  5409. oc.call(this, b)
  5410. b = b || {}
  5411. this.z.tg = b.fillOpacity ? b.fillOpacity : 0.65
  5412. this.z.fillColor =
  5413. '' == b.fillColor ? '' : b.fillColor ? b.fillColor : '#fff'
  5414. this.ke(a)
  5415. var c = this
  5416. K.load('poly', function () {
  5417. c.ib()
  5418. })
  5419. }
  5420. z.lang.ta(Fc, oc, 'Polygon')
  5421. z.extend(Fc.prototype, {
  5422. ke: function (a, b) {
  5423. this.vo = oc.yx(a).slice(0)
  5424. var c = oc.yx(a).slice(0)
  5425. 1 < c.length && c.push(new J(c[0].lng, c[0].lat))
  5426. oc.prototype.ke.call(this, c, b)
  5427. },
  5428. gn: function (a, b) {
  5429. this.vo[a] &&
  5430. ((this.vo[a] = new J(b.lng, b.lat)),
  5431. (this.ja[a] = new J(b.lng, b.lat)),
  5432. 0 == a &&
  5433. !this.ja[0].pb(this.ja[this.ja.length - 1]) &&
  5434. (this.ja[this.ja.length - 1] = new J(b.lng, b.lat)),
  5435. this.Bh())
  5436. },
  5437. Ue: function () {
  5438. var a = this.vo
  5439. 0 == a.length && (a = this.ja)
  5440. return a
  5441. },
  5442. })
  5443. function Gc(a, b) {
  5444. oc.call(this, b)
  5445. this.Mr(a)
  5446. var c = this
  5447. K.load('poly', function () {
  5448. c.ib()
  5449. })
  5450. }
  5451. z.lang.ta(Gc, oc, 'Polyline')
  5452. function Hc(a, b, c) {
  5453. this.point = a
  5454. this.wa = Math.abs(b)
  5455. Fc.call(this, [], c)
  5456. }
  5457. Hc.eF = [0.01, 1.0e-4, 1.0e-5, 4.0e-6]
  5458. z.lang.ta(Hc, Fc, 'Circle')
  5459. z.extend(Hc.prototype, {
  5460. initialize: function (a) {
  5461. this.map = a
  5462. this.ja = this.qv(this.point, this.wa)
  5463. this.Bh()
  5464. return s
  5465. },
  5466. Ka: w('point'),
  5467. Zf: function (a) {
  5468. a && (this.point = a)
  5469. },
  5470. RL: w('wa'),
  5471. xf: function (a) {
  5472. this.wa = Math.abs(a)
  5473. },
  5474. qv: function (a, b) {
  5475. if (!a || !b || !this.map) return []
  5476. for (
  5477. var c = [],
  5478. e = b / 6378800,
  5479. f = (Math.PI / 180) * a.lat,
  5480. g = (Math.PI / 180) * a.lng,
  5481. i = 0;
  5482. 360 > i;
  5483. i += 9
  5484. ) {
  5485. var k = (Math.PI / 180) * i,
  5486. m = Math.asin(
  5487. Math.sin(f) * Math.cos(e) + Math.cos(f) * Math.sin(e) * Math.cos(k)
  5488. ),
  5489. k = new J(
  5490. (((g -
  5491. Math.atan2(
  5492. Math.sin(k) * Math.sin(e) * Math.cos(f),
  5493. Math.cos(e) - Math.sin(f) * Math.sin(m)
  5494. ) +
  5495. Math.PI) %
  5496. (2 * Math.PI)) -
  5497. Math.PI) *
  5498. (180 / Math.PI),
  5499. m * (180 / Math.PI)
  5500. )
  5501. c.push(k)
  5502. }
  5503. e = c[0]
  5504. c.push(new J(e.lng, e.lat))
  5505. return c
  5506. },
  5507. })
  5508. var Ic = {}
  5509. function Jc(a) {
  5510. this.map = a
  5511. this.Mm = []
  5512. this.$f = []
  5513. this.Fg = []
  5514. this.OV = 300
  5515. this.oF = 0
  5516. this.yg = {}
  5517. this.Zi = {}
  5518. this.ph = 0
  5519. this.yE = q
  5520. this.MK = {}
  5521. this.eo = this.Kj(1)
  5522. this.od = this.Kj(2)
  5523. this.Bl = this.Kj(3)
  5524. this.Ki = this.Kj(4)
  5525. a.platform.appendChild(this.eo)
  5526. a.platform.appendChild(this.od)
  5527. a.platform.appendChild(this.Bl)
  5528. a.platform.appendChild(this.Ki)
  5529. var b = 256 * Math.pow(2, 15),
  5530. c = 3 * b,
  5531. a = S.Eb(new J(180, 0)).lng,
  5532. c = c - a,
  5533. b = -3 * b,
  5534. e = S.Eb(new J(-180, 0)).lng
  5535. this.yI = a
  5536. this.zI = e
  5537. this.ZA = c + (e - b)
  5538. this.AI = a - e
  5539. }
  5540. B.Ye(function (a) {
  5541. var b = new Jc(a)
  5542. b.na()
  5543. a.Va = b
  5544. })
  5545. z.extend(Jc.prototype, {
  5546. na: function () {
  5547. var a = this,
  5548. b = a.map
  5549. b.addEventListener('loadcode', function () {
  5550. a.up()
  5551. })
  5552. b.addEventListener('addtilelayer', function (b) {
  5553. a.Oe(b)
  5554. })
  5555. b.addEventListener('removetilelayer', function (b) {
  5556. a.Yf(b)
  5557. })
  5558. b.addEventListener('setmaptype', function (b) {
  5559. a.Dg(b)
  5560. })
  5561. b.addEventListener('zoomstartcode', function (b) {
  5562. a.Mc(b)
  5563. })
  5564. b.addEventListener('setcustomstyles', function (b) {
  5565. a.Zt(b.target)
  5566. a.Wf(q)
  5567. })
  5568. b.addEventListener('initindoorlayer', function (b) {
  5569. a.tE(b)
  5570. })
  5571. },
  5572. up: function () {
  5573. var a = this
  5574. if (z.ca.ia)
  5575. try {
  5576. document.execCommand('BackgroundImageCache', t, q)
  5577. } catch (b) {}
  5578. this.loaded || a.Ux()
  5579. a.Wf()
  5580. this.loaded ||
  5581. ((this.loaded = q),
  5582. K.load('tile', function () {
  5583. a.rQ()
  5584. }))
  5585. },
  5586. tE: function (a) {
  5587. this.zu = new Kc(this)
  5588. this.zu.Oe(new Lc(this.map, this.zu, a.vf))
  5589. },
  5590. Ux: function () {
  5591. for (var a = this.map.oa().ff, b = 0; b < a.length; b++) {
  5592. var c = new Mc()
  5593. z.extend(c, a[b])
  5594. this.Mm.push(c)
  5595. c.na(this.map, this.eo)
  5596. }
  5597. this.Zt()
  5598. },
  5599. Kj: function (a) {
  5600. var b = L('div')
  5601. b.style.position = 'absolute'
  5602. b.style.overflow = 'visible'
  5603. b.style.left = b.style.top = '0'
  5604. b.style.zIndex = a
  5605. return b
  5606. },
  5607. Af: function () {
  5608. this.ph--
  5609. var a = this
  5610. this.yE &&
  5611. (this.map.dispatchEvent(new P('onfirsttileloaded')), (this.yE = t))
  5612. 0 == this.ph &&
  5613. (this.Hi && (clearTimeout(this.Hi), (this.Hi = s)),
  5614. (this.Hi = setTimeout(function () {
  5615. if (a.ph == 0) {
  5616. a.map.dispatchEvent(new P('ontilesloaded'))
  5617. a.yE = q
  5618. }
  5619. a.Hi = s
  5620. }, 80)))
  5621. },
  5622. fE: function (a, b) {
  5623. return 'TILE-' + b.aa + '-' + a[0] + '-' + a[1] + '-' + a[2]
  5624. },
  5625. Rx: function (a) {
  5626. var b = a.Gb
  5627. b && zb(b) && b.parentNode.removeChild(b)
  5628. delete this.yg[a.name]
  5629. a.loaded || (Nc(a), (a.Gb = s), (a.Pm = s))
  5630. },
  5631. pj: function (a, b, c) {
  5632. var e = this.map,
  5633. f = e.oa(),
  5634. g = e.Oa,
  5635. i = e.fc,
  5636. k = f.dc(g),
  5637. m = this.DL(),
  5638. n = m[0],
  5639. o = m[1],
  5640. p = m[2],
  5641. v = m[3],
  5642. x = m[4],
  5643. c = 'undefined' != typeof c ? c : 0,
  5644. f = f.$c(),
  5645. m = e.aa.replace(/^TANGRAM_/, '')
  5646. for (this.hc ? (this.hc.length = 0) : (this.hc = []); n < p; n++)
  5647. for (var y = o; y < v; y++) {
  5648. var A = n,
  5649. E = y
  5650. this.hc.push([A, E])
  5651. A = m + '_' + b + '_' + A + '_' + E + '_' + g
  5652. this.MK[A] = A
  5653. }
  5654. this.hc.sort(
  5655. (function (a) {
  5656. return function (b, c) {
  5657. return (
  5658. 0.4 * Math.abs(b[0] - a[0]) +
  5659. 0.6 * Math.abs(b[1] - a[1]) -
  5660. (0.4 * Math.abs(c[0] - a[0]) + 0.6 * Math.abs(c[1] - a[1]))
  5661. )
  5662. }
  5663. })([x[0] - 1, x[1] - 1])
  5664. )
  5665. i = [Math.round(-i.lng / k), Math.round(i.lat / k)]
  5666. n = -e.offsetY + e.height / 2
  5667. a.style.left = -e.offsetX + e.width / 2 + 'px'
  5668. a.style.top = n + 'px'
  5669. this.Cc ? (this.Cc.length = 0) : (this.Cc = [])
  5670. n = 0
  5671. for (e = a.childNodes.length; n < e; n++)
  5672. (y = a.childNodes[n]), (y.Sj = t), this.Cc.push(y)
  5673. if ((n = this.qh)) for (var C in n) delete n[C]
  5674. else this.qh = {}
  5675. this.Dc ? (this.Dc.length = 0) : (this.Dc = [])
  5676. n = 0
  5677. for (e = this.hc.length; n < e; n++) {
  5678. C = this.hc[n][0]
  5679. k = this.hc[n][1]
  5680. y = 0
  5681. for (o = this.Cc.length; y < o; y++)
  5682. if (
  5683. ((p = this.Cc[y]),
  5684. p.id == m + '_' + b + '_' + C + '_' + k + '_' + g)
  5685. ) {
  5686. p.Sj = q
  5687. this.qh[p.id] = p
  5688. break
  5689. }
  5690. }
  5691. n = 0
  5692. for (e = this.Cc.length; n < e; n++)
  5693. (p = this.Cc[n]), p.Sj || this.Dc.push(p)
  5694. this.nn = []
  5695. y = (f + c) * this.map.K.devicePixelRatio
  5696. n = 0
  5697. for (e = this.hc.length; n < e; n++)
  5698. (C = this.hc[n][0]),
  5699. (k = this.hc[n][1]),
  5700. (v = C * f + i[0] - c / 2),
  5701. (x = (-1 - k) * f + i[1] - c / 2),
  5702. (A = m + '_' + b + '_' + C + '_' + k + '_' + g),
  5703. (o = this.qh[A]),
  5704. (p = s),
  5705. o
  5706. ? ((p = o.style),
  5707. (p.left = v + 'px'),
  5708. (p.top = x + 'px'),
  5709. o.yd || this.nn.push([C, k, o]))
  5710. : (0 < this.Dc.length
  5711. ? ((o = this.Dc.shift()),
  5712. o.getContext('2d').clearRect(-c / 2, -c / 2, y, y),
  5713. (p = o.style))
  5714. : ((o = document.createElement('canvas')),
  5715. (p = o.style),
  5716. (p.position = 'absolute'),
  5717. (p.width = f + c + 'px'),
  5718. (p.height = f + c + 'px'),
  5719. this.Zx() && (p.WebkitTransform = 'scale(1.001)'),
  5720. o.setAttribute('width', y),
  5721. o.setAttribute('height', y),
  5722. a.appendChild(o)),
  5723. (o.id = A),
  5724. (p.left = v + 'px'),
  5725. (p.top = x + 'px'),
  5726. -1 < A.indexOf('bg') &&
  5727. ((v = '#F3F1EC'),
  5728. this.map.K.Eo && (v = this.map.K.Eo),
  5729. (p.background = v ? v : '')),
  5730. this.nn.push([C, k, o])),
  5731. (o.style.visibility = '')
  5732. n = 0
  5733. for (e = this.Dc.length; n < e; n++)
  5734. this.Dc[n].style.visibility = 'hidden'
  5735. return this.nn
  5736. },
  5737. Zx: function () {
  5738. return /M040/i.test(navigator.userAgent)
  5739. },
  5740. DL: function () {
  5741. var a = this.map,
  5742. b = a.oa(),
  5743. c = b.mE(a.Oa),
  5744. e = a.fc,
  5745. f = Math.ceil(e.lng / c),
  5746. g = Math.ceil(e.lat / c),
  5747. b = b.$c(),
  5748. c = [f, g, ((e.lng - f * c) / c) * b, ((e.lat - g * c) / c) * b]
  5749. return [
  5750. c[0] - Math.ceil((a.width / 2 - c[2]) / b),
  5751. c[1] - Math.ceil((a.height / 2 - c[3]) / b),
  5752. c[0] + Math.ceil((a.width / 2 + c[2]) / b),
  5753. c[1] + Math.ceil((a.height / 2 + c[3]) / b),
  5754. c,
  5755. ]
  5756. },
  5757. R_: function (a, b, c, e) {
  5758. var f = this
  5759. f.u2 = b
  5760. var g = this.map.oa(),
  5761. i = f.fE(a, c),
  5762. k = g.$c(),
  5763. b = [a[0] * k + b[0], (-1 - a[1]) * k + b[1]],
  5764. m = this.yg[i]
  5765. if (this.map.oa() !== Ya && this.map.oa() !== Sa) {
  5766. var n = this.Lw(a[0], a[2]).offsetX
  5767. b[0] += n
  5768. b.Q1 = n
  5769. }
  5770. m && m.Gb
  5771. ? (xb(m.Gb, b),
  5772. e &&
  5773. ((e = new Q(a[0], a[1])),
  5774. (g = this.map.K.ye ? this.map.K.ye.style : 'normal'),
  5775. (e = c.getTilesUrl(e, a[2], g)),
  5776. (m.loaded = t),
  5777. Oc(m, e)),
  5778. m.loaded
  5779. ? this.Af()
  5780. : Pc(m, function () {
  5781. f.Af()
  5782. }))
  5783. : (m = this.Zi[i]) && m.Gb
  5784. ? (c.Jb.insertBefore(m.Gb, c.Jb.lastChild),
  5785. (this.yg[i] = m),
  5786. xb(m.Gb, b),
  5787. e &&
  5788. ((e = new Q(a[0], a[1])),
  5789. (g = this.map.K.ye ? this.map.K.ye.style : 'normal'),
  5790. (e = c.getTilesUrl(e, a[2], g)),
  5791. (m.loaded = t),
  5792. Oc(m, e)),
  5793. m.loaded
  5794. ? this.Af()
  5795. : Pc(m, function () {
  5796. f.Af()
  5797. }))
  5798. : ((m = k * Math.pow(2, g.sm() - a[2])),
  5799. new J(a[0] * m, a[1] * m),
  5800. (e = new Q(a[0], a[1])),
  5801. (g = this.map.K.ye ? this.map.K.ye.style : 'normal'),
  5802. (e = c.getTilesUrl(e, a[2], g)),
  5803. (m = new Qc(this, e, b, a, c)),
  5804. Pc(m, function () {
  5805. f.Af()
  5806. }),
  5807. m.co(),
  5808. (this.yg[i] = m))
  5809. },
  5810. Af: function () {
  5811. this.ph--
  5812. var a = this
  5813. 0 == this.ph &&
  5814. (this.Hi && (clearTimeout(this.Hi), (this.Hi = s)),
  5815. (this.Hi = setTimeout(function () {
  5816. if (a.ph == 0) {
  5817. a.map.dispatchEvent(new P('ontilesloaded'))
  5818. if (ua) {
  5819. if (ra && sa && ta) {
  5820. var b = bb(),
  5821. c = a.map.cb()
  5822. setTimeout(function () {
  5823. Ra(5030, {
  5824. load_script_time: sa - ra,
  5825. load_tiles_time: b - ta,
  5826. map_width: c.width,
  5827. map_height: c.height,
  5828. map_size: c.width * c.height,
  5829. })
  5830. }, 1e4)
  5831. B.Fn('cus.fire', 'time', {
  5832. z_imgfirstloaded: b - ta,
  5833. })
  5834. }
  5835. ua = t
  5836. }
  5837. }
  5838. a.Hi = s
  5839. }, 80)))
  5840. },
  5841. fE: function (a, b) {
  5842. return this.map.oa() === Qa
  5843. ? 'TILE-' +
  5844. b.aa +
  5845. '-' +
  5846. this.map.Rw +
  5847. '-' +
  5848. a[0] +
  5849. '-' +
  5850. a[1] +
  5851. '-' +
  5852. a[2]
  5853. : 'TILE-' + b.aa + '-' + a[0] + '-' + a[1] + '-' + a[2]
  5854. },
  5855. Rx: function (a) {
  5856. var b = a.Gb
  5857. b && (Rc(b), zb(b) && b.parentNode.removeChild(b))
  5858. delete this.yg[a.name]
  5859. a.loaded || (Rc(b), Nc(a), (a.Gb = s), (a.Pm = s))
  5860. },
  5861. Lw: function (a, b) {
  5862. for (
  5863. var c = 0, e = 6 * Math.pow(2, b - 3), f = e / 2 - 1, g = -e / 2;
  5864. a > f;
  5865. )
  5866. (a -= e), (c -= this.ZA)
  5867. for (; a < g; ) (a += e), (c += this.ZA)
  5868. c = Math.round(c / Math.pow(2, 18 - b))
  5869. return {
  5870. offsetX: c,
  5871. hs: a,
  5872. }
  5873. },
  5874. QV: function (a) {
  5875. for (var b = a.lng; b > this.yI; ) b -= this.AI
  5876. for (; b < this.zI; ) b += this.AI
  5877. a.lng = b
  5878. return a
  5879. },
  5880. RV: function (a, b) {
  5881. for (
  5882. var c = 256 * Math.pow(2, 18 - b),
  5883. e = Math.floor(this.yI / c),
  5884. f = Math.floor(this.zI / c),
  5885. c = Math.floor(this.ZA / c),
  5886. g = [],
  5887. i = 0;
  5888. i < a.length;
  5889. i++
  5890. ) {
  5891. var k = a[i],
  5892. m = k[0],
  5893. k = k[1]
  5894. if (m >= e) {
  5895. var m = m + c,
  5896. n = 'id_' + m + '_' + k + '_' + b
  5897. a[n] || ((a[n] = q), g.push([m, k]))
  5898. } else
  5899. m <= f &&
  5900. ((m -= c),
  5901. (n = 'id_' + m + '_' + k + '_' + b),
  5902. a[n] || ((a[n] = q), g.push([m, k])))
  5903. }
  5904. for (i = 0; i < g.length; i++) a.push(g[i])
  5905. return a
  5906. },
  5907. Wf: function (a) {
  5908. var b = this
  5909. if (b.map.oa() == Qa)
  5910. K.load(
  5911. 'coordtrans',
  5912. function () {
  5913. b.map.Ub ||
  5914. ((b.map.Ub = Qa.wk(b.map.$g)), (b.map.Rw = Qa.BL(b.map.Ub)))
  5915. b.CI()
  5916. },
  5917. q
  5918. )
  5919. else {
  5920. if (a && a) for (var c in this.Zi) delete this.Zi[c]
  5921. b.CI(a)
  5922. }
  5923. },
  5924. CI: function (a) {
  5925. var b = this.Mm.concat(this.$f),
  5926. c = b.length,
  5927. e = this.map,
  5928. f = e.oa(),
  5929. g = e.fc
  5930. this.map.oa() !== Ya && this.map.oa() !== Sa && (g = this.QV(g))
  5931. for (var i = 0; i < c; i++) {
  5932. var k = b[i]
  5933. if (k.gc && e.Oa < k.gc) break
  5934. if (k.Jw) {
  5935. var m = (this.Jb = k.Jb)
  5936. if (a) {
  5937. var n = m
  5938. if (n && n.childNodes)
  5939. for (var o = n.childNodes.length, p = o - 1; 0 <= p; p--)
  5940. (o = n.childNodes[p]), n.removeChild(o), (o = s)
  5941. }
  5942. if (this.map.Sb()) {
  5943. this.od.style.display = 'block'
  5944. m.style.display = 'none'
  5945. this.map.dispatchEvent(new P('vectorchanged'), {
  5946. isvector: q,
  5947. })
  5948. continue
  5949. } else
  5950. (m.style.display = 'block'),
  5951. (this.od.style.display = 'none'),
  5952. this.map.dispatchEvent(new P('vectorchanged'), {
  5953. isvector: t,
  5954. })
  5955. }
  5956. if (!k.pI && !((k.pp && !this.map.Sb()) || (k.GM && this.map.Sb()))) {
  5957. e = this.map
  5958. f = e.oa()
  5959. m = f.wm()
  5960. o = e.Oa
  5961. g = e.fc
  5962. f == Qa && g.pb(new J(0, 0)) && (g = e.fc = m.vj(e.re, e.Ub))
  5963. var v = f.dc(o),
  5964. m = f.mE(o),
  5965. n = Math.ceil(g.lng / m),
  5966. x = Math.ceil(g.lat / m),
  5967. y = f.$c(),
  5968. m = [n, x, ((g.lng - n * m) / m) * y, ((g.lat - x * m) / m) * y],
  5969. p = m[0] - Math.ceil((e.width / 2 - m[2]) / y),
  5970. n = m[1] - Math.ceil((e.height / 2 - m[3]) / y),
  5971. x = m[0] + Math.ceil((e.width / 2 + m[2]) / y),
  5972. A = 0
  5973. f === Qa && 15 == e.fa() && (A = 1)
  5974. f = m[1] + Math.ceil((e.height / 2 + m[3]) / y) + A
  5975. this.gK = new J(g.lng, g.lat)
  5976. var E = this.yg,
  5977. y = -this.gK.lng / v,
  5978. A = this.gK.lat / v,
  5979. v = [Math.ceil(y), Math.ceil(A)],
  5980. g = e.fa(),
  5981. C
  5982. for (C in E) {
  5983. var F = E[C],
  5984. D = F.info
  5985. ;(D[2] != g ||
  5986. (D[2] == g &&
  5987. (p > D[0] || x <= D[0] || n > D[1] || f <= D[1]))) &&
  5988. this.Rx(F)
  5989. }
  5990. E = -e.offsetX + e.width / 2
  5991. F = -e.offsetY + e.height / 2
  5992. k.Jb &&
  5993. ((k.Jb.style.left = Math.ceil(y + E) - v[0] + 'px'),
  5994. (k.Jb.style.top = Math.ceil(A + F) - v[1] + 'px'),
  5995. (k.Jb.style.WebkitTransform = 'translate3d(0,0,0)'))
  5996. y = []
  5997. for (e.WB = []; p < x; p++)
  5998. for (A = n; A < f; A++)
  5999. y.push([p, A]),
  6000. e.WB.push({
  6001. x: p,
  6002. y: A,
  6003. })
  6004. this.map.oa() !== Ya && this.map.oa() !== Sa && (y = this.RV(y, o))
  6005. y.sort(
  6006. (function (a) {
  6007. return function (b, c) {
  6008. return (
  6009. 0.4 * Math.abs(b[0] - a[0]) +
  6010. 0.6 * Math.abs(b[1] - a[1]) -
  6011. (0.4 * Math.abs(c[0] - a[0]) + 0.6 * Math.abs(c[1] - a[1]))
  6012. )
  6013. }
  6014. })([m[0] - 1, m[1] - 1])
  6015. )
  6016. o = y.length
  6017. this.ph += o
  6018. for (p = 0; p < o; p++) this.R_([y[p][0], y[p][1], g], v, k, a)
  6019. }
  6020. }
  6021. },
  6022. Oe: function (a) {
  6023. var b = this,
  6024. c = a.target,
  6025. a = b.map.Sb()
  6026. if (c instanceof db) a && !c.Im && (c.na(this.map, this.od), (c.Im = q))
  6027. else if ((c.ag && this.map.Oe(c.ag), c.pp)) {
  6028. for (a = 0; a < b.Fg.length; a++) if (b.Fg[a] == c) return
  6029. K.load(
  6030. 'vector',
  6031. function () {
  6032. c.na(b.map, b.od)
  6033. b.Fg.push(c)
  6034. },
  6035. q
  6036. )
  6037. } else {
  6038. for (a = 0; a < b.$f.length; a++) if (b.$f[a] == c) return
  6039. c.na(this.map, this.Bl)
  6040. b.$f.push(c)
  6041. }
  6042. },
  6043. Yf: function (a) {
  6044. var a = a.target,
  6045. b = this.map.Sb()
  6046. if (a instanceof db) b && a.Im && (a.remove(), (a.Im = t))
  6047. else {
  6048. a.ag && this.map.Yf(a.ag)
  6049. if (a.pp)
  6050. for (var b = 0, c = this.Fg.length; b < c; b++)
  6051. a == this.Fg[b] && this.Fg.splice(b, 1)
  6052. else {
  6053. b = 0
  6054. for (c = this.$f.length; b < c; b++)
  6055. a == this.$f[b] && this.$f.splice(b, 1)
  6056. }
  6057. a.remove()
  6058. }
  6059. },
  6060. Dg: function () {
  6061. for (var a = this.Mm, b = 0, c = a.length; b < c; b++) a[b].remove()
  6062. delete this.Jb
  6063. this.Mm = []
  6064. this.Zi = this.yg = {}
  6065. this.Ux()
  6066. this.Wf()
  6067. },
  6068. Mc: function () {
  6069. var a = this
  6070. a.vd && z.D.U(a.vd)
  6071. setTimeout(function () {
  6072. a.Wf()
  6073. a.map.dispatchEvent(new P('onzoomend'))
  6074. }, 10)
  6075. },
  6076. L5: u(),
  6077. Zt: function (a) {
  6078. var b = this.map.oa()
  6079. if (!this.map.Sb() && (a ? (this.map.K.$_ = a) : (a = this.map.K.$_), a))
  6080. for (
  6081. var c = s,
  6082. c =
  6083. '2' == B.xu
  6084. ? [B.url.proto + B.url.domain.main_domain_cdn.other[0] + '/']
  6085. : [
  6086. B.url.proto + B.url.domain.main_domain_cdn.baidu[0] + '/',
  6087. B.url.proto + B.url.domain.main_domain_cdn.baidu[1] + '/',
  6088. B.url.proto + B.url.domain.main_domain_cdn.baidu[2] + '/',
  6089. ],
  6090. e = 0,
  6091. f;
  6092. (f = this.Mm[e]);
  6093. e++
  6094. )
  6095. if (f.M_ == q) {
  6096. b.j.Yb = 18
  6097. f.getTilesUrl = function (b, e) {
  6098. var f = b.x,
  6099. f = this.map.Va.Lw(f, e).hs,
  6100. m = b.y,
  6101. n = Sb('normal'),
  6102. o = 1
  6103. this.map.Sx() && (o = 2)
  6104. n =
  6105. 'customimage/tile?&x=' +
  6106. f +
  6107. '&y=' +
  6108. m +
  6109. '&z=' +
  6110. e +
  6111. '&udt=' +
  6112. n +
  6113. '&scale=' +
  6114. o +
  6115. '&ak=' +
  6116. qa
  6117. n = a.styleStr
  6118. ? n + ('&styles=' + encodeURIComponent(a.styleStr))
  6119. : n + ('&customid=' + a.style)
  6120. return c[Math.abs(f + m) % c.length] + n
  6121. }
  6122. break
  6123. }
  6124. },
  6125. })
  6126. function Qc(a, b, c, e, f) {
  6127. this.Pm = a
  6128. this.position = c
  6129. this.$u = []
  6130. this.name = a.fE(e, f)
  6131. this.info = e
  6132. this.GJ = f.zt()
  6133. e = L('img')
  6134. yb(e)
  6135. e.uL = t
  6136. var g = e.style,
  6137. a = a.map.oa()
  6138. g.position = 'absolute'
  6139. g.border = 'none'
  6140. g.width = a.$c() + 'px'
  6141. g.height = a.$c() + 'px'
  6142. g.left = c[0] + 'px'
  6143. g.top = c[1] + 'px'
  6144. g.maxWidth = 'none'
  6145. this.Gb = e
  6146. this.src = b
  6147. Sc && (this.Gb.style.opacity = 0)
  6148. var i = this
  6149. this.Gb.onload = function () {
  6150. B.iZ.eR()
  6151. i.loaded = q
  6152. if (i.Pm) {
  6153. var a = i.Pm,
  6154. b = a.Zi
  6155. if (!b[i.name]) {
  6156. a.oF++
  6157. b[i.name] = i
  6158. }
  6159. if (i.Gb && !zb(i.Gb) && f.Jb) {
  6160. f.Jb.appendChild(i.Gb)
  6161. if (z.ca.ia <= 6 && z.ca.ia > 0 && i.GJ)
  6162. i.Gb.style.cssText =
  6163. i.Gb.style.cssText +
  6164. (';filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' +
  6165. i.src +
  6166. '",sizingMethod=scale);')
  6167. }
  6168. var c = a.oF - a.OV,
  6169. e
  6170. for (e in b) {
  6171. if (c <= 0) break
  6172. if (!a.yg[e]) {
  6173. b[e].Pm = s
  6174. var g = b[e].Gb
  6175. if (g && g.parentNode) {
  6176. g.parentNode.removeChild(g)
  6177. Rc(g)
  6178. }
  6179. g = s
  6180. b[e].Gb = s
  6181. delete b[e]
  6182. a.oF--
  6183. c--
  6184. }
  6185. }
  6186. Sc &&
  6187. new tb({
  6188. Ic: 20,
  6189. duration: 200,
  6190. va: function (a) {
  6191. if (i.Gb && i.Gb.style) i.Gb.style.opacity = a * 1
  6192. },
  6193. finish: function () {
  6194. i.Gb && i.Gb.style && delete i.Gb.style.opacity
  6195. },
  6196. })
  6197. Nc(i)
  6198. }
  6199. }
  6200. this.Gb.onerror = function () {
  6201. Nc(i)
  6202. if (i.Pm) {
  6203. var a = i.Pm.map.oa()
  6204. if (a.j.vD) {
  6205. i.error = q
  6206. i.Gb.src = a.j.vD
  6207. i.Gb && !zb(i.Gb) && f.Jb.appendChild(i.Gb)
  6208. }
  6209. }
  6210. }
  6211. e = s
  6212. }
  6213. function Pc(a, b) {
  6214. a.$u.push(b)
  6215. }
  6216. Qc.prototype.co = function () {
  6217. this.Gb.src =
  6218. 0 < z.ca.ia && 6 >= z.ca.ia && this.GJ
  6219. ? G.qa + 'blank.gif'
  6220. : '' !== this.src && this.Gb.src == this.src
  6221. ? this.src + '&t = ' + Date.now()
  6222. : this.src
  6223. }
  6224. function Nc(a) {
  6225. for (var b = 0; b < a.$u.length; b++) a.$u[b]()
  6226. a.$u.length = 0
  6227. }
  6228. function Rc(a) {
  6229. if (a) {
  6230. a.onload = a.onerror = s
  6231. var b = a.attributes,
  6232. c,
  6233. e,
  6234. f
  6235. if (b) {
  6236. e = b.length
  6237. for (c = 0; c < e; c += 1) (f = b[c].name), Xa(a[f]) && (a[f] = s)
  6238. }
  6239. if ((b = a.children)) {
  6240. e = b.length
  6241. for (c = 0; c < e; c += 1) Rc(a.children[c])
  6242. }
  6243. }
  6244. }
  6245. function Oc(a, b) {
  6246. a.src = b
  6247. a.co()
  6248. }
  6249. var Sc = !z.ca.ia || 8 < z.ca.ia
  6250. function Mc(a) {
  6251. this.vf = a || {}
  6252. this.mW = this.vf.copyright || s
  6253. this.B0 = this.vf.transparentPng || t
  6254. this.Jw = this.vf.baseLayer || t
  6255. this.zIndex = this.vf.zIndex || 0
  6256. this.aa = Mc.SS++
  6257. }
  6258. Mc.SS = 0
  6259. z.lang.ta(Mc, z.lang.Ca, 'TileLayer')
  6260. z.extend(Mc.prototype, {
  6261. na: function (a, b) {
  6262. this.Jw && (this.zIndex = -100)
  6263. this.map = a
  6264. if (!this.Jb) {
  6265. var c = L('div'),
  6266. e = c.style
  6267. e.position = 'absolute'
  6268. e.overflow = 'visible'
  6269. e.zIndex = this.zIndex
  6270. e.left = Math.ceil(-a.offsetX + a.width / 2) + 'px'
  6271. e.top = Math.ceil(-a.offsetY + a.height / 2) + 'px'
  6272. b.appendChild(c)
  6273. this.Jb = c
  6274. }
  6275. },
  6276. remove: function () {
  6277. this.Jb &&
  6278. this.Jb.parentNode &&
  6279. ((this.Jb.innerHTML = ''), this.Jb.parentNode.removeChild(this.Jb))
  6280. delete this.Jb
  6281. },
  6282. zt: w('B0'),
  6283. getTilesUrl: function (a, b) {
  6284. if (this.map.oa() !== Ya && this.map.oa() !== Sa)
  6285. var c = this.map.Va.Lw(a.x, b).hs
  6286. var e = ''
  6287. this.vf.tileUrlTemplate &&
  6288. ((e = this.vf.tileUrlTemplate.replace(/\{X\}/, c)),
  6289. (e = e.replace(/\{Y\}/, a.y)),
  6290. (e = e.replace(/\{Z\}/, b)))
  6291. return e
  6292. },
  6293. pm: w('mW'),
  6294. oa: function () {
  6295. return this.Hb || La
  6296. },
  6297. })
  6298. function Tc(a, b) {
  6299. Ib(a) ? (b = a || {}) : ((b = b || {}), (b.databoxId = a))
  6300. this.j = {
  6301. OK: b.databoxId,
  6302. eh: b.geotableId,
  6303. Wm: b.q || '',
  6304. pu: b.tags || '',
  6305. filter: b.filter || '',
  6306. Vy: b.sortby || '',
  6307. Y_: b.styleId || '',
  6308. Vl: b.ak || qa,
  6309. Gw: b.age || 36e5,
  6310. zIndex: 11,
  6311. fZ: 'VectorCloudLayer',
  6312. Fk: b.hotspotName || 'vector_md_' + (1e5 * Math.random()).toFixed(0),
  6313. uV: 'LBS\u4e91\u9ebb\u70b9\u5c42',
  6314. }
  6315. this.pp = q
  6316. Mc.call(this, this.j)
  6317. this.GW = B.Wc + 'geosearch/detail/'
  6318. this.HW = B.Wc + 'geosearch/v2/detail/'
  6319. this.lp = {}
  6320. }
  6321. z.ta(Tc, Mc, 'VectorCloudLayer')
  6322. function Uc(a) {
  6323. a = a || {}
  6324. this.j = z.extend(a, {
  6325. zIndex: 1,
  6326. fZ: 'VectorTrafficLayer',
  6327. uV: '\u77e2\u91cf\u8def\u51b5\u5c42',
  6328. })
  6329. this.pp = q
  6330. Mc.call(this, this.j)
  6331. this.x0 =
  6332. B.url.proto +
  6333. B.url.domain.vector_traffic +
  6334. '/gvd/?qt=lgvd&styles=pl&layers=tf'
  6335. this.Db = {
  6336. 0: [2, 1354709503, 2, 2, 0, [], 0, 0],
  6337. 1: [2, 1354709503, 3, 2, 0, [], 0, 0],
  6338. 10: [2, -231722753, 2, 2, 0, [], 0, 0],
  6339. 11: [2, -231722753, 3, 2, 0, [], 0, 0],
  6340. 12: [2, -231722753, 4, 2, 0, [], 0, 0],
  6341. 13: [2, -231722753, 5, 2, 0, [], 0, 0],
  6342. 14: [2, -231722753, 6, 2, 0, [], 0, 0],
  6343. 15: [2, -1, 4, 0, 0, [], 0, 0],
  6344. 16: [2, -1, 5.5, 0, 0, [], 0, 0],
  6345. 17: [2, -1, 7, 0, 0, [], 0, 0],
  6346. 18: [2, -1, 8.5, 0, 0, [], 0, 0],
  6347. 19: [2, -1, 10, 0, 0, [], 0, 0],
  6348. 2: [2, 1354709503, 4, 2, 0, [], 0, 0],
  6349. 3: [2, 1354709503, 5, 2, 0, [], 0, 0],
  6350. 4: [2, 1354709503, 6, 2, 0, [], 0, 0],
  6351. 5: [2, -6350337, 2, 2, 0, [], 0, 0],
  6352. 6: [2, -6350337, 3, 2, 0, [], 0, 0],
  6353. 7: [2, -6350337, 4, 2, 0, [], 0, 0],
  6354. 8: [2, -6350337, 5, 2, 0, [], 0, 0],
  6355. 9: [2, -6350337, 6, 2, 0, [], 0, 0],
  6356. }
  6357. }
  6358. z.ta(Uc, Mc, 'VectorTrafficLayer')
  6359. function db(a) {
  6360. this.PV = [
  6361. B.url.proto + B.url.domain.TILE_ONLINE_URLS[1] + '/gvd/?',
  6362. B.url.proto + B.url.domain.TILE_ONLINE_URLS[2] + '/gvd/?',
  6363. B.url.proto + B.url.domain.TILE_ONLINE_URLS[3] + '/gvd/?',
  6364. B.url.proto + B.url.domain.TILE_ONLINE_URLS[4] + '/gvd/?',
  6365. ]
  6366. this.j = {
  6367. pL: t,
  6368. }
  6369. for (var b in a) this.j[b] = a[b]
  6370. this.Th = this.Fh = this.Ya = this.C = this.B = s
  6371. this.LM = 0
  6372. var c = this
  6373. K.load('vector', function () {
  6374. c.De()
  6375. })
  6376. }
  6377. z.extend(db.prototype, {
  6378. na: function (a, b) {
  6379. this.B = a
  6380. this.C = b
  6381. },
  6382. remove: function () {
  6383. this.C = this.B = s
  6384. },
  6385. })
  6386. function Vc(a) {
  6387. Mc.call(this, a)
  6388. this.j = a || {}
  6389. this.GM = q
  6390. this.ag = new Uc()
  6391. this.ag.$y = this
  6392. if (this.j.predictDate) {
  6393. if (1 > this.j.predictDate.weekday || 7 < this.j.predictDate.weekday)
  6394. this.j.predictDate = 1
  6395. if (0 > this.j.predictDate.hour || 23 < this.j.predictDate.hour)
  6396. this.j.predictDate.hour = 0
  6397. }
  6398. this.VU = B.url.proto + B.url.domain.traffic + '/traffic/'
  6399. }
  6400. Vc.prototype = new Mc()
  6401. Vc.prototype.na = function (a, b) {
  6402. Mc.prototype.na.call(this, a, b)
  6403. this.B = a
  6404. }
  6405. Vc.prototype.zt = ca(q)
  6406. Vc.prototype.getTilesUrl = function (a, b) {
  6407. var c = ''
  6408. this.j.predictDate
  6409. ? (c =
  6410. 'HistoryService?day=' +
  6411. (this.j.predictDate.weekday - 1) +
  6412. '&hour=' +
  6413. this.j.predictDate.hour +
  6414. '&t=' +
  6415. new Date().getTime() +
  6416. '&')
  6417. : ((c = 'TrafficTileService?time=' + new Date().getTime() + '&'),
  6418. (c += 'label=web2D&v=016&'))
  6419. var c = this.VU + c + 'level=' + b + '&x=' + a.x + '&y=' + a.y,
  6420. e = 1
  6421. this.B.Sx() && (e = 2)
  6422. return (c + '&scaler=' + e).replace(/-(\d+)/gi, 'M$1')
  6423. }
  6424. var Wc = [
  6425. B.url.proto + B.url.domain.TILES_YUN_HOST[0] + '/georender/gss',
  6426. B.url.proto + B.url.domain.TILES_YUN_HOST[1] + '/georender/gss',
  6427. B.url.proto + B.url.domain.TILES_YUN_HOST[2] + '/georender/gss',
  6428. B.url.proto + B.url.domain.TILES_YUN_HOST[3] + '/georender/gss',
  6429. ],
  6430. Xc =
  6431. B.url.proto +
  6432. B.url.domain.main_domain_nocdn.baidu +
  6433. '/style/poi/rangestyle',
  6434. Yc = 100
  6435. function nb(a, b) {
  6436. Mc.call(this)
  6437. var c = this
  6438. this.GM = q
  6439. var e = t
  6440. try {
  6441. document.createElement('canvas').getContext('2d'), (e = q)
  6442. } catch (f) {
  6443. e = t
  6444. }
  6445. e && ((this.ag = new Tc(a, b)), (this.ag.$y = this))
  6446. Ib(a) ? (b = a || {}) : ((c.Rn = a), (b = b || {}))
  6447. b.geotableId && (c.Cf = b.geotableId)
  6448. b.databoxId && (c.Rn = b.databoxId)
  6449. e = B.Wc + 'geosearch'
  6450. c.ub = {
  6451. ON: b.pointDensity || Yc,
  6452. BY: e + '/detail/',
  6453. CY: e + '/v2/detail/',
  6454. Gw: b.age || 36e5,
  6455. Wm: b.q || '',
  6456. i0: 'png',
  6457. X3: [5, 5, 5, 5],
  6458. eZ: {
  6459. backgroundColor: '#FFFFD5',
  6460. borderColor: '#808080',
  6461. },
  6462. Vl: b.ak || qa,
  6463. pu: b.tags || '',
  6464. filter: b.filter || '',
  6465. Vy: b.sortby || '',
  6466. Fk: b.hotspotName || 'tile_md_' + (1e5 * Math.random()).toFixed(0),
  6467. dG: q,
  6468. }
  6469. K.load('clayer', function () {
  6470. c.Sd()
  6471. })
  6472. }
  6473. nb.prototype = new Mc()
  6474. nb.prototype.na = function (a, b) {
  6475. Mc.prototype.na.call(this, a, b)
  6476. this.B = a
  6477. }
  6478. nb.prototype.getTilesUrl = function (a, b) {
  6479. var c = a.x,
  6480. e = a.y,
  6481. f = this.ub,
  6482. c =
  6483. Wc[Math.abs(c + e) % Wc.length] +
  6484. '/image?grids=' +
  6485. c +
  6486. '_' +
  6487. e +
  6488. '_' +
  6489. b +
  6490. '&q=' +
  6491. f.Wm +
  6492. '&tags=' +
  6493. f.pu +
  6494. '&filter=' +
  6495. f.filter +
  6496. '&sortby=' +
  6497. f.Vy +
  6498. '&ak=' +
  6499. this.ub.Vl +
  6500. '&age=' +
  6501. f.Gw +
  6502. '&page_size=' +
  6503. f.ON +
  6504. '&format=' +
  6505. f.i0
  6506. f.dG || ((f = (1e5 * Math.random()).toFixed(0)), (c += '&timeStamp=' + f))
  6507. this.Cf
  6508. ? (c += '&geotable_id=' + this.Cf)
  6509. : this.Rn && (c += '&databox_id=' + this.Rn)
  6510. return c
  6511. }
  6512. nb.prototype.enableUseCache = function () {
  6513. this.ub.dG = q
  6514. }
  6515. nb.prototype.disableUseCache = function () {
  6516. this.ub.dG = t
  6517. }
  6518. nb.tU = /^point\(|\)$/gi
  6519. nb.uU = /\s+/
  6520. nb.wU = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g
  6521. var Zc = {}
  6522. function $c(a, b) {
  6523. this.kd = a
  6524. this.uQ = 18
  6525. this.j = {
  6526. le: 256,
  6527. cd: new S(),
  6528. }
  6529. z.extend(this.j, b || {})
  6530. }
  6531. var ad = [0, 0, 0, 8, 7, 7, 6, 6, 5, 5, 4, 3, 3, 3, 2, 2, 1, 1, 0, 0, 0, 0],
  6532. bd = [512, 2048, 4096, 32768, 65536, 262144, 1048576, 4194304, 8388608],
  6533. cd = [
  6534. 0, 0, 0, 3, 5, 5, 7, 7, 9, 9, 10, 12, 12, 12, 15, 15, 17, 17, 19, 19, 19,
  6535. 19,
  6536. ],
  6537. dd = [
  6538. 0, 0, 0, 256, 256, 512, 256, 512, 256, 512, 256, 256, 512, 1024, 256, 512,
  6539. 512, 1024, 512, 1024, 2048, 4096,
  6540. ]
  6541. $c.prototype = {
  6542. getName: w('kd'),
  6543. $c: function (a) {
  6544. return 'na' === this.kd ? dd[a] : this.j.le
  6545. },
  6546. FL: function (a) {
  6547. return 'na' === this.kd ? cd[a] : a
  6548. },
  6549. wm: function () {
  6550. return this.j.cd
  6551. },
  6552. dc: function (a) {
  6553. return Math.pow(2, this.uQ - a)
  6554. },
  6555. RX: function (a) {
  6556. return 'na' === this.kd ? bd[ad[a]] : this.dc(a) * this.$c(a)
  6557. },
  6558. }
  6559. P = z.lang.Ju
  6560. function Lc(a, b, c) {
  6561. this.B = a
  6562. this.cV = b
  6563. this.Cd = b.qc
  6564. this.ub = {
  6565. h0: 'na',
  6566. zIndex: 0,
  6567. OO: c.tileUrls,
  6568. AO: q,
  6569. }
  6570. this.UB = ''
  6571. this.qT = {}
  6572. var c = c.urlOpts || {},
  6573. e
  6574. for (e in c)
  6575. c.hasOwnProperty(e) && (this.UB = this.UB + '&' + e + '=' + c[e])
  6576. this.GC = []
  6577. this.JE = 0
  6578. this.zM = t
  6579. a = this.ub.h0
  6580. Zc[a] ? (a = Zc[a]) : ((b = new $c(a, l)), (a = Zc[a] = b))
  6581. this.Wr = a
  6582. }
  6583. window.VectorIndoorTileLayer = 'VectorIndoorTileLayer'
  6584. da = Lc.prototype
  6585. da.na = function () {
  6586. var a = this.B,
  6587. b = a.Va
  6588. if (!this.Vh) {
  6589. var c = b.Kj(this.ub.zIndex)
  6590. c.style.WebkitTransform = 'translate3d(0px, 0px, 0)'
  6591. this.Vh = c
  6592. }
  6593. b.Ki.appendChild(this.Vh)
  6594. b.b4 = c
  6595. if (this.ub.AO) {
  6596. ed(this)
  6597. var e = this
  6598. a.addEventListener('checkvectorclick', function (a) {
  6599. var b
  6600. a: {
  6601. b = a.offsetX
  6602. var c = a.offsetY,
  6603. k = e.GC.N4
  6604. if (k)
  6605. for (var m = 0; m < k.length; m++)
  6606. for (var n = k[m], o = 0; o < n.length; o++)
  6607. if (
  6608. ((a = n[o]),
  6609. !a.f4 && a.EY && b > a.WE && b < a.TE && c > a.XE && c < a.UE)
  6610. ) {
  6611. b = a.EY
  6612. b = {
  6613. type: 9,
  6614. name: a.name,
  6615. uid: a.uid,
  6616. point: {
  6617. x: b.H2 + b.width / 2,
  6618. y: b.I2 + 6,
  6619. },
  6620. }
  6621. break a
  6622. }
  6623. b = s
  6624. }
  6625. b &&
  6626. ((a = new P('onvectorclick')),
  6627. (a.Y3 = b),
  6628. (a.of = 'base'),
  6629. this.dispatchEvent(a))
  6630. })
  6631. }
  6632. }
  6633. function ed(a) {
  6634. var b = a.B,
  6635. c = b.Va,
  6636. e = a.Cd,
  6637. f = b.cb(),
  6638. g = f.width,
  6639. f = f.height,
  6640. i = L('canvas')
  6641. i.style.cssText =
  6642. 'position: absolute;left:0;top:0;width:' +
  6643. g +
  6644. 'px;height:' +
  6645. f +
  6646. 'px;z-index:2;'
  6647. i.width = g * e
  6648. i.height = f * e
  6649. a.by = i
  6650. a.At = i.getContext('2d')
  6651. a.At.scale(e, e)
  6652. a.At.textBaseline = 'top'
  6653. c.Ki.appendChild(i)
  6654. b.ZS = i
  6655. }
  6656. da.update = function (a, b) {
  6657. b = b || {}
  6658. if (this.ub.AO && (b.Tw && this.Tw(), b.S_)) {
  6659. var c = this.Cd,
  6660. e = this.B.cb(),
  6661. f = e.width,
  6662. e = e.height,
  6663. g = this.by,
  6664. i = g.style
  6665. i.width = f + 'px'
  6666. i.height = e + 'px'
  6667. g.width = f * c
  6668. g.height = e * c
  6669. this.At.scale(c, c)
  6670. this.At.textBaseline = 'top'
  6671. }
  6672. if (b.M5) {
  6673. c = this.Vh
  6674. f = 0
  6675. for (e = c.childNodes.length; f < e; f++) c.childNodes[f].yd = t
  6676. }
  6677. this.NK = a
  6678. this.up(a)
  6679. }
  6680. da.up = function (a) {
  6681. this.GC = []
  6682. var b = this.B,
  6683. c = b.fa(),
  6684. e = b.cd.vj(b.re),
  6685. f = this.Wr.dc(c),
  6686. e = [Math.round(-e.lng / f), Math.round(e.lat / f)],
  6687. f = this.Wr.$c(c),
  6688. g = b.aa.replace(/^TANGRAM_/, ''),
  6689. i = this.Wr.FL(c),
  6690. b = this.B,
  6691. k = -b.offsetY + b.height / 2,
  6692. m = this.Vh
  6693. m.style.left = -b.offsetX + b.width / 2 + 'px'
  6694. m.style.top = k + 'px'
  6695. this.Cc ? (this.Cc.length = 0) : (this.Cc = [])
  6696. b = 0
  6697. for (k = m.childNodes.length; b < k; b++) {
  6698. var n = m.childNodes[b]
  6699. n.Sj = t
  6700. this.Cc.push(n)
  6701. }
  6702. if ((b = this.qh)) for (var o in b) delete b[o]
  6703. else this.qh = {}
  6704. this.Dc ? (this.Dc.length = 0) : (this.Dc = [])
  6705. b = 0
  6706. for (k = a.length; b < k; b++) {
  6707. var n = a[b][0],
  6708. p = a[b][1]
  6709. o = 0
  6710. for (var v = this.Cc.length; o < v; o++) {
  6711. var x = this.Cc[o]
  6712. if (x.id === g + '_' + n + '_' + p + '_' + i + '_' + c) {
  6713. x.Sj = q
  6714. this.qh[x.id] = x
  6715. break
  6716. }
  6717. }
  6718. }
  6719. b = 0
  6720. for (k = this.Cc.length; b < k; b++)
  6721. (x = this.Cc[b]),
  6722. x.Sj || ((x.Lc = s), delete x.Lc, (x.yd = t), this.Dc.push(x))
  6723. o = []
  6724. v = f * this.Cd
  6725. b = 0
  6726. for (k = a.length; b < k; b++) {
  6727. var n = a[b][0],
  6728. p = a[b][1],
  6729. x = n * f + e[0],
  6730. y = (-1 - p) * f + e[1],
  6731. A = g + '_' + n + '_' + p + '_' + i + '_' + c,
  6732. E = this.qh[A],
  6733. C = s
  6734. if (E)
  6735. (C = E.style),
  6736. (C.left = x + 'px'),
  6737. (C.top = y + 'px'),
  6738. (C.width = f + 'px'),
  6739. (C.height = f + 'px'),
  6740. E.yd
  6741. ? E.MO && E.MO && this.GC.push(E.MO)
  6742. : ((E.NR = q), (E.Lc = s), delete E.Lc, o.push([n, p, E]))
  6743. else {
  6744. if (0 < this.Dc.length) {
  6745. var E = this.Dc.shift(),
  6746. F = E.getContext('2d')
  6747. E.getAttribute('width') !== v && (E._scale = t)
  6748. E.setAttribute('width', v)
  6749. E.setAttribute('height', v)
  6750. C = E.style
  6751. C.width = f + 'px'
  6752. C.height = f + 'px'
  6753. F.clearRect(0, 0, v, v)
  6754. } else
  6755. (E = document.createElement('canvas')),
  6756. (C = E.style),
  6757. (C.position = 'absolute'),
  6758. this.ub.backgroundColor && (C.background = this.ub.backgroundColor),
  6759. (C.width = f + 'px'),
  6760. (C.height = f + 'px'),
  6761. E.setAttribute('width', v),
  6762. E.setAttribute('height', v),
  6763. m.appendChild(E)
  6764. E.id = A
  6765. C.left = x + 'px'
  6766. C.top = y + 'px'
  6767. o.push([n, p, E])
  6768. }
  6769. E.style.visibility = ''
  6770. }
  6771. b = 0
  6772. for (k = this.Dc.length; b < k; b++) this.Dc[b].style.visibility = 'hidden'
  6773. if (0 === o.length) fd(this)
  6774. else {
  6775. this.JE = o.length
  6776. this.zM = t
  6777. c = this.Wr.FL(this.B.fa())
  6778. for (e = 0; e < a.length; e++) a[e][3] = c
  6779. for (e = 0; e < o.length; e++)
  6780. (a = o[e][2]),
  6781. (f = o[e][0]),
  6782. (g = o[e][1]),
  6783. (o[e][3] = c),
  6784. (a.yd = t),
  6785. (a.NR = t),
  6786. gd(this, f, g, c, a)
  6787. }
  6788. }
  6789. function gd(a, b, c, e, f) {
  6790. var g = b + '_' + c + '_' + e,
  6791. i = a.qT
  6792. if (i[g]) {
  6793. if ('loading' === i[g].status) return
  6794. } else
  6795. i[g] = {
  6796. status: 'init',
  6797. bO: 0,
  6798. }
  6799. var k = a,
  6800. m = k.B,
  6801. n = [],
  6802. n = '0' === B.xu ? k.ub.OO.http : k.ub.OO.https,
  6803. o = Math.abs(b + c) % n.length,
  6804. p = 'x=' + b + '&y=' + c + '&z=' + e,
  6805. v = hd(a.cV),
  6806. x = v.O0,
  6807. v = v.C0,
  6808. y =
  6809. '_' +
  6810. (0 > b ? '_' : '') +
  6811. (0 > c ? '$' : '') +
  6812. parseInt(Math.abs(b) + '' + Math.abs(c) + '' + e, 10).toString(36),
  6813. p = p + a.UB + 'v=' + x + '&udt=' + v + '&fn=window.' + y,
  6814. x = n[o] + '&' + p,
  6815. x = n[o] + '&param=' + window.encodeURIComponent(Kb(p))
  6816. window[y] = function (a) {
  6817. clearTimeout(i[g].Od)
  6818. i[g] = s
  6819. if (a) {
  6820. m.fa()
  6821. var n
  6822. a: {
  6823. for (n = 0; n < k.NK.length; n++) {
  6824. var o = k.NK[n]
  6825. if (o[0] === b && o[1] === c && o[3] === e) {
  6826. n = q
  6827. break a
  6828. }
  6829. }
  6830. n = t
  6831. }
  6832. n !== t &&
  6833. ((n = new P('updateindoor')),
  6834. (n.IndoorCanvas = []),
  6835. n.IndoorCanvas.push({
  6836. canvasDom: f,
  6837. data: a,
  6838. canvasID: f.id,
  6839. ratio: k.Cd,
  6840. }),
  6841. m.dispatchEvent(n),
  6842. k.JE--,
  6843. (0 === k.JE || k.zM === q) && fd(k),
  6844. delete window[y])
  6845. }
  6846. }
  6847. oa(x)
  6848. i[g].status = 'loading'
  6849. k = a
  6850. i[g].Od = setTimeout(function () {
  6851. 3 > i[g].bO
  6852. ? (i[g].bO++, (i[g].status = 'init'), gd(k, b, c, e, f))
  6853. : (i[g] = s)
  6854. }, 4e3)
  6855. }
  6856. function fd(a) {
  6857. if (a.by) {
  6858. var b = a.B
  6859. a.by.style.left = -b.offsetX + 'px'
  6860. a.by.style.top = -b.offsetY + 'px'
  6861. a = new P('updateindoorlabel')
  6862. a.labelCanvasDom = b.ZS
  6863. b.dispatchEvent(a)
  6864. }
  6865. }
  6866. da.Tw = function () {
  6867. var a = this.B.cb(),
  6868. b = this.Cd
  6869. this.At.clearRect(0, 0, a.width * b, a.height * b)
  6870. }
  6871. da.remove = function () {
  6872. var a = this.B.Va
  6873. this.Vh && a.Ki.removeChild(this.Vh)
  6874. }
  6875. function Kc(a) {
  6876. this.B = a.map
  6877. this.ff = []
  6878. this.Xr = {}
  6879. this.qc = this.B.K.devicePixelRatio
  6880. this.na()
  6881. }
  6882. window.VectorIndoorTileMgr = 'VectorIndoorTileMgr'
  6883. da = Kc.prototype
  6884. da.na = function () {
  6885. var a = this,
  6886. b = this.B
  6887. b.addEventListener('addtilelayer', function (b) {
  6888. a.Oe(b.target)
  6889. })
  6890. b.addEventListener('removetilelayer', function (b) {
  6891. a.Yf(b.target)
  6892. })
  6893. setTimeout(function () {
  6894. b.addEventListener('onmoveend', function (b) {
  6895. 'centerAndZoom' !== b.mv && a.update()
  6896. })
  6897. b.addEventListener('onzoomend', function (b) {
  6898. 'centerAndZoom' !== b.mv &&
  6899. a.update({
  6900. Tw: q,
  6901. })
  6902. })
  6903. b.addEventListener('centerandzoom', function () {
  6904. a.update({
  6905. Tw: q,
  6906. })
  6907. })
  6908. }, 1)
  6909. b.addEventListener('indoor_data_refresh', u())
  6910. b.addEventListener('onresize', function () {
  6911. a.update({
  6912. S_: q,
  6913. })
  6914. })
  6915. a.update()
  6916. }
  6917. da.Oe = function (a) {
  6918. if (a instanceof Lc) {
  6919. for (var b = 0; b < this.ff.length; b++) if (this.ff[b] === a) return
  6920. this.ff.push(a)
  6921. a.na()
  6922. this.B.loaded && this.update()
  6923. }
  6924. }
  6925. da.Yf = function (a) {
  6926. if (a instanceof Lc) {
  6927. for (var b = 0; b < this.ff.length; b++)
  6928. if (this.ff[b] === a) {
  6929. this.ff.splice(b, 1)
  6930. break
  6931. }
  6932. a.remove()
  6933. }
  6934. }
  6935. da.pj = function (a) {
  6936. var b = a.getName()
  6937. if (this.Xr[b]) return this.Xr[b]
  6938. var c = this.B,
  6939. e = c.fa(),
  6940. f = c.fc,
  6941. g = a.RX(e)
  6942. c.aa.replace(/^TANGRAM_/, '')
  6943. var i = Math.ceil(f.lng / g),
  6944. k = Math.ceil(f.lat / g),
  6945. a = a.$c(e),
  6946. m = [i, k, (f.lng / g - i) * a, (f.lat / g - k) * a],
  6947. e = m[0] - Math.ceil((c.width / 2 - m[2]) / a),
  6948. f = m[1] - Math.ceil((c.height / 2 - m[3]) / a),
  6949. g = m[0] + Math.ceil((c.width / 2 + m[2]) / a),
  6950. c = m[1] + Math.ceil((c.height / 2 + m[3]) / a)
  6951. this.hc ? (this.hc.length = 0) : (this.hc = [])
  6952. for (a = e; a < g; a++) for (e = f; e < c; e++) this.hc.push([a, e])
  6953. this.hc.sort(
  6954. (function (a) {
  6955. return function (b, c) {
  6956. return (
  6957. 0.4 * Math.abs(b[0] - a[0]) +
  6958. 0.6 * Math.abs(b[1] - a[1]) -
  6959. (0.4 * Math.abs(c[0] - a[0]) + 0.6 * Math.abs(c[1] - a[1]))
  6960. )
  6961. }
  6962. })([i, k])
  6963. )
  6964. this.Xr[b] = this.hc.slice(0)
  6965. return this.Xr[b]
  6966. }
  6967. function hd(a) {
  6968. if (a.gG) return a.gG
  6969. var b = 'undefined' !== typeof TVC ? TVC.K2.z4 : {}
  6970. a.gG = {
  6971. O0: b.version ? b.version : '001',
  6972. C0: b.wn ? b.wn : '20171110',
  6973. }
  6974. return a.gG
  6975. }
  6976. da.update = function (a) {
  6977. this.Xr = {}
  6978. for (var b = 0; b < this.ff.length; b++) {
  6979. var c = this.ff[b],
  6980. e = this.pj(c.Wr)
  6981. c.update(e, a)
  6982. }
  6983. }
  6984. function id(a, b, c) {
  6985. this.kd = a
  6986. this.ff = b instanceof Mc ? [b] : b.slice(0)
  6987. c = c || {}
  6988. this.j = {
  6989. k0: c.tips || '',
  6990. LE: '',
  6991. gc: c.minZoom || 3,
  6992. Yb: c.maxZoom || 18,
  6993. W3: c.minZoom || 3,
  6994. V3: c.maxZoom || 18,
  6995. le: 256,
  6996. UF: c.textColor || 'black',
  6997. vD: c.errorImageUrl || '',
  6998. bb: new fb(new J(-21364736, -16023552), new J(23855104, 19431424)),
  6999. cd: c.projection || new S(),
  7000. }
  7001. 1 <= this.ff.length && (this.ff[0].Jw = q)
  7002. z.extend(this.j, c)
  7003. }
  7004. z.extend(id.prototype, {
  7005. getName: w('kd'),
  7006. gt: function () {
  7007. return this.j.k0
  7008. },
  7009. B3: function () {
  7010. return this.j.LE
  7011. },
  7012. oY: function () {
  7013. return this.ff[0]
  7014. },
  7015. P3: w('ff'),
  7016. $c: function () {
  7017. return this.j.le
  7018. },
  7019. bp: function () {
  7020. return this.j.gc
  7021. },
  7022. sm: function () {
  7023. return this.j.Yb
  7024. },
  7025. setMaxZoom: function (a) {
  7026. this.j.Yb = a
  7027. },
  7028. zm: function () {
  7029. return this.j.UF
  7030. },
  7031. wm: function () {
  7032. return this.j.cd
  7033. },
  7034. u3: function () {
  7035. return this.j.vD
  7036. },
  7037. $c: function () {
  7038. return this.j.le
  7039. },
  7040. dc: function (a) {
  7041. return Math.pow(2, 18 - a)
  7042. },
  7043. mE: function (a) {
  7044. return this.dc(a) * this.$c()
  7045. },
  7046. })
  7047. var jd = [
  7048. B.url.proto + B.url.domain.TILE_BASE_URLS[0] + '/it/',
  7049. B.url.proto + B.url.domain.TILE_BASE_URLS[1] + '/it/',
  7050. B.url.proto + B.url.domain.TILE_BASE_URLS[2] + '/it/',
  7051. B.url.proto + B.url.domain.TILE_BASE_URLS[3] + '/it/',
  7052. B.url.proto + B.url.domain.TILE_BASE_URLS[4] + '/it/',
  7053. ],
  7054. kd = [
  7055. B.url.proto + B.url.domain.TILE_ONLINE_URLS[0] + '/tile/',
  7056. B.url.proto + B.url.domain.TILE_ONLINE_URLS[1] + '/tile/',
  7057. B.url.proto + B.url.domain.TILE_ONLINE_URLS[2] + '/tile/',
  7058. B.url.proto + B.url.domain.TILE_ONLINE_URLS[3] + '/tile/',
  7059. B.url.proto + B.url.domain.TILE_ONLINE_URLS[4] + '/tile/',
  7060. ],
  7061. ld = {
  7062. dark: 'dl',
  7063. light: 'll',
  7064. normal: 'pl',
  7065. },
  7066. md = new Mc()
  7067. md.M_ = q
  7068. md.getTilesUrl = function (a, b, c) {
  7069. var e = a.x,
  7070. a = a.y,
  7071. f = Sb('normal'),
  7072. g = 1,
  7073. c = ld[c]
  7074. //this.map.Sx() && (g = 2); //修改
  7075. //e = this.map.Va.Lw(e, b).hs;
  7076. //return (kd[Math.abs(e + a) % kd.length] + "?qt=tile&x=" + (e + "").replace(/-/gi, "M") + "&y=" + (a + "").replace(/-/gi, "M") + "&z=" + b + "&styles=" + c + "&scaler=" + g + (6 == z.ca.ia ? "&color_dep=32&colors=50" : "") + "&udt=" + f).replace(/-(\d+)/gi, "M$1")
  7077. var tdir =
  7078. bmapcfg.tiles_path ? (bmapcfg.tiles_path + bmapcfg.tiles_dir) : bmapcfg.tiles_dir
  7079. console.log(tdir + '/' + b + '/' + e + '/' + a + bmapcfg.imgext)
  7080. return tdir + '/' + b + '/' + e + '/' + a + bmapcfg.imgext // 使用本地的瓦片
  7081. }
  7082. var La = new id('\u5730\u56fe', md, {
  7083. tips: '\u663e\u793a\u666e\u901a\u5730\u56fe',
  7084. maxZoom: 19,
  7085. }),
  7086. nd = new Mc()
  7087. nd.NO = [
  7088. B.url.proto + B.url.domain.TIlE_PERSPECT_URLS[0] + '/resource/mappic/',
  7089. B.url.proto + B.url.domain.TIlE_PERSPECT_URLS[1] + '/resource/mappic/',
  7090. B.url.proto + B.url.domain.TIlE_PERSPECT_URLS[2] + '/resource/mappic/',
  7091. B.url.proto + B.url.domain.TIlE_PERSPECT_URLS[3] + '/resource/mappic/',
  7092. ]
  7093. nd.getTilesUrl = function (a, b) {
  7094. var c = a.x,
  7095. e = a.y,
  7096. f = 256 * Math.pow(2, 20 - b),
  7097. e = Math.round((9998336 - f * e) / f) - 1
  7098. /*var tdir = bmapcfg.tiles_hybrid.length > 0 ? bmapcfg.tiles_hybrid : bmapcfg.home + "tiles_hybrid";//修改 使用本地卫星的瓦片
  7099. tdir = tdir + "/" + b + "/" + c + "/" + e + bmapcfg.imgext; //修改 使用本地卫星的瓦片
  7100. return tdir;*/
  7101. return (url =
  7102. this.NO[Math.abs(c + e) % this.NO.length] +
  7103. this.map.Ub +
  7104. '/' +
  7105. this.map.Rw +
  7106. '/3/lv' +
  7107. (21 - b) +
  7108. '/' +
  7109. c +
  7110. ',' +
  7111. e +
  7112. '.jpg')
  7113. }
  7114. var Qa = new id('\u4e09\u7ef4', nd, {
  7115. tips: '\u663e\u793a\u4e09\u7ef4\u5730\u56fe',
  7116. minZoom: 15,
  7117. maxZoom: 20,
  7118. textColor: 'white',
  7119. projection: new hb(),
  7120. })
  7121. Qa.dc = function (a) {
  7122. return Math.pow(2, 20 - a)
  7123. }
  7124. Qa.wk = function (a) {
  7125. if (!a) return ''
  7126. var b = G.pC,
  7127. c
  7128. for (c in b) if (-1 < a.search(c)) return b[c].yy
  7129. return ''
  7130. }
  7131. Qa.BL = function (a) {
  7132. return {
  7133. bj: 2,
  7134. gz: 1,
  7135. sz: 14,
  7136. sh: 4,
  7137. }[a]
  7138. }
  7139. var od = new Mc({
  7140. Jw: q,
  7141. })
  7142. od.getTilesUrl = function (a, b) {
  7143. var c = a.x,
  7144. e = a.y
  7145. return (
  7146. jd[Math.abs(c + e) % jd.length] +
  7147. 'u=x=' +
  7148. c +
  7149. ';y=' +
  7150. e +
  7151. ';z=' +
  7152. b +
  7153. ';v=009;type=sate&fm=46&udt=' +
  7154. Sb('satellite')
  7155. ).replace(/-(\d+)/gi, 'M$1')
  7156. }
  7157. var Ya = new id('\u536b\u661f', od, {
  7158. tips: '\u663e\u793a\u536b\u661f\u5f71\u50cf',
  7159. minZoom: 1,
  7160. maxZoom: 19,
  7161. textColor: 'white',
  7162. }),
  7163. pd = new Mc({
  7164. transparentPng: q,
  7165. })
  7166. pd.getTilesUrl = function (a, b) {
  7167. var c = a.x,
  7168. e = a.y,
  7169. f = Sb('satelliteStreet')
  7170. return (
  7171. kd[Math.abs(c + e) % kd.length] +
  7172. '?qt=vtile&x=' +
  7173. (c + '').replace(/-/gi, 'M') +
  7174. '&y=' +
  7175. (e + '').replace(/-/gi, 'M') +
  7176. '&z=' +
  7177. b +
  7178. '&styles=sl' +
  7179. (6 == z.ca.ia ? '&color_dep=32&colors=50' : '') +
  7180. '&udt=' +
  7181. f
  7182. ).replace(/-(\d+)/gi, 'M$1')
  7183. }
  7184. var Sa = new id('\u6df7\u5408', [od, pd], {
  7185. tips: '\u663e\u793a\u5e26\u6709\u8857\u9053\u7684\u536b\u661f\u5f71\u50cf',
  7186. labelText: '\u8def\u7f51',
  7187. minZoom: 1,
  7188. maxZoom: 19,
  7189. textColor: 'white',
  7190. })
  7191. var qd = 1,
  7192. V = {}
  7193. window.c1 = V
  7194. function W(a, b) {
  7195. z.lang.Ca.call(this)
  7196. this.Ad = {}
  7197. this.fn(a)
  7198. b = b || {}
  7199. b.la = b.renderOptions || {}
  7200. this.j = {
  7201. la: {
  7202. Ma: b.la.panel || s,
  7203. map: b.la.map || s,
  7204. Zg: b.la.autoViewport || q,
  7205. Ut: b.la.selectFirstResult,
  7206. kt: b.la.highlightMode,
  7207. Wb: b.la.enableDragging || t,
  7208. },
  7209. py: b.onSearchComplete || u(),
  7210. BN: b.onMarkersSet || u(),
  7211. AN: b.onInfoHtmlSet || u(),
  7212. DN: b.onResultsHtmlSet || u(),
  7213. zN: b.onGetBusListComplete || u(),
  7214. yN: b.onGetBusLineComplete || u(),
  7215. wN: b.onBusListHtmlSet || u(),
  7216. vN: b.onBusLineHtmlSet || u(),
  7217. bF: b.onPolylinesSet || u(),
  7218. Dp: b.reqFrom || '',
  7219. }
  7220. this.j.la.Zg =
  7221. 'undefined' != typeof b &&
  7222. 'undefined' != typeof b.renderOptions &&
  7223. 'undefined' != typeof b.renderOptions.autoViewport
  7224. ? b.renderOptions.autoViewport
  7225. : q
  7226. this.j.la.Ma = z.Fc(this.j.la.Ma)
  7227. }
  7228. z.ta(W, z.lang.Ca)
  7229. z.extend(W.prototype, {
  7230. getResults: function () {
  7231. return this.Hc ? this.Ei : this.ha
  7232. },
  7233. enableAutoViewport: function () {
  7234. this.j.la.Zg = q
  7235. },
  7236. disableAutoViewport: function () {
  7237. this.j.la.Zg = t
  7238. },
  7239. fn: function (a) {
  7240. a && (this.Ad.src = a)
  7241. },
  7242. JF: function (a) {
  7243. this.j.py = a || u()
  7244. },
  7245. setMarkersSetCallback: function (a) {
  7246. this.j.BN = a || u()
  7247. },
  7248. setPolylinesSetCallback: function (a) {
  7249. this.j.bF = a || u()
  7250. },
  7251. setInfoHtmlSetCallback: function (a) {
  7252. this.j.AN = a || u()
  7253. },
  7254. setResultsHtmlSetCallback: function (a) {
  7255. this.j.DN = a || u()
  7256. },
  7257. xm: w('Me'),
  7258. })
  7259. var rd = {
  7260. KG: B.Wc,
  7261. ab: function (a, b, c, e, f) {
  7262. this.SZ(b)
  7263. var g = (1e5 * Math.random()).toFixed(0)
  7264. B._rd['_cbk' + g] = function (b) {
  7265. b.result && b.result.error && 202 === b.result.error
  7266. ? alert(
  7267. '\u8be5AK\u56e0\u4e3a\u6076\u610f\u884c\u4e3a\u5df2\u7ecf\u88ab\u7ba1\u7406\u5458\u5c01\u7981\uff01'
  7268. )
  7269. : ((c = c || {}), a && a(b, c), delete B._rd['_cbk' + g])
  7270. }
  7271. e = e || ''
  7272. b = c && c.H0 ? Gb(b, encodeURI) : Gb(b, encodeURIComponent)
  7273. this.KG = c && c.jL ? (c.$N ? c.$N : B.vp) : B.Wc
  7274. e = this.KG + e + '?' + b + '&ie=utf-8&oue=1&fromproduct=jsapi'
  7275. f || (e += '&res=api')
  7276. e = e + ('&callback=BMap._rd._cbk' + g) + ('&ak=' + qa)
  7277. oa(e)
  7278. },
  7279. SZ: function (a) {
  7280. if (a.qt) {
  7281. var b = ''
  7282. switch (a.qt) {
  7283. case 'bt':
  7284. b = 'z_qt|bt'
  7285. break
  7286. case 'nav':
  7287. b = 'z_qt|nav'
  7288. break
  7289. case 'walk':
  7290. b = 'z_qt|walk'
  7291. break
  7292. case 'bse':
  7293. b = 'z_qt|bse'
  7294. break
  7295. case 'nse':
  7296. b = 'z_qt|nse'
  7297. break
  7298. case 'drag':
  7299. b = 'z_qt|drag'
  7300. }
  7301. '' !== b && B.alog('cus.fire', 'count', b)
  7302. }
  7303. },
  7304. }
  7305. window.o1 = rd
  7306. B._rd = {}
  7307. var ab = {}
  7308. window.n1 = ab
  7309. ab.WN = function (a) {
  7310. a = a.replace(/<\/?[^>]*>/g, '')
  7311. return (a = a.replace(/[ | ]* /g, ' '))
  7312. }
  7313. ab.JZ = function (a) {
  7314. return a.replace(
  7315. /([1-9]\d*\.\d*|0\.\d*[1-9]\d*|0?\.0+|0|[1-9]\d*),([1-9]\d*\.\d*|0\.\d*[1-9]\d*|0?\.0+|0|[1-9]\d*)(,)/g,
  7316. '$1,$2;'
  7317. )
  7318. }
  7319. ab.KZ = function (a, b) {
  7320. return a.replace(
  7321. RegExp(
  7322. '(((-?\\d+)(\\.\\d+)?),((-?\\d+)(\\.\\d+)?);)(((-?\\d+)(\\.\\d+)?),((-?\\d+)(\\.\\d+)?);){' +
  7323. b +
  7324. '}',
  7325. 'ig'
  7326. ),
  7327. '$1'
  7328. )
  7329. }
  7330. var sd = 2,
  7331. td = 6,
  7332. ud = 8,
  7333. vd = 2,
  7334. wd = 3,
  7335. xd = 6,
  7336. yd = 0,
  7337. zd = 'bt',
  7338. Ad = 'nav',
  7339. Bd = 'walk',
  7340. Cd = 'bl',
  7341. Dd = 'bsl',
  7342. Ed = 'ride',
  7343. Fd = 15,
  7344. Gd = 18
  7345. B.I = window.Instance = z.lang.Nc
  7346. function Hd(a, b, c) {
  7347. z.lang.Ca.call(this)
  7348. if (a) {
  7349. this.Wa = 'object' == typeof a ? a : z.Fc(a)
  7350. this.page = 1
  7351. this.Kd = 100
  7352. this.hK = 'pg'
  7353. this.Xf = 4
  7354. this.qK = b
  7355. this.update = q
  7356. a = {
  7357. page: 1,
  7358. $e: 100,
  7359. Kd: 100,
  7360. Xf: 4,
  7361. hK: 'pg',
  7362. update: q,
  7363. }
  7364. c || (c = a)
  7365. for (var e in c) 'undefined' != typeof c[e] && (this[e] = c[e])
  7366. this.va()
  7367. }
  7368. }
  7369. z.extend(Hd.prototype, {
  7370. va: function () {
  7371. this.na()
  7372. },
  7373. na: function () {
  7374. this.YV()
  7375. this.Wa.innerHTML = this.uW()
  7376. },
  7377. YV: function () {
  7378. isNaN(parseInt(this.page)) && (this.page = 1)
  7379. isNaN(parseInt(this.Kd)) && (this.Kd = 1)
  7380. 1 > this.page && (this.page = 1)
  7381. 1 > this.Kd && (this.Kd = 1)
  7382. this.page > this.Kd && (this.page = this.Kd)
  7383. this.page = parseInt(this.page)
  7384. this.Kd = parseInt(this.Kd)
  7385. },
  7386. G3: function () {
  7387. location.search.match(RegExp('[?&]?' + this.hK + '=([^&]*)[&$]?', 'gi'))
  7388. this.page = RegExp.$1
  7389. },
  7390. uW: function () {
  7391. var a = [],
  7392. b = this.page - 1,
  7393. c = this.page + 1
  7394. a.push('<p style="margin:0;padding:0;white-space:nowrap">')
  7395. if (!(1 > b)) {
  7396. if (this.page >= this.Xf) {
  7397. var e
  7398. a.push(
  7399. '<span style="margin-right:3px"><a style="color:#7777cc" href="javascript:void(0)" onclick="{temp1}">\u9996\u9875</a></span>'.replace(
  7400. '{temp1}',
  7401. "BMap.I('" + this.aa + "').toPage(1);"
  7402. )
  7403. )
  7404. }
  7405. a.push(
  7406. '<span style="margin-right:3px"><a style="color:#7777cc" href="javascript:void(0)" onclick="{temp2}">\u4e0a\u4e00\u9875</a></span>'.replace(
  7407. '{temp2}',
  7408. "BMap.I('" + this.aa + "').toPage(" + b + ');'
  7409. )
  7410. )
  7411. }
  7412. if (this.page < this.Xf)
  7413. (e =
  7414. 0 == this.page % this.Xf
  7415. ? this.page - this.Xf - 1
  7416. : this.page - (this.page % this.Xf) + 1),
  7417. (b = e + this.Xf - 1)
  7418. else {
  7419. e = Math.floor(this.Xf / 2)
  7420. var f = (this.Xf % 2) - 1,
  7421. b = this.Kd > this.page + e ? this.page + e : this.Kd
  7422. e = this.page - e - f
  7423. }
  7424. this.page > this.Kd - this.Xf &&
  7425. this.page >= this.Xf &&
  7426. ((e = this.Kd - this.Xf + 1), (b = this.Kd))
  7427. for (f = e; f <= b; f++)
  7428. 0 < f &&
  7429. (f == this.page
  7430. ? a.push('<span style="margin-right:3px">' + f + '</span>')
  7431. : 1 <= f &&
  7432. f <= this.Kd &&
  7433. ((e =
  7434. '<span><a style="color:#7777cc;margin-right:3px" href="javascript:void(0)" onclick="{temp3}">[' +
  7435. f +
  7436. ']</a></span>'),
  7437. a.push(
  7438. e.replace(
  7439. '{temp3}',
  7440. "BMap.I('" + this.aa + "').toPage(" + f + ');'
  7441. )
  7442. )))
  7443. c > this.Kd ||
  7444. a.push(
  7445. '<span><a style="color:#7777cc" href="javascript:void(0)" onclick="{temp4}">\u4e0b\u4e00\u9875</a></span>'.replace(
  7446. '{temp4}',
  7447. "BMap.I('" + this.aa + "').toPage(" + c + ');'
  7448. )
  7449. )
  7450. a.push('</p>')
  7451. return a.join('')
  7452. },
  7453. toPage: function (a) {
  7454. a = a ? a : 1
  7455. 'function' == typeof this.qK && (this.qK(a), (this.page = a))
  7456. this.update && this.va()
  7457. },
  7458. })
  7459. function cb(a, b) {
  7460. W.call(this, a, b)
  7461. b = b || {}
  7462. b.renderOptions = b.renderOptions || {}
  7463. this.Np(b.pageCapacity)
  7464. 'undefined' != typeof b.renderOptions.selectFirstResult &&
  7465. !b.renderOptions.selectFirstResult
  7466. ? this.UC()
  7467. : this.oD()
  7468. this.ya = []
  7469. this.yf = []
  7470. this.mb = -1
  7471. this.Pa = []
  7472. var c = this
  7473. K.load(
  7474. 'local',
  7475. function () {
  7476. c.Nz()
  7477. },
  7478. q
  7479. )
  7480. }
  7481. z.ta(cb, W, 'LocalSearch')
  7482. cb.fq = 10
  7483. cb.k1 = 1
  7484. cb.En = 100
  7485. cb.zG = 2e3
  7486. cb.HG = 1e5
  7487. z.extend(cb.prototype, {
  7488. search: function (a, b) {
  7489. this.Pa.push({
  7490. method: 'search',
  7491. arguments: [a, b],
  7492. })
  7493. },
  7494. an: function (a, b, c) {
  7495. this.Pa.push({
  7496. method: 'searchInBounds',
  7497. arguments: [a, b, c],
  7498. })
  7499. },
  7500. Jp: function (a, b, c, e) {
  7501. this.Pa.push({
  7502. method: 'searchNearby',
  7503. arguments: [a, b, c, e],
  7504. })
  7505. },
  7506. Pe: function () {
  7507. delete this.Ia
  7508. delete this.Me
  7509. delete this.ha
  7510. delete this.ua
  7511. this.mb = -1
  7512. this.Ta()
  7513. this.j.la.Ma && (this.j.la.Ma.innerHTML = '')
  7514. },
  7515. Am: u(),
  7516. oD: function () {
  7517. this.j.la.Ut = q
  7518. },
  7519. UC: function () {
  7520. this.j.la.Ut = t
  7521. },
  7522. Np: function (a) {
  7523. this.j.Jk =
  7524. 'number' == typeof a && !isNaN(a)
  7525. ? 1 > a
  7526. ? cb.fq
  7527. : a > cb.En
  7528. ? cb.fq
  7529. : a
  7530. : cb.fq
  7531. },
  7532. qf: function () {
  7533. return this.j.Jk
  7534. },
  7535. toString: ca('LocalSearch'),
  7536. })
  7537. var Id = cb.prototype
  7538. T(Id, {
  7539. clearResults: Id.Pe,
  7540. setPageCapacity: Id.Np,
  7541. getPageCapacity: Id.qf,
  7542. gotoPage: Id.Am,
  7543. searchNearby: Id.Jp,
  7544. searchInBounds: Id.an,
  7545. search: Id.search,
  7546. enableFirstResultSelection: Id.oD,
  7547. disableFirstResultSelection: Id.UC,
  7548. })
  7549. function Jd(a, b) {
  7550. W.call(this, a, b)
  7551. }
  7552. z.ta(Jd, W, 'BaseRoute')
  7553. z.extend(Jd.prototype, {
  7554. Pe: u(),
  7555. })
  7556. function Kd(a, b) {
  7557. W.call(this, a, b)
  7558. b = b || {}
  7559. this.bu(b.policy)
  7560. this.oO(b.intercityPolicy)
  7561. this.xO(b.transitTypePolicy)
  7562. this.Np(b.pageCapacity)
  7563. this.Ab = zd
  7564. this.mq = qd
  7565. this.ya = []
  7566. this.mb = -1
  7567. this.j.Vn = b.enableTraffic || t
  7568. this.Pa = []
  7569. var c = this
  7570. K.load('route', function () {
  7571. c.Sd()
  7572. })
  7573. }
  7574. Kd.En = 100
  7575. Kd.HP = [0, 1, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 1, 1, 1]
  7576. Kd.IP = [0, 3, 4, 0, 0, 0, 5]
  7577. z.ta(Kd, Jd, 'TransitRoute')
  7578. z.extend(Kd.prototype, {
  7579. bu: function (a) {
  7580. this.j.ie = 0 <= a && 5 >= a ? a : 0
  7581. },
  7582. oO: function (a) {
  7583. this.j.Hm = 0 <= a && 2 >= a ? a : 0
  7584. },
  7585. xO: function (a) {
  7586. this.j.tn = 0 <= a && 2 >= a ? a : 0
  7587. },
  7588. NA: function (a, b) {
  7589. this.Pa.push({
  7590. method: '_internalSearch',
  7591. arguments: [a, b],
  7592. })
  7593. },
  7594. search: function (a, b) {
  7595. this.Pa.push({
  7596. method: 'search',
  7597. arguments: [a, b],
  7598. })
  7599. },
  7600. Np: function (a) {
  7601. if ('string' === typeof a && ((a = parseInt(a, 10)), isNaN(a))) {
  7602. this.j.Jk = Kd.En
  7603. return
  7604. }
  7605. this.j.Jk =
  7606. 'number' !== typeof a
  7607. ? Kd.En
  7608. : 1 <= a && a <= Kd.En
  7609. ? Math.round(a)
  7610. : Kd.En
  7611. },
  7612. toString: ca('TransitRoute'),
  7613. Z1: function (a) {
  7614. return a.replace(/\(.*\)/, '')
  7615. },
  7616. })
  7617. var Ld = Kd.prototype
  7618. T(Ld, {
  7619. _internalSearch: Ld.NA,
  7620. })
  7621. function Md(a, b) {
  7622. W.call(this, a, b)
  7623. this.ya = []
  7624. this.mb = -1
  7625. this.Pa = []
  7626. var c = this,
  7627. e = this.j.la
  7628. 1 !== e.kt && 2 !== e.kt && (e.kt = 1)
  7629. this.kv = this.j.la.Wb ? q : t
  7630. K.load('route', function () {
  7631. c.Sd()
  7632. })
  7633. this.vE && this.vE()
  7634. }
  7635. Md.WP =
  7636. ' \u73af\u5c9b \u65e0\u5c5e\u6027\u9053\u8def \u4e3b\u8def \u9ad8\u901f\u8fde\u63a5\u8def \u4ea4\u53c9\u70b9\u5185\u8def\u6bb5 \u8fde\u63a5\u9053\u8def \u505c\u8f66\u573a\u5185\u90e8\u9053\u8def \u670d\u52a1\u533a\u5185\u90e8\u9053\u8def \u6865 \u6b65\u884c\u8857 \u8f85\u8def \u531d\u9053 \u5168\u5c01\u95ed\u9053\u8def \u672a\u5b9a\u4e49\u4ea4\u901a\u533a\u57df POI\u8fde\u63a5\u8def \u96a7\u9053 \u6b65\u884c\u9053 \u516c\u4ea4\u4e13\u7528\u9053 \u63d0\u524d\u53f3\u8f6c\u9053'.split(
  7637. ' '
  7638. )
  7639. z.ta(Md, Jd, 'DWRoute')
  7640. z.extend(Md.prototype, {
  7641. search: function (a, b, c) {
  7642. this.Pa.push({
  7643. method: 'search',
  7644. arguments: [a, b, c],
  7645. })
  7646. },
  7647. })
  7648. function Nd(a, b) {
  7649. Md.call(this, a, b)
  7650. b = b || {}
  7651. this.j.Vn = b.enableTraffic || t
  7652. this.bu(b.policy)
  7653. this.Ab = Ad
  7654. this.mq = wd
  7655. }
  7656. z.ta(Nd, Md, 'DrivingRoute')
  7657. Nd.prototype.bu = function (a) {
  7658. this.j.ie = 0 <= a && 5 >= a ? a : 0
  7659. }
  7660. function Od(a, b) {
  7661. Md.call(this, a, b)
  7662. this.Ab = Bd
  7663. this.mq = vd
  7664. this.kv = t
  7665. }
  7666. z.ta(Od, Md, 'WalkingRoute')
  7667. function Pd(a, b) {
  7668. Md.call(this, a, b)
  7669. this.Ab = Ed
  7670. this.mq = xd
  7671. this.kv = t
  7672. }
  7673. z.ta(Pd, Md, 'RidingRoute')
  7674. function Qd(a, b) {
  7675. z.lang.Ca.call(this)
  7676. this.Vf = []
  7677. this.Kk = []
  7678. this.j = b
  7679. this.uj = a
  7680. this.map = this.j.la.map || s
  7681. this.hO = this.j.hO
  7682. this.zb = s
  7683. this.pk = 0
  7684. this.SF = ''
  7685. this.nf = 1
  7686. this.uD = ''
  7687. this.Ep = [0, 0, 0, 0, 0, 0, 0]
  7688. this.XM = []
  7689. this.os = [1, 1, 1, 1, 1, 1, 1]
  7690. this.VO = [1, 1, 1, 1, 1, 1, 1]
  7691. this.Fp = [0, 0, 0, 0, 0, 0, 0]
  7692. this.Zm = [0, 0, 0, 0, 0, 0, 0]
  7693. this.Ib = [
  7694. {
  7695. m: '',
  7696. Ed: 0,
  7697. vn: 0,
  7698. x: 0,
  7699. y: 0,
  7700. pa: -1,
  7701. },
  7702. {
  7703. m: '',
  7704. Ed: 0,
  7705. vn: 0,
  7706. x: 0,
  7707. y: 0,
  7708. pa: -1,
  7709. },
  7710. {
  7711. m: '',
  7712. Ed: 0,
  7713. vn: 0,
  7714. x: 0,
  7715. y: 0,
  7716. pa: -1,
  7717. },
  7718. {
  7719. m: '',
  7720. Ed: 0,
  7721. vn: 0,
  7722. x: 0,
  7723. y: 0,
  7724. pa: -1,
  7725. },
  7726. {
  7727. m: '',
  7728. Ed: 0,
  7729. vn: 0,
  7730. x: 0,
  7731. y: 0,
  7732. pa: -1,
  7733. },
  7734. {
  7735. m: '',
  7736. Ed: 0,
  7737. vn: 0,
  7738. x: 0,
  7739. y: 0,
  7740. pa: -1,
  7741. },
  7742. {
  7743. m: '',
  7744. Ed: 0,
  7745. vn: 0,
  7746. x: 0,
  7747. y: 0,
  7748. pa: -1,
  7749. },
  7750. ]
  7751. this.bi = -1
  7752. this.ru = []
  7753. this.aG = []
  7754. K.load('route', u())
  7755. }
  7756. z.lang.ta(Qd, z.lang.Ca, 'RouteAddr')
  7757. var Rd = navigator.userAgent
  7758. ;/ipad|iphone|ipod|iph/i.test(Rd)
  7759. var Sd = /android/i.test(Rd)
  7760. function Td(a) {
  7761. this.vf = a || {}
  7762. }
  7763. z.extend(Td.prototype, {
  7764. gO: function (a, b, c) {
  7765. var e = this
  7766. K.load('route', function () {
  7767. e.Sd(a, b, c)
  7768. })
  7769. },
  7770. })
  7771. function Ud(a) {
  7772. this.j = {}
  7773. z.extend(this.j, a)
  7774. this.Pa = []
  7775. var b = this
  7776. K.load('othersearch', function () {
  7777. b.Sd()
  7778. })
  7779. }
  7780. z.ta(Ud, z.lang.Ca, 'Geocoder')
  7781. z.extend(Ud.prototype, {
  7782. vm: function (a, b, c) {
  7783. this.Pa.push({
  7784. method: 'getPoint',
  7785. arguments: [a, b, c],
  7786. })
  7787. },
  7788. rm: function (a, b, c) {
  7789. this.Pa.push({
  7790. method: 'getLocation',
  7791. arguments: [a, b, c],
  7792. })
  7793. },
  7794. toString: ca('Geocoder'),
  7795. })
  7796. var Vd = Ud.prototype
  7797. T(Vd, {
  7798. getPoint: Vd.vm,
  7799. getLocation: Vd.rm,
  7800. })
  7801. function Geolocation(a) {
  7802. a = a || {}
  7803. this.K = {
  7804. timeout: a.timeout || 1e4,
  7805. maximumAge: a.maximumAge || 6e5,
  7806. enableHighAccuracy: a.enableHighAccuracy || t,
  7807. zi: a.SDKLocation || t,
  7808. }
  7809. this.pe = []
  7810. var b = this
  7811. K.load('othersearch', function () {
  7812. for (var a = 0, e; (e = b.pe[a]); a++) b[e.method].apply(b, e.arguments)
  7813. })
  7814. }
  7815. z.extend(Geolocation.prototype, {
  7816. getCurrentPosition: function (a, b) {
  7817. this.pe.push({
  7818. method: 'getCurrentPosition',
  7819. arguments: arguments,
  7820. })
  7821. },
  7822. getStatus: function () {
  7823. return sd
  7824. },
  7825. enableSDKLocation: function () {
  7826. H() && (this.K.zi = q)
  7827. },
  7828. disableSDKLocation: function () {
  7829. this.K.zi = t
  7830. },
  7831. })
  7832. function Wd(a) {
  7833. a = a || {}
  7834. a.la = a.renderOptions || {}
  7835. this.j = {
  7836. la: {
  7837. map: a.la.map || s,
  7838. },
  7839. }
  7840. this.Pa = []
  7841. var b = this
  7842. K.load('othersearch', function () {
  7843. b.Sd()
  7844. })
  7845. }
  7846. z.ta(Wd, z.lang.Ca, 'LocalCity')
  7847. z.extend(Wd.prototype, {
  7848. get: function (a) {
  7849. this.Pa.push({
  7850. method: 'get',
  7851. arguments: [a],
  7852. })
  7853. },
  7854. toString: ca('LocalCity'),
  7855. })
  7856. function Xd() {
  7857. this.Pa = []
  7858. var a = this
  7859. K.load('othersearch', function () {
  7860. a.Sd()
  7861. })
  7862. }
  7863. z.ta(Xd, z.lang.Ca, 'Boundary')
  7864. z.extend(Xd.prototype, {
  7865. get: function (a, b) {
  7866. this.Pa.push({
  7867. method: 'get',
  7868. arguments: [a, b],
  7869. })
  7870. },
  7871. toString: ca('Boundary'),
  7872. })
  7873. function Yd(a, b) {
  7874. W.call(this, a, b)
  7875. this.TP = Cd
  7876. this.VP = Fd
  7877. this.SP = Dd
  7878. this.UP = Gd
  7879. this.Pa = []
  7880. var c = this
  7881. K.load('buslinesearch', function () {
  7882. c.Sd()
  7883. })
  7884. }
  7885. Yd.zv = G.qa + 'iw_plus.gif'
  7886. Yd.YS = G.qa + 'iw_minus.gif'
  7887. Yd.RU = G.qa + 'stop_icon.png'
  7888. z.ta(Yd, W)
  7889. z.extend(Yd.prototype, {
  7890. getBusList: function (a) {
  7891. this.Pa.push({
  7892. method: 'getBusList',
  7893. arguments: [a],
  7894. })
  7895. },
  7896. getBusLine: function (a) {
  7897. this.Pa.push({
  7898. method: 'getBusLine',
  7899. arguments: [a],
  7900. })
  7901. },
  7902. setGetBusListCompleteCallback: function (a) {
  7903. this.j.zN = a || u()
  7904. },
  7905. setGetBusLineCompleteCallback: function (a) {
  7906. this.j.yN = a || u()
  7907. },
  7908. setBusListHtmlSetCallback: function (a) {
  7909. this.j.wN = a || u()
  7910. },
  7911. setBusLineHtmlSetCallback: function (a) {
  7912. this.j.vN = a || u()
  7913. },
  7914. setPolylinesSetCallback: function (a) {
  7915. this.j.bF = a || u()
  7916. },
  7917. })
  7918. function Zd(a) {
  7919. W.call(this, a)
  7920. a = a || {}
  7921. this.ub = {
  7922. input: a.input || s,
  7923. gC: a.baseDom || s,
  7924. types: a.types || [],
  7925. py: a.onSearchComplete || u(),
  7926. }
  7927. this.Ad.src = a.location || '\u5168\u56fd'
  7928. this.Wi = ''
  7929. this.pg = s
  7930. this.lI = ''
  7931. this.Mi()
  7932. Ra(Ha)
  7933. var b = this
  7934. K.load('autocomplete', function () {
  7935. b.Sd()
  7936. })
  7937. }
  7938. z.ta(Zd, W, 'Autocomplete')
  7939. z.extend(Zd.prototype, {
  7940. Mi: u(),
  7941. show: u(),
  7942. U: u(),
  7943. KF: function (a) {
  7944. this.ub.types = a
  7945. },
  7946. fn: function (a) {
  7947. this.Ad.src = a
  7948. },
  7949. search: ba('Wi'),
  7950. Ly: ba('lI'),
  7951. })
  7952. var Ta
  7953. function Oa(a, b) {
  7954. function c() {
  7955. f.j.visible
  7956. ? ('inter' === f.Ke && f.j.haveBreakId && f.j.indoorExitControl === q
  7957. ? z.D.show(f.GA)
  7958. : z.D.U(f.GA),
  7959. this.j.closeControl && this.Bf && this.B && this.B.La() === this.C
  7960. ? z.D.show(f.Bf)
  7961. : z.D.U(f.Bf),
  7962. this.j.forceCloseControl && z.D.show(f.Bf))
  7963. : (z.D.U(f.Bf), z.D.U(f.GA))
  7964. }
  7965. this.C = 'string' == typeof a ? z.$(a) : a
  7966. this.aa = $d++
  7967. this.j = {
  7968. enableScrollWheelZoom: q,
  7969. panoramaRenderer: 'flash',
  7970. swfSrc: B.vg('main_domain_nocdn', 'res/swf/') + 'APILoader.swf',
  7971. visible: q,
  7972. indoorExitControl: q,
  7973. indoorFloorControl: t,
  7974. linksControl: q,
  7975. clickOnRoad: q,
  7976. navigationControl: q,
  7977. closeControl: q,
  7978. indoorSceneSwitchControl: q,
  7979. albumsControl: t,
  7980. albumsControlOptions: {},
  7981. copyrightControlOptions: {},
  7982. forceCloseControl: t,
  7983. haveBreakId: t,
  7984. }
  7985. var b = b || {},
  7986. e
  7987. for (e in b) this.j[e] = b[e]
  7988. b.closeControl === q && (this.j.forceCloseControl = q)
  7989. b.useWebGL === t && Na(t)
  7990. this.Da = {
  7991. heading: 0,
  7992. pitch: 0,
  7993. }
  7994. this.bo = []
  7995. this.Lb = this.Za = s
  7996. this.dk = this.er()
  7997. this.ya = []
  7998. this.Mc = 1
  7999. this.Ke = this.xT = this.jl = ''
  8000. this.Je = {}
  8001. this.Of = s
  8002. this.Sg = []
  8003. this.xr = []
  8004. 'cvsRender' == this.dk || Na()
  8005. ? ((this.Vj = 90), (this.Xj = -90))
  8006. : 'cssRender' == this.dk && ((this.Vj = 45), (this.Xj = -45))
  8007. this.Br = t
  8008. var f = this
  8009. this.co = function () {
  8010. this.dk === 'flashRender'
  8011. ? K.load(
  8012. 'panoramaflash',
  8013. function () {
  8014. f.Mi()
  8015. },
  8016. q
  8017. )
  8018. : K.load(
  8019. 'panorama',
  8020. function () {
  8021. f.ib()
  8022. },
  8023. q
  8024. )
  8025. b.of == 'api' ? Ra(Da) : Ra(Ea)
  8026. this.co = u()
  8027. }
  8028. this.j.jT !== q &&
  8029. (this.co(), B.Fn('cus.fire', 'count', 'z_loadpanoramacount'))
  8030. this.aU(this.C)
  8031. this.addEventListener('id_changed', function () {
  8032. Ra(Ca, {
  8033. from: b.of,
  8034. })
  8035. })
  8036. this.mQ()
  8037. this.addEventListener('indoorexit_options_changed', c)
  8038. this.addEventListener('scene_type_changed', c)
  8039. this.addEventListener('onclose_options_changed', c)
  8040. this.addEventListener('onvisible_changed', c)
  8041. }
  8042. var ae = 4,
  8043. be = 1,
  8044. $d = 0
  8045. z.lang.ta(Oa, z.lang.Ca, 'Panorama')
  8046. z.extend(Oa.prototype, {
  8047. mQ: function () {
  8048. var a = this,
  8049. b = (this.Bf = L('div'))
  8050. b.className = 'pano_close'
  8051. b.style.cssText = 'z-index: 1201;display: none'
  8052. b.title = '\u9000\u51fa\u5168\u666f'
  8053. b.onclick = function () {
  8054. a.U()
  8055. }
  8056. this.C.appendChild(b)
  8057. var c = (this.GA = L('a'))
  8058. c.className = 'pano_pc_indoor_exit'
  8059. c.style.cssText = 'z-index: 1201;display: none'
  8060. c.innerHTML =
  8061. '<span style="float:right;margin-right:12px;">\u51fa\u53e3</span>'
  8062. c.title = '\u9000\u51fa\u5ba4\u5185\u666f'
  8063. c.onclick = function () {
  8064. a.Vo()
  8065. }
  8066. this.C.appendChild(c)
  8067. window.ActiveXObject &&
  8068. !document.addEventListener &&
  8069. ((b.style.backgroundColor = 'rgb(37,37,37)'),
  8070. (c.style.backgroundColor = 'rgb(37,37,37)'))
  8071. },
  8072. Vo: u(),
  8073. aU: function (a) {
  8074. var b, c
  8075. b = a.style
  8076. c = Va(a).position
  8077. 'absolute' != c &&
  8078. 'relative' != c &&
  8079. ((b.position = 'relative'), (b.zIndex = 0))
  8080. if ('absolute' === c || 'relative' === c)
  8081. if (((a = Va(a).zIndex), !a || 'auto' === a)) b.zIndex = 0
  8082. },
  8083. OX: w('bo'),
  8084. Xb: w('Za'),
  8085. pY: w('jw'),
  8086. wO: w('jw'),
  8087. ga: w('Lb'),
  8088. Ea: w('Da'),
  8089. fa: w('Mc'),
  8090. jj: w('jl'),
  8091. I3: function () {
  8092. return this.U1 || []
  8093. },
  8094. D3: w('xT'),
  8095. ft: w('Ke'),
  8096. Ny: function (a) {
  8097. a !== this.Ke &&
  8098. ((this.Ke = a), this.dispatchEvent(new P('onscene_type_changed')))
  8099. },
  8100. vc: function (a, b, c) {
  8101. 'object' === typeof b && ((c = b), (b = l))
  8102. a != this.Za &&
  8103. ((this.ul = this.Za),
  8104. (this.vl = this.Lb),
  8105. (this.Za = a),
  8106. (this.Ke = b || 'street'),
  8107. (this.Lb = s),
  8108. c && c.pov && this.Pc(c.pov))
  8109. },
  8110. sa: function (a) {
  8111. a.pb(this.Lb) ||
  8112. ((this.ul = this.Za), (this.vl = this.Lb), (this.Lb = a), (this.Za = s))
  8113. },
  8114. Pc: function (a) {
  8115. a &&
  8116. ((this.Da = a),
  8117. (a = this.Da.pitch),
  8118. a > this.Vj ? (a = this.Vj) : a < this.Xj && (a = this.Xj),
  8119. (this.Br = q),
  8120. (this.Da.pitch = a))
  8121. },
  8122. H_: function (a, b) {
  8123. this.Xj = 0 <= a ? 0 : a
  8124. this.Vj = 0 >= b ? 0 : b
  8125. },
  8126. Qc: function (a) {
  8127. a != this.Mc &&
  8128. (a > ae && (a = ae),
  8129. a < be && (a = be),
  8130. a != this.Mc && (this.Mc = a),
  8131. 'cssRender' === this.dk && this.Pc(this.Da))
  8132. },
  8133. GB: function () {
  8134. if (this.B)
  8135. for (var a = this.B.Hx(), b = 0; b < a.length; b++)
  8136. (a[b] instanceof U || a[b] instanceof uc) &&
  8137. a[b].point &&
  8138. this.ya.push(a[b])
  8139. },
  8140. GF: ba('B'),
  8141. au: function (a) {
  8142. this.Of = a || 'none'
  8143. },
  8144. Qk: function (a) {
  8145. for (var b in a) {
  8146. if ('object' == typeof a[b]) for (var c in a[b]) this.j[b][c] = a[b][c]
  8147. else this.j[b] = a[b]
  8148. a.closeControl === q && (this.j.forceCloseControl = q)
  8149. a.closeControl === t && (this.j.forceCloseControl = t)
  8150. switch (b) {
  8151. case 'linksControl':
  8152. this.dispatchEvent(new P('onlinks_visible_changed'))
  8153. break
  8154. case 'clickOnRoad':
  8155. this.dispatchEvent(new P('onclickonroad_changed'))
  8156. break
  8157. case 'navigationControl':
  8158. this.dispatchEvent(new P('onnavigation_visible_changed'))
  8159. break
  8160. case 'indoorSceneSwitchControl':
  8161. this.dispatchEvent(new P('onindoor_default_switch_mode_changed'))
  8162. break
  8163. case 'albumsControl':
  8164. this.dispatchEvent(new P('onalbums_visible_changed'))
  8165. break
  8166. case 'albumsControlOptions':
  8167. this.dispatchEvent(new P('onalbums_options_changed'))
  8168. break
  8169. case 'copyrightControlOptions':
  8170. this.dispatchEvent(new P('oncopyright_options_changed'))
  8171. break
  8172. case 'closeControl':
  8173. this.dispatchEvent(new P('onclose_options_changed'))
  8174. break
  8175. case 'indoorExitControl':
  8176. this.dispatchEvent(new P('onindoorexit_options_changed'))
  8177. break
  8178. case 'indoorFloorControl':
  8179. this.dispatchEvent(new P('onindoorfloor_options_changed'))
  8180. }
  8181. }
  8182. },
  8183. Ek: function () {
  8184. this.Dl.style.visibility = 'hidden'
  8185. },
  8186. Ry: function () {
  8187. this.Dl.style.visibility = 'visible'
  8188. },
  8189. cX: function () {
  8190. this.j.enableScrollWheelZoom = q
  8191. },
  8192. NW: function () {
  8193. this.j.enableScrollWheelZoom = t
  8194. },
  8195. show: function () {
  8196. this.j.visible = q
  8197. },
  8198. U: function () {
  8199. this.j.visible = t
  8200. },
  8201. er: function () {
  8202. return Ua() && !H() && 'javascript' != this.j.panoramaRenderer
  8203. ? 'flashRender'
  8204. : !H() && Ob()
  8205. ? 'cvsRender'
  8206. : 'cssRender'
  8207. },
  8208. Ga: function (a) {
  8209. this.Je[a.ld] = a
  8210. },
  8211. Qb: function (a) {
  8212. delete this.Je[a]
  8213. },
  8214. kE: function () {
  8215. return this.j.visible
  8216. },
  8217. fh: function () {
  8218. return new O(this.C.clientWidth, this.C.clientHeight)
  8219. },
  8220. La: w('C'),
  8221. yL: function () {
  8222. var a = B.vg('baidumap', '?'),
  8223. b = this.Xb()
  8224. if (b) {
  8225. var b = {
  8226. panotype: this.ft(),
  8227. heading: this.Ea().heading,
  8228. pitch: this.Ea().pitch,
  8229. pid: b,
  8230. panoid: b,
  8231. from: 'api',
  8232. },
  8233. c
  8234. for (c in b) a += c + '=' + b[c] + '&'
  8235. }
  8236. return a.slice(0, -1)
  8237. },
  8238. Px: function () {
  8239. this.Qk({
  8240. copyrightControlOptions: {
  8241. logoVisible: t,
  8242. },
  8243. })
  8244. },
  8245. NF: function () {
  8246. this.Qk({
  8247. copyrightControlOptions: {
  8248. logoVisible: q,
  8249. },
  8250. })
  8251. },
  8252. aC: function (a) {
  8253. function b(a, b) {
  8254. return function () {
  8255. a.xr.push({
  8256. iN: b,
  8257. hN: arguments,
  8258. })
  8259. }
  8260. }
  8261. for (
  8262. var c = a.getPanoMethodList(), e = '', f = 0, g = c.length;
  8263. f < g;
  8264. f++
  8265. )
  8266. (e = c[f]), (this[e] = b(this, e))
  8267. this.Sg.push(a)
  8268. },
  8269. rF: function (a) {
  8270. for (var b = this.Sg.length; b--; )
  8271. this.Sg[b] === a && this.Sg.splice(b, 1)
  8272. },
  8273. FF: u(),
  8274. })
  8275. var ce = Oa.prototype
  8276. T(ce, {
  8277. setId: ce.vc,
  8278. setPosition: ce.sa,
  8279. setPov: ce.Pc,
  8280. setZoom: ce.Qc,
  8281. setOptions: ce.Qk,
  8282. getId: ce.Xb,
  8283. getPosition: ce.ga,
  8284. getPov: ce.Ea,
  8285. getZoom: ce.fa,
  8286. getLinks: ce.OX,
  8287. getBaiduMapUrl: ce.yL,
  8288. hideMapLogo: ce.Px,
  8289. showMapLogo: ce.NF,
  8290. enableDoubleClickZoom: ce.W2,
  8291. disableDoubleClickZoom: ce.J2,
  8292. enableScrollWheelZoom: ce.cX,
  8293. disableScrollWheelZoom: ce.NW,
  8294. show: ce.show,
  8295. hide: ce.U,
  8296. addPlugin: ce.aC,
  8297. removePlugin: ce.rF,
  8298. getVisible: ce.kE,
  8299. addOverlay: ce.Ga,
  8300. removeOverlay: ce.Qb,
  8301. getSceneType: ce.ft,
  8302. setPanoramaPOIType: ce.au,
  8303. exitInter: ce.Vo,
  8304. setInteractiveState: ce.FF,
  8305. })
  8306. T(window, {
  8307. BMAP_PANORAMA_POI_HOTEL: 'hotel',
  8308. BMAP_PANORAMA_POI_CATERING: 'catering',
  8309. BMAP_PANORAMA_POI_MOVIE: 'movie',
  8310. BMAP_PANORAMA_POI_TRANSIT: 'transit',
  8311. BMAP_PANORAMA_POI_INDOOR_SCENE: 'indoor_scene',
  8312. BMAP_PANORAMA_POI_NONE: 'none',
  8313. BMAP_PANORAMA_INDOOR_SCENE: 'inter',
  8314. BMAP_PANORAMA_STREET_SCENE: 'street',
  8315. })
  8316. function de() {
  8317. z.lang.Ca.call(this)
  8318. this.ld = 'PanoramaOverlay_' + this.aa
  8319. this.P = s
  8320. this.Qa = q
  8321. }
  8322. z.lang.ta(de, z.lang.Ca, 'PanoramaOverlayBase')
  8323. z.extend(de.prototype, {
  8324. E3: w('ld'),
  8325. na: function () {
  8326. aa('initialize\u65b9\u6cd5\u672a\u5b9e\u73b0')
  8327. },
  8328. remove: function () {
  8329. aa('remove\u65b9\u6cd5\u672a\u5b9e\u73b0')
  8330. },
  8331. Nf: function () {
  8332. aa('_setOverlayProperty\u65b9\u6cd5\u672a\u5b9e\u73b0')
  8333. },
  8334. })
  8335. function ee(a, b) {
  8336. de.call(this)
  8337. var c = {
  8338. position: s,
  8339. altitude: 2,
  8340. displayDistance: q,
  8341. },
  8342. b = b || {},
  8343. e
  8344. for (e in b) c[e] = b[e]
  8345. this.Lb = c.position
  8346. this.Ij = a
  8347. this.xq = c.altitude
  8348. this.zR = c.displayDistance
  8349. this.UF = c.color
  8350. this.kM = c.hoverColor
  8351. this.backgroundColor = c.backgroundColor
  8352. this.jK = c.backgroundHoverColor
  8353. this.borderColor = c.borderColor
  8354. this.oK = c.borderHoverColor
  8355. this.fontSize = c.fontSize
  8356. this.padding = c.padding
  8357. this.pE = c.imageUrl
  8358. this.size = c.size
  8359. this.xe = c.image
  8360. this.width = c.width
  8361. this.height = c.height
  8362. this.HY = c.imageData
  8363. this.borderWidth = c.borderWidth
  8364. }
  8365. z.lang.ta(ee, de, 'PanoramaLabel')
  8366. z.extend(ee.prototype, {
  8367. j3: w('borderWidth'),
  8368. getImageData: w('HY'),
  8369. zm: w('UF'),
  8370. y3: w('kM'),
  8371. f3: w('backgroundColor'),
  8372. g3: w('jK'),
  8373. h3: w('borderColor'),
  8374. i3: w('oK'),
  8375. w3: w('fontSize'),
  8376. F3: w('padding'),
  8377. z3: w('pE'),
  8378. cb: w('size'),
  8379. zx: w('xe'),
  8380. sa: function (a) {
  8381. this.Lb = a
  8382. this.Nf('position', a)
  8383. },
  8384. ga: w('Lb'),
  8385. dd: function (a) {
  8386. this.Ij = a
  8387. this.Nf('content', a)
  8388. },
  8389. xk: w('Ij'),
  8390. AF: function (a) {
  8391. this.xq = a
  8392. this.Nf('altitude', a)
  8393. },
  8394. Yo: w('xq'),
  8395. Ea: function () {
  8396. var a = this.ga(),
  8397. b = s,
  8398. c = s
  8399. this.P && (c = this.P.ga())
  8400. if (a && c)
  8401. if (a.pb(c)) b = this.P.Ea()
  8402. else {
  8403. b = {}
  8404. b.heading = fe(a.lng - c.lng, a.lat - c.lat) || 0
  8405. var a = b,
  8406. c = this.Yo(),
  8407. e = this.Xn()
  8408. a.pitch = Math.round(180 * (Math.atan(c / e) / Math.PI)) || 0
  8409. }
  8410. return b
  8411. },
  8412. Xn: function () {
  8413. var a = 0,
  8414. b,
  8415. c
  8416. this.P &&
  8417. ((b = this.P.ga()), (c = this.ga()) && !c.pb(b) && (a = S.$o(b, c)))
  8418. return a
  8419. },
  8420. U: function () {
  8421. aa('hide\u65b9\u6cd5\u672a\u5b9e\u73b0')
  8422. },
  8423. show: function () {
  8424. aa('show\u65b9\u6cd5\u672a\u5b9e\u73b0')
  8425. },
  8426. Nf: u(),
  8427. })
  8428. var ge = ee.prototype
  8429. T(ge, {
  8430. setPosition: ge.sa,
  8431. getPosition: ge.ga,
  8432. setContent: ge.dd,
  8433. getContent: ge.xk,
  8434. setAltitude: ge.AF,
  8435. getAltitude: ge.Yo,
  8436. getPov: ge.Ea,
  8437. show: ge.show,
  8438. hide: ge.U,
  8439. })
  8440. function he(a, b) {
  8441. de.call(this)
  8442. var c = {
  8443. icon: '',
  8444. title: '',
  8445. panoInfo: s,
  8446. altitude: 2,
  8447. },
  8448. b = b || {},
  8449. e
  8450. for (e in b) c[e] = b[e]
  8451. this.Lb = a
  8452. this.gI = c.icon
  8453. this.DJ = c.title
  8454. this.xq = c.altitude
  8455. this.OT = c.panoInfo
  8456. this.Da = {
  8457. heading: 0,
  8458. pitch: 0,
  8459. }
  8460. }
  8461. z.lang.ta(he, de, 'PanoramaMarker')
  8462. z.extend(he.prototype, {
  8463. sa: function (a) {
  8464. this.Lb = a
  8465. this.Nf('position', a)
  8466. },
  8467. ga: w('Lb'),
  8468. Ec: function (a) {
  8469. this.DJ = a
  8470. this.Nf('title', a)
  8471. },
  8472. gp: w('DJ'),
  8473. Rb: function (a) {
  8474. this.gI = icon
  8475. this.Nf('icon', a)
  8476. },
  8477. ap: w('gI'),
  8478. AF: function (a) {
  8479. this.xq = a
  8480. this.Nf('altitude', a)
  8481. },
  8482. Yo: w('xq'),
  8483. $D: w('OT'),
  8484. Ea: function () {
  8485. var a = s
  8486. if (this.P) {
  8487. var a = this.P.ga(),
  8488. b = this.ga(),
  8489. a = fe(b.lng - a.lng, b.lat - a.lat)
  8490. isNaN(a) && (a = 0)
  8491. a = {
  8492. heading: a,
  8493. pitch: 0,
  8494. }
  8495. } else a = this.Da
  8496. return a
  8497. },
  8498. Nf: u(),
  8499. })
  8500. var ie = he.prototype
  8501. T(ie, {
  8502. setPosition: ie.sa,
  8503. getPosition: ie.ga,
  8504. setTitle: ie.Ec,
  8505. getTitle: ie.gp,
  8506. setAltitude: ie.AF,
  8507. getAltitude: ie.Yo,
  8508. getPanoInfo: ie.$D,
  8509. getIcon: ie.ap,
  8510. setIcon: ie.Rb,
  8511. getPov: ie.Ea,
  8512. })
  8513. function fe(a, b) {
  8514. var c = 0
  8515. if (0 !== a && 0 !== b) {
  8516. var c = 180 * (Math.atan(a / b) / Math.PI),
  8517. e = 0
  8518. 0 < a && 0 > b && (e = 90)
  8519. 0 > a && 0 > b && (e = 180)
  8520. 0 > a && 0 < b && (e = 270)
  8521. c = ((c + 90) % 90) + e
  8522. } else 0 === a ? (c = 0 > b ? 180 : 0) : 0 === b && (c = 0 < a ? 90 : 270)
  8523. return Math.round(c)
  8524. }
  8525. function Na(a) {
  8526. if ('boolean' === typeof je) return je
  8527. if (a === t || !window.WebGLRenderingContext) return (je = t)
  8528. if (z.platform.Jm) {
  8529. a = 0
  8530. try {
  8531. a = navigator.userAgent.split('Android ')[1].charAt(0)
  8532. } catch (b) {}
  8533. if (5 > a) return (je = t)
  8534. }
  8535. var a = document.createElement('canvas'),
  8536. c = s
  8537. try {
  8538. c = a.getContext('webgl')
  8539. } catch (e) {
  8540. je = t
  8541. }
  8542. return (je = c === s ? t : q)
  8543. }
  8544. var je
  8545. function ke() {
  8546. if ('boolean' === typeof le) return le
  8547. le = q
  8548. if (z.platform.zE) return q
  8549. var a = navigator.userAgent
  8550. return -1 < a.indexOf('Chrome') || -1 < a.indexOf('SAMSUNG-GT-I9508')
  8551. ? q
  8552. : (le = t)
  8553. }
  8554. var le
  8555. function ec(a, b) {
  8556. this.P = a || s
  8557. var c = this
  8558. c.P && c.ba()
  8559. K.load('pservice', function () {
  8560. c.SQ()
  8561. })
  8562. 'api' == (b || {}).of ? Ra(Fa) : Ra(Ga)
  8563. this.xd = {
  8564. getPanoramaById: [],
  8565. getPanoramaByLocation: [],
  8566. getVisiblePOIs: [],
  8567. getRecommendPanosById: [],
  8568. getPanoramaVersions: [],
  8569. checkPanoSupportByCityCode: [],
  8570. getPanoramaByPOIId: [],
  8571. getCopyrightProviders: [],
  8572. }
  8573. }
  8574. B.Tm(function (a) {
  8575. 'flashRender' !== a.er() &&
  8576. new ec(a, {
  8577. of: 'api',
  8578. })
  8579. })
  8580. z.extend(ec.prototype, {
  8581. ba: function () {
  8582. function a(a) {
  8583. if (a) {
  8584. if (a.id != b.jw) {
  8585. b.wO(a.id)
  8586. b.ea = a
  8587. ke() || b.dispatchEvent(new P('onthumbnail_complete'))
  8588. b.Za != s && (b.vl = b._position)
  8589. for (var c in a)
  8590. if (a.hasOwnProperty(c))
  8591. switch (((b['_' + c] = a[c]), c)) {
  8592. case 'position':
  8593. b.Lb = a[c]
  8594. break
  8595. case 'id':
  8596. b.Za = a[c]
  8597. break
  8598. case 'links':
  8599. b.bo = a[c]
  8600. break
  8601. case 'zoom':
  8602. b.Mc = a[c]
  8603. }
  8604. if (b.vl) {
  8605. var g = b.vl,
  8606. i = b._position
  8607. c = g.lat
  8608. var k = i.lat,
  8609. m = Pb(k - c),
  8610. g = Pb(i.lng - g.lng)
  8611. c =
  8612. Math.sin(m / 2) * Math.sin(m / 2) +
  8613. Math.cos(Pb(c)) *
  8614. Math.cos(Pb(k)) *
  8615. Math.sin(g / 2) *
  8616. Math.sin(g / 2)
  8617. b.wH = 6371e3 * 2 * Math.atan2(Math.sqrt(c), Math.sqrt(1 - c))
  8618. }
  8619. c = new P('ondataload')
  8620. c.data = a
  8621. b.dispatchEvent(c)
  8622. b.dispatchEvent(new P('onposition_changed'))
  8623. b.dispatchEvent(new P('onlinks_changed'))
  8624. b.dispatchEvent(new P('oncopyright_changed'), {
  8625. copyright: a.copyright,
  8626. })
  8627. a.bm && b.j.closeControl ? z.D.show(b.WR) : z.D.U(b.WR)
  8628. }
  8629. } else
  8630. (b.Za = b.ul), (b.Lb = b.vl), b.dispatchEvent(new P('onnoresult'))
  8631. }
  8632. var b = this.P,
  8633. c = this
  8634. b.addEventListener('id_changed', function () {
  8635. c.ep(b.Xb(), a)
  8636. })
  8637. b.addEventListener('iid_changed', function () {
  8638. c.Tg(ec.el + 'qt=idata&iid=' + b.CA + '&fn=', function (b) {
  8639. if (b && b.result && 0 == b.result.error) {
  8640. var b = b.content[0].interinfo,
  8641. f = {}
  8642. f.bm = b.BreakID
  8643. for (var g = b.Defaultfloor, i = s, k = 0; k < b.Floors.length; k++)
  8644. if (b.Floors[k].Floor == g) {
  8645. i = b.Floors[k]
  8646. break
  8647. }
  8648. f.id = i.StartID || i.Points[0].PID
  8649. c.ep(f.id, a, f)
  8650. }
  8651. })
  8652. })
  8653. b.addEventListener('position_changed_inner', function () {
  8654. c.kj(b.ga(), a)
  8655. })
  8656. },
  8657. ep: function (a, b) {
  8658. this.xd.getPanoramaById.push(arguments)
  8659. },
  8660. kj: function (a, b, c) {
  8661. this.xd.getPanoramaByLocation.push(arguments)
  8662. },
  8663. lE: function (a, b, c, e) {
  8664. this.xd.getVisiblePOIs.push(arguments)
  8665. },
  8666. Kx: function (a, b) {
  8667. this.xd.getRecommendPanosById.push(arguments)
  8668. },
  8669. Jx: function (a) {
  8670. this.xd.getPanoramaVersions.push(arguments)
  8671. },
  8672. nC: function (a, b) {
  8673. this.xd.checkPanoSupportByCityCode.push(arguments)
  8674. },
  8675. Ix: function (a, b) {
  8676. this.xd.getPanoramaByPOIId.push(arguments)
  8677. },
  8678. CL: function (a) {
  8679. this.xd.getCopyrightProviders.push(arguments)
  8680. },
  8681. })
  8682. var ne = ec.prototype
  8683. T(ne, {
  8684. getPanoramaById: ne.ep,
  8685. getPanoramaByLocation: ne.kj,
  8686. getPanoramaByPOIId: ne.Ix,
  8687. })
  8688. function dc(a) {
  8689. Mc.call(this)
  8690. 'api' == (a || {}).of ? Ra(Aa) : Ra(Ba)
  8691. }
  8692. dc.OG = B.vg('pano', 'tile/')
  8693. dc.prototype = new Mc()
  8694. dc.prototype.getTilesUrl = function (a, b) {
  8695. var c =
  8696. dc.OG[(a.x + a.y) % dc.OG.length] +
  8697. '?udt=20150114&qt=tile&styles=pl&x=' +
  8698. a.x +
  8699. '&y=' +
  8700. a.y +
  8701. '&z=' +
  8702. b
  8703. z.ca.ia && 6 >= z.ca.ia && (c += '&color_dep=32')
  8704. return c
  8705. }
  8706. dc.prototype.zt = ca(q)
  8707. oe.Wd = new S()
  8708. function oe() {}
  8709. z.extend(oe, {
  8710. OW: function (a, b, c) {
  8711. c = z.lang.Nc(c)
  8712. b = {
  8713. data: b,
  8714. }
  8715. 'position_changed' == a &&
  8716. (b.data = oe.Wd.xj(new Q(b.data.mercatorX, b.data.mercatorY)))
  8717. c.dispatchEvent(new P('on' + a), b)
  8718. },
  8719. })
  8720. var pe = oe
  8721. T(pe, {
  8722. dispatchFlashEvent: pe.OW,
  8723. })
  8724. var qe = {
  8725. KP: 50,
  8726. }
  8727. qe.Ou = B.vg('pano')[0]
  8728. qe.Mu = {
  8729. width: 220,
  8730. height: 60,
  8731. }
  8732. z.extend(qe, {
  8733. tM: function (a, b, c, e) {
  8734. if (!b || !c || !c.lngLat || !c.panoInstance) e()
  8735. else {
  8736. this.jo === l &&
  8737. (this.jo = new ec(s, {
  8738. of: 'api',
  8739. }))
  8740. var f = this
  8741. this.jo.nC(b, function (b) {
  8742. b
  8743. ? f.jo.kj(c.lngLat, qe.KP, function (b) {
  8744. if (b && b.id) {
  8745. var g = b.id,
  8746. m = b.rh,
  8747. b = b.th,
  8748. n = ec.Wd.kh(c.lngLat),
  8749. o = f.AS(n, {
  8750. x: m,
  8751. y: b,
  8752. }),
  8753. m = f.PL(g, o, 0, qe.Mu.width, qe.Mu.height)
  8754. a.content = f.BS(a.content, m, c.titleTip, c.beforeDomId)
  8755. a.addEventListener('open', function () {
  8756. ia.M(z.Fc('infoWndPano'), 'click', function () {
  8757. c.panoInstance.vc(g)
  8758. c.panoInstance.show()
  8759. c.panoInstance.Pc({
  8760. heading: o,
  8761. pitch: 0,
  8762. })
  8763. })
  8764. })
  8765. }
  8766. e()
  8767. })
  8768. : e()
  8769. })
  8770. }
  8771. },
  8772. BS: function (a, b, c, e) {
  8773. var c = c || '',
  8774. f
  8775. !e || !a.split(e)[0]
  8776. ? ((e = a), (a = ''))
  8777. : ((e = a.split(e)[0]),
  8778. (f = e.lastIndexOf('<')),
  8779. (e = a.substring(0, f)),
  8780. (a = a.substring(f)))
  8781. f = []
  8782. var g = qe.Mu.width,
  8783. i = qe.Mu.height
  8784. f.push(e)
  8785. f.push(
  8786. "<div id='infoWndPano' class='panoInfoBox' style='height:" +
  8787. i +
  8788. 'px;width:' +
  8789. g +
  8790. "px; margin-top: -19px;'>"
  8791. )
  8792. f.push(
  8793. "<img class='pano_thumnail_img' width='" +
  8794. g +
  8795. "' height='" +
  8796. i +
  8797. "' border='0' alt='" +
  8798. c +
  8799. "\u5916\u666f' title='" +
  8800. c +
  8801. "\u5916\u666f' src='" +
  8802. b +
  8803. "' onerror='Pano.PanoEntranceUtil.thumbnailNotFound(this, " +
  8804. g +
  8805. ', ' +
  8806. i +
  8807. ");' />"
  8808. )
  8809. f.push(
  8810. "<div class='panoInfoBoxTitleBg' style='width:" +
  8811. g +
  8812. "px;'></div><a href='javascript:void(0)' class='panoInfoBoxTitleContent' >\u8fdb\u5165\u5168\u666f&gt;&gt;</a>"
  8813. )
  8814. f.push('</div>')
  8815. f.push(a)
  8816. return f.join('')
  8817. },
  8818. AS: function (a, b) {
  8819. var c = 90 - (180 * Math.atan2(a.y - b.y, a.x - b.x)) / Math.PI
  8820. 0 > c && (c += 360)
  8821. return c
  8822. },
  8823. PL: function (a, b, c, e, f) {
  8824. var g = {
  8825. panoId: a,
  8826. panoHeading: b || 0,
  8827. panoPitch: c || 0,
  8828. width: e,
  8829. height: f,
  8830. }
  8831. return (
  8832. qe.Ou +
  8833. '?qt=pr3d&fovy=75&quality=80&panoid={panoId}&heading={panoHeading}&pitch={panoPitch}&width={width}&height={height}'
  8834. ).replace(/\{(.*?)\}/g, function (a, b) {
  8835. return g[b]
  8836. })
  8837. },
  8838. })
  8839. var te = document,
  8840. ue = Math,
  8841. ve = te.createElement('div').style,
  8842. we
  8843. a: {
  8844. for (
  8845. var xe = ['t', 'webkitT', 'MozT', 'msT', 'OT'],
  8846. ye,
  8847. ze = 0,
  8848. Ae = xe.length;
  8849. ze < Ae;
  8850. ze++
  8851. )
  8852. if (((ye = xe[ze] + 'ransform'), ye in ve)) {
  8853. we = xe[ze].substr(0, xe[ze].length - 1)
  8854. break a
  8855. }
  8856. we = t
  8857. }
  8858. var Be = we ? '-' + we.toLowerCase() + '-' : '',
  8859. De = Ce('transform'),
  8860. Ee = Ce('transitionProperty'),
  8861. Fe = Ce('transitionDuration'),
  8862. Ge = Ce('transformOrigin'),
  8863. He = Ce('transitionTimingFunction'),
  8864. Ie = Ce('transitionDelay'),
  8865. Sd = /android/gi.test(navigator.appVersion),
  8866. Je = /iphone|ipad/gi.test(navigator.appVersion),
  8867. Ke = /hp-tablet/gi.test(navigator.appVersion),
  8868. Le = Ce('perspective') in ve,
  8869. Me = 'ontouchstart' in window && !Ke,
  8870. Ne = we !== t,
  8871. Oe = Ce('transition') in ve,
  8872. Pe = 'onorientationchange' in window ? 'orientationchange' : 'resize',
  8873. Qe = Me ? 'touchstart' : 'mousedown',
  8874. Re = Me ? 'touchmove' : 'mousemove',
  8875. Se = Me ? 'touchend' : 'mouseup',
  8876. Te = Me ? 'touchcancel' : 'mouseup',
  8877. Ue =
  8878. we === t
  8879. ? t
  8880. : {
  8881. '': 'transitionend',
  8882. webkit: 'webkitTransitionEnd',
  8883. Moz: 'transitionend',
  8884. O: 'otransitionend',
  8885. ms: 'MSTransitionEnd',
  8886. }[we],
  8887. Ve =
  8888. window.requestAnimationFrame ||
  8889. window.webkitRequestAnimationFrame ||
  8890. window.mozRequestAnimationFrame ||
  8891. window.oRequestAnimationFrame ||
  8892. window.msRequestAnimationFrame ||
  8893. function (a) {
  8894. return setTimeout(a, 1)
  8895. },
  8896. We =
  8897. window.cancelRequestAnimationFrame ||
  8898. window.U5 ||
  8899. window.webkitCancelRequestAnimationFrame ||
  8900. window.mozCancelRequestAnimationFrame ||
  8901. window.oCancelRequestAnimationFrame ||
  8902. window.msCancelRequestAnimationFrame ||
  8903. clearTimeout,
  8904. Xe = Le ? ' translateZ(0)' : ''
  8905. function Ye(a, b) {
  8906. var c = this,
  8907. e
  8908. c.zn = 'object' == typeof a ? a : te.getElementById(a)
  8909. c.zn.style.overflow = 'hidden'
  8910. c.Nb = c.zn.children[0]
  8911. c.options = {
  8912. kp: q,
  8913. xn: q,
  8914. x: 0,
  8915. y: 0,
  8916. Go: q,
  8917. LV: t,
  8918. iy: q,
  8919. OE: q,
  8920. Yk: q,
  8921. wi: t,
  8922. n0: 0,
  8923. Pw: t,
  8924. Mx: q,
  8925. ii: q,
  8926. xi: q,
  8927. AD: Sd,
  8928. Qx: Je,
  8929. kX: Je && Le,
  8930. xF: '',
  8931. zoom: t,
  8932. $k: 1,
  8933. aq: 4,
  8934. QW: 2,
  8935. qP: 'scroll',
  8936. iu: t,
  8937. Uy: 1,
  8938. CN: s,
  8939. uN: function (a) {
  8940. a.preventDefault()
  8941. },
  8942. FN: s,
  8943. tN: s,
  8944. EN: s,
  8945. sN: s,
  8946. oy: s,
  8947. GN: s,
  8948. xN: s,
  8949. zp: s,
  8950. HN: s,
  8951. yp: s,
  8952. }
  8953. for (e in b) c.options[e] = b[e]
  8954. c.x = c.options.x
  8955. c.y = c.options.y
  8956. c.options.Yk = Ne && c.options.Yk
  8957. c.options.ii = c.options.kp && c.options.ii
  8958. c.options.xi = c.options.xn && c.options.xi
  8959. c.options.zoom = c.options.Yk && c.options.zoom
  8960. c.options.wi = Oe && c.options.wi
  8961. c.options.zoom && Sd && (Xe = '')
  8962. c.Nb.style[Ee] = c.options.Yk ? Be + 'transform' : 'top left'
  8963. c.Nb.style[Fe] = '0'
  8964. c.Nb.style[Ge] = '0 0'
  8965. c.options.wi && (c.Nb.style[He] = 'cubic-bezier(0.33,0.66,0.66,1)')
  8966. c.options.Yk
  8967. ? (c.Nb.style[De] = 'translate(' + c.x + 'px,' + c.y + 'px)' + Xe)
  8968. : (c.Nb.style.cssText +=
  8969. ';position:absolute;top:' + c.y + 'px;left:' + c.x + 'px')
  8970. c.options.wi && (c.options.AD = q)
  8971. c.refresh()
  8972. c.ba(Pe, window)
  8973. c.ba(Qe)
  8974. !Me &&
  8975. 'none' != c.options.qP &&
  8976. (c.ba('DOMMouseScroll'), c.ba('mousewheel'))
  8977. c.options.Pw &&
  8978. (c.XV = setInterval(function () {
  8979. c.PQ()
  8980. }, 500))
  8981. this.options.Mx &&
  8982. (Event.prototype.stopImmediatePropagation ||
  8983. ((document.body.removeEventListener = function (a, b, c) {
  8984. var e = Node.prototype.removeEventListener
  8985. a === 'click'
  8986. ? e.call(document.body, a, b.iM || b, c)
  8987. : e.call(document.body, a, b, c)
  8988. }),
  8989. (document.body.addEventListener = function (a, b, c) {
  8990. var e = Node.prototype.addEventListener
  8991. a === 'click'
  8992. ? e.call(
  8993. document.body,
  8994. a,
  8995. b.iM ||
  8996. (b.iM = function (a) {
  8997. a.RZ || b(a)
  8998. }),
  8999. c
  9000. )
  9001. : e.call(document.body, a, b, c)
  9002. })),
  9003. c.ba('click', document.body, q))
  9004. }
  9005. Ye.prototype = {
  9006. enabled: q,
  9007. x: 0,
  9008. y: 0,
  9009. yj: [],
  9010. scale: 1,
  9011. HC: 0,
  9012. IC: 0,
  9013. We: [],
  9014. wf: [],
  9015. fC: s,
  9016. cz: 0,
  9017. handleEvent: function (a) {
  9018. switch (a.type) {
  9019. case Qe:
  9020. if (!Me && 0 !== a.button) break
  9021. this.aw(a)
  9022. break
  9023. case Re:
  9024. this.zT(a)
  9025. break
  9026. case Se:
  9027. case Te:
  9028. this.lv(a)
  9029. break
  9030. case Pe:
  9031. this.zB()
  9032. break
  9033. case 'DOMMouseScroll':
  9034. case 'mousewheel':
  9035. this.eV(a)
  9036. break
  9037. case Ue:
  9038. this.$U(a)
  9039. break
  9040. case 'click':
  9041. this.$Q(a)
  9042. }
  9043. },
  9044. PQ: function () {
  9045. !this.oh &&
  9046. !this.al &&
  9047. !(
  9048. this.Yl ||
  9049. (this.Ky == this.Nb.offsetWidth * this.scale &&
  9050. this.Ip == this.Nb.offsetHeight * this.scale)
  9051. ) &&
  9052. this.refresh()
  9053. },
  9054. Sv: function (a) {
  9055. var b
  9056. this[a + 'Scrollbar']
  9057. ? (this[a + 'ScrollbarWrapper'] ||
  9058. ((b = te.createElement('div')),
  9059. this.options.xF
  9060. ? (b.className = this.options.xF + a.toUpperCase())
  9061. : (b.style.cssText =
  9062. 'position:absolute;z-index:100;' +
  9063. ('h' == a
  9064. ? 'height:7px;bottom:1px;left:2px;right:' +
  9065. (this.xi ? '7' : '2') +
  9066. 'px'
  9067. : 'width:7px;bottom:' +
  9068. (this.ii ? '7' : '2') +
  9069. 'px;top:2px;right:1px')),
  9070. (b.style.cssText +=
  9071. ';pointer-events:none;' +
  9072. Be +
  9073. 'transition-property:opacity;' +
  9074. Be +
  9075. 'transition-duration:' +
  9076. (this.options.kX ? '350ms' : '0') +
  9077. ';overflow:hidden;opacity:' +
  9078. (this.options.Qx ? '0' : '1')),
  9079. this.zn.appendChild(b),
  9080. (this[a + 'ScrollbarWrapper'] = b),
  9081. (b = te.createElement('div')),
  9082. this.options.xF ||
  9083. (b.style.cssText =
  9084. 'position:absolute;z-index:100;background:rgba(0,0,0,0.5);border:1px solid rgba(255,255,255,0.9);' +
  9085. Be +
  9086. 'background-clip:padding-box;' +
  9087. Be +
  9088. 'box-sizing:border-box;' +
  9089. ('h' == a ? 'height:100%' : 'width:100%') +
  9090. ';' +
  9091. Be +
  9092. 'border-radius:3px;border-radius:3px'),
  9093. (b.style.cssText +=
  9094. ';pointer-events:none;' +
  9095. Be +
  9096. 'transition-property:' +
  9097. Be +
  9098. 'transform;' +
  9099. Be +
  9100. 'transition-timing-function:cubic-bezier(0.33,0.66,0.66,1);' +
  9101. Be +
  9102. 'transition-duration:0;' +
  9103. Be +
  9104. 'transform: translate(0,0)' +
  9105. Xe),
  9106. this.options.wi &&
  9107. (b.style.cssText +=
  9108. ';' +
  9109. Be +
  9110. 'transition-timing-function:cubic-bezier(0.33,0.66,0.66,1)'),
  9111. this[a + 'ScrollbarWrapper'].appendChild(b),
  9112. (this[a + 'ScrollbarIndicator'] = b)),
  9113. 'h' == a
  9114. ? ((this.fM = this.gM.clientWidth),
  9115. (this.yY = ue.max(ue.round((this.fM * this.fM) / this.Ky), 8)),
  9116. (this.xY.style.width = this.yY + 'px'))
  9117. : ((this.iP = this.jP.clientHeight),
  9118. (this.L0 = ue.max(ue.round((this.iP * this.iP) / this.Ip), 8)),
  9119. (this.K0.style.height = this.L0 + 'px')),
  9120. this.AB(a, q))
  9121. : this[a + 'ScrollbarWrapper'] &&
  9122. (Ne && (this[a + 'ScrollbarIndicator'].style[De] = ''),
  9123. this[a + 'ScrollbarWrapper'].parentNode.removeChild(
  9124. this[a + 'ScrollbarWrapper']
  9125. ),
  9126. (this[a + 'ScrollbarWrapper'] = s),
  9127. (this[a + 'ScrollbarIndicator'] = s))
  9128. },
  9129. zB: function () {
  9130. var a = this
  9131. setTimeout(
  9132. function () {
  9133. a.refresh()
  9134. },
  9135. Sd ? 200 : 0
  9136. )
  9137. },
  9138. Ar: function (a, b) {
  9139. this.al ||
  9140. ((a = this.kp ? a : 0),
  9141. (b = this.xn ? b : 0),
  9142. this.options.Yk
  9143. ? (this.Nb.style[De] =
  9144. 'translate(' +
  9145. a +
  9146. 'px,' +
  9147. b +
  9148. 'px) scale(' +
  9149. this.scale +
  9150. ')' +
  9151. Xe)
  9152. : ((a = ue.round(a)),
  9153. (b = ue.round(b)),
  9154. (this.Nb.style.left = a + 'px'),
  9155. (this.Nb.style.top = b + 'px')),
  9156. (this.x = a),
  9157. (this.y = b),
  9158. this.AB('h'),
  9159. this.AB('v'))
  9160. },
  9161. AB: function (a, b) {
  9162. var c = 'h' == a ? this.x : this.y
  9163. this[a + 'Scrollbar'] &&
  9164. ((c *= this[a + 'ScrollbarProp']),
  9165. 0 > c
  9166. ? (this.options.AD ||
  9167. ((c = this[a + 'ScrollbarIndicatorSize'] + ue.round(3 * c)),
  9168. 8 > c && (c = 8),
  9169. (this[a + 'ScrollbarIndicator'].style[
  9170. 'h' == a ? 'width' : 'height'
  9171. ] = c + 'px')),
  9172. (c = 0))
  9173. : c > this[a + 'ScrollbarMaxScroll'] &&
  9174. (this.options.AD
  9175. ? (c = this[a + 'ScrollbarMaxScroll'])
  9176. : ((c =
  9177. this[a + 'ScrollbarIndicatorSize'] -
  9178. ue.round(3 * (c - this[a + 'ScrollbarMaxScroll']))),
  9179. 8 > c && (c = 8),
  9180. (this[a + 'ScrollbarIndicator'].style[
  9181. 'h' == a ? 'width' : 'height'
  9182. ] = c + 'px'),
  9183. (c =
  9184. this[a + 'ScrollbarMaxScroll'] +
  9185. (this[a + 'ScrollbarIndicatorSize'] - c)))),
  9186. (this[a + 'ScrollbarWrapper'].style[Ie] = '0'),
  9187. (this[a + 'ScrollbarWrapper'].style.opacity =
  9188. b && this.options.Qx ? '0' : '1'),
  9189. (this[a + 'ScrollbarIndicator'].style[De] =
  9190. 'translate(' + ('h' == a ? c + 'px,0)' : '0,' + c + 'px)') + Xe))
  9191. },
  9192. $Q: function (a) {
  9193. if (a.XR === q) return (this.YB = a.target), (this.sx = Date.now()), q
  9194. if (this.YB && this.sx) {
  9195. if (600 < Date.now() - this.sx) return (this.sx = this.YB = s), q
  9196. } else {
  9197. for (var b = a.target; b != this.Nb && b != document.body; )
  9198. b = b.parentNode
  9199. if (b == document.body) return q
  9200. }
  9201. for (b = a.target; 1 != b.nodeType; ) b = b.parentNode
  9202. b = b.tagName.toLowerCase()
  9203. if ('select' != b && 'input' != b && 'textarea' != b)
  9204. return (
  9205. a.stopImmediatePropagation
  9206. ? a.stopImmediatePropagation()
  9207. : (a.RZ = q),
  9208. a.stopPropagation(),
  9209. a.preventDefault(),
  9210. (this.sx = this.YB = s),
  9211. t
  9212. )
  9213. },
  9214. aw: function (a) {
  9215. var b = Me ? a.touches[0] : a,
  9216. c,
  9217. e
  9218. if (this.enabled) {
  9219. this.options.uN && this.options.uN.call(this, a)
  9220. ;(this.options.wi || this.options.zoom) && this.FJ(0)
  9221. this.al = this.Yl = this.oh = t
  9222. this.RC = this.QC = this.vw = this.uw = this.XC = this.WC = 0
  9223. this.options.zoom &&
  9224. Me &&
  9225. 1 < a.touches.length &&
  9226. ((e = ue.abs(a.touches[0].pageX - a.touches[1].pageX)),
  9227. (c = ue.abs(a.touches[0].pageY - a.touches[1].pageY)),
  9228. (this.p0 = ue.sqrt(e * e + c * c)),
  9229. (this.qy =
  9230. ue.abs(a.touches[0].pageX + a.touches[1].pageX - 2 * this.iG) / 2 -
  9231. this.x),
  9232. (this.ty =
  9233. ue.abs(a.touches[0].pageY + a.touches[1].pageY - 2 * this.jG) / 2 -
  9234. this.y),
  9235. this.options.zp && this.options.zp.call(this, a))
  9236. if (
  9237. this.options.iy &&
  9238. (this.options.Yk
  9239. ? ((c = getComputedStyle(this.Nb, s)
  9240. [De].replace(/[^0-9\-.,]/g, '')
  9241. .split(',')),
  9242. (e = +(c[12] || c[4])),
  9243. (c = +(c[13] || c[5])))
  9244. : ((e = +getComputedStyle(this.Nb, s).left.replace(/[^0-9-]/g, '')),
  9245. (c = +getComputedStyle(this.Nb, s).top.replace(/[^0-9-]/g, ''))),
  9246. e != this.x || c != this.y)
  9247. )
  9248. this.options.wi ? this.$d(Ue) : We(this.fC),
  9249. (this.yj = []),
  9250. this.Ar(e, c),
  9251. this.options.oy && this.options.oy.call(this)
  9252. this.ww = this.x
  9253. this.xw = this.y
  9254. this.lu = this.x
  9255. this.mu = this.y
  9256. this.rh = b.pageX
  9257. this.th = b.pageY
  9258. this.startTime = a.timeStamp || Date.now()
  9259. this.options.FN && this.options.FN.call(this, a)
  9260. this.ba(Re, window)
  9261. this.ba(Se, window)
  9262. this.ba(Te, window)
  9263. }
  9264. },
  9265. zT: function (a) {
  9266. var b = Me ? a.touches[0] : a,
  9267. c = b.pageX - this.rh,
  9268. e = b.pageY - this.th,
  9269. f = this.x + c,
  9270. g = this.y + e,
  9271. i = a.timeStamp || Date.now()
  9272. this.options.tN && this.options.tN.call(this, a)
  9273. if (this.options.zoom && Me && 1 < a.touches.length)
  9274. (f = ue.abs(a.touches[0].pageX - a.touches[1].pageX)),
  9275. (g = ue.abs(a.touches[0].pageY - a.touches[1].pageY)),
  9276. (this.o0 = ue.sqrt(f * f + g * g)),
  9277. (this.al = q),
  9278. (b = (1 / this.p0) * this.o0 * this.scale),
  9279. b < this.options.$k
  9280. ? (b = 0.5 * this.options.$k * Math.pow(2, b / this.options.$k))
  9281. : b > this.options.aq &&
  9282. (b = 2 * this.options.aq * Math.pow(0.5, this.options.aq / b)),
  9283. (this.rp = b / this.scale),
  9284. (f = this.qy - this.qy * this.rp + this.x),
  9285. (g = this.ty - this.ty * this.rp + this.y),
  9286. (this.Nb.style[De] =
  9287. 'translate(' + f + 'px,' + g + 'px) scale(' + b + ')' + Xe),
  9288. this.options.HN && this.options.HN.call(this, a)
  9289. else {
  9290. this.rh = b.pageX
  9291. this.th = b.pageY
  9292. if (0 < f || f < this.he)
  9293. f = this.options.Go
  9294. ? this.x + c / 2
  9295. : 0 <= f || 0 <= this.he
  9296. ? 0
  9297. : this.he
  9298. if (g > this.sf || g < this.qd)
  9299. g = this.options.Go
  9300. ? this.y + e / 2
  9301. : g >= this.sf || 0 <= this.qd
  9302. ? this.sf
  9303. : this.qd
  9304. this.WC += c
  9305. this.XC += e
  9306. this.uw = ue.abs(this.WC)
  9307. this.vw = ue.abs(this.XC)
  9308. ;(6 > this.uw && 6 > this.vw) ||
  9309. (this.options.OE &&
  9310. (this.uw > this.vw + 5
  9311. ? ((g = this.y), (e = 0))
  9312. : this.vw > this.uw + 5 && ((f = this.x), (c = 0))),
  9313. (this.oh = q),
  9314. this.Ar(f, g),
  9315. (this.QC = 0 < c ? -1 : 0 > c ? 1 : 0),
  9316. (this.RC = 0 < e ? -1 : 0 > e ? 1 : 0),
  9317. 300 < i - this.startTime &&
  9318. ((this.startTime = i), (this.lu = this.x), (this.mu = this.y)),
  9319. this.options.EN && this.options.EN.call(this, a))
  9320. }
  9321. },
  9322. lv: function (a) {
  9323. if (!(Me && 0 !== a.touches.length)) {
  9324. var b = this,
  9325. c = Me ? a.changedTouches[0] : a,
  9326. e,
  9327. f,
  9328. g = {
  9329. Ba: 0,
  9330. time: 0,
  9331. },
  9332. i = {
  9333. Ba: 0,
  9334. time: 0,
  9335. },
  9336. k = (a.timeStamp || Date.now()) - b.startTime
  9337. e = b.x
  9338. f = b.y
  9339. b.$d(Re, window)
  9340. b.$d(Se, window)
  9341. b.$d(Te, window)
  9342. b.options.sN && b.options.sN.call(b, a)
  9343. if (b.al)
  9344. (e = b.scale * b.rp),
  9345. (e = Math.max(b.options.$k, e)),
  9346. (e = Math.min(b.options.aq, e)),
  9347. (b.rp = e / b.scale),
  9348. (b.scale = e),
  9349. (b.x = b.qy - b.qy * b.rp + b.x),
  9350. (b.y = b.ty - b.ty * b.rp + b.y),
  9351. (b.Nb.style[Fe] = '200ms'),
  9352. (b.Nb.style[De] =
  9353. 'translate(' +
  9354. b.x +
  9355. 'px,' +
  9356. b.y +
  9357. 'px) scale(' +
  9358. b.scale +
  9359. ')' +
  9360. Xe),
  9361. (b.al = t),
  9362. b.refresh(),
  9363. b.options.yp && b.options.yp.call(b, a)
  9364. else {
  9365. if (b.oh) {
  9366. if (300 > k && b.options.iy) {
  9367. g = e
  9368. ? b.BI(
  9369. e - b.lu,
  9370. k,
  9371. -b.x,
  9372. b.Ky - b.Cu + b.x,
  9373. b.options.Go ? b.Cu : 0
  9374. )
  9375. : g
  9376. i = f
  9377. ? b.BI(
  9378. f - b.mu,
  9379. k,
  9380. -b.y,
  9381. 0 > b.qd ? b.Ip - b.An + b.y - b.sf : 0,
  9382. b.options.Go ? b.An : 0
  9383. )
  9384. : i
  9385. e = b.x + g.Ba
  9386. f = b.y + i.Ba
  9387. if ((0 < b.x && 0 < e) || (b.x < b.he && e < b.he))
  9388. g = {
  9389. Ba: 0,
  9390. time: 0,
  9391. }
  9392. if ((b.y > b.sf && f > b.sf) || (b.y < b.qd && f < b.qd))
  9393. i = {
  9394. Ba: 0,
  9395. time: 0,
  9396. }
  9397. }
  9398. g.Ba || i.Ba
  9399. ? ((c = ue.max(ue.max(g.time, i.time), 10)),
  9400. b.options.iu &&
  9401. ((g = e - b.ww),
  9402. (i = f - b.xw),
  9403. ue.abs(g) < b.options.Uy && ue.abs(i) < b.options.Uy
  9404. ? b.scrollTo(b.ww, b.xw, 200)
  9405. : ((g = b.vJ(e, f)),
  9406. (e = g.x),
  9407. (f = g.y),
  9408. (c = ue.max(g.time, c)))),
  9409. b.scrollTo(ue.round(e), ue.round(f), c))
  9410. : b.options.iu
  9411. ? ((g = e - b.ww),
  9412. (i = f - b.xw),
  9413. ue.abs(g) < b.options.Uy && ue.abs(i) < b.options.Uy
  9414. ? b.scrollTo(b.ww, b.xw, 200)
  9415. : ((g = b.vJ(b.x, b.y)),
  9416. (g.x != b.x || g.y != b.y) && b.scrollTo(g.x, g.y, g.time)))
  9417. : b.lo(200)
  9418. } else {
  9419. if (Me)
  9420. if (b.VK && b.options.zoom)
  9421. clearTimeout(b.VK),
  9422. (b.VK = s),
  9423. b.options.zp && b.options.zp.call(b, a),
  9424. b.zoom(b.rh, b.th, 1 == b.scale ? b.options.QW : 1),
  9425. b.options.yp &&
  9426. setTimeout(function () {
  9427. b.options.yp.call(b, a)
  9428. }, 200)
  9429. else if (this.options.Mx) {
  9430. for (e = c.target; 1 != e.nodeType; ) e = e.parentNode
  9431. f = e.tagName.toLowerCase()
  9432. 'select' != f && 'input' != f && 'textarea' != f
  9433. ? ((f = te.createEvent('MouseEvents')),
  9434. f.initMouseEvent(
  9435. 'click',
  9436. q,
  9437. q,
  9438. a.view,
  9439. 1,
  9440. c.screenX,
  9441. c.screenY,
  9442. c.clientX,
  9443. c.clientY,
  9444. a.ctrlKey,
  9445. a.altKey,
  9446. a.shiftKey,
  9447. a.metaKey,
  9448. 0,
  9449. s
  9450. ),
  9451. (f.XR = q),
  9452. e.dispatchEvent(f))
  9453. : e.focus()
  9454. }
  9455. b.lo(400)
  9456. }
  9457. b.options.GN && b.options.GN.call(b, a)
  9458. }
  9459. }
  9460. },
  9461. lo: function (a) {
  9462. var b = 0 <= this.x ? 0 : this.x < this.he ? this.he : this.x,
  9463. c =
  9464. this.y >= this.sf || 0 < this.qd
  9465. ? this.sf
  9466. : this.y < this.qd
  9467. ? this.qd
  9468. : this.y
  9469. if (b == this.x && c == this.y) {
  9470. if (
  9471. (this.oh &&
  9472. ((this.oh = t), this.options.oy && this.options.oy.call(this)),
  9473. this.ii &&
  9474. this.options.Qx &&
  9475. ('webkit' == we && (this.gM.style[Ie] = '300ms'),
  9476. (this.gM.style.opacity = '0')),
  9477. this.xi && this.options.Qx)
  9478. )
  9479. 'webkit' == we && (this.jP.style[Ie] = '300ms'),
  9480. (this.jP.style.opacity = '0')
  9481. } else this.scrollTo(b, c, a || 0)
  9482. },
  9483. eV: function (a) {
  9484. var b = this,
  9485. c,
  9486. e
  9487. if ('wheelDeltaX' in a) (c = a.wheelDeltaX / 12), (e = a.wheelDeltaY / 12)
  9488. else if ('wheelDelta' in a) c = e = a.wheelDelta / 12
  9489. else if ('detail' in a) c = e = 3 * -a.detail
  9490. else return
  9491. if ('zoom' == b.options.qP) {
  9492. if (
  9493. ((e = b.scale * Math.pow(2, (1 / 3) * (e ? e / Math.abs(e) : 0))),
  9494. e < b.options.$k && (e = b.options.$k),
  9495. e > b.options.aq && (e = b.options.aq),
  9496. e != b.scale)
  9497. )
  9498. !b.cz && b.options.zp && b.options.zp.call(b, a),
  9499. b.cz++,
  9500. b.zoom(a.pageX, a.pageY, e, 400),
  9501. setTimeout(function () {
  9502. b.cz--
  9503. !b.cz && b.options.yp && b.options.yp.call(b, a)
  9504. }, 400)
  9505. } else
  9506. (c = b.x + c),
  9507. (e = b.y + e),
  9508. 0 < c ? (c = 0) : c < b.he && (c = b.he),
  9509. e > b.sf ? (e = b.sf) : e < b.qd && (e = b.qd),
  9510. 0 > b.qd && b.scrollTo(c, e, 0)
  9511. },
  9512. $U: function (a) {
  9513. a.target == this.Nb && (this.$d(Ue), this.MB())
  9514. },
  9515. MB: function () {
  9516. var a = this,
  9517. b = a.x,
  9518. c = a.y,
  9519. e = Date.now(),
  9520. f,
  9521. g,
  9522. i
  9523. a.Yl ||
  9524. (a.yj.length
  9525. ? ((f = a.yj.shift()),
  9526. f.x == b && f.y == c && (f.time = 0),
  9527. (a.Yl = q),
  9528. (a.oh = q),
  9529. a.options.wi)
  9530. ? (a.FJ(f.time),
  9531. a.Ar(f.x, f.y),
  9532. (a.Yl = t),
  9533. f.time ? a.ba(Ue) : a.lo(0))
  9534. : ((i = function () {
  9535. var k = Date.now(),
  9536. m
  9537. if (k >= e + f.time) {
  9538. a.Ar(f.x, f.y)
  9539. a.Yl = t
  9540. a.options.zZ && a.options.zZ.call(a)
  9541. a.MB()
  9542. } else {
  9543. k = (k - e) / f.time - 1
  9544. g = ue.sqrt(1 - k * k)
  9545. k = (f.x - b) * g + b
  9546. m = (f.y - c) * g + c
  9547. a.Ar(k, m)
  9548. if (a.Yl) a.fC = Ve(i)
  9549. }
  9550. }),
  9551. i())
  9552. : a.lo(400))
  9553. },
  9554. FJ: function (a) {
  9555. a += 'ms'
  9556. this.Nb.style[Fe] = a
  9557. this.ii && (this.xY.style[Fe] = a)
  9558. this.xi && (this.K0.style[Fe] = a)
  9559. },
  9560. BI: function (a, b, c, e, f) {
  9561. var b = ue.abs(a) / b,
  9562. g = (b * b) / 0.0012
  9563. 0 < a && g > c
  9564. ? ((c += f / (6 / (6.0e-4 * (g / b)))), (b = (b * c) / g), (g = c))
  9565. : 0 > a &&
  9566. g > e &&
  9567. ((e += f / (6 / (6.0e-4 * (g / b)))), (b = (b * e) / g), (g = e))
  9568. return {
  9569. Ba: g * (0 > a ? -1 : 1),
  9570. time: ue.round(b / 6.0e-4),
  9571. }
  9572. },
  9573. Zj: function (a) {
  9574. for (var b = -a.offsetLeft, c = -a.offsetTop; (a = a.offsetParent); )
  9575. (b -= a.offsetLeft), (c -= a.offsetTop)
  9576. a != this.zn && ((b *= this.scale), (c *= this.scale))
  9577. return {
  9578. left: b,
  9579. top: c,
  9580. }
  9581. },
  9582. vJ: function (a, b) {
  9583. var c, e, f
  9584. f = this.We.length - 1
  9585. c = 0
  9586. for (e = this.We.length; c < e; c++)
  9587. if (a >= this.We[c]) {
  9588. f = c
  9589. break
  9590. }
  9591. f == this.HC && 0 < f && 0 > this.QC && f--
  9592. a = this.We[f]
  9593. e = (e = ue.abs(a - this.We[this.HC]))
  9594. ? 500 * (ue.abs(this.x - a) / e)
  9595. : 0
  9596. this.HC = f
  9597. f = this.wf.length - 1
  9598. for (c = 0; c < f; c++)
  9599. if (b >= this.wf[c]) {
  9600. f = c
  9601. break
  9602. }
  9603. f == this.IC && 0 < f && 0 > this.RC && f--
  9604. b = this.wf[f]
  9605. c = (c = ue.abs(b - this.wf[this.IC]))
  9606. ? 500 * (ue.abs(this.y - b) / c)
  9607. : 0
  9608. this.IC = f
  9609. f = ue.round(ue.max(e, c)) || 200
  9610. return {
  9611. x: a,
  9612. y: b,
  9613. time: f,
  9614. }
  9615. },
  9616. ba: function (a, b, c) {
  9617. ;(b || this.Nb).addEventListener(a, this, !!c)
  9618. },
  9619. $d: function (a, b, c) {
  9620. ;(b || this.Nb).removeEventListener(a, this, !!c)
  9621. },
  9622. NC: ga(2),
  9623. refresh: function () {
  9624. var a,
  9625. b,
  9626. c,
  9627. e = 0
  9628. b = 0
  9629. this.scale < this.options.$k && (this.scale = this.options.$k)
  9630. this.Cu = this.zn.clientWidth || 1
  9631. this.An = this.zn.clientHeight || 1
  9632. this.sf = -this.options.n0 || 0
  9633. this.Ky = ue.round(this.Nb.offsetWidth * this.scale)
  9634. this.Ip = ue.round((this.Nb.offsetHeight + this.sf) * this.scale)
  9635. this.he = this.Cu - this.Ky
  9636. this.qd = this.An - this.Ip + this.sf
  9637. this.RC = this.QC = 0
  9638. this.options.CN && this.options.CN.call(this)
  9639. this.kp = this.options.kp && 0 > this.he
  9640. this.xn =
  9641. this.options.xn && ((!this.options.LV && !this.kp) || this.Ip > this.An)
  9642. this.ii = this.kp && this.options.ii
  9643. this.xi = this.xn && this.options.xi && this.Ip > this.An
  9644. a = this.Zj(this.zn)
  9645. this.iG = -a.left
  9646. this.jG = -a.top
  9647. if ('string' == typeof this.options.iu) {
  9648. this.We = []
  9649. this.wf = []
  9650. c = this.Nb.querySelectorAll(this.options.iu)
  9651. a = 0
  9652. for (b = c.length; a < b; a++)
  9653. (e = this.Zj(c[a])),
  9654. (e.left += this.iG),
  9655. (e.top += this.jG),
  9656. (this.We[a] = e.left < this.he ? this.he : e.left * this.scale),
  9657. (this.wf[a] = e.top < this.qd ? this.qd : e.top * this.scale)
  9658. } else if (this.options.iu) {
  9659. for (this.We = []; e >= this.he; ) (this.We[b] = e), (e -= this.Cu), b++
  9660. this.he % this.Cu &&
  9661. (this.We[this.We.length] =
  9662. this.he - this.We[this.We.length - 1] + this.We[this.We.length - 1])
  9663. b = e = 0
  9664. for (this.wf = []; e >= this.qd; ) (this.wf[b] = e), (e -= this.An), b++
  9665. this.qd % this.An &&
  9666. (this.wf[this.wf.length] =
  9667. this.qd - this.wf[this.wf.length - 1] + this.wf[this.wf.length - 1])
  9668. }
  9669. this.Sv('h')
  9670. this.Sv('v')
  9671. this.al || ((this.Nb.style[Fe] = '0'), this.lo(400))
  9672. },
  9673. scrollTo: function (a, b, c, e) {
  9674. var f = a
  9675. this.stop()
  9676. f.length ||
  9677. (f = [
  9678. {
  9679. x: a,
  9680. y: b,
  9681. time: c,
  9682. TZ: e,
  9683. },
  9684. ])
  9685. a = 0
  9686. for (b = f.length; a < b; a++)
  9687. f[a].TZ && ((f[a].x = this.x - f[a].x), (f[a].y = this.y - f[a].y)),
  9688. this.yj.push({
  9689. x: f[a].x,
  9690. y: f[a].y,
  9691. time: f[a].time || 0,
  9692. })
  9693. this.MB()
  9694. },
  9695. disable: function () {
  9696. this.stop()
  9697. this.lo(0)
  9698. this.enabled = t
  9699. this.$d(Re, window)
  9700. this.$d(Se, window)
  9701. this.$d(Te, window)
  9702. },
  9703. enable: function () {
  9704. this.enabled = q
  9705. },
  9706. stop: function () {
  9707. this.options.wi ? this.$d(Ue) : We(this.fC)
  9708. this.yj = []
  9709. this.Yl = this.oh = t
  9710. },
  9711. zoom: function (a, b, c, e) {
  9712. var f = c / this.scale
  9713. this.options.Yk &&
  9714. ((this.al = q),
  9715. (e = e === l ? 200 : e),
  9716. (a = a - this.iG - this.x),
  9717. (b = b - this.jG - this.y),
  9718. (this.x = a - a * f + this.x),
  9719. (this.y = b - b * f + this.y),
  9720. (this.scale = c),
  9721. this.refresh(),
  9722. (this.x = 0 < this.x ? 0 : this.x < this.he ? this.he : this.x),
  9723. (this.y =
  9724. this.y > this.sf ? this.sf : this.y < this.qd ? this.qd : this.y),
  9725. (this.Nb.style[Fe] = e + 'ms'),
  9726. (this.Nb.style[De] =
  9727. 'translate(' + this.x + 'px,' + this.y + 'px) scale(' + c + ')' + Xe),
  9728. (this.al = t))
  9729. },
  9730. }
  9731. function Ce(a) {
  9732. if ('' === we) return a
  9733. a = a.charAt(0).toUpperCase() + a.substr(1)
  9734. return we + a
  9735. }
  9736. ve = s
  9737. function Ze(a) {
  9738. this.j = {
  9739. anchor: Yb,
  9740. offset: new O(0, 0),
  9741. maxWidth: '100%',
  9742. imageHeight: 80,
  9743. }
  9744. var a = a || {},
  9745. b
  9746. for (b in a) this.j[b] = a[b]
  9747. this.Ll = new ec(s, {
  9748. of: 'api',
  9749. })
  9750. this.bk = []
  9751. this.P = s
  9752. this.ig = {
  9753. height: this.j.imageHeight,
  9754. width: this.j.imageHeight * $e,
  9755. }
  9756. this.Rc = this.BB = this.bm = this.Zc = s
  9757. }
  9758. var af = [
  9759. 0, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 5, 5, 5, 6, 6, 7, 8, 8, 8, 9,
  9760. 10,
  9761. ],
  9762. bf =
  9763. '\u5176\u4ed6 \u6b63\u95e8 \u623f\u578b \u8bbe\u65bd \u6b63\u95e8 \u9910\u996e\u8bbe\u65bd \u5176\u4ed6\u8bbe\u65bd \u6b63\u95e8 \u8bbe\u65bd \u89c2\u5f71\u5385 \u5176\u4ed6\u8bbe\u65bd'.split(
  9764. ' '
  9765. )
  9766. B.Tm(function (a) {
  9767. var b = s
  9768. a.addEventListener('position_changed', function () {
  9769. a.j.visible &&
  9770. a.j.albumsControl === q &&
  9771. (b ? b.Ey(a.Xb()) : ((b = new Ze(a.j.albumsControlOptions)), b.na(a)))
  9772. })
  9773. a.addEventListener('albums_visible_changed', function () {
  9774. a.j.albumsControl === q
  9775. ? (b ? b.Ey(a.Xb()) : ((b = new Ze(a.j.albumsControlOptions)), b.na(a)),
  9776. b.show())
  9777. : b.U()
  9778. })
  9779. a.addEventListener('albums_options_changed', function () {
  9780. b && b.Qk(a.j.albumsControlOptions)
  9781. })
  9782. a.addEventListener('visible_changed', function () {
  9783. b &&
  9784. (a.kE()
  9785. ? a.j.albumsControl === q && (b.C.style.visibility = 'visible')
  9786. : (b.C.style.visibility = 'hidden'))
  9787. })
  9788. })
  9789. var $e = 1.8
  9790. H() && ($e = 1)
  9791. z.extend(Ze.prototype, {
  9792. Qk: function (a) {
  9793. for (var b in a) this.j[b] = a[b]
  9794. a = this.j.imageHeight + 'px'
  9795. this.uc(this.j.anchor)
  9796. this.C.style.width =
  9797. isNaN(Number(this.j.maxWidth)) === q
  9798. ? this.j.maxWidth
  9799. : this.j.maxWidth + 'px'
  9800. this.C.style.height = a
  9801. this.gk.style.height = a
  9802. this.Rh.style.height = a
  9803. this.ig = {
  9804. height: this.j.imageHeight,
  9805. width: this.j.imageHeight * $e,
  9806. }
  9807. this.fk.style.height = this.ig.height - 6 + 'px'
  9808. this.fk.style.width = this.ig.width - 6 + 'px'
  9809. this.Ey(this.P.Xb(), q)
  9810. },
  9811. na: function (a) {
  9812. this.P = a
  9813. this.ls()
  9814. this.yQ()
  9815. this.OY()
  9816. this.Ey(a.Xb())
  9817. },
  9818. ls: function () {
  9819. var a = this.j.imageHeight + 'px'
  9820. this.C = L('div')
  9821. var b = this.C.style
  9822. b.cssText = 'background:rgb(37,37,37);background:rgba(37,37,37,0.9);'
  9823. b.position = 'absolute'
  9824. b.zIndex = '2000'
  9825. b.width =
  9826. isNaN(Number(this.j.maxWidth)) === q
  9827. ? this.j.maxWidth
  9828. : this.j.maxWidth + 'px'
  9829. b.padding = '8px 0'
  9830. b.visibility = 'hidden'
  9831. b.height = a
  9832. this.gk = L('div')
  9833. b = this.gk.style
  9834. b.position = 'absolute'
  9835. b.overflow = 'hidden'
  9836. b.width = '100%'
  9837. b.height = a
  9838. this.Rh = L('div')
  9839. b = this.Rh.style
  9840. b.height = a
  9841. this.gk.appendChild(this.Rh)
  9842. this.C.appendChild(this.gk)
  9843. this.P.C.appendChild(this.C)
  9844. this.fk = L('div', {
  9845. class: 'pano_photo_item_seleted',
  9846. })
  9847. this.fk.style.height = this.ig.height - 6 + 'px'
  9848. this.fk.style.width = this.ig.width - 6 + 'px'
  9849. this.uc(this.j.anchor)
  9850. },
  9851. RH: function (a) {
  9852. for (var b = this.bk, c = b.length - 1; 0 <= c; c--)
  9853. if (b[c].panoId == a) return c
  9854. return -1
  9855. },
  9856. Ey: function (a, b) {
  9857. if (
  9858. b ||
  9859. !this.bk[this.Zc] ||
  9860. !(this.bk[this.Zc].panoId == a && 3 !== this.bk[this.Zc].recoType)
  9861. ) {
  9862. var c = this,
  9863. e = this.RH(a)
  9864. !b && -1 !== e && this.bk[e] && 3 !== this.bk[e].recoType
  9865. ? this.Mp(e)
  9866. : this.dY(function (a) {
  9867. for (
  9868. var b = {}, e, k, m = t, n = [], o = 0, p = a.length;
  9869. o < p;
  9870. o++
  9871. )
  9872. (e = a[o].catlog),
  9873. (k = a[o].floor),
  9874. l !== e &&
  9875. ('' === e && l !== k
  9876. ? ((m = q), b[k] || (b[k] = []), b[k].push(a[o]))
  9877. : (b[af[e]] || (b[af[e]] = []), b[af[e]].push(a[o])))
  9878. for (var v in b)
  9879. m
  9880. ? n.push({
  9881. data: v + 'F',
  9882. index: v,
  9883. })
  9884. : n.push({
  9885. data: bf[v],
  9886. index: v,
  9887. })
  9888. c.jH = b
  9889. c.Ji = n
  9890. c.Il(a)
  9891. 0 == a.length ? c.U() : c.show()
  9892. })
  9893. }
  9894. },
  9895. vW: function () {
  9896. if (!this.Gi) {
  9897. var a = this.SX(this.Ji),
  9898. b = L('div')
  9899. b.style.cssText = [
  9900. 'width:' + 134 * this.Ji.length + 'px;',
  9901. 'overflow:hidden;-ms-user-select:none;-moz-user-select:none;-webkit-user-select:none;',
  9902. ].join('')
  9903. b.innerHTML = a
  9904. a = L('div')
  9905. a.appendChild(b)
  9906. a.style.cssText =
  9907. 'position:absolute;top:-25px;background:rgb(37,37,37);background:rgba(37,37,37,0.9);border-bottom:1px solid #4e596a;width:100%;line-height:25px;height:25px;overflow:scroll;outline:0'
  9908. new Ye(a, {
  9909. Go: t,
  9910. iy: q,
  9911. ii: t,
  9912. xi: t,
  9913. xn: t,
  9914. OE: q,
  9915. Pw: q,
  9916. Mx: q,
  9917. })
  9918. this.C.appendChild(a)
  9919. for (
  9920. var c = this, e = b.getElementsByTagName('span'), f = 0, g = e.length;
  9921. f < g;
  9922. f++
  9923. )
  9924. (b = e[f]),
  9925. z.M(b, 'click', function () {
  9926. if (this.getAttribute('dataindex')) {
  9927. c.Il(c.jH[this.getAttribute('dataindex')])
  9928. for (var a = 0, b = e.length; a < b; a++)
  9929. e[a].style.color = '#FFFFFF'
  9930. this.style.color = '#3383FF'
  9931. }
  9932. })
  9933. this.Gi = a
  9934. }
  9935. },
  9936. sW: function () {
  9937. if (this.Gi) (a = this.AL(this.Ji)), (this.OQ.innerHTML = a)
  9938. else {
  9939. var a = this.AL(this.Ji),
  9940. b = L('ul'),
  9941. c = this
  9942. b.style.cssText =
  9943. 'list-style: none;padding:0px;margin:0px;display:block;width:60px;position:absolute;top:7px'
  9944. b.innerHTML = a
  9945. z.M(b, 'click', function (a) {
  9946. if ((a = (a.srcElement || a.target).getAttribute('dataindex'))) {
  9947. c.Il(c.jH[a])
  9948. for (
  9949. var e = b.getElementsByTagName('li'), f = 0, g = e.length;
  9950. f < g;
  9951. f++
  9952. )
  9953. e[f].childNodes[0].getAttribute('dataindex') === a
  9954. ? z.D.Ua(e[f], 'pano_catlogLiActive')
  9955. : z.D.Pb(e[f], 'pano_catlogLiActive')
  9956. }
  9957. })
  9958. var a = L('div'),
  9959. e = L('a'),
  9960. f = L('span'),
  9961. g = L('a'),
  9962. i = L('span'),
  9963. k = [
  9964. 'background:url(' + G.qa + 'panorama/catlog_icon.png) no-repeat;',
  9965. 'display:block;width:10px;height:7px;margin:0 auto;',
  9966. ].join('')
  9967. f.style.cssText = k + 'background-position:-18px 0;'
  9968. e.style.cssText =
  9969. 'background:#1C1C1C;display:block;position:absolute;width:58px;'
  9970. i.style.cssText = k + 'background-position:0 0;'
  9971. g.style.cssText =
  9972. 'background:#1C1C1C;display:block;position:absolute;width:58px;'
  9973. g.style.top = this.j.imageHeight - 7 + 'px'
  9974. a.style.cssText = 'position:absolute;top:0px;left:0px;width:60px;'
  9975. e.appendChild(f)
  9976. g.appendChild(i)
  9977. z.M(e, 'mouseover', function () {
  9978. var a = parseInt(b.style.top, 10)
  9979. 7 !== a && (f.style.backgroundPosition = '-27px 0')
  9980. new tb({
  9981. Ic: 60,
  9982. kc: ub.Ks,
  9983. duration: 300,
  9984. va: function (c) {
  9985. b.style.top = a + (7 - a) * c + 'px'
  9986. },
  9987. })
  9988. })
  9989. z.M(e, 'mouseout', function () {
  9990. f.style.backgroundPosition = '-18px 0'
  9991. })
  9992. z.M(g, 'mouseover', function () {
  9993. var a = parseInt(b.style.top, 10),
  9994. e = c.j.imageHeight - 14
  9995. if (!(parseInt(b.offsetHeight, 10) < e)) {
  9996. var f = e - parseInt(b.offsetHeight, 10) + 7
  9997. f !== a && (i.style.backgroundPosition = '-9px 0')
  9998. new tb({
  9999. Ic: 60,
  10000. kc: ub.Ks,
  10001. duration: 300,
  10002. va: function (c) {
  10003. b.style.top = a + (f - a) * c + 'px'
  10004. },
  10005. })
  10006. }
  10007. })
  10008. z.M(g, 'mouseout', function () {
  10009. i.style.backgroundPosition = '0 0'
  10010. })
  10011. a.appendChild(e)
  10012. a.appendChild(g)
  10013. e = L('div')
  10014. e.style.cssText = [
  10015. 'position:absolute;z-index:2001;left:20px;',
  10016. 'height:' + this.j.imageHeight + 'px;',
  10017. 'width:62px;overflow:hidden;background:rgb(37,37,37);background:rgba(37,37,37,0.9);',
  10018. ].join('')
  10019. e.appendChild(b)
  10020. e.appendChild(a)
  10021. this.Gi = e
  10022. this.OQ = b
  10023. this.C.appendChild(e)
  10024. }
  10025. },
  10026. tW: function () {
  10027. if (this.Ji && !(0 >= this.Ji.length)) {
  10028. var a = L('div')
  10029. a.innerHTML = this.hA
  10030. a.style.cssText = 'position:absolute;background:#252525'
  10031. this.C.appendChild(a)
  10032. this.Os = a
  10033. this.Rc.jg.style.left = this.ig.width + 8 + 'px'
  10034. this.Gi &&
  10035. (this.Gi.style.left =
  10036. parseInt(this.Gi.style.left, 10) + this.ig.width + 8 + 'px')
  10037. var b = this
  10038. z.M(a, 'click', function () {
  10039. b.P.vc(b.gX)
  10040. })
  10041. }
  10042. },
  10043. Il: function (a) {
  10044. this.bk = a
  10045. this.j.showCatalog &&
  10046. (0 < this.Ji.length
  10047. ? (Ua() ? this.sW() : this.vW(), (this.Rc.offsetLeft = 60))
  10048. : (this.Os &&
  10049. (this.C.removeChild(this.Os),
  10050. (this.Os = s),
  10051. (this.Rc.jg.style.left = '0px')),
  10052. this.Gi && (this.C.removeChild(this.Gi), (this.Gi = s)),
  10053. (this.Rc.offsetLeft = 0)))
  10054. var b = this.LX(a)
  10055. Ua() &&
  10056. this.Ji &&
  10057. 0 < this.Ji.length &&
  10058. this.j.showExit &&
  10059. this.hA &&
  10060. ((this.Rc.offsetLeft += this.ig.width + 8),
  10061. this.Os ? (this.Os.innerHTML = this.hA) : this.tW())
  10062. this.Rh.innerHTML = b
  10063. this.Rh.style.width = (this.ig.width + 8) * a.length + 8 + 'px'
  10064. a = this.C.offsetWidth
  10065. b = this.Rh.offsetWidth
  10066. this.Rc.Vs && (b += this.Rc.Vs())
  10067. b < a - 2 * this.Rc.Ai - this.Rc.offsetLeft
  10068. ? (this.C.style.width = b + this.Rc.offsetLeft + 'px')
  10069. : ((this.C.style.width =
  10070. isNaN(Number(this.j.maxWidth)) === q
  10071. ? this.j.maxWidth
  10072. : this.j.maxWidth + 'px'),
  10073. b < this.C.offsetWidth - 2 * this.Rc.Ai - this.Rc.offsetLeft &&
  10074. (this.C.style.width = b + this.Rc.offsetLeft + 'px'))
  10075. this.Rc.refresh()
  10076. this.BB = this.Rh.children
  10077. this.Rh.appendChild(this.fk)
  10078. this.fk.style.left = '-100000px'
  10079. a = this.RH(this.P.Xb(), this.Y1)
  10080. ;-1 !== a && this.Mp(a)
  10081. },
  10082. SX: function (a) {
  10083. for (var b = '', c, e = 0, f = a.length; e < f; e++)
  10084. (c =
  10085. '<div style="color:white;opacity:0.5;margin:0 35px;float:left;text-align: center"><span dataIndex="' +
  10086. a[e].index +
  10087. '">' +
  10088. a[e].data +
  10089. '</span></div>'),
  10090. (b += c)
  10091. return b
  10092. },
  10093. AL: function (a) {
  10094. for (var b = '', c, e = 0, f = a.length; e < f; e++)
  10095. (c =
  10096. '<li class="pano_catlogLi"><span style="display:block;width:100%;" dataIndex="' +
  10097. a[e].index +
  10098. '">' +
  10099. a[e].data +
  10100. '</span></li>'),
  10101. (b += c)
  10102. return b
  10103. },
  10104. LX: function (a) {
  10105. for (
  10106. var b, c, e, f, g = [], i = this.ig.height, k = this.ig.width, m = 0;
  10107. m < a.length;
  10108. m++
  10109. )
  10110. (b = a[m]),
  10111. (recoType = b.recoType),
  10112. (e = b.panoId),
  10113. (f = b.name),
  10114. (c = b.heading),
  10115. (b = b.pitch),
  10116. (c = qe.PL(e, c, b, 198, 108)),
  10117. (b =
  10118. '<a href="javascript:void(0);" class="pano_photo_item" data-index="' +
  10119. m +
  10120. '"><img style="width:' +
  10121. (k - 2) +
  10122. 'px;height:' +
  10123. (i - 2) +
  10124. 'px;" data-index="' +
  10125. m +
  10126. '" name="' +
  10127. f +
  10128. '" src="' +
  10129. c +
  10130. '" alt="' +
  10131. f +
  10132. '"/><span class="pano_photo_decs" data-index="' +
  10133. m +
  10134. '" style="width:' +
  10135. k +
  10136. 'px;font-size:' +
  10137. Math.floor(i / 6) +
  10138. 'px; line-height:' +
  10139. Math.floor(i / 6) +
  10140. 'px;"><em class="pano_poi_' +
  10141. recoType +
  10142. '"></em>' +
  10143. f +
  10144. '</span></a>'),
  10145. 3 === recoType
  10146. ? Ua()
  10147. ? ((this.hA = b), (this.gX = e), a.splice(m, 1), m--)
  10148. : ((b =
  10149. '<a href="javascript:void(0);" class="pano_photo_item" data-index="' +
  10150. m +
  10151. '"><img style="width:' +
  10152. (k - 2) +
  10153. 'px;height:' +
  10154. (i - 2) +
  10155. 'px;" data-index="' +
  10156. m +
  10157. '" name="' +
  10158. f +
  10159. '" src="' +
  10160. c +
  10161. '" alt="' +
  10162. f +
  10163. '"/><div style="background:rgba(37,37,37,0.5);position:absolute;top:0px;left:0px;width:100%;height:100%;text-align: center;line-height:' +
  10164. this.j.imageHeight +
  10165. 'px;" data-index="' +
  10166. m +
  10167. '"><img src="' +
  10168. G.qa +
  10169. 'panorama/photoexit.png" style="border:none;vertical-align:middle;" data-index="' +
  10170. m +
  10171. '" alt=""/></div></a>'),
  10172. g.push(b))
  10173. : g.push(b)
  10174. return g.join('')
  10175. },
  10176. dY: function (a) {
  10177. var b = this,
  10178. c = this.P.Xb()
  10179. c &&
  10180. this.Ll.Kx(c, function (e) {
  10181. b.P.Xb() === c && a(e)
  10182. })
  10183. },
  10184. uc: function (a) {
  10185. if (!Wa(a) || isNaN(a) || a < Wb || 3 < a) a = this.defaultAnchor
  10186. var b = this.C,
  10187. c = this.j.offset.width,
  10188. e = this.j.offset.height
  10189. b.style.left = b.style.top = b.style.right = b.style.bottom = 'auto'
  10190. switch (a) {
  10191. case Wb:
  10192. b.style.top = e + 'px'
  10193. b.style.left = c + 'px'
  10194. break
  10195. case Xb:
  10196. b.style.top = e + 'px'
  10197. b.style.right = c + 'px'
  10198. break
  10199. case Yb:
  10200. b.style.bottom = e + 'px'
  10201. b.style.left = c + 'px'
  10202. break
  10203. case 3:
  10204. ;(b.style.bottom = e + 'px'), (b.style.right = c + 'px')
  10205. }
  10206. },
  10207. yQ: function () {
  10208. this.wQ()
  10209. },
  10210. wQ: function () {
  10211. var a = this
  10212. z.M(this.C, 'touchstart', function (a) {
  10213. a.stopPropagation()
  10214. })
  10215. z.M(this.gk, 'click', function (b) {
  10216. if (
  10217. (b = (b.srcElement || b.target).getAttribute('data-index')) &&
  10218. b != a.Zc
  10219. )
  10220. a.Mp(b), a.P.vc(a.bk[b].panoId)
  10221. })
  10222. z.M(this.Rh, 'mouseover', function (b) {
  10223. b = (b.srcElement || b.target).getAttribute('data-index')
  10224. b !== s && a.BK(b, q)
  10225. })
  10226. this.P.addEventListener('size_changed', function () {
  10227. isNaN(Number(a.j.maxWidth)) &&
  10228. a.Qk({
  10229. maxWidth: a.j.maxWidth,
  10230. })
  10231. })
  10232. },
  10233. Mp: function (a) {
  10234. this.fk.style.left = this.BB[a].offsetLeft + 8 + 'px'
  10235. this.fk.setAttribute('data-index', this.BB[a].getAttribute('data-index'))
  10236. this.Zc = a
  10237. this.BK(a)
  10238. },
  10239. BK: function (a, b) {
  10240. var c = this.ig.width + 8,
  10241. e = 0
  10242. this.Rc.Vs && (e = this.Rc.Vs() / 2)
  10243. var f = this.gk.offsetWidth - 2 * e,
  10244. g = this.Rh.offsetLeft || this.Rc.x,
  10245. g = g - e,
  10246. i = -a * c
  10247. i > g && this.Rc.scrollTo(i + e)
  10248. c = i - c
  10249. g -= f
  10250. c < g && (!b || (b && 8 < i - g)) && this.Rc.scrollTo(c + f + e)
  10251. },
  10252. OY: function () {
  10253. this.Rc = H()
  10254. ? new Ye(this.gk, {
  10255. Go: t,
  10256. iy: q,
  10257. ii: t,
  10258. xi: t,
  10259. xn: t,
  10260. OE: q,
  10261. Pw: q,
  10262. Mx: q,
  10263. })
  10264. : new cf(this.gk)
  10265. },
  10266. U: function () {
  10267. this.C.style.visibility = 'hidden'
  10268. },
  10269. show: function () {
  10270. this.C.style.visibility = 'visible'
  10271. },
  10272. })
  10273. function cf(a) {
  10274. this.C = a
  10275. this.Vg = a.children[0]
  10276. this.Pr = s
  10277. this.Ai = 20
  10278. this.offsetLeft = 0
  10279. this.na()
  10280. }
  10281. cf.prototype = {
  10282. na: function () {
  10283. this.Vg.style.position = 'relative'
  10284. this.refresh()
  10285. this.ls()
  10286. this.$l()
  10287. },
  10288. refresh: function () {
  10289. this.ho = this.C.offsetWidth - this.Vs()
  10290. this.aB = -(this.Vg.offsetWidth - this.ho - this.Ai)
  10291. this.Ev = this.Ai + this.offsetLeft
  10292. this.Vg.style.left = this.Ev + 'px'
  10293. this.Vg.children[0] && (this.Pr = this.Vg.children[0].offsetWidth)
  10294. this.jg &&
  10295. (this.jg.children[0].style.marginTop =
  10296. this.Hr.children[0].style.marginTop =
  10297. this.jg.offsetHeight / 2 -
  10298. this.jg.children[0].offsetHeight / 2 +
  10299. 'px')
  10300. },
  10301. Vs: function () {
  10302. return 2 * this.Ai
  10303. },
  10304. ls: function () {
  10305. this.Tv = L('div')
  10306. this.Tv.innerHTML =
  10307. '<a class="pano_photo_arrow_l" style="background:rgb(37,37,37);background:rgba(37,37,37,0.9);" href="javascript:void(0)" title="\u4e0a\u4e00\u9875"><span class="pano_arrow_l"></span></a><a class="pano_photo_arrow_r" style="background:rgb(37,37,37);background:rgba(37,37,37,0.9);" href="javascript:void(0)" title="\u4e0b\u4e00\u9875"><span class="pano_arrow_r"></span></a>'
  10308. this.jg = this.Tv.children[0]
  10309. this.Hr = this.Tv.children[1]
  10310. this.C.appendChild(this.Tv)
  10311. this.jg.children[0].style.marginTop =
  10312. this.Hr.children[0].style.marginTop =
  10313. this.jg.offsetHeight / 2 - this.jg.children[0].offsetHeight / 2 + 'px'
  10314. },
  10315. $l: function () {
  10316. var a = this
  10317. z.M(this.jg, 'click', function () {
  10318. a.scrollTo(a.Vg.offsetLeft + a.ho)
  10319. })
  10320. z.M(this.Hr, 'click', function () {
  10321. a.scrollTo(a.Vg.offsetLeft - a.ho)
  10322. })
  10323. },
  10324. aV: function () {
  10325. z.D.Pb(this.jg, 'pano_arrow_disable')
  10326. z.D.Pb(this.Hr, 'pano_arrow_disable')
  10327. var a = this.Vg.offsetLeft
  10328. a >= this.Ev && z.D.Ua(this.jg, 'pano_arrow_disable')
  10329. a - this.ho <= this.aB && z.D.Ua(this.Hr, 'pano_arrow_disable')
  10330. },
  10331. scrollTo: function (a) {
  10332. a =
  10333. a < this.Vg.offsetLeft
  10334. ? Math.ceil((a - this.Ai - this.ho) / this.Pr) * this.Pr +
  10335. this.ho +
  10336. this.Ai -
  10337. 8
  10338. : Math.ceil((a - this.Ai) / this.Pr) * this.Pr + this.Ai
  10339. a < this.aB ? (a = this.aB) : a > this.Ev && (a = this.Ev)
  10340. var b = this.Vg.offsetLeft,
  10341. c = this
  10342. new tb({
  10343. Ic: 60,
  10344. kc: ub.Ks,
  10345. duration: 300,
  10346. va: function (e) {
  10347. c.Vg.style.left = b + (a - b) * e + 'px'
  10348. },
  10349. finish: function () {
  10350. c.aV()
  10351. },
  10352. })
  10353. },
  10354. }
  10355. B.Map = Ka
  10356. B.Hotspot = ib
  10357. B.MapType = id
  10358. B.Point = J
  10359. B.Pixel = Q
  10360. B.Size = O
  10361. B.Bounds = fb
  10362. B.TileLayer = Mc
  10363. B.Projection = jc
  10364. B.MercatorProjection = S
  10365. B.PerspectiveProjection = hb
  10366. B.Copyright = function (a, b, c) {
  10367. this.id = a
  10368. this.bb = b
  10369. this.content = c
  10370. }
  10371. B.Overlay = mc
  10372. B.Label = uc
  10373. B.GroundOverlay = vc
  10374. B.PointCollection = zc
  10375. B.Marker = U
  10376. B.CanvasLayer = Cc
  10377. B.Icon = qc
  10378. B.IconSequence = sc
  10379. B.Symbol = rc
  10380. B.Polyline = Gc
  10381. B.Polygon = Fc
  10382. B.InfoWindow = tc
  10383. B.Circle = Hc
  10384. B.Control = Vb
  10385. B.NavigationControl = jb
  10386. B.GeolocationControl = Zb
  10387. B.OverviewMapControl = lb
  10388. B.CopyrightControl = $b
  10389. B.ScaleControl = kb
  10390. B.MapTypeControl = mb
  10391. B.CityListControl = ac
  10392. B.PanoramaControl = cc
  10393. B.TrafficLayer = Vc
  10394. B.CustomLayer = nb
  10395. B.ContextMenu = fc
  10396. B.MenuItem = ic
  10397. B.LocalSearch = cb
  10398. B.TransitRoute = Kd
  10399. B.DrivingRoute = Nd
  10400. B.WalkingRoute = Od
  10401. B.RidingRoute = Pd
  10402. B.Autocomplete = Zd
  10403. B.RouteSearch = Td
  10404. B.Geocoder = Ud
  10405. B.LocalCity = Wd
  10406. B.Geolocation = Geolocation
  10407. B.Convertor = lc
  10408. B.BusLineSearch = Yd
  10409. B.Boundary = Xd
  10410. B.VectorCloudLayer = Tc
  10411. B.VectorTrafficLayer = Uc
  10412. B.Panorama = Oa
  10413. B.PanoramaLabel = ee
  10414. B.PanoramaService = ec
  10415. B.PanoramaCoverageLayer = dc
  10416. B.PanoramaFlashInterface = oe
  10417. function T(a, b) {
  10418. for (var c in b) {
  10419. a[c] = b[c]
  10420. // if(c === 'BMap'){
  10421. // console.log("BMap", b.BMap)
  10422. // console.log(window.BMap)
  10423. // }
  10424. }
  10425. }
  10426. T(window, {
  10427. BMap: B,
  10428. _jsload2: function (a, b) {
  10429. ia.Wy.ZY && ia.Wy.set(a, b)
  10430. K.WV(a, b)
  10431. },
  10432. BMAP_API_VERSION: '2.0',
  10433. })
  10434. var X = Ka.prototype
  10435. T(X, {
  10436. getBounds: X.ve,
  10437. getCenter: X.Ka,
  10438. getMapType: X.oa,
  10439. getSize: X.cb,
  10440. setSize: X.Ce,
  10441. getViewport: X.ht,
  10442. getZoom: X.fa,
  10443. centerAndZoom: X.Fd,
  10444. panTo: X.qi,
  10445. panBy: X.Ag,
  10446. setCenter: X.Zf,
  10447. setCurrentCity: X.DF,
  10448. setMapType: X.Dg,
  10449. setViewport: X.yh,
  10450. setZoom: X.Qc,
  10451. highResolutionEnabled: X.Sx,
  10452. zoomTo: X.Gg,
  10453. zoomIn: X.kG,
  10454. zoomOut: X.lG,
  10455. addHotspot: X.Cw,
  10456. removeHotspot: X.VZ,
  10457. clearHotspots: X.dm,
  10458. checkResize: X.ZV,
  10459. addControl: X.Aw,
  10460. removeControl: X.VN,
  10461. getContainer: X.La,
  10462. addContextMenu: X.yo,
  10463. removeContextMenu: X.Cp,
  10464. addOverlay: X.Ga,
  10465. removeOverlay: X.Qb,
  10466. clearOverlays: X.yK,
  10467. openInfoWindow: X.pc,
  10468. closeInfoWindow: X.Yc,
  10469. pointToOverlayPixel: X.Xe,
  10470. overlayPixelToPoint: X.JN,
  10471. getInfoWindow: X.hh,
  10472. getOverlays: X.Hx,
  10473. getPanes: function () {
  10474. return {
  10475. floatPane: this.Yd.BD,
  10476. markerMouseTarget: this.Yd.RE,
  10477. floatShadow: this.Yd.sL,
  10478. labelPane: this.Yd.KE,
  10479. markerPane: this.Yd.fN,
  10480. markerShadow: this.Yd.gN,
  10481. mapPane: this.Yd.Et,
  10482. vertexPane: this.Yd.nP,
  10483. }
  10484. },
  10485. addTileLayer: X.Oe,
  10486. removeTileLayer: X.Yf,
  10487. pixelToPoint: X.xb,
  10488. pointToPixel: X.$b,
  10489. setFeatureStyle: X.Lp,
  10490. selectBaseElement: X.j5,
  10491. setMapStyle: X.Zt,
  10492. enable3DBuilding: X.Ro,
  10493. disable3DBuilding: X.KW,
  10494. getPanorama: X.tm,
  10495. initIndoorLayer: X.PY,
  10496. setNormalMapDisplay: X.D_,
  10497. })
  10498. var df = id.prototype
  10499. T(df, {
  10500. getTileLayer: df.oY,
  10501. getMinZoom: df.bp,
  10502. getMaxZoom: df.sm,
  10503. getProjection: df.wm,
  10504. getTextColor: df.zm,
  10505. getTips: df.gt,
  10506. })
  10507. T(window, {
  10508. BMAP_NORMAL_MAP: La,
  10509. BMAP_PERSPECTIVE_MAP: Qa,
  10510. BMAP_SATELLITE_MAP: Ya,
  10511. BMAP_HYBRID_MAP: Sa,
  10512. })
  10513. var ef = S.prototype
  10514. T(ef, {
  10515. lngLatToPoint: ef.kh,
  10516. pointToLngLat: ef.xj,
  10517. })
  10518. var ff = hb.prototype
  10519. T(ff, {
  10520. lngLatToPoint: ff.kh,
  10521. pointToLngLat: ff.xj,
  10522. })
  10523. var gf = fb.prototype
  10524. T(gf, {
  10525. equals: gf.pb,
  10526. containsPoint: gf.js,
  10527. containsBounds: gf.kW,
  10528. intersects: gf.ot,
  10529. extend: gf.extend,
  10530. getCenter: gf.Ka,
  10531. isEmpty: gf.tj,
  10532. getSouthWest: gf.Ve,
  10533. getNorthEast: gf.Rf,
  10534. toSpan: gf.YF,
  10535. })
  10536. var hf = mc.prototype
  10537. T(hf, {
  10538. isVisible: hf.jh,
  10539. show: hf.show,
  10540. hide: hf.U,
  10541. })
  10542. mc.getZIndex = mc.Ck
  10543. var jf = gb.prototype
  10544. T(jf, {
  10545. openInfoWindow: jf.pc,
  10546. closeInfoWindow: jf.Yc,
  10547. enableMassClear: jf.gj,
  10548. disableMassClear: jf.MW,
  10549. show: jf.show,
  10550. hide: jf.U,
  10551. getMap: jf.Dx,
  10552. addContextMenu: jf.yo,
  10553. removeContextMenu: jf.Cp,
  10554. })
  10555. var kf = U.prototype
  10556. T(kf, {
  10557. setIcon: kf.Rb,
  10558. getIcon: kf.ap,
  10559. setPosition: kf.sa,
  10560. getPosition: kf.ga,
  10561. setOffset: kf.Ze,
  10562. getOffset: kf.Sf,
  10563. getLabel: kf.VD,
  10564. setLabel: kf.dn,
  10565. setTitle: kf.Ec,
  10566. setTop: kf.ui,
  10567. enableDragging: kf.Wb,
  10568. disableDragging: kf.TC,
  10569. setZIndex: kf.Sp,
  10570. getMap: kf.Dx,
  10571. setAnimation: kf.bn,
  10572. setShadow: kf.Oy,
  10573. hide: kf.U,
  10574. setRotation: kf.Op,
  10575. getRotation: kf.TL,
  10576. })
  10577. T(window, {
  10578. BMAP_ANIMATION_DROP: 1,
  10579. BMAP_ANIMATION_BOUNCE: 2,
  10580. })
  10581. var lf = uc.prototype
  10582. T(lf, {
  10583. setStyle: lf.Md,
  10584. setStyles: lf.ti,
  10585. setContent: lf.dd,
  10586. setPosition: lf.sa,
  10587. getPosition: lf.ga,
  10588. setOffset: lf.Ze,
  10589. getOffset: lf.Sf,
  10590. setTitle: lf.Ec,
  10591. setZIndex: lf.Sp,
  10592. getMap: lf.Dx,
  10593. getContent: lf.xk,
  10594. })
  10595. var mf = qc.prototype
  10596. T(mf, {
  10597. setImageUrl: mf.mO,
  10598. setSize: mf.Ce,
  10599. setAnchor: mf.uc,
  10600. setImageOffset: mf.Yt,
  10601. setImageSize: mf.w_,
  10602. setInfoWindowAnchor: mf.z_,
  10603. setPrintImageUrl: mf.K_,
  10604. })
  10605. var nf = tc.prototype
  10606. T(nf, {
  10607. redraw: nf.je,
  10608. setTitle: nf.Ec,
  10609. setContent: nf.dd,
  10610. getContent: nf.xk,
  10611. getPosition: nf.ga,
  10612. enableMaximize: nf.dh,
  10613. disableMaximize: nf.kx,
  10614. isOpen: nf.Xa,
  10615. setMaxContent: nf.$t,
  10616. maximize: nf.hy,
  10617. enableAutoPan: nf.Ls,
  10618. })
  10619. var of = oc.prototype
  10620. T(of, {
  10621. getPath: of.Ue,
  10622. setPath: of.ke,
  10623. setPositionAt: of.gn,
  10624. getStrokeColor: of.jY,
  10625. setStrokeWeight: of.Rp,
  10626. getStrokeWeight: of.WL,
  10627. setStrokeOpacity: of.Pp,
  10628. getStrokeOpacity: of.kY,
  10629. setFillOpacity: of.Xt,
  10630. getFillOpacity: of.HX,
  10631. setStrokeStyle: of.Qp,
  10632. getStrokeStyle: of.VL,
  10633. getFillColor: of.GX,
  10634. getBounds: of.ve,
  10635. enableEditing: of.mf,
  10636. disableEditing: of.LW,
  10637. getEditing: of.DX,
  10638. })
  10639. var pf = Hc.prototype
  10640. T(pf, {
  10641. setCenter: pf.Zf,
  10642. getCenter: pf.Ka,
  10643. getRadius: pf.RL,
  10644. setRadius: pf.xf,
  10645. })
  10646. var qf = Fc.prototype
  10647. T(qf, {
  10648. getPath: qf.Ue,
  10649. setPath: qf.ke,
  10650. setPositionAt: qf.gn,
  10651. })
  10652. var rf = ib.prototype
  10653. T(rf, {
  10654. getPosition: rf.ga,
  10655. setPosition: rf.sa,
  10656. getText: rf.eE,
  10657. setText: rf.cu,
  10658. })
  10659. J.prototype.equals = J.prototype.pb
  10660. Q.prototype.equals = Q.prototype.pb
  10661. O.prototype.equals = O.prototype.pb
  10662. T(window, {
  10663. BMAP_ANCHOR_TOP_LEFT: Wb,
  10664. BMAP_ANCHOR_TOP_RIGHT: Xb,
  10665. BMAP_ANCHOR_BOTTOM_LEFT: Yb,
  10666. BMAP_ANCHOR_BOTTOM_RIGHT: 3,
  10667. })
  10668. var sf = Vb.prototype
  10669. T(sf, {
  10670. setAnchor: sf.uc,
  10671. getAnchor: sf.HD,
  10672. setOffset: sf.Ze,
  10673. getOffset: sf.Sf,
  10674. show: sf.show,
  10675. hide: sf.U,
  10676. isVisible: sf.jh,
  10677. toString: sf.toString,
  10678. })
  10679. var tf = jb.prototype
  10680. T(tf, {
  10681. getType: tf.ip,
  10682. setType: tf.hn,
  10683. })
  10684. T(window, {
  10685. BMAP_NAVIGATION_CONTROL_LARGE: 0,
  10686. BMAP_NAVIGATION_CONTROL_SMALL: 1,
  10687. BMAP_NAVIGATION_CONTROL_PAN: 2,
  10688. BMAP_NAVIGATION_CONTROL_ZOOM: 3,
  10689. })
  10690. var uf = lb.prototype
  10691. T(uf, {
  10692. changeView: uf.se,
  10693. setSize: uf.Ce,
  10694. getSize: uf.cb,
  10695. })
  10696. var vf = kb.prototype
  10697. T(vf, {
  10698. getUnit: vf.sY,
  10699. setUnit: vf.LF,
  10700. })
  10701. T(window, {
  10702. BMAP_UNIT_METRIC: 'metric',
  10703. BMAP_UNIT_IMPERIAL: 'us',
  10704. })
  10705. var wf = $b.prototype
  10706. T(wf, {
  10707. addCopyright: wf.Bw,
  10708. removeCopyright: wf.qF,
  10709. getCopyright: wf.pm,
  10710. getCopyrightCollection: wf.PD,
  10711. })
  10712. T(window, {
  10713. BMAP_MAPTYPE_CONTROL_HORIZONTAL: bc,
  10714. BMAP_MAPTYPE_CONTROL_DROPDOWN: 1,
  10715. BMAP_MAPTYPE_CONTROL_MAP: 2,
  10716. })
  10717. var xf = Mc.prototype
  10718. T(xf, {
  10719. getMapType: xf.oa,
  10720. getCopyright: xf.pm,
  10721. isTransparentPng: xf.zt,
  10722. })
  10723. var yf = fc.prototype
  10724. T(yf, {
  10725. addItem: yf.Dw,
  10726. addSeparator: yf.bC,
  10727. removeSeparator: yf.sF,
  10728. })
  10729. var zf = ic.prototype
  10730. T(zf, {
  10731. setText: zf.cu,
  10732. })
  10733. var Af = W.prototype
  10734. T(Af, {
  10735. getStatus: Af.xm,
  10736. setSearchCompleteCallback: Af.JF,
  10737. getPageCapacity: Af.qf,
  10738. setPageCapacity: Af.Np,
  10739. setLocation: Af.fn,
  10740. disableFirstResultSelection: Af.UC,
  10741. enableFirstResultSelection: Af.oD,
  10742. gotoPage: Af.Am,
  10743. searchNearby: Af.Jp,
  10744. searchInBounds: Af.an,
  10745. search: Af.search,
  10746. })
  10747. T(window, {
  10748. BMAP_STATUS_SUCCESS: 0,
  10749. BMAP_STATUS_CITY_LIST: 1,
  10750. BMAP_STATUS_UNKNOWN_LOCATION: sd,
  10751. BMAP_STATUS_UNKNOWN_ROUTE: 3,
  10752. BMAP_STATUS_INVALID_KEY: 4,
  10753. BMAP_STATUS_INVALID_REQUEST: 5,
  10754. BMAP_STATUS_PERMISSION_DENIED: td,
  10755. BMAP_STATUS_SERVICE_UNAVAILABLE: 7,
  10756. BMAP_STATUS_TIMEOUT: ud,
  10757. })
  10758. T(window, {
  10759. BMAP_POI_TYPE_NORMAL: 0,
  10760. BMAP_POI_TYPE_BUSSTOP: 1,
  10761. BMAP_POI_TYPE_BUSLINE: 2,
  10762. BMAP_POI_TYPE_SUBSTOP: 3,
  10763. BMAP_POI_TYPE_SUBLINE: 4,
  10764. })
  10765. T(window, {
  10766. BMAP_TRANSIT_POLICY_RECOMMEND: 0,
  10767. BMAP_TRANSIT_POLICY_LEAST_TIME: 4,
  10768. BMAP_TRANSIT_POLICY_LEAST_TRANSFER: 1,
  10769. BMAP_TRANSIT_POLICY_LEAST_WALKING: 2,
  10770. BMAP_TRANSIT_POLICY_AVOID_SUBWAYS: 3,
  10771. BMAP_TRANSIT_POLICY_FIRST_SUBWAYS: 5,
  10772. BMAP_LINE_TYPE_BUS: 0,
  10773. BMAP_LINE_TYPE_SUBWAY: 1,
  10774. BMAP_LINE_TYPE_FERRY: 2,
  10775. BMAP_LINE_TYPE_TRAIN: 3,
  10776. BMAP_LINE_TYPE_AIRPLANE: 4,
  10777. BMAP_LINE_TYPE_COACH: 5,
  10778. })
  10779. T(window, {
  10780. BMAP_TRANSIT_TYPE_POLICY_TRAIN: 0,
  10781. BMAP_TRANSIT_TYPE_POLICY_AIRPLANE: 1,
  10782. BMAP_TRANSIT_TYPE_POLICY_COACH: 2,
  10783. })
  10784. T(window, {
  10785. BMAP_INTERCITY_POLICY_LEAST_TIME: 0,
  10786. BMAP_INTERCITY_POLICY_EARLY_START: 1,
  10787. BMAP_INTERCITY_POLICY_CHEAP_PRICE: 2,
  10788. })
  10789. T(window, {
  10790. BMAP_TRANSIT_TYPE_IN_CITY: 0,
  10791. BMAP_TRANSIT_TYPE_CROSS_CITY: 1,
  10792. })
  10793. T(window, {
  10794. BMAP_TRANSIT_PLAN_TYPE_ROUTE: 0,
  10795. BMAP_TRANSIT_PLAN_TYPE_LINE: 1,
  10796. })
  10797. var Bf = Jd.prototype
  10798. T(Bf, {
  10799. clearResults: Bf.Pe,
  10800. })
  10801. Ld = Kd.prototype
  10802. T(Ld, {
  10803. setPolicy: Ld.bu,
  10804. toString: Ld.toString,
  10805. setPageCapacity: Ld.Np,
  10806. setIntercityPolicy: Ld.oO,
  10807. setTransitTypePolicy: Ld.xO,
  10808. })
  10809. T(window, {
  10810. BMAP_DRIVING_POLICY_DEFAULT: 0,
  10811. BMAP_DRIVING_POLICY_AVOID_HIGHWAYS: 3,
  10812. BMAP_DRIVING_POLICY_AVOID_CONGESTION: 5,
  10813. BMAP_DRIVING_POLICY_FIRST_HIGHWAYS: 4,
  10814. })
  10815. T(window, {
  10816. BMAP_MODE_DRIVING: 'driving',
  10817. BMAP_MODE_TRANSIT: 'transit',
  10818. BMAP_MODE_WALKING: 'walking',
  10819. BMAP_MODE_NAVIGATION: 'navigation',
  10820. })
  10821. var Cf = Td.prototype
  10822. T(Cf, {
  10823. routeCall: Cf.gO,
  10824. })
  10825. T(window, {
  10826. BMAP_HIGHLIGHT_STEP: 1,
  10827. BMAP_HIGHLIGHT_ROUTE: 2,
  10828. })
  10829. T(window, {
  10830. BMAP_ROUTE_TYPE_DRIVING: wd,
  10831. BMAP_ROUTE_TYPE_WALKING: vd,
  10832. BMAP_ROUTE_TYPE_RIDING: xd,
  10833. })
  10834. T(window, {
  10835. BMAP_ROUTE_STATUS_NORMAL: yd,
  10836. BMAP_ROUTE_STATUS_EMPTY: 1,
  10837. BMAP_ROUTE_STATUS_ADDRESS: 2,
  10838. })
  10839. var Df = Nd.prototype
  10840. T(Df, {
  10841. setPolicy: Df.bu,
  10842. })
  10843. var Ef = Zd.prototype
  10844. T(Ef, {
  10845. show: Ef.show,
  10846. hide: Ef.U,
  10847. setTypes: Ef.KF,
  10848. setLocation: Ef.fn,
  10849. search: Ef.search,
  10850. setInputValue: Ef.Ly,
  10851. })
  10852. T(nb.prototype, {})
  10853. var Ff = Xd.prototype
  10854. T(Ff, {
  10855. get: Ff.get,
  10856. })
  10857. T(dc.prototype, {})
  10858. T(db.prototype, {})
  10859. T(window, {
  10860. BMAP_POINT_DENSITY_HIGH: 200,
  10861. BMAP_POINT_DENSITY_MEDIUM: Yc,
  10862. BMAP_POINT_DENSITY_LOW: 50,
  10863. })
  10864. T(window, {
  10865. BMAP_POINT_SHAPE_STAR: 1,
  10866. BMAP_POINT_SHAPE_WATERDROP: 2,
  10867. BMAP_POINT_SHAPE_CIRCLE: wc,
  10868. BMAP_POINT_SHAPE_SQUARE: 4,
  10869. BMAP_POINT_SHAPE_RHOMBUS: 5,
  10870. })
  10871. T(window, {
  10872. BMAP_POINT_SIZE_TINY: 1,
  10873. BMAP_POINT_SIZE_SMALLER: 2,
  10874. BMAP_POINT_SIZE_SMALL: 3,
  10875. BMAP_POINT_SIZE_NORMAL: xc,
  10876. BMAP_POINT_SIZE_BIG: 5,
  10877. BMAP_POINT_SIZE_BIGGER: 6,
  10878. BMAP_POINT_SIZE_HUGE: 7,
  10879. })
  10880. T(window, {
  10881. BMap_Symbol_SHAPE_CAMERA: 11,
  10882. BMap_Symbol_SHAPE_WARNING: 12,
  10883. BMap_Symbol_SHAPE_SMILE: 13,
  10884. BMap_Symbol_SHAPE_CLOCK: 14,
  10885. BMap_Symbol_SHAPE_POINT: 9,
  10886. BMap_Symbol_SHAPE_PLANE: 10,
  10887. BMap_Symbol_SHAPE_CIRCLE: 1,
  10888. BMap_Symbol_SHAPE_RECTANGLE: 2,
  10889. BMap_Symbol_SHAPE_RHOMBUS: 3,
  10890. BMap_Symbol_SHAPE_STAR: 4,
  10891. BMap_Symbol_SHAPE_BACKWARD_CLOSED_ARROW: 5,
  10892. BMap_Symbol_SHAPE_FORWARD_CLOSED_ARROW: 6,
  10893. BMap_Symbol_SHAPE_BACKWARD_OPEN_ARROW: 7,
  10894. BMap_Symbol_SHAPE_FORWARD_OPEN_ARROW: 8,
  10895. })
  10896. T(window, {
  10897. BMAP_CONTEXT_MENU_ICON_ZOOMIN: gc,
  10898. BMAP_CONTEXT_MENU_ICON_ZOOMOUT: hc,
  10899. })
  10900. T(window, {
  10901. BMAP_SYS_DRAWER: Ja,
  10902. BMAP_SVG_DRAWER: 1,
  10903. BMAP_VML_DRAWER: 2,
  10904. BMAP_CANVAS_DRAWER: 3,
  10905. BMAP_SVG_DRAWER_FIRST: 4,
  10906. })
  10907. B.vV()
  10908. B.Q0()
  10909. })()
  10910. window.myBMap = window.BMap
  10911. console.log(window.BMap)