baidumap_offline_v2_20160822.js 212 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978
  1. (function() {
  2. /*guoguo 百度地图API V2 离线版本 疑问请访问www.xiaoguo123.com
  3. * 搜索关键字 guoguo 即可查看修改的地方
  4. * 修改于 2016-8-22 ,基于此日期前的最新API
  5. * 感谢 于忠达 提供的方法
  6. * 本软件作为个人研究学习使用,由于授权导致的纠纷本人概不负责
  7. * 百度地图图片即瓦片文件请自行下载,或联系我索取(QQ 63659875 验证:百度地图API)
  8. */
  9. console.log('baidumap loaded');
  10. function aa(a) {
  11. throw a;
  12. }
  13. var j = void 0,
  14. o = !0,
  15. p = null,
  16. q = !1;
  17. function s() {
  18. return function() {}
  19. }
  20. function ba(a) {
  21. return function(b) {
  22. this[a] = b
  23. }
  24. }
  25. function t(a) {
  26. return function() {
  27. return this[a]
  28. }
  29. }
  30. function ca(a) {
  31. return function() {
  32. return a
  33. }
  34. }
  35. var da, ea = [];
  36. function fa(a) {
  37. return function() {
  38. return ea[a].apply(this, arguments)
  39. }
  40. }
  41. function ga(a, b) {
  42. return ea[a] = b
  43. }
  44. var ha, x = ha = x || {
  45. version: "1.3.4"
  46. };
  47. x.ba = "$BAIDU$";
  48. window[x.ba] = window[x.ba] || {};
  49. x.object = x.object || {};
  50. x.extend = x.object.extend = function(a, b) {
  51. for (var c in b) b.hasOwnProperty(c) && (a[c] = b[c]);
  52. return a
  53. };
  54. x.D = x.D || {};
  55. x.D.$ = function(a) {
  56. return "string" == typeof a || a instanceof String ? document.getElementById(a) : a && a.nodeName && (1 == a.nodeType || 9 == a.nodeType) ? a : p
  57. };
  58. x.$ = x.Ec = x.D.$;
  59. x.D.U = function(a) {
  60. a = x.D.$(a);
  61. if (a === p) return a;
  62. a.style.display = "none";
  63. return a
  64. };
  65. x.U = x.D.U;
  66. x.lang = x.lang || {};
  67. x.lang.ug = function(a) {
  68. return "[object String]" == Object.prototype.toString.call(a)
  69. };
  70. x.ug = x.lang.ug;
  71. x.D.Qj = function(a) {
  72. return x.lang.ug(a) ? document.getElementById(a) : a
  73. };
  74. x.Qj = x.D.Qj;
  75. x.D.getElementsByClassName = function(a, b) {
  76. var c;
  77. if (a.getElementsByClassName) c = a.getElementsByClassName(b);
  78. else {
  79. var d = a;
  80. d == p && (d = document);
  81. c = [];
  82. var d = d.getElementsByTagName("*"),
  83. e = d.length,
  84. f = RegExp("(^|\\s)" + b + "(\\s|$)"),
  85. g, i;
  86. for (i = g = 0; g < e; g++) f.test(d[g].className) && (c[i] = d[g], i++)
  87. }
  88. return c
  89. };
  90. x.getElementsByClassName = x.D.getElementsByClassName;
  91. x.D.contains = function(a, b) {
  92. var c = x.D.Qj,
  93. a = c(a),
  94. b = c(b);
  95. return a.contains ? a != b && a.contains(b) : !! (a.compareDocumentPosition(b) & 16)
  96. };
  97. x.ea = x.ea || {};
  98. /msie (\d+\.\d)/i.test(navigator.userAgent) && (x.ea.la = x.la = document.documentMode || +RegExp.$1);
  99. var ia = {
  100. cellpadding: "cellPadding",
  101. cellspacing: "cellSpacing",
  102. colspan: "colSpan",
  103. rowspan: "rowSpan",
  104. valign: "vAlign",
  105. usemap: "useMap",
  106. frameborder: "frameBorder"
  107. };
  108. 8 > x.ea.la ? (ia["for"] = "htmlFor", ia["class"] = "className") : (ia.htmlFor = "for", ia.className = "class");
  109. x.D.AG = ia;
  110. x.D.oF = function(a, b, c) {
  111. a = x.D.$(a);
  112. if (a === p) return a;
  113. if ("style" == b) a.style.cssText = c;
  114. else {
  115. b = x.D.AG[b] || b;
  116. a.setAttribute(b, c)
  117. }
  118. return a
  119. };
  120. x.oF = x.D.oF;
  121. x.D.pF = function(a, b) {
  122. a = x.D.$(a);
  123. if (a === p) return a;
  124. for (var c in b) x.D.oF(a, c, b[c]);
  125. return a
  126. };
  127. x.pF = x.D.pF;
  128. x.Sk = x.Sk || {};
  129. (function() {
  130. var a = RegExp("(^[\\s\\t\\xa0\\u3000]+)|([\\u3000\\xa0\\s\\t]+$)", "g");
  131. x.Sk.trim = function(b) {
  132. return ("" + b).replace(a, "")
  133. }
  134. })();
  135. x.trim = x.Sk.trim;
  136. x.Sk.Ro = function(a, b) {
  137. var a = "" + a,
  138. c = Array.prototype.slice.call(arguments, 1),
  139. d = Object.prototype.toString;
  140. if (c.length) {
  141. c = c.length == 1 ? b !== p && /\[object Array\]|\[object Object\]/.test(d.call(b)) ? b : c : c;
  142. return a.replace(/#\{(.+?)\}/g, function(a, b) {
  143. var g = c[b];
  144. "[object Function]" == d.call(g) && (g = g(b));
  145. return "undefined" == typeof g ? "" : g
  146. })
  147. }
  148. return a
  149. };
  150. x.Ro = x.Sk.Ro;
  151. x.D.Rb = function(a, b) {
  152. a = x.D.$(a);
  153. if (a === p) return a;
  154. for (var c = a.className.split(/\s+/), d = b.split(/\s+/), e, f = d.length, g, i = 0; i < f; ++i) {
  155. g = 0;
  156. for (e = c.length; g < e; ++g) if (c[g] == d[i]) {
  157. c.splice(g, 1);
  158. break
  159. }
  160. }
  161. a.className = c.join(" ");
  162. return a
  163. };
  164. x.Rb = x.D.Rb;
  165. x.D.Hx = function(a, b, c) {
  166. a = x.D.$(a);
  167. if (a === p) return a;
  168. var d;
  169. if (a.insertAdjacentHTML) a.insertAdjacentHTML(b, c);
  170. else {
  171. d = a.ownerDocument.createRange();
  172. b = b.toUpperCase();
  173. if (b == "AFTERBEGIN" || b == "BEFOREEND") {
  174. d.selectNodeContents(a);
  175. d.collapse(b == "AFTERBEGIN")
  176. } else {
  177. b = b == "BEFOREBEGIN";
  178. d[b ? "setStartBefore" : "setEndAfter"](a);
  179. d.collapse(b)
  180. }
  181. d.insertNode(d.createContextualFragment(c))
  182. }
  183. return a
  184. };
  185. x.Hx = x.D.Hx;
  186. x.D.show = function(a) {
  187. a = x.D.$(a);
  188. if (a === p) return a;
  189. a.style.display = "";
  190. return a
  191. };
  192. x.show = x.D.show;
  193. x.D.GD = function(a) {
  194. a = x.D.$(a);
  195. return a === p ? a : a.nodeType == 9 ? a : a.ownerDocument || a.document
  196. };
  197. x.D.Ta = function(a, b) {
  198. a = x.D.$(a);
  199. if (a === p) return a;
  200. for (var c = b.split(/\s+/), d = a.className, e = " " + d + " ", f = 0, g = c.length; f < g; f++) e.indexOf(" " + c[f] + " ") < 0 && (d = d + (" " + c[f]));
  201. a.className = d;
  202. return a
  203. };
  204. x.Ta = x.D.Ta;
  205. x.D.DB = x.D.DB || {};
  206. x.D.Kl = x.D.Kl || [];
  207. x.D.Kl.filter = function(a, b, c) {
  208. for (var d = 0, e = x.D.Kl, f; f = e[d]; d++) if (f = f[c]) b = f(a, b);
  209. return b
  210. };
  211. x.Sk.oO = function(a) {
  212. return a.indexOf("-") < 0 && a.indexOf("_") < 0 ? a : a.replace(/[-_][^-_]/g, function(a) {
  213. return a.charAt(1).toUpperCase()
  214. })
  215. };
  216. x.D.D_ = function(a) {
  217. x.D.$s(a, "expand") ? x.D.Rb(a, "expand") : x.D.Ta(a, "expand")
  218. };
  219. x.D.$s = function(a) {
  220. if (arguments.length <= 0 || typeof a === "function") return this;
  221. if (this.size() <= 0) return q;
  222. var a = a.replace(/^\s+/g, "").replace(/\s+$/g, "").replace(/\s+/g, " "),
  223. b = a.split(" "),
  224. c;
  225. x.forEach(this, function(a) {
  226. for (var a = a.className, e = 0; e < b.length; e++) if (!~ (" " + a + " ").indexOf(" " + b[e] + " ")) {
  227. c = q;
  228. return
  229. }
  230. c !== q && (c = o)
  231. });
  232. return c
  233. };
  234. x.D.tj = function(a, b) {
  235. var c = x.D,
  236. a = c.$(a);
  237. if (a === p) return a;
  238. var b = x.Sk.oO(b),
  239. d = a.style[b];
  240. if (!d) var e = c.DB[b],
  241. d = a.currentStyle || (x.ea.la ? a.style : getComputedStyle(a, p)),
  242. d = e && e.get ? e.get(a, d) : d[e || b];
  243. if (e = c.Kl) d = e.filter(b, d, "get");
  244. return d
  245. };
  246. x.tj = x.D.tj;
  247. /opera\/(\d+\.\d)/i.test(navigator.userAgent) && (x.ea.opera = +RegExp.$1);
  248. x.ea.jM = /webkit/i.test(navigator.userAgent);
  249. x.ea.kY = /gecko/i.test(navigator.userAgent) && !/like gecko/i.test(navigator.userAgent);
  250. x.ea.uE = "CSS1Compat" == document.compatMode;
  251. x.D.ha = function(a) {
  252. a = x.D.$(a);
  253. if (a === p) return a;
  254. var b = x.D.GD(a),
  255. c = x.ea,
  256. d = x.D.tj;
  257. c.kY > 0 && b.getBoxObjectFor && d(a, "position");
  258. var e = {
  259. left: 0,
  260. top: 0
  261. },
  262. f;
  263. if (a == (c.la && !c.uE ? b.body : b.documentElement)) return e;
  264. if (a.getBoundingClientRect) {
  265. a = a.getBoundingClientRect();
  266. e.left = Math.floor(a.left) + Math.max(b.documentElement.scrollLeft, b.body.scrollLeft);
  267. e.top = Math.floor(a.top) + Math.max(b.documentElement.scrollTop, b.body.scrollTop);
  268. e.left = e.left - b.documentElement.clientLeft;
  269. e.top = e.top - b.documentElement.clientTop;
  270. a = b.body;
  271. b = parseInt(d(a, "borderLeftWidth"));
  272. d = parseInt(d(a, "borderTopWidth"));
  273. if (c.la && !c.uE) {
  274. e.left = e.left - (isNaN(b) ? 2 : b);
  275. e.top = e.top - (isNaN(d) ? 2 : d)
  276. }
  277. } else {
  278. f = a;
  279. do {
  280. e.left = e.left + f.offsetLeft;
  281. e.top = e.top + f.offsetTop;
  282. if (c.jM > 0 && d(f, "position") == "fixed") {
  283. e.left = e.left + b.body.scrollLeft;
  284. e.top = e.top + b.body.scrollTop;
  285. break
  286. }
  287. f = f.offsetParent
  288. } while (f && f != a);
  289. if (c.opera > 0 || c.jM > 0 && d(a, "position") == "absolute") e.top = e.top - b.body.offsetTop;
  290. for (f = a.offsetParent; f && f != b.body;) {
  291. e.left = e.left - f.scrollLeft;
  292. if (!c.opera || f.tagName != "TR") e.top = e.top - f.scrollTop;
  293. f = f.offsetParent
  294. }
  295. }
  296. return e
  297. };
  298. /firefox\/(\d+\.\d)/i.test(navigator.userAgent) && (x.ea.rg = +RegExp.$1);
  299. /BIDUBrowser/i.test(navigator.userAgent) && (x.ea.l1 = o);
  300. var ja = navigator.userAgent;
  301. /(\d+\.\d)?(?:\.\d)?\s+safari\/?(\d+\.\d+)?/i.test(ja) && !/chrome/i.test(ja) && (x.ea.HN = +(RegExp.$1 || RegExp.$2));
  302. /chrome\/(\d+\.\d)/i.test(navigator.userAgent) && (x.ea.eC = +RegExp.$1);
  303. x.jc = x.jc || {};
  304. x.jc.Fb = function(a, b) {
  305. var c, d, e = a.length;
  306. if ("function" == typeof b) for (d = 0; d < e; d++) {
  307. c = a[d];
  308. c = b.call(a, c, d);
  309. if (c === q) break
  310. }
  311. return a
  312. };
  313. x.Fb = x.jc.Fb;
  314. x.lang.ba = function() {
  315. return "TANGRAM__" + (window[x.ba]._counter++).toString(36)
  316. };
  317. window[x.ba]._counter = window[x.ba]._counter || 1;
  318. window[x.ba]._instances = window[x.ba]._instances || {};
  319. x.lang.it = function(a) {
  320. return "[object Function]" == Object.prototype.toString.call(a)
  321. };
  322. x.lang.Ba = function(a) {
  323. this.ba = a || x.lang.ba();
  324. window[x.ba]._instances[this.ba] = this
  325. };
  326. window[x.ba]._instances = window[x.ba]._instances || {};
  327. x.lang.Ba.prototype.gi = fa(0);
  328. x.lang.Ba.prototype.toString = function() {
  329. return "[object " + (this.uQ || "Object") + "]"
  330. };
  331. x.lang.Zy = function(a, b) {
  332. this.type = a;
  333. this.returnValue = o;
  334. this.target = b || p;
  335. this.currentTarget = p
  336. };
  337. x.lang.Ba.prototype.addEventListener = function(a, b, c) {
  338. if (x.lang.it(b)) {
  339. !b.al && (b.al = {});
  340. !this.Ii && (this.Ii = {});
  341. var d = this.Ii,
  342. e;
  343. if (typeof c == "string" && c) {
  344. /[^\w\-]/.test(c) && aa("nonstandard key:" + c);
  345. e = b.Ax = c
  346. }
  347. a.indexOf("on") != 0 && (a = "on" + a);
  348. typeof d[a] != "object" && (d[a] = {});
  349. typeof b.al[a] != "object" && (b.al[a] = {});
  350. e = e || x.lang.ba();
  351. b.al[a].Ax = e;
  352. d[a][e] = b
  353. }
  354. };
  355. x.lang.Ba.prototype.removeEventListener = function(a, b) {
  356. a.indexOf("on") != 0 && (a = "on" + a);
  357. if (x.lang.it(b)) {
  358. if (!b.al || !b.al[a]) return;
  359. b = b.al[a].Ax
  360. } else if (!x.lang.ug(b)) return;
  361. !this.Ii && (this.Ii = {});
  362. var c = this.Ii;
  363. c[a] && c[a][b] && delete c[a][b]
  364. };
  365. x.lang.Ba.prototype.dispatchEvent = function(a, b) {
  366. x.lang.ug(a) && (a = new x.lang.Zy(a));
  367. !this.Ii && (this.Ii = {});
  368. var b = b || {},
  369. c;
  370. for (c in b) a[c] = b[c];
  371. var d = this.Ii,
  372. e = a.type;
  373. a.target = a.target || this;
  374. a.currentTarget = this;
  375. e.indexOf("on") != 0 && (e = "on" + e);
  376. x.lang.it(this[e]) && this[e].apply(this, arguments);
  377. if (typeof d[e] == "object") for (c in d[e]) d[e][c].apply(this, arguments);
  378. return a.returnValue
  379. };
  380. x.lang.ta = function(a, b, c) {
  381. var d, e, f = a.prototype;
  382. e = new Function;
  383. e.prototype = b.prototype;
  384. e = a.prototype = new e;
  385. for (d in f) e[d] = f[d];
  386. a.prototype.constructor = a;
  387. a.u_ = b.prototype;
  388. if ("string" == typeof c) e.uQ = c
  389. };
  390. x.ta = x.lang.ta;
  391. x.lang.Mc = function(a) {
  392. return window[x.ba]._instances[a] || p
  393. };
  394. x.platform = x.platform || {};
  395. x.platform.cM = /macintosh/i.test(navigator.userAgent);
  396. x.platform.W2 = /MicroMessenger/i.test(navigator.userAgent);
  397. x.platform.kM = /windows/i.test(navigator.userAgent);
  398. x.platform.sY = /x11/i.test(navigator.userAgent);
  399. x.platform.Gm = /android/i.test(navigator.userAgent);
  400. /android (\d+\.\d)/i.test(navigator.userAgent) && (x.platform.OJ = x.OJ = RegExp.$1);
  401. x.platform.mY = /ipad/i.test(navigator.userAgent);
  402. x.platform.qE = /iphone/i.test(navigator.userAgent);
  403. function la(a, b) {
  404. a.domEvent = b = window.event || b;
  405. a.clientX = b.clientX || b.pageX;
  406. a.clientY = b.clientY || b.pageY;
  407. a.offsetX = b.offsetX || b.layerX;
  408. a.offsetY = b.offsetY || b.layerY;
  409. a.screenX = b.screenX;
  410. a.screenY = b.screenY;
  411. a.ctrlKey = b.ctrlKey || b.metaKey;
  412. a.shiftKey = b.shiftKey;
  413. a.altKey = b.altKey;
  414. if (b.touches) {
  415. a.touches = [];
  416. for (var c = 0; c < b.touches.length; c++) a.touches.push({
  417. clientX: b.touches[c].clientX,
  418. clientY: b.touches[c].clientY,
  419. screenX: b.touches[c].screenX,
  420. screenY: b.touches[c].screenY,
  421. pageX: b.touches[c].pageX,
  422. pageY: b.touches[c].pageY,
  423. target: b.touches[c].target,
  424. identifier: b.touches[c].identifier
  425. })
  426. }
  427. if (b.changedTouches) {
  428. a.changedTouches = [];
  429. for (c = 0; c < b.changedTouches.length; c++) a.changedTouches.push({
  430. clientX: b.changedTouches[c].clientX,
  431. clientY: b.changedTouches[c].clientY,
  432. screenX: b.changedTouches[c].screenX,
  433. screenY: b.changedTouches[c].screenY,
  434. pageX: b.changedTouches[c].pageX,
  435. pageY: b.changedTouches[c].pageY,
  436. target: b.changedTouches[c].target,
  437. identifier: b.changedTouches[c].identifier
  438. })
  439. }
  440. if (b.targetTouches) {
  441. a.targetTouches = [];
  442. for (c = 0; c < b.targetTouches.length; c++) a.targetTouches.push({
  443. clientX: b.targetTouches[c].clientX,
  444. clientY: b.targetTouches[c].clientY,
  445. screenX: b.targetTouches[c].screenX,
  446. screenY: b.targetTouches[c].screenY,
  447. pageX: b.targetTouches[c].pageX,
  448. pageY: b.targetTouches[c].pageY,
  449. target: b.targetTouches[c].target,
  450. identifier: b.targetTouches[c].identifier
  451. })
  452. }
  453. a.rotation = b.rotation;
  454. a.scale = b.scale;
  455. return a
  456. }
  457. x.lang.Rw = function(a) {
  458. var b = window[x.ba];
  459. b.FS && delete b.FS[a]
  460. };
  461. x.event = {};
  462. x.M = x.event.M = function(a, b, c) {
  463. if (!(a = x.$(a))) return a;
  464. b = b.replace(/^on/, "");
  465. a.addEventListener ? a.addEventListener(b, c, q) : a.attachEvent && a.attachEvent("on" + b, c);
  466. return a
  467. };
  468. x.cd = x.event.cd = function(a, b, c) {
  469. if (!(a = x.$(a))) return a;
  470. b = b.replace(/^on/, "");
  471. a.removeEventListener ? a.removeEventListener(b, c, q) : a.detachEvent && a.detachEvent("on" + b, c);
  472. return a
  473. };
  474. x.D.$s = function(a, b) {
  475. if (!a || !a.className || typeof a.className != "string") return q;
  476. var c = -1;
  477. try {
  478. c = a.className == b || a.className.search(RegExp("(\\s|^)" + b + "(\\s|$)"))
  479. } catch (d) {
  480. return q
  481. }
  482. return c > -1
  483. };
  484. x.SK = function() {
  485. function a(a) {
  486. document.addEventListener && (this.element = a, this.VK = this.zk ? "touchstart" : "mousedown", this.oD = this.zk ? "touchmove" : "mousemove", this.nD = this.zk ? "touchend" : "mouseup", this.rh = q, this.bu = this.au = 0, this.element.addEventListener(this.VK, this, q), ha.M(this.element, "mousedown", s()), this.handleEvent(p))
  487. }
  488. a.prototype = {
  489. zk: "ontouchstart" in window || "createTouch" in document,
  490. start: function(a) {
  491. ma(a);
  492. this.rh = q;
  493. this.au = this.zk ? a.touches[0].clientX : a.clientX;
  494. this.bu = this.zk ? a.touches[0].clientY : a.clientY;
  495. this.element.addEventListener(this.oD, this, q);
  496. this.element.addEventListener(this.nD, this, q)
  497. },
  498. move: function(a) {
  499. na(a);
  500. var c = this.zk ? a.touches[0].clientY : a.clientY;
  501. if (10 < Math.abs((this.zk ? a.touches[0].clientX : a.clientX) - this.au) || 10 < Math.abs(c - this.bu)) this.rh = o
  502. },
  503. end: function(a) {
  504. na(a);
  505. this.rh || (a = document.createEvent("Event"), a.initEvent("tap", q, o), this.element.dispatchEvent(a));
  506. this.element.removeEventListener(this.oD, this, q);
  507. this.element.removeEventListener(this.nD, this, q)
  508. },
  509. handleEvent: function(a) {
  510. if (a) switch (a.type) {
  511. case this.VK:
  512. this.start(a);
  513. break;
  514. case this.oD:
  515. this.move(a);
  516. break;
  517. case this.nD:
  518. this.end(a)
  519. }
  520. }
  521. };
  522. return function(b) {
  523. return new a(b)
  524. }
  525. }();
  526. var z = window.BMap || {};
  527. z.version = "2.0";
  528. z.yJ = 0.34 > Math.random();
  529. 0 <= z.version.indexOf("#") && (z.version = "2.0");
  530. z.Br = [];
  531. z.Se = function(a) {
  532. this.Br.push(a)
  533. };
  534. z.rr = [];
  535. z.Sm = function(a) {
  536. this.rr.push(a)
  537. };
  538. z.TU = z.apiLoad || s();
  539. var pa = 'test';
  540. var qa = window.BMap_loadScriptTime,
  541. ra = (new Date).getTime(),
  542. sa = p,
  543. ta = o,
  544. ua = p,
  545. va = 5042,
  546. wa = 5002,
  547. xa = 5003,
  548. ya = "load_mapclick",
  549. za = 5038,
  550. Aa = 5041,
  551. Ba = 5047,
  552. Ca = 5036,
  553. Da = 5039,
  554. Fa = 5037,
  555. Ga = 5040,
  556. Ha = 5011,
  557. Ia = 7E3;
  558. var Ja = 0;
  559. function Ka(a, b) {
  560. if (a = x.$(a)) {
  561. var c = this;
  562. x.lang.Ba.call(c);
  563. b = b || {};
  564. c.K = {
  565. kC: 200,
  566. Xb: o,
  567. Zw: q,
  568. gD: o,
  569. Oo: o,
  570. Po: b.enableWheelZoom || q,
  571. QK: o,
  572. iD: o,
  573. Es: o,
  574. Xw: o,
  575. lm: o,
  576. Mo: b.enable3DBuilding || q,
  577. Ic: 25,
  578. m0: 240,
  579. HU: 450,
  580. Wb: F.Wb,
  581. Ed: F.Ed,
  582. Kx: !! b.Kx,
  583. fc: Math.round(b.minZoom) || 1,
  584. Zb: Math.round(b.maxZoom) || 19,
  585. Hb: b.mapType || La,
  586. O3: q,
  587. MK: b.drawer || Ja,
  588. Yw: o,
  589. Vw: 500,
  590. uW: b.enableHighResolution !== q,
  591. nj: b.enableMapClick !== q,
  592. devicePixelRatio: b.devicePixelRatio || window.devicePixelRatio || 1,
  593. RF: 99,
  594. te: b.mapStyle || p,
  595. CY: b.logoControl === q ? q : o,
  596. aV: [],
  597. ww: b.beforeClickIcon || p
  598. };
  599. c.K.te && (this.bY(c.K.te.controls), this.XL(c.K.te.geotableId));
  600. c.K.te && c.K.te.styleId && c.G2(c.K.te.styleId);
  601. c.K.dm = {
  602. dark: {
  603. backColor: "#2D2D2D",
  604. textColor: "#bfbfbf",
  605. iconUrl: "dicons"
  606. },
  607. normal: {
  608. backColor: "#F3F1EC",
  609. textColor: "#c61b1b",
  610. iconUrl: "icons"
  611. },
  612. light: {
  613. backColor: "#EBF8FC",
  614. textColor: "#017fb4",
  615. iconUrl: "licons"
  616. }
  617. };
  618. b.enableAutoResize && (c.K.Xw = b.enableAutoResize);
  619. b.enableStreetEntrance === q && (c.K.lm = b.enableStreetEntrance);
  620. b.enableDeepZoom === q && (c.K.QK = b.enableDeepZoom);
  621. var d = c.K.aV;
  622. if (G()) for (var e = 0, f = d.length; e < f; e++) if (x.ea[d[e]]) {
  623. c.K.devicePixelRatio = 1;
  624. break
  625. }
  626. d = -1 < navigator.userAgent.toLowerCase().indexOf("android");
  627. e = -1 < navigator.userAgent.toLowerCase().indexOf("mqqbrowser");
  628. if (-1 < navigator.userAgent.toLowerCase().indexOf("UCBrowser") || d && e) c.K.RF = 99;
  629. c.Ua = a;
  630. c.wB(a);
  631. a.unselectable = "on";
  632. a.innerHTML = "";
  633. a.appendChild(c.ua());
  634. b.size && this.xe(b.size);
  635. d = c.yb();
  636. c.width = d.width;
  637. c.height = d.height;
  638. c.offsetX = 0;
  639. c.offsetY = 0;
  640. c.platform = a.firstChild;
  641. c.ue = c.platform.firstChild;
  642. c.ue.style.width = c.width + "px";
  643. c.ue.style.height = c.height + "px";
  644. c.Td = {};
  645. c.ef = new H(0, 0);
  646. c.lc = new H(0, 0);
  647. c.Ka = 3;
  648. c.Cc = 0;
  649. c.CC = p;
  650. c.BC = p;
  651. c.Vb = "";
  652. c.Cw = "";
  653. c.Oh = {};
  654. c.Oh.custom = {};
  655. c.Sa = 0;
  656. b.useWebGL === q && Ma(q);
  657. c.P = new Na(a, {
  658. Of: "api",
  659. KS: o
  660. });
  661. c.P.U();
  662. c.P.tF(c);
  663. b = b || {};
  664. d = c.Hb = c.K.Hb;
  665. c.we = d.bp();
  666. d === Oa && Pa(wa);
  667. d === Ra && Pa(xa);
  668. d = c.K;
  669. d.IO = Math.round(b.minZoom);
  670. d.HO = Math.round(b.maxZoom);
  671. c.Su();
  672. c.R = {
  673. Jc: q,
  674. kc: 0,
  675. mt: 0,
  676. oM: 0,
  677. a3: 0,
  678. bC: q,
  679. bF: -1,
  680. Ne: []
  681. };
  682. c.platform.style.cursor = c.K.Wb;
  683. for (e = 0; e < z.Br.length; e++) z.Br[e](c);
  684. c.R.bF = e;
  685. c.ca();
  686. I.load("map", function() {
  687. c.wb()
  688. });
  689. c.K.nj && (setTimeout(function() {
  690. Pa(ya)
  691. }, 1E3), I.load("mapclick", function() {
  692. window.MPC_Mgr = window.MPC_Mgr || {};
  693. window.MPC_Mgr[c.ba] = new Sa(c)
  694. }, o));
  695. Ta() && I.load("oppc", function() {
  696. c.pz()
  697. });
  698. G() && I.load("opmb", function() {
  699. c.pz()
  700. });
  701. a = p;
  702. c.LB = []
  703. }
  704. }
  705. x.lang.ta(Ka, x.lang.Ba, "Map");
  706. x.extend(Ka.prototype, {
  707. ua: function() {
  708. var a = K("div"),
  709. b = a.style;
  710. b.overflow = "visible";
  711. b.position = "absolute";
  712. b.zIndex = "0";
  713. b.top = b.left = "0px";
  714. var b = K("div", {
  715. "class": "BMap_mask"
  716. }),
  717. c = b.style;
  718. c.position = "absolute";
  719. c.top = c.left = "0px";
  720. c.zIndex = "9";
  721. c.overflow = "hidden";
  722. c.WebkitUserSelect = "none";
  723. a.appendChild(b);
  724. return a
  725. },
  726. wB: function(a) {
  727. var b = a.style;
  728. b.overflow = "hidden";
  729. "absolute" !== Ua(a).position && (b.position = "relative", b.zIndex = 0);
  730. b.backgroundColor = "#F3F1EC";
  731. b.color = "#000";
  732. b.textAlign = "left"
  733. },
  734. ca: function() {
  735. var a = this;
  736. a.Ur = function() {
  737. var b = a.yb();
  738. if (a.width !== b.width || a.height !== b.height) {
  739. var c = new L(a.width, a.height),
  740. d = new N("onbeforeresize");
  741. d.size = c;
  742. a.dispatchEvent(d);
  743. a.ik((b.width - a.width) / 2, (b.height - a.height) / 2);
  744. a.ue.style.width = (a.width = b.width) + "px";
  745. a.ue.style.height = (a.height = b.height) + "px";
  746. c = new N("onresize");
  747. c.size = b;
  748. a.dispatchEvent(c)
  749. }
  750. };
  751. a.K.Xw && (a.R.Yr = setInterval(a.Ur, 80))
  752. },
  753. ik: function(a, b, c, d) {
  754. var e = this.oa().Bc(this.fa()),
  755. f = this.we,
  756. g = o;
  757. c && H.bM(c) && (this.ef = new H(c.lng, c.lat), g = q);
  758. if (c = c && d ? f.Jm(c, this.Vb) : this.lc) if (this.lc = new H(c.lng + a * e, c.lat - b * e), (a = f.qh(this.lc, this.Vb)) && g) this.ef = a
  759. },
  760. Fg: function(a, b) {
  761. if (Va(a) && (this.Su(), this.dispatchEvent(new N("onzoomstart")), a = this.Vn(a).zoom, a !== this.Ka)) {
  762. this.Cc = this.Ka;
  763. this.Ka = a;
  764. var c;
  765. b ? c = b : this.jh() && (c = this.jh().ha());
  766. c && (c = this.ac(c, this.Cc), this.ik(this.width / 2 - c.x, this.height / 2 - c.y, this.ub(c, this.Cc), o));
  767. this.dispatchEvent(new N("onzoomstartcode"))
  768. }
  769. },
  770. Oc: function(a) {
  771. this.Fg(a)
  772. },
  773. VF: function(a) {
  774. this.Fg(this.Ka + 1, a)
  775. },
  776. WF: function(a) {
  777. this.Fg(this.Ka - 1, a)
  778. },
  779. ui: function(a) {
  780. a instanceof H && (this.lc = this.we.Jm(a, this.Vb), this.ef = H.bM(a) ? new H(a.lng, a.lat) : this.we.qh(this.lc, this.Vb))
  781. },
  782. yg: function(a, b) {
  783. a = Math.round(a) || 0;
  784. b = Math.round(b) || 0;
  785. this.ik(-a, -b)
  786. },
  787. lw: function(a) {
  788. a && Wa(a.Ce) && (a.Ce(this), this.dispatchEvent(new N("onaddcontrol", a)))
  789. },
  790. vN: function(a) {
  791. a && Wa(a.remove) && (a.remove(), this.dispatchEvent(new N("onremovecontrol", a)))
  792. },
  793. uo: function(a) {
  794. a && Wa(a.qa) && (a.qa(this), this.dispatchEvent(new N("onaddcontextmenu", a)))
  795. },
  796. zp: function(a) {
  797. a && Wa(a.remove) && (this.dispatchEvent(new N("onremovecontextmenu", a)), a.remove())
  798. },
  799. Ia: function(a) {
  800. a && Wa(a.Ce) && (a.Ce(this), this.dispatchEvent(new N("onaddoverlay", a)))
  801. },
  802. Sb: function(a) {
  803. a && Wa(a.remove) && (a.remove(), this.dispatchEvent(new N("onremoveoverlay", a)))
  804. },
  805. hK: function() {
  806. this.dispatchEvent(new N("onclearoverlays"))
  807. },
  808. Yg: function(a) {
  809. a && this.dispatchEvent(new N("onaddtilelayer", a))
  810. },
  811. zh: function(a) {
  812. a && this.dispatchEvent(new N("onremovetilelayer", a))
  813. },
  814. Bg: function(a) {
  815. if (this.Hb !== a) {
  816. var b = new N("onsetmaptype");
  817. b.D3 = this.Hb;
  818. this.Hb = this.K.Hb = a;
  819. this.we = this.Hb.bp();
  820. this.ik(0, 0, this.Ja(), o);
  821. this.Su();
  822. var c = this.Vn(this.fa()).zoom;
  823. this.Fg(c);
  824. this.dispatchEvent(b);
  825. b = new N("onmaptypechange");
  826. b.Ka = c;
  827. b.Hb = a;
  828. this.dispatchEvent(b);
  829. (a === Xa || a === Ra) && Pa(xa)
  830. }
  831. },
  832. Vf: function(a) {
  833. var b = this;
  834. if (a instanceof H) b.ui(a, {
  835. noAnimation: o
  836. });
  837. else if (Za(a)) if (b.Hb === Oa) {
  838. var c = F.gC[a];
  839. c && (pt = c.m, b.Vf(pt))
  840. } else {
  841. var d = this.GH();
  842. d.wF(function(c) {
  843. 0 === d.um() && 2 === d.Ea.result.type && (b.Vf(c.xk(0).point), Oa.tk(a) && b.qF(a))
  844. });
  845. d.search(a, {
  846. log: "center"
  847. })
  848. }
  849. },
  850. Cd: function(a, b) {
  851. "[object Undefined]" !== Object.prototype.toString.call(b) && (b = parseInt(b));
  852. ua = G() ? $a.Fi.ok(z.yJ ? 102 : 101) : $a.Fi.ok(1);
  853. ua.cu();
  854. ua.kz = +new Date;
  855. ua.pc("script_loaded", ra - qa);
  856. ua.pc("centerAndZoom");
  857. z.Ij("cus.fire", "time", {
  858. z_loadscripttime: ra - qa
  859. });
  860. var c = this;
  861. if (Za(a)) if (c.Hb === Oa) {
  862. var d = F.gC[a];
  863. d && (pt = d.m, c.Cd(pt, b))
  864. } else {
  865. var e = c.GH();
  866. e.wF(function(d) {
  867. if (0 === e.um() && (2 === e.Ea.result.type || 11 === e.Ea.result.type)) {
  868. var d = d.xk(0).point,
  869. f = b || P.bx(e.Ea.content.level, c);
  870. c.Cd(d, f);
  871. Oa.tk(a) && c.qF(a)
  872. }
  873. });
  874. e.search(a, {
  875. log: "center"
  876. })
  877. } else if (a instanceof H && b) {
  878. b = c.Vn(b).zoom;
  879. c.Cc = c.Ka || b;
  880. c.Ka = b;
  881. d = c.ef;
  882. c.ef = new H(a.lng, a.lat);
  883. c.lc = c.we.Jm(c.ef, c.Vb);
  884. c.CC = c.CC || c.Ka;
  885. c.BC = c.BC || c.ef;
  886. var f = new N("onload"),
  887. g = new N("onloadcode");
  888. f.point = new H(a.lng, a.lat);
  889. f.pixel = c.ac(c.ef, c.Ka);
  890. f.zoom = b;
  891. c.loaded || (c.loaded = o, c.dispatchEvent(f), sa || (sa = ab()));
  892. c.dispatchEvent(g);
  893. f = new N("onmoveend");
  894. f.iH = "centerAndZoom";
  895. d.mb(c.ef) || c.dispatchEvent(f);
  896. c.dispatchEvent(new N("onmoveend"));
  897. c.Cc !== c.Ka && (d = new N("onzoomend"), d.iH = "centerAndZoom", c.dispatchEvent(d));
  898. c.K.Mo && c.Mo()
  899. }
  900. },
  901. GH: function() {
  902. this.R.vM || (this.R.vM = new bb(1));
  903. return this.R.vM
  904. },
  905. reset: function() {
  906. this.Cd(this.BC, this.CC, o)
  907. },
  908. enableDragging: function() {
  909. this.K.Xb = o
  910. },
  911. disableDragging: function() {
  912. this.K.Xb = q
  913. },
  914. enableInertialDragging: function() {
  915. this.K.Yw = o
  916. },
  917. disableInertialDragging: function() {
  918. this.K.Yw = q
  919. },
  920. enableScrollWheelZoom: function() {
  921. this.K.Po = o
  922. },
  923. disableScrollWheelZoom: function() {
  924. this.K.Po = q
  925. },
  926. enableContinuousZoom: function() {
  927. this.K.Oo = o
  928. },
  929. disableContinuousZoom: function() {
  930. this.K.Oo = q
  931. },
  932. enableDoubleClickZoom: function() {
  933. this.K.gD = o
  934. },
  935. disableDoubleClickZoom: function() {
  936. this.K.gD = q
  937. },
  938. enableKeyboard: function() {
  939. this.K.Zw = o
  940. },
  941. disableKeyboard: function() {
  942. this.K.Zw = q
  943. },
  944. enablePinchToZoom: function() {
  945. this.K.Es = o
  946. },
  947. disablePinchToZoom: function() {
  948. this.K.Es = q
  949. },
  950. enableAutoResize: function() {
  951. this.K.Xw = o;
  952. this.Ur();
  953. this.R.Yr || (this.R.Yr = setInterval(this.Ur, 80))
  954. },
  955. disableAutoResize: function() {
  956. this.K.Xw = q;
  957. this.R.Yr && (clearInterval(this.R.Yr), this.R.Yr = p)
  958. },
  959. Mo: function() {
  960. this.K.Mo = o;
  961. this.Kn || (this.Kn = new db({
  962. ZK: o
  963. }), this.Yg(this.Kn))
  964. },
  965. eW: function() {
  966. this.K.Mo = q;
  967. this.Kn && (this.zh(this.Kn), this.Kn = p, delete this.Kn)
  968. },
  969. yb: function() {
  970. return this.ls && this.ls instanceof L ? new L(this.ls.width, this.ls.height) : new L(this.Ua.clientWidth, this.Ua.clientHeight)
  971. },
  972. xe: function(a) {
  973. a && a instanceof L ? (this.ls = a, this.Ua.style.width = a.width + "px", this.Ua.style.height = a.height + "px") : this.ls = p
  974. },
  975. Ja: t("ef"),
  976. fa: t("Ka"),
  977. vV: function() {
  978. this.Ur()
  979. },
  980. Vn: function(a) {
  981. var b = this.K.fc,
  982. c = this.K.Zb,
  983. d = q,
  984. a = Math.round(a);
  985. a < b && (d = o, a = b);
  986. a > c && (d = o, a = c);
  987. return {
  988. zoom: a,
  989. pD: d
  990. }
  991. },
  992. Na: t("Ua"),
  993. ac: function(a, b) {
  994. b = b || this.fa();
  995. return this.we.ac(a, b, this.lc, this.yb(), this.Vb)
  996. },
  997. ub: function(a, b) {
  998. b = b || this.fa();
  999. return this.we.ub(a, b, this.lc, this.yb(), this.Vb)
  1000. },
  1001. Re: function(a, b) {
  1002. if (a) {
  1003. var c = this.ac(new H(a.lng, a.lat), b);
  1004. c.x -= this.offsetX;
  1005. c.y -= this.offsetY;
  1006. return c
  1007. }
  1008. },
  1009. kN: function(a, b) {
  1010. if (a) {
  1011. var c = new Q(a.x, a.y);
  1012. c.x += this.offsetX;
  1013. c.y += this.offsetY;
  1014. return this.ub(c, b)
  1015. }
  1016. },
  1017. pointToPixelFor3D: function(a, b) {
  1018. var c = map.Vb;
  1019. this.Hb === Oa && c && eb.nK(a, this, b)
  1020. },
  1021. y3: function(a, b) {
  1022. var c = map.Vb;
  1023. this.Hb === Oa && c && eb.mK(a, this, b)
  1024. },
  1025. z3: function(a, b) {
  1026. var c = this,
  1027. d = map.Vb;
  1028. c.Hb === Oa && d && eb.nK(a, c, function(a) {
  1029. a.x -= c.offsetX;
  1030. a.y -= c.offsetY;
  1031. b && b(a)
  1032. })
  1033. },
  1034. w3: function(a, b) {
  1035. var c = map.Vb;
  1036. this.Hb === Oa && c && (a.x += this.offsetX, a.y += this.offsetY, eb.mK(a, this, b))
  1037. },
  1038. Gd: function(a) {
  1039. if (!this.Jx()) return new fb;
  1040. var b = a || {},
  1041. a = b.margins || [0, 0, 0, 0],
  1042. c = b.zoom || p,
  1043. b = this.ub({
  1044. x: a[3],
  1045. y: this.height - a[2]
  1046. }, c),
  1047. a = this.ub({
  1048. x: this.width - a[1],
  1049. y: a[0]
  1050. }, c);
  1051. return new fb(b, a)
  1052. },
  1053. Jx: function() {
  1054. return !!this.loaded
  1055. },
  1056. MR: function(a, b) {
  1057. for (var c = this.oa(), d = b.margins || [10, 10, 10, 10], e = b.zoomFactor || 0, f = d[1] + d[3], d = d[0] + d[2], g = c.Xo(), i = c = c.qm(); i >= g; i--) {
  1058. var k = this.oa().Bc(i);
  1059. if (a.KF().lng / k < this.width - f && a.KF().lat / k < this.height - d) break
  1060. }
  1061. i += e;
  1062. i < g && (i = g);
  1063. i > c && (i = c);
  1064. return i
  1065. },
  1066. Zs: function(a, b) {
  1067. var c = {
  1068. center: this.Ja(),
  1069. zoom: this.fa()
  1070. };
  1071. if (!a || !a instanceof fb && 0 === a.length || a instanceof fb && a.yj()) return c;
  1072. var d = [];
  1073. a instanceof fb ? (d.push(a.kf()), d.push(a.re())) : d = a.slice(0);
  1074. for (var b = b || {}, e = [], f = 0, g = d.length; f < g; f++) e.push(this.we.Jm(d[f], this.Vb));
  1075. d = new fb;
  1076. for (f = e.length - 1; 0 <= f; f--) d.extend(e[f]);
  1077. if (d.yj()) return c;
  1078. c = d.Ja();
  1079. e = this.MR(d, b);
  1080. b.margins && (d = b.margins, f = (d[1] - d[3]) / 2, d = (d[0] - d[2]) / 2, g = this.oa().Bc(e), b.offset && (f = b.offset.width, d = b.offset.height), c.lng += g * f, c.lat += g * d);
  1081. c = this.we.qh(c, this.Vb);
  1082. return {
  1083. center: c,
  1084. zoom: e
  1085. }
  1086. },
  1087. Bh: function(a, b) {
  1088. var c;
  1089. c = a && a.center ? a : this.Zs(a, b);
  1090. var b = b || {},
  1091. d = b.delay || 200;
  1092. if (c.zoom === this.Ka && b.enableAnimation !== q) {
  1093. var e = this;
  1094. setTimeout(function() {
  1095. e.ui(c.center, {
  1096. duration: 210
  1097. })
  1098. }, d)
  1099. } else this.Cd(c.center, c.zoom)
  1100. },
  1101. Qf: t("Td"),
  1102. jh: function() {
  1103. return this.R.nb && this.R.nb.Va() ? this.R.nb : p
  1104. },
  1105. getDistance: function(a, b) {
  1106. if (a && b) {
  1107. if (a.mb(b)) return 0;
  1108. var c = 0,
  1109. c = R.Vo(a, b);
  1110. if (c === p || c === j) c = 0;
  1111. return c
  1112. }
  1113. },
  1114. tx: function() {
  1115. var a = [],
  1116. b = this.va,
  1117. c = this.ze;
  1118. if (b) for (var d in b) b[d] instanceof gb && a.push(b[d]);
  1119. if (c) {
  1120. d = 0;
  1121. for (b = c.length; d < b; d++) a.push(c[d])
  1122. }
  1123. return a
  1124. },
  1125. oa: t("Hb"),
  1126. pz: function() {
  1127. for (var a = this.R.bF; a < z.Br.length; a++){ z.Br[a](this); }
  1128. this.R.bF = a
  1129. },
  1130. qF: function(a) {
  1131. this.Vb = Oa.tk(a);
  1132. this.Cw = Oa.jL(this.Vb);
  1133. this.Hb === Oa && this.we instanceof hb && (this.we.gj = this.Vb)
  1134. },
  1135. setDefaultCursor: function(a) {
  1136. this.K.Wb = a;
  1137. this.platform && (this.platform.style.cursor = this.K.Wb)
  1138. },
  1139. getDefaultCursor: function() {
  1140. return this.K.Wb
  1141. },
  1142. setDraggingCursor: function(a) {
  1143. this.K.Ed = a
  1144. },
  1145. getDraggingCursor: function() {
  1146. return this.K.Ed
  1147. },
  1148. dE: function() {
  1149. return this.K.uW && 1.5 <= this.K.devicePixelRatio
  1150. },
  1151. nw: function(a, b) {
  1152. b ? this.Oh[b] || (this.Oh[b] = {}) : b = "custom";
  1153. a.tag = b;
  1154. a instanceof ib && (this.Oh[b][a.ba] = a, a.qa(this));
  1155. var c = this;
  1156. I.load("hotspot", function() {
  1157. c.pz()
  1158. }, o)
  1159. },
  1160. oZ: function(a, b) {
  1161. b || (b = "custom");
  1162. this.Oh[b][a.ba] && delete this.Oh[b][a.ba]
  1163. },
  1164. bm: function(a) {
  1165. a || (a = "custom");
  1166. this.Oh[a] = {}
  1167. },
  1168. Su: function() {
  1169. var a = this.Hb.Xo(),
  1170. b = this.Hb.qm(),
  1171. c = this.K;
  1172. c.fc = c.IO || a;
  1173. c.Zb = c.HO || b;
  1174. c.fc < a && (c.fc = a);
  1175. c.Zb > b && (c.Zb = b)
  1176. },
  1177. setMinZoom: function(a) {
  1178. a = Math.round(a);
  1179. a > this.K.Zb && (a = this.K.Zb);
  1180. this.K.IO = a;
  1181. this.pJ()
  1182. },
  1183. setMaxZoom: function(a) {
  1184. a = Math.round(a);
  1185. a < this.K.fc && (a = this.K.fc);
  1186. this.K.HO = a;
  1187. this.pJ()
  1188. },
  1189. pJ: function() {
  1190. this.Su();
  1191. var a = this.K;
  1192. this.Ka < a.fc ? this.Oc(a.fc) : this.Ka > a.Zb && this.Oc(a.Zb);
  1193. var b = new N("onzoomspanchange");
  1194. b.fc = a.fc;
  1195. b.Zb = a.Zb;
  1196. this.dispatchEvent(b)
  1197. },
  1198. I2: t("LB"),
  1199. getKey: function() {
  1200. return pa
  1201. },
  1202. Nt: function(a) {
  1203. var b = this;
  1204. window.MPC_Mgr && window.MPC_Mgr[b.ba] && window.MPC_Mgr[b.ba].close();
  1205. b.K.nj = q;
  1206. z.Ij("cus.fire", "count", "z_setmapstylecount");
  1207. if (a) {
  1208. b = this;
  1209. a.styleJson && (a.styleStr = b.r_(a.styleJson));
  1210. G() && x.ea.HN ? setTimeout(function() {
  1211. b.K.te = a;
  1212. b.dispatchEvent(new N("onsetcustomstyles", a))
  1213. }, 50) : (this.K.te = a, this.dispatchEvent(new N("onsetcustomstyles", a)), this.XL(b.K.te.geotableId));
  1214. var c = {
  1215. style: a.style
  1216. };
  1217. a.features && 0 < a.features.length && (c.features = o);
  1218. a.styleJson && 0 < a.styleJson.length && (c.styleJson = o);
  1219. Pa(5050, c);
  1220. a.style && (c = b.K.dm[a.style] ? b.K.dm[a.style].backColor : b.K.dm.normal.backColor) && (this.Na().style.backgroundColor = c)
  1221. }
  1222. },
  1223. bY: function(a) {
  1224. this.controls || (this.controls = {
  1225. navigationControl: new jb,
  1226. scaleControl: new kb,
  1227. overviewMapControl: new lb,
  1228. mapTypeControl: new mb
  1229. });
  1230. var b = this,
  1231. c;
  1232. for (c in this.controls) b.vN(b.controls[c]);
  1233. a = a || [];
  1234. x.jc.Fb(a, function(a) {
  1235. b.lw(b.controls[a])
  1236. })
  1237. },
  1238. XL: function(a) {
  1239. a ? this.js && this.js.xf === a || (this.zh(this.js), this.js = new nb({
  1240. geotableId: a
  1241. }), this.Yg(this.js)) : this.zh(this.js)
  1242. },
  1243. Ub: function() {
  1244. var a = this.fa() >= this.K.RF && this.oa() === La && 18 >= this.fa(),
  1245. b = q;
  1246. try {
  1247. document.createElement("canvas").getContext("2d"), b = o
  1248. } catch (c) {
  1249. b = q
  1250. }
  1251. return a && b
  1252. },
  1253. getCurrentCity: function() {
  1254. return {
  1255. name: this.$g,
  1256. code: this.Zr
  1257. }
  1258. },
  1259. rm: function() {
  1260. this.P.$n();
  1261. return this.P
  1262. },
  1263. setPanorama: function(a) {
  1264. this.P = a;
  1265. this.P.tF(this)
  1266. },
  1267. r_: function(a) {
  1268. for (var b = {
  1269. featureType: "t",
  1270. elementType: "e",
  1271. visibility: "v",
  1272. color: "c",
  1273. lightness: "l",
  1274. saturation: "s",
  1275. weight: "w",
  1276. zoom: "z",
  1277. hue: "h"
  1278. }, c = {
  1279. all: "all",
  1280. geometry: "g",
  1281. "geometry.fill": "g.f",
  1282. "geometry.stroke": "g.s",
  1283. labels: "l",
  1284. "labels.text.fill": "l.t.f",
  1285. "labels.text.stroke": "l.t.s",
  1286. "lables.text": "l.t",
  1287. "labels.icon": "l.i"
  1288. }, d = [], e = 0, f; f = a[e]; e++) {
  1289. var g = f.stylers;
  1290. delete f.stylers;
  1291. x.extend(f, g);
  1292. var g = [],
  1293. i;
  1294. for (i in b) f[i] && ("elementType" === i ? g.push(b[i] + ":" + c[f[i]]) : g.push(b[i] + ":" + f[i]));
  1295. 2 < g.length && d.push(g.join("|"))
  1296. }
  1297. return d.join(",")
  1298. }
  1299. });
  1300. function Pa(a, b) {
  1301. if (a) {
  1302. var b = b || {},
  1303. c = "",
  1304. d;
  1305. for (d in b) c = c + "&" + d + "=" + encodeURIComponent(b[d]);
  1306. var e = function(a) {
  1307. a && (ob = o, setTimeout(function() {}, 50))
  1308. },
  1309. f = function() {
  1310. var a = qb.shift();
  1311. a && e(a)
  1312. };
  1313. d = (1E8 * Math.random()).toFixed(0);
  1314. ob ? qb.push({
  1315. src: "product=jsapi&sub_product=jsapi&v=" + z.version + "&sub_product_v=" + z.version + "&t=" + d + "&code=" + a + "&da_src=" + a + c
  1316. }) : e({
  1317. src: "product=jsapi&sub_product=jsapi&v=" + z.version + "&sub_product_v=" + z.version + "&t=" + d + "&code=" + a + "&da_src=" + a + c
  1318. });
  1319. rb || (x.M(pb, "load", function() {
  1320. ob = q;
  1321. f()
  1322. }), x.M(pb, "error", function() {
  1323. ob = q;
  1324. f()
  1325. }), rb = o)
  1326. }
  1327. }
  1328. var ob, rb, qb = [],
  1329. pb = new Image;
  1330. Pa(5E3, {
  1331. device_pixel_ratio: window.devicePixelRatio,
  1332. platform: navigator.platform
  1333. });
  1334. z.RL = {
  1335. TILE_BASE_URLS: ["ss0.baidu.com/5bwHcj7lABFU8t_jkk_Z1zRvfdw6buu", "ss0.baidu.com/5bwHcj7lABFV8t_jkk_Z1zRvfdw6buu", "ss0.baidu.com/5bwHcj7lABFS8t_jkk_Z1zRvfdw6buu", "ss0.bdstatic.com/5bwHcj7lABFT8t_jkk_Z1zRvfdw6buu", "ss0.bdstatic.com/5bwHcj7lABFY8t_jkk_Z1zRvfdw6buu"],
  1336. TILE_ONLINE_URLS: ["ss0.bdstatic.com/8bo_dTSlR1gBo1vgoIiO_jowehsv", "ss0.bdstatic.com/8bo_dTSlRMgBo1vgoIiO_jowehsv", "ss0.bdstatic.com/8bo_dTSlRcgBo1vgoIiO_jowehsv", "ss0.bdstatic.com/8bo_dTSlRsgBo1vgoIiO_jowehsv", "ss0.bdstatic.com/8bo_dTSlQ1gBo1vgoIiO_jowehsv"],
  1337. TIlE_PERSPECT_URLS: ["ss0.bdstatic.com/-OR1cTe9KgQFm2e88IuM_a", "ss0.bdstatic.com/-ON1cTe9KgQFm2e88IuM_a", "ss0.bdstatic.com/-OZ1cTe9KgQFm2e88IuM_a", "ss0.bdstatic.com/-OV1cTe9KgQFm2e88IuM_a"],
  1338. geolocControl: "sp2.baidu.com/8LkJsjOpB1gCo2Kml5_Y_D3",
  1339. TILES_YUN_HOST: ["sp0.baidu.com/-eR1bSahKgkFkRGko9WTAnF6hhy", "sp0.baidu.com/-eN1bSahKgkFkRGko9WTAnF6hhy", "sp0.baidu.com/-eZ1bSahKgkFkRGko9WTAnF6hhy", "sp0.baidu.com/-eV1bSahKgkFkRGko9WTAnF6hhy"],
  1340. traffic: "sp3.baidu.com/7_AZsjOpB1gCo2Kml5_Y_DAcsMJiwa",
  1341. iw_pano: "ss0.bdstatic.com/5LUZemba_QUU8t7mm9GUKT-xh_",
  1342. message: "sp0.baidu.com/7vo0bSba2gU2pMbgoY3K",
  1343. baidumap: "sp0.baidu.com/80MWsjip0QIZ8tyhnq",
  1344. wuxian: "sp0.baidu.com/6a1OdTeaKgQFm2e88IuM_a",
  1345. pano: ["ss0.bdstatic.com/5LUZemba_QUU8t7mm9GUKT-xh_", "ss0.bdstatic.com/5LUZemfa_QUU8t7mm9GUKT-xh_", "ss0.bdstatic.com/5LUZemja_QUU8t7mm9GUKT-xh_"],
  1346. main_domain_nocdn: {
  1347. baidu: "sp0.baidu.com/9_Q4sjOpB1gCo2Kml5_Y_D3",
  1348. other: "api.map.baidu.com"
  1349. },
  1350. main_domain_cdn: {
  1351. baidu: ["ss0.bdstatic.com/9_Q4vHSd2RZ3otebn9fN2DJv", "ss0.baidu.com/9_Q4vXSd2RZ3otebn9fN2DJv", "ss0.bdstatic.com/9_Q4vnSd2RZ3otebn9fN2DJv"],
  1352. other: ["api.map.baidu.com"],
  1353. webmap: ["ss0.baidu.com/6b1IcTe9R1gBo1vgoIiO_jowehsv"]
  1354. },
  1355. map_click: "sp0.baidu.com/80MWbzKh2wt3n2qy8IqW0jdnxx1xbK",
  1356. vector_traffic: "ss0.bdstatic.com/8aZ1cTe9KgQIm2_p8IuM_a"
  1357. };
  1358. z.XX = {
  1359. TILE_BASE_URLS: ["shangetu0.map.bdimg.com", "shangetu1.map.bdimg.com", "shangetu2.map.bdimg.com", "shangetu3.map.bdimg.com", "shangetu4.map.bdimg.com"],
  1360. TILE_ONLINE_URLS: ["online0.map.bdimg.com", "online1.map.bdimg.com", "online2.map.bdimg.com", "online3.map.bdimg.com", "online4.map.bdimg.com"],
  1361. TIlE_PERSPECT_URLS: ["d0.map.baidu.com", "d1.map.baidu.com", "d2.map.baidu.com", "d3.map.baidu.com"],
  1362. geolocControl: "loc.map.baidu.com",
  1363. TILES_YUN_HOST: ["g0.api.map.baidu.com", "g1.api.map.baidu.com", "g2.api.map.baidu.com", "g3.api.map.baidu.com"],
  1364. traffic: "its.map.baidu.com:8002",
  1365. iw_pano: "pcsv0.map.bdimg.com",
  1366. message: "j.map.baidu.com",
  1367. baidumap: "map.baidu.com",
  1368. wuxian: "wuxian.baidu.com",
  1369. pano: ["pcsv0.map.bdimg.com", "pcsv1.map.bdimg.com", "pcsv2.map.bdimg.com"],
  1370. main_domain_nocdn: {
  1371. baidu: "api.map.baidu.com"
  1372. },
  1373. main_domain_cdn: {
  1374. baidu: ["api0.map.bdimg.com", "api1.map.bdimg.com", "api2.map.bdimg.com"],
  1375. webmap: ["webmap0.map.bdimg.com"]
  1376. },
  1377. map_click: "mapclick.map.baidu.com",
  1378. vector_traffic: "or.map.bdimg.com"
  1379. };
  1380. z.U_ = {
  1381. "0": {
  1382. proto: "http://",
  1383. domain: z.XX
  1384. },
  1385. 1: {
  1386. proto: "https://",
  1387. domain: z.RL
  1388. },
  1389. 2: {
  1390. proto: "https://",
  1391. domain: z.RL
  1392. }
  1393. };
  1394. z.ou = window.HOST_TYPE || "0";
  1395. z.url = z.U_[z.ou];
  1396. z.qp = z.url.proto + z.url.domain.baidumap + "/";
  1397. z.Hc = z.url.proto + ("2" == z.ou ? z.url.domain.main_domain_nocdn.other : z.url.domain.main_domain_nocdn.baidu) + "/";
  1398. /*z.ma = z.url.proto + ("2" == z.ou ? z.url.domain.main_domain_cdn.other[0] : z.url.domain.main_domain_cdn.baidu[0]) + "/";*/
  1399. z.ma = bdmapcfg.home; /*guoguo 改成离线的路径 */
  1400. z.ej = z.url.proto + z.url.domain.main_domain_cdn.webmap[0] + "/";
  1401. z.tg = function(a, b) {
  1402. var c, d, b = b || "";
  1403. switch (a) {
  1404. case "main_domain_nocdn":
  1405. c = z.Hc + b;
  1406. break;
  1407. case "main_domain_cdn":
  1408. c = z.ma + b;
  1409. break;
  1410. default:
  1411. d = z.url.domain[a], "[object Array]" == Object.prototype.toString.call(d) ? (c = [], x.jc.Fb(d, function(a, d) {
  1412. c[d] = z.url.proto + a + "/" + b
  1413. })) : c = z.url.proto + z.url.domain[a] + "/" + b
  1414. }
  1415. return c
  1416. };
  1417. function sb(a) {
  1418. var b = {
  1419. duration: 1E3,
  1420. Ic: 30,
  1421. Io: 0,
  1422. hc: tb.sM,
  1423. yt: s()
  1424. };
  1425. this.Zf = [];
  1426. if (a) for (var c in a) b[c] = a[c];
  1427. this.k = b;
  1428. if (Va(b.Io)) {
  1429. var d = this;
  1430. setTimeout(function() {
  1431. d.start()
  1432. }, b.Io)
  1433. } else b.Io != ub && this.start()
  1434. }
  1435. var ub = "INFINITE";
  1436. sb.prototype.start = function() {
  1437. this.Lu = ab();
  1438. this.Wz = this.Lu + this.k.duration;
  1439. vb(this)
  1440. };
  1441. sb.prototype.add = function(a) {
  1442. this.Zf.push(a)
  1443. };
  1444. function vb(a) {
  1445. var b = ab();
  1446. b >= a.Wz ? (Wa(a.k.ua) && a.k.ua(a.k.hc(1)), Wa(a.k.finish) && a.k.finish(), 0 < a.Zf.length && (b = a.Zf[0], b.Zf = [].concat(a.Zf.slice(1)), b.start())) : (a.uy = a.k.hc((b - a.Lu) / a.k.duration), Wa(a.k.ua) && a.k.ua(a.uy), a.FF || (a.Rr = setTimeout(function() {
  1447. vb(a)
  1448. }, 1E3 / a.k.Ic)))
  1449. }
  1450. sb.prototype.stop = function(a) {
  1451. this.FF = o;
  1452. for (var b = 0; b < this.Zf.length; b++) this.Zf[b].stop(), this.Zf[b] = p;
  1453. this.Zf.length = 0;
  1454. this.Rr && (clearTimeout(this.Rr), this.Rr = p);
  1455. this.k.yt(this.uy);
  1456. a && (this.Wz = this.Lu, vb(this))
  1457. };
  1458. sb.prototype.cancel = fa(1);
  1459. var tb = {
  1460. sM: function(a) {
  1461. return a
  1462. },
  1463. reverse: function(a) {
  1464. return 1 - a
  1465. },
  1466. bD: function(a) {
  1467. return a * a
  1468. },
  1469. aD: function(a) {
  1470. return Math.pow(a, 3)
  1471. },
  1472. Cs: function(a) {
  1473. return -(a * (a - 2))
  1474. },
  1475. OK: function(a) {
  1476. return Math.pow(a - 1, 3) + 1
  1477. },
  1478. NK: function(a) {
  1479. return 0.5 > a ? 2 * a * a : -2 * (a - 2) * a - 1
  1480. },
  1481. K1: function(a) {
  1482. return 0.5 > a ? 4 * Math.pow(a, 3) : 4 * Math.pow(a - 1, 3) + 1
  1483. },
  1484. L1: function(a) {
  1485. return (1 - Math.cos(Math.PI * a)) / 2
  1486. }
  1487. };
  1488. tb["ease-in"] = tb.bD;
  1489. tb["ease-out"] = tb.Cs;
  1490. var F = {
  1491. ZF: 34,
  1492. $F: 21,
  1493. aG: new L(21, 32),
  1494. ZO: new L(10, 32),
  1495. YO: new L(24, 36),
  1496. XO: new L(12, 36),
  1497. XF: new L(13, 1),
  1498. pa: z.ma + "images/",
  1499. R2: "http://api0.map.bdimg.com/images/",
  1500. YF: z.ma + "images/markers_new.png",
  1501. VO: 24,
  1502. WO: 73,
  1503. gC: {
  1504. "\u5317\u4eac": {
  1505. iy: "bj",
  1506. m: new H(116.403874, 39.914889)
  1507. },
  1508. "\u4e0a\u6d77": {
  1509. iy: "sh",
  1510. m: new H(121.487899, 31.249162)
  1511. },
  1512. "\u6df1\u5733": {
  1513. iy: "sz",
  1514. m: new H(114.025974, 22.546054)
  1515. },
  1516. "\u5e7f\u5dde": {
  1517. iy: "gz",
  1518. m: new H(113.30765, 23.120049)
  1519. }
  1520. },
  1521. fontFamily: "arial,sans-serif"
  1522. };
  1523. x.ea.rg ? (x.extend(F, {
  1524. CK: "url(" + F.pa + "ruler.cur),crosshair",
  1525. Wb: "-moz-grab",
  1526. Ed: "-moz-grabbing"
  1527. }), x.platform.kM && (F.fontFamily = "arial,simsun,sans-serif")) : x.ea.eC || x.ea.HN ? x.extend(F, {
  1528. CK: "url(" + F.pa + "ruler.cur) 2 6,crosshair",
  1529. Wb: "url(" + F.pa + "openhand.cur) 8 8,default",
  1530. Ed: "url(" + F.pa + "closedhand.cur) 8 8,move"
  1531. }) : x.extend(F, {
  1532. CK: "url(" + F.pa + "ruler.cur),crosshair",
  1533. Wb: "url(" + F.pa + "openhand.cur),default",
  1534. Ed: "url(" + F.pa + "closedhand.cur),move"
  1535. });
  1536. function wb(a, b) {
  1537. var c = a.style;
  1538. c.left = b[0] + "px";
  1539. c.top = b[1] + "px"
  1540. }
  1541. function xb(a) {
  1542. 0 < x.ea.la ? a.unselectable = "on" : a.style.MozUserSelect = "none"
  1543. }
  1544. function yb(a) {
  1545. return a && a.parentNode && 11 !== a.parentNode.nodeType
  1546. }
  1547. function zb(a, b) {
  1548. x.D.Hx(a, "beforeEnd", b);
  1549. return a.lastChild
  1550. }
  1551. function Ab(a) {
  1552. for (var b = {
  1553. left: 0,
  1554. top: 0
  1555. }; a && a.offsetParent;) b.left += a.offsetLeft, b.top += a.offsetTop, a = a.offsetParent;
  1556. return b
  1557. }
  1558. function ma(a) {
  1559. a = window.event || a;
  1560. a.stopPropagation ? a.stopPropagation() : a.cancelBubble = o
  1561. }
  1562. function Bb(a) {
  1563. a = window.event || a;
  1564. a.preventDefault ? a.preventDefault() : a.returnValue = q;
  1565. return q
  1566. }
  1567. function na(a) {
  1568. ma(a);
  1569. return Bb(a)
  1570. }
  1571. function Cb() {
  1572. var a = document.documentElement,
  1573. b = document.body;
  1574. return a && (a.scrollTop || a.scrollLeft) ? [a.scrollTop, a.scrollLeft] : b ? [b.scrollTop, b.scrollLeft] : [0, 0]
  1575. }
  1576. function Eb(a, b) {
  1577. if (a && b) return Math.round(Math.sqrt(Math.pow(a.x - b.x, 2) + Math.pow(a.y - b.y, 2)))
  1578. }
  1579. function Fb(a, b) {
  1580. var c = [],
  1581. b = b ||
  1582. function(a) {
  1583. return a
  1584. }, d;
  1585. for (d in a) c.push(d + "=" + b(a[d]));
  1586. return c.join("&")
  1587. }
  1588. function K(a, b, c) {
  1589. var d = document.createElement(a);
  1590. c && (d = document.createElementNS(c, a));
  1591. return x.D.pF(d, b || {})
  1592. }
  1593. function Ua(a) {
  1594. if (a.currentStyle) return a.currentStyle;
  1595. if (a.ownerDocument && a.ownerDocument.defaultView) return a.ownerDocument.defaultView.getComputedStyle(a, p)
  1596. }
  1597. function Wa(a) {
  1598. return "function" === typeof a
  1599. }
  1600. function Va(a) {
  1601. return "number" === typeof a
  1602. }
  1603. function Za(a) {
  1604. return "string" == typeof a
  1605. }
  1606. function Gb(a) {
  1607. return "undefined" != typeof a
  1608. }
  1609. function Hb(a) {
  1610. return "object" == typeof a
  1611. }
  1612. var Ib = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
  1613. function Jb(a) {
  1614. var b = "",
  1615. c, d, e = "",
  1616. f, g = "",
  1617. i = 0;
  1618. f = /[^A-Za-z0-9\+\/\=]/g;
  1619. if (!a || f.exec(a)) return a;
  1620. a = a.replace(/[^A-Za-z0-9\+\/\=]/g, "");
  1621. do c = Ib.indexOf(a.charAt(i++)), d = Ib.indexOf(a.charAt(i++)), f = Ib.indexOf(a.charAt(i++)), g = Ib.indexOf(a.charAt(i++)), c = c << 2 | d >> 4, d = (d & 15) << 4 | f >> 2, e = (f & 3) << 6 | g, b += String.fromCharCode(c), 64 != f && (b += String.fromCharCode(d)), 64 != g && (b += String.fromCharCode(e));
  1622. while (i < a.length);
  1623. return b
  1624. }
  1625. var N = x.lang.Zy;
  1626. function G() {
  1627. return !(!x.platform.qE && !x.platform.mY && !x.platform.Gm)
  1628. }
  1629. function Ta() {
  1630. return !(!x.platform.kM && !x.platform.cM && !x.platform.sY)
  1631. }
  1632. function ab() {
  1633. return (new Date).getTime()
  1634. }
  1635. function Kb() {
  1636. var a = document.body.appendChild(K("div"));
  1637. a.innerHTML = '<v:shape id="vml_tester1" adj="1" />';
  1638. var b = a.firstChild;
  1639. if (!b.style) return q;
  1640. b.style.behavior = "url(#default#VML)";
  1641. b = b ? "object" === typeof b.adj : o;
  1642. a.parentNode.removeChild(a);
  1643. return b
  1644. }
  1645. function Lb() {
  1646. return !!document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Shape", "1.1")
  1647. }
  1648. function Mb() {
  1649. return !!K("canvas").getContext
  1650. }
  1651. function Nb(a) {
  1652. return a * Math.PI / 180
  1653. }
  1654. z.BY = function() {
  1655. var a = o,
  1656. b = o,
  1657. c = o,
  1658. d = o,
  1659. e = 0,
  1660. f = 0,
  1661. g = 0,
  1662. i = 0;
  1663. return {
  1664. FQ: function() {
  1665. e += 1;
  1666. a && (a = q, setTimeout(function() {
  1667. Pa(5054, {
  1668. pic: e
  1669. });
  1670. a = o;
  1671. e = 0
  1672. }, 1E4))
  1673. },
  1674. y0: function() {
  1675. f += 1;
  1676. b && (b = q, setTimeout(function() {
  1677. Pa(5055, {
  1678. move: f
  1679. });
  1680. b = o;
  1681. f = 0
  1682. }, 1E4))
  1683. },
  1684. A0: function() {
  1685. g += 1;
  1686. c && (c = q, setTimeout(function() {
  1687. Pa(5056, {
  1688. zoom: g
  1689. });
  1690. c = o;
  1691. g = 0
  1692. }, 1E4))
  1693. },
  1694. z0: function(a) {
  1695. i += a;
  1696. d && (d = q, setTimeout(function() {
  1697. Pa(5057, {
  1698. tile: i
  1699. });
  1700. d = o;
  1701. i = 0
  1702. }, 5E3))
  1703. }
  1704. }
  1705. }();
  1706. var $a;
  1707. (function() {
  1708. function a(a) {
  1709. this.UU = a;
  1710. this.timing = {};
  1711. this.start = +new Date
  1712. }
  1713. function b(a, b) {
  1714. if (a.length === +a.length) for (var c = 0, d = a.length; c < d && b.call(j, c, a[c], a) !== q; c++);
  1715. else for (c in a) if (a.hasOwnProperty(c) && b.call(j, c, a[c], a) === q) break
  1716. }
  1717. var c = [],
  1718. d = {
  1719. push: function(a) {
  1720. c.push(a);
  1721. if (window.localStorage && window.JSON) try {
  1722. localStorage.setItem("WPO_NR", JSON.stringify(c))
  1723. } catch (b) {}
  1724. },
  1725. get: function(a) {
  1726. var b = [];
  1727. if (window.localStorage) try {
  1728. a && localStorage.removeItem("WPO_NR")
  1729. } catch (d) {}
  1730. b = c;
  1731. a && (c = []);
  1732. return b
  1733. }
  1734. },
  1735. e, f, g, i, k = {};
  1736. (!window.localStorage || !window.JSON) && document.attachEvent && window.attachEvent("onbeforeunload", function() {
  1737. l.send()
  1738. });
  1739. var l = {
  1740. send: function(a) {
  1741. var c = [],
  1742. e = [],
  1743. f = a || d.get(o),
  1744. g;
  1745. 0 < f.length && (b(f, function(d, e) {
  1746. var f = [];
  1747. b(e.timing, function(a, b) {
  1748. f.push('"' + a + '":' + b)
  1749. });
  1750. c.push('{"t":{' + f.join(",") + '},"a":' + e.UU + "}");
  1751. !g && (a && e.start) && (g = e.start)
  1752. }), b(k, function(a, b) {
  1753. e.push(a + "=" + b)
  1754. }), e.push("d=[" + c.join(",") + "]"), g ? e.push("_st=" + g) : e.push("_t=" + +new Date), f = new Image, f.src = "http://static.tieba.baidu.com/tb/pms/img/st.gif?" + e.join("&"), window["___pms_img_" + 1 * new Date] = f)
  1755. }
  1756. };
  1757. a.prototype = {
  1758. pc: function(a, b) {
  1759. this.timing[a] = 0 <= b ? b : new Date - this.start
  1760. },
  1761. cu: function() {
  1762. this.start = +new Date
  1763. },
  1764. xO: function() {
  1765. this.pc("tt")
  1766. },
  1767. Oy: function() {
  1768. this.pc("vt")
  1769. },
  1770. Xm: function() {
  1771. f && (d.push(this), d.get().length >= g && l.send())
  1772. },
  1773. error: s()
  1774. };
  1775. $a = {
  1776. Fi: {
  1777. iE: function(a) {
  1778. var b = navigator.x1 || navigator.l3 || navigator.B4 || {
  1779. type: 0
  1780. };
  1781. f = Math.random() <= (a.an || 0.01);
  1782. g = a.max || 5;
  1783. i = a.k3 || b.type;
  1784. k = {
  1785. p: a.kZ,
  1786. mnt: i,
  1787. b: 50
  1788. };
  1789. window.localStorage && (window.JSON && window.addEventListener) && (e = d.get(o), window.addEventListener("load", function() {
  1790. l.send(e)
  1791. }, q))
  1792. },
  1793. ok: function(b) {
  1794. return new a(b)
  1795. }
  1796. }
  1797. }
  1798. })();
  1799. $a.Fi.iE({
  1800. kZ: 18,
  1801. an: 0.1,
  1802. max: 1
  1803. });
  1804. z.dq = {
  1805. mG: "#83a1ff",
  1806. gq: "#808080"
  1807. };
  1808. function Ob(a, b, c) {
  1809. b.Mm || (b.Mm = [], b.handle = {});
  1810. b.Mm.push({
  1811. filter: c,
  1812. mm: a
  1813. });
  1814. b.addEventListener || (b.addEventListener = function(a, c) {
  1815. b.attachEvent("on" + a, c)
  1816. });
  1817. b.handle.click || (b.addEventListener("click", function(a) {
  1818. for (var c = a.target || a.srcElement; c != b;) {
  1819. Pb(b.Mm, function(b, g) {
  1820. RegExp(g.filter).test(c.getAttribute("filter")) && g.mm.call(c, a, c.getAttribute("filter"))
  1821. });
  1822. c = c.parentNode
  1823. }
  1824. }, q), b.handle.click = o)
  1825. }
  1826. function Pb(a, b) {
  1827. for (var c = 0, d = a.length; c < d; c++) b(c, a[c])
  1828. }
  1829. "2" !== z.ou && (function(a, b, c) {
  1830. (function(a, b, c) {
  1831. function g(a) {
  1832. if (!a.Ho) {
  1833. for (var c = o, d = [], f = a.sZ, i = 0; f && i < f.length; i++) {
  1834. var k = f[i],
  1835. l = oa[k] = oa[k] || {};
  1836. if (l.Ho || l == a) d.push(l.Mc);
  1837. else {
  1838. c = q;
  1839. if (!l.YV && (k = (ka.get("alias") || {})[k] || k + ".js", !J[k])) {
  1840. J[k] = o;
  1841. var m = b.createElement("script"),
  1842. n = b.getElementsByTagName("script")[0];
  1843. m.async = o;
  1844. m.src = k;
  1845. n.parentNode.insertBefore(m, n)
  1846. }
  1847. l.Py = l.Py || {};
  1848. l.Py[a.name] = a
  1849. }
  1850. }
  1851. if (c) {
  1852. a.Ho = o;
  1853. a.uK && (a.Mc = a.uK.apply(a, d));
  1854. for (var u in a.Py) g(a.Py[u])
  1855. }
  1856. }
  1857. }
  1858. function i(a) {
  1859. return (a || new Date) - B
  1860. }
  1861. function k(a, b, c) {
  1862. if (a) {
  1863. "string" == typeof a && (c = b, b = a, a = O);
  1864. try {
  1865. a == O ? (M[b] = M[b] || [], M[b].unshift(c)) : a.addEventListener ? a.addEventListener(b, c, q) : a.attachEvent && a.attachEvent("on" + b, c)
  1866. } catch (d) {}
  1867. }
  1868. }
  1869. function l(a, b, c) {
  1870. if (a) {
  1871. "string" == typeof a && (c = b, b = a, a = O);
  1872. try {
  1873. if (a == O) {
  1874. var d = M[b];
  1875. if (d) for (var e = d.length; e--;) d[e] === c && d.splice(e, 1)
  1876. } else a.removeEventListener ? a.removeEventListener(b, c, q) : a.detachEvent && a.detachEvent("on" + b, c)
  1877. } catch (f) {}
  1878. }
  1879. }
  1880. function m(a) {
  1881. var b = M[a],
  1882. c = 0;
  1883. if (b) {
  1884. for (var d = [], e = arguments, f = 1; f < e.length; f++) d.push(e[f]);
  1885. for (f = b.length; f--;) b[f].apply(this, d) && c++;
  1886. return c
  1887. }
  1888. }
  1889. function n(a, b) {
  1890. if (a && b) {
  1891. var c = new Image(1, 1),
  1892. d = [],
  1893. e = "img_" + +new Date,
  1894. f;
  1895. for (f in b) b[f] && d.push(f + "=" + encodeURIComponent(b[f]));
  1896. O[e] = c;
  1897. c.onload = c.onerror = function() {
  1898. O[e] = c = c.onload = c.onerror = p;
  1899. delete O[e]
  1900. };
  1901. c.src = a + "?" + d.join("&")
  1902. }
  1903. }
  1904. function u() {
  1905. var a = arguments,
  1906. b = a[0];
  1907. if (this.tK || /^(on|un|set|get|create)$/.test(b)) {
  1908. for (var b = w.prototype[b], c = [], d = 1, e = a.length; d < e; d++) c.push(a[d]);
  1909. "function" == typeof b && b.apply(this, c)
  1910. } else this.TJ.push(a)
  1911. }
  1912. function v(a, b) {
  1913. var c = {},
  1914. d;
  1915. for (d in a) a.hasOwnProperty(d) && (c[d] = a[d]);
  1916. for (d in b) b.hasOwnProperty(d) && (c[d] = b[d]);
  1917. return c
  1918. }
  1919. function w(a) {
  1920. this.name = a;
  1921. this.Hs = {
  1922. ZE: {
  1923. ky: p,
  1924. ZE: p
  1925. }
  1926. };
  1927. this.TJ = []
  1928. }
  1929. function y(a) {
  1930. a = a || "default";
  1931. if ("*" == a) {
  1932. var a = [],
  1933. b;
  1934. for (b in Y) a.push(Y[b]);
  1935. return a
  1936. }(b = Y[a]) || (b = Y[a] = new w(a));
  1937. return b
  1938. }
  1939. var C = c.alog;
  1940. if (!C || !C.Ho) {
  1941. var A = b.all && a.attachEvent,
  1942. B = C && C.yE || +new Date,
  1943. D = a.d3 || (+new Date).toString(36) + Math.random().toString(36).substr(2, 3),
  1944. E = 0,
  1945. J = {},
  1946. O = function(a) {
  1947. var b = arguments,
  1948. c, d, e, f;
  1949. if ("define" == a || "require" == a) {
  1950. for (d = 1; d < b.length; d++) switch (typeof b[d]) {
  1951. case "string":
  1952. c = b[d];
  1953. break;
  1954. case "object":
  1955. e = b[d];
  1956. break;
  1957. case "function":
  1958. f = b[d]
  1959. }
  1960. "require" == a && (c && !e && (e = [c]), c = p);
  1961. c = !c ? "#" + E++ : c;
  1962. d = oa[c] = oa[c] || {};
  1963. d.Ho || (d.name = c, d.sZ = e, d.uK = f, "define" == a && (d.YV = o), g(d))
  1964. } else "function" == typeof a ? a(O) : ("" + a).replace(/^(?:([\w$_]+)\.)?(\w+)$/, function(a, c, d) {
  1965. b[0] = d;
  1966. u.apply(O.wO(c), b)
  1967. })
  1968. },
  1969. M = {},
  1970. Y = {},
  1971. oa = {
  1972. g1: {
  1973. name: "alog",
  1974. Ho: o,
  1975. Mc: O
  1976. }
  1977. };
  1978. w.prototype.start = w.prototype.create = function(a) {
  1979. if (!this.tK) {
  1980. "object" == typeof a && this.set(a);
  1981. this.tK = new Date;
  1982. for (this.Is("create", this); a = this.TJ.shift();) u.apply(this, a)
  1983. }
  1984. };
  1985. w.prototype.send = function(a, b) {
  1986. var c = v({
  1987. ts: i().toString(36),
  1988. t: a,
  1989. sid: D
  1990. }, this.Hs);
  1991. if ("object" == typeof b) c = v(c, b);
  1992. else {
  1993. var d = arguments;
  1994. switch (a) {
  1995. case "pageview":
  1996. d[1] && (c.page = d[1]);
  1997. d[2] && (c.title = d[2]);
  1998. break;
  1999. case "event":
  2000. d[1] && (c.eventCategory = d[1]);
  2001. d[2] && (c.eventAction = d[2]);
  2002. d[3] && (c.eventLabel = d[3]);
  2003. d[4] && (c.eventValue = d[4]);
  2004. break;
  2005. case "timing":
  2006. d[1] && (c.timingCategory = d[1]);
  2007. d[2] && (c.timingVar = d[2]);
  2008. d[3] && (c.timingValue = d[3]);
  2009. d[4] && (c.timingLabel = d[4]);
  2010. break;
  2011. case "exception":
  2012. d[1] && (c.exDescription = d[1]);
  2013. d[2] && (c.exFatal = d[2]);
  2014. break;
  2015. default:
  2016. return
  2017. }
  2018. }
  2019. this.Is("send", c);
  2020. var e;
  2021. if (d = this.Hs.ZE) {
  2022. var f = {};
  2023. for (e in c) d[e] !== p && (f[d[e] || e] = c[e]);
  2024. e = f
  2025. } else e = c;
  2026. n(this.Hs.ky, e)
  2027. };
  2028. w.prototype.set = function(a, b) {
  2029. if ("string" == typeof a)"protocolParameter" == a && (b = v({
  2030. ky: p,
  2031. ZE: p
  2032. }, b)), this.Hs[a] = b;
  2033. else if ("object" == typeof a) for (var c in a) this.set(c, a[c])
  2034. };
  2035. w.prototype.get = function(a, b) {
  2036. var c = this.Hs[a];
  2037. "function" == typeof b && b(c);
  2038. return c
  2039. };
  2040. w.prototype.Is = function(a, b) {
  2041. return O.Is(this.name + "." + a, b)
  2042. };
  2043. w.prototype.M = function(a, b) {
  2044. O.M(this.name + "." + a, b)
  2045. };
  2046. w.prototype.cd = function(a, b) {
  2047. O.cd(this.name + "." + a, b)
  2048. };
  2049. w.prototype.start = w.prototype.start;
  2050. w.prototype.create = w.prototype.create;
  2051. w.prototype.send = w.prototype.send;
  2052. w.prototype.set = w.prototype.set;
  2053. w.prototype.get = w.prototype.get;
  2054. w.prototype.fire = w.prototype.Is;
  2055. w.prototype.on = w.prototype.M;
  2056. w.prototype.un = w.prototype.cd;
  2057. O.name = "alog";
  2058. O.ZN = D;
  2059. O.Ho = o;
  2060. O.timestamp = i;
  2061. O.cd = l;
  2062. O.M = k;
  2063. O.Is = m;
  2064. O.wO = y;
  2065. O("init");
  2066. var ka = y();
  2067. ka.set("protocolParameter", {
  2068. f1: p
  2069. });
  2070. if (C) {
  2071. var Qa = [].concat(C.Ab || [], C.Wm || []);
  2072. C.Ab = C.Wm = p;
  2073. for (var cb in O) O.hasOwnProperty(cb) && (C[cb] = O[cb]);
  2074. O.Ab = O.Wm = {
  2075. push: function(a) {
  2076. O.apply(O, a)
  2077. }
  2078. };
  2079. for (C = 0; C < Qa.length; C++) O.apply(O, Qa[C])
  2080. }
  2081. c.alog = O;
  2082. A && k(b, "mouseup", function(a) {
  2083. a = a.target || a.srcElement;
  2084. 1 == a.nodeType && /^ajavascript:/i.test(a.tagName + a.href)
  2085. });
  2086. var Ya = q;
  2087. a.onerror = function(a, b, d, e) {
  2088. var g = o;
  2089. !b && /^script error/i.test(a) && (Ya ? g = q : Ya = o);
  2090. g && c.alog("exception.send", "exception", {
  2091. QM: a,
  2092. tY: b,
  2093. uM: d,
  2094. Fw: e
  2095. });
  2096. return q
  2097. };
  2098. c.alog("exception.on", "catch", function(a) {
  2099. c.alog("exception.send", "exception", {
  2100. QM: a.QM,
  2101. tY: a.path,
  2102. uM: a.uM,
  2103. method: a.method,
  2104. GW: "catch"
  2105. })
  2106. })
  2107. }
  2108. })(a, b, c);
  2109. (function(a, b, c) {
  2110. var g = "18_1";
  2111. G() && (g = "18_2");
  2112. var i = Math.random,
  2113. k = {
  2114. an: "0.1"
  2115. },
  2116. l = {
  2117. an: "0.1"
  2118. };
  2119. if (k && k.an && i() < k.an) {
  2120. var m = c.alog.wO("monkey"),
  2121. n, a = a.screen,
  2122. b = b.referrer;
  2123. m.set("ver", 5);
  2124. m.set("pid", 241);
  2125. a && m.set("px", a.width + "*" + a.height);
  2126. m.set("ref", b);
  2127. c.alog("monkey.on", "create", function() {
  2128. n = c.alog.timestamp;
  2129. m.set("protocolParameter", {
  2130. reports: p
  2131. })
  2132. });
  2133. c.alog("monkey.on", "send", function(a) {
  2134. "pageview" == a.t && (a.cmd = "open");
  2135. a.now && (a.ts = n(a.now).toString(36), a.now = "")
  2136. });
  2137. c.alog("monkey.create", {
  2138. page: g,
  2139. pid: "241",
  2140. p: "18",
  2141. ky: "http://nsclick.baidu.com/u.gif",
  2142. M3: {
  2143. K3: 1
  2144. }
  2145. });
  2146. c.alog("monkey.send", "pageview", {
  2147. now: +new Date
  2148. })
  2149. }
  2150. l && (l.an && i() < l.an) && (c.alog("cus.on", "time", function(a) {
  2151. var b = {},
  2152. d = q,
  2153. e;
  2154. if ("[object Object]" === a.toString()) {
  2155. for (var g in a)"page" == g ? b.page = a[g] : (e = parseInt(a[g], 10), 0 < e && /^z_/.test(g) && (d = o, b[g] = e));
  2156. d && c.alog("cus.send", "time", b)
  2157. }
  2158. }), c.alog("cus.on", "count", function(a) {
  2159. var b = {},
  2160. d = q;
  2161. "string" === typeof a && (a = [a]);
  2162. if (a instanceof Array) for (var e = 0; e < a.length; e++) / ^ z_ / .test(a[e]) ? (d = o, b[a[e]] = 1) : /^page:/.test(a[e]) && (b.page = a[e].substring(5));
  2163. d && c.alog("cus.send", "count", b)
  2164. }), c.alog("cus.create", {
  2165. dv: 3,
  2166. ky: "http://static.tieba.baidu.com/tb/pms/img/st.gif",
  2167. page: g,
  2168. p: "18"
  2169. }))
  2170. })(a, b, c)
  2171. }(window, document, z), z.alog("cus.fire", "count", "z_loadscriptcount"));
  2172. z.Ij = z.alog || s();
  2173. function Qb(a, b) {
  2174. if (/^http/.test(a)) return; /*guoguo 这里判断一下,如果是调用外部资源就退出去好了 */
  2175. if (b) {
  2176. var c = (1E5 * Math.random()).toFixed(0);
  2177. z._rd["_cbk" + c] = function(a) {
  2178. b && b(a);
  2179. delete z._rd["_cbk" + c]
  2180. };
  2181. a += "&callback=BMap._rd._cbk" + c
  2182. }
  2183. var d = K("script", {
  2184. type: "text/javascript"
  2185. });
  2186. d.charset = "utf-8";
  2187. d.src = a;
  2188. d.addEventListener ? d.addEventListener("load", function(a) {
  2189. a = a.target;
  2190. a.parentNode.removeChild(a)
  2191. }, q) : d.attachEvent && d.attachEvent("onreadystatechange", function() {
  2192. var a = window.event.srcElement;
  2193. a && ("loaded" == a.readyState || "complete" == a.readyState) && a.parentNode.removeChild(a)
  2194. });
  2195. setTimeout(function() {
  2196. document.getElementsByTagName("head")[0].appendChild(d);
  2197. d = p
  2198. }, 1)
  2199. };
  2200. var Rb = { /*guoguo 这是加载模块的名字 map_tk0ryi http://api0.map.bdimg.com/getmodules?v=2.0&mod=模块1,模块2 */
  2201. /*所有模块: map_tk0ryi,common_le15mk,style_44zsko,tile_y2qw2x,vectordrawlib_qb0sq4,newvectordrawlib_y2lono,groundoverlay_43makz,pointcollection_prd2zh,marker_izcmyw,symbol_mmm1ds,canvablepath_5bmy2e,vmlcontext_obpzx3,markeranimation_4n4sfv,poly_bs55zb,draw_zhhpch,drawbysvg_xzmng4,drawbyvml_rscvqi,drawbycanvas_evhm1h,infowindow_1yqzkf,oppc_uv0pep,opmb_xviqqj,menu_w3qwgl,control_wlrzkm,navictrl_ko1bzf,geoctrl_v3szez,copyrightctrl_nc3xny,citylistcontrol_x2ymut,scommon_mddzoo,local_att0h3,route_ihe02g,othersearch_l3y02i,mapclick_edk23z,buslinesearch_inxnkk,hotspot_x1ew3q,autocomplete_k1nigj,coordtrans_xddka3,coordtransutils_ezmpfq,convertor_dg4hqu,clayer_pt3hj5,pservice_2bo2iz,pcommon_qx32lx,panorama_34hu4f,panoramaflash_p1tm3f,vector_0tuckd */
  2202. map: "tk0ryi",
  2203. common: "le15mk",
  2204. style: "44zsko",
  2205. tile: "y2qw2x",
  2206. vectordrawlib: "qb0sq4",
  2207. newvectordrawlib: "y2lono",
  2208. groundoverlay: "43makz",
  2209. pointcollection: "prd2zh",
  2210. marker: "izcmyw",
  2211. symbol: "mmm1ds",
  2212. canvablepath: "5bmy2e",
  2213. vmlcontext: "obpzx3",
  2214. markeranimation: "4n4sfv",
  2215. poly: "bs55zb",
  2216. draw: "zhhpch",
  2217. drawbysvg: "xzmng4",
  2218. drawbyvml: "rscvqi",
  2219. drawbycanvas: "evhm1h",
  2220. infowindow: "1yqzkf",
  2221. oppc: "uv0pep",
  2222. opmb: "xviqqj",
  2223. menu: "w3qwgl",
  2224. control: "wlrzkm",
  2225. navictrl: "ko1bzf",
  2226. geoctrl: "v3szez",
  2227. copyrightctrl: "nc3xny",
  2228. citylistcontrol: "x2ymut",
  2229. scommon: "mddzoo",
  2230. local: "att0h3",
  2231. route: "ihe02g",
  2232. othersearch: "l3y02i",
  2233. mapclick: "edk23z",
  2234. buslinesearch: "inxnkk",
  2235. hotspot: "x1ew3q",
  2236. autocomplete: "k1nigj",
  2237. coordtrans: "xddka3",
  2238. coordtransutils: "ezmpfq",
  2239. convertor: "dg4hqu",
  2240. clayer: "pt3hj5",
  2241. pservice: "2bo2iz",
  2242. pcommon: "qx32lx",
  2243. panorama: "34hu4f",
  2244. panoramaflash: "p1tm3f",
  2245. vector: "0tuckd"
  2246. };
  2247. x.Iy = function() {
  2248. function a(a) {
  2249. return d && !! c[b + a + "_" + Rb[a]]
  2250. }
  2251. var b = "BMap_",
  2252. c = window.localStorage,
  2253. d = "localStorage" in window && c !== p && c !== j;
  2254. return {
  2255. oY: d,
  2256. set: function(a, f) {
  2257. if (d) {
  2258. for (var g = b + a + "_", i = c.length, k; i--;) k = c.key(i), -1 < k.indexOf(g) && c.removeItem(k);
  2259. try {
  2260. c.setItem(b + a + "_" + Rb[a], f)
  2261. } catch (l) {
  2262. c.clear()
  2263. }
  2264. }
  2265. },
  2266. get: function(e) {
  2267. return d && a(e) ? c.getItem(b + e + "_" + Rb[e]) : q
  2268. },
  2269. dK: a
  2270. }
  2271. }();
  2272. function I() {}
  2273. x.object.extend(I, {
  2274. Fj: {
  2275. nG: -1,
  2276. EP: 0,
  2277. Zp: 1
  2278. },
  2279. nL: function() {
  2280. var a = "canvablepath",
  2281. b = z.yJ ? "newvectordrawlib" : "vectordrawlib";
  2282. if (!G() || !Mb()) Lb() || (Kb() ? a = "vmlcontext" : Mb());
  2283. return {
  2284. tile: [b, "style"],
  2285. control: [],
  2286. marker: ["symbol"],
  2287. symbol: ["canvablepath", "common"],
  2288. canvablepath: "canvablepath" === a ? [] : [a],
  2289. vmlcontext: [],
  2290. style: [],
  2291. poly: ["marker", "drawbycanvas", "drawbysvg", "drawbyvml"],
  2292. drawbysvg: ["draw"],
  2293. drawbyvml: ["draw"],
  2294. drawbycanvas: ["draw"],
  2295. infowindow: ["common", "marker"],
  2296. menu: [],
  2297. oppc: [],
  2298. opmb: [],
  2299. scommon: [],
  2300. local: ["scommon"],
  2301. route: ["scommon"],
  2302. othersearch: ["scommon"],
  2303. autocomplete: ["scommon"],
  2304. citylistcontrol: ["autocomplete"],
  2305. mapclick: ["scommon"],
  2306. buslinesearch: ["route"],
  2307. hotspot: [],
  2308. coordtransutils: ["coordtrans"],
  2309. convertor: [],
  2310. clayer: ["tile"],
  2311. pservice: [],
  2312. pcommon: ["style", "pservice"],
  2313. panorama: ["pcommon"],
  2314. panoramaflash: ["pcommon"]
  2315. }
  2316. },
  2317. C3: {},
  2318. gG: {
  2319. VP: z.ma + "getmodules?v=2.0&t=20140707",
  2320. xU: 5E3
  2321. },
  2322. DC: q,
  2323. Nd: {
  2324. rl: {},
  2325. En: [],
  2326. Pv: []
  2327. },
  2328. load: function(a, b, c) {
  2329. var d = this.hb(a);
  2330. if (d.Bd == this.Fj.Zp) c && b();
  2331. else {
  2332. if (d.Bd == this.Fj.nG) {
  2333. this.jK(a);
  2334. this.sN(a);
  2335. var e = this;
  2336. e.DC == q && (e.DC = o, setTimeout(function() {
  2337. for (var a = [], b = 0, c = e.Nd.En.length; b < c; b++) {
  2338. var d = e.Nd.En[b],
  2339. l = "";
  2340. ha.Iy.dK(d) ? l = ha.Iy.get(d) : (l = "", a.push(d + "_" + Rb[d]));
  2341. e.Nd.Pv.push({
  2342. MM: d,
  2343. KE: l
  2344. })
  2345. }
  2346. e.DC = q;
  2347. e.Nd.En.length = 0;
  2348. /*0 == a.length ? e.UK() : Qb(e.gG.VP + "&mod=" + a.join(","))*/
  2349. /*guoguo 加载本地模块文件,在 modules 目录下 */
  2350. if( a.length > 0 ){
  2351. for(i=0; i<a.length;i++){
  2352. mf = bdmapcfg.home+'modules/'+a[i]+'.js';
  2353. Qb( mf );
  2354. console.log('加载模块文件:'+mf);
  2355. }
  2356. } else {
  2357. e.UK()
  2358. }
  2359. /*end*/
  2360. }, 1));
  2361. d.Bd = this.Fj.EP
  2362. }
  2363. d.Pu.push(b)
  2364. }
  2365. },
  2366. jK: function(a) {
  2367. if (a && this.nL()[a]) for (var a = this.nL()[a], b = 0; b < a.length; b++) this.jK(a[b]), this.Nd.rl[a[b]] || this.sN(a[b])
  2368. },
  2369. sN: function(a) {
  2370. for (var b = 0; b < this.Nd.En.length; b++) if (this.Nd.En[b] == a) return;
  2371. this.Nd.En.push(a)
  2372. },
  2373. yZ: function(a, b) {
  2374. var c = this.hb(a);
  2375. try {
  2376. eval(b)
  2377. } catch (d) {
  2378. return
  2379. }
  2380. c.Bd = this.Fj.Zp;
  2381. for (var e = 0, f = c.Pu.length; e < f; e++) c.Pu[e]();
  2382. c.Pu.length = 0
  2383. },
  2384. dK: function(a, b) {
  2385. var c = this;
  2386. c.timeout = setTimeout(function() {
  2387. c.Nd.rl[a].Bd != c.Fj.Zp ? (c.remove(a), c.load(a, b)) : clearTimeout(c.timeout)
  2388. }, c.gG.xU)
  2389. },
  2390. hb: function(a) {
  2391. this.Nd.rl[a] || (this.Nd.rl[a] = {}, this.Nd.rl[a].Bd = this.Fj.nG, this.Nd.rl[a].Pu = []);
  2392. return this.Nd.rl[a]
  2393. },
  2394. remove: function(a) {
  2395. delete this.hb(a)
  2396. },
  2397. sV: function(a, b) {
  2398. for (var c = this.Nd.Pv, d = o, e = 0, f = c.length; e < f; e++)"" == c[e].KE && (c[e].MM == a ? c[e].KE = b : d = q);
  2399. d && this.UK()
  2400. },
  2401. UK: function() {
  2402. for (var a = this.Nd.Pv, b = 0, c = a.length; b < c; b++) this.yZ(a[b].MM, a[b].KE);
  2403. this.Nd.Pv.length = 0
  2404. }
  2405. });
  2406. function Q(a, b) {
  2407. this.x = a || 0;
  2408. this.y = b || 0;
  2409. this.x = this.x;
  2410. this.y = this.y
  2411. }
  2412. Q.prototype.mb = function(a) {
  2413. return a && a.x == this.x && a.y == this.y
  2414. };
  2415. function L(a, b) {
  2416. this.width = a || 0;
  2417. this.height = b || 0
  2418. }
  2419. L.prototype.mb = function(a) {
  2420. return a && this.width == a.width && this.height == a.height
  2421. };
  2422. function ib(a, b) {
  2423. a && (this.Kb = a, this.ba = "spot" + ib.ba++, b = b || {}, this.Vg = b.text || "", this.wv = b.offsets ? b.offsets.slice(0) : [5, 5, 5, 5], this.rJ = b.userData || p, this.Qh = b.minZoom || p, this.Cf = b.maxZoom || p)
  2424. }
  2425. ib.ba = 0;
  2426. x.extend(ib.prototype, {
  2427. qa: function(a) {
  2428. this.Qh == p && (this.Qh = a.K.fc);
  2429. this.Cf == p && (this.Cf = a.K.Zb)
  2430. },
  2431. sa: function(a) {
  2432. a instanceof H && (this.Kb = a)
  2433. },
  2434. ha: t("Kb"),
  2435. Rt: ba("Vg"),
  2436. WD: t("Vg"),
  2437. setUserData: ba("rJ"),
  2438. getUserData: t("rJ")
  2439. });
  2440. function Sb() {
  2441. this.C = p;
  2442. this.Lb = "control";
  2443. this.Pa = this.XJ = o
  2444. }
  2445. x.lang.ta(Sb, x.lang.Ba, "Control");
  2446. x.extend(Sb.prototype, {
  2447. initialize: function(a) {
  2448. this.C = a;
  2449. if (this.B) return a.Ua.appendChild(this.B), this.B
  2450. },
  2451. Ce: function(a) {
  2452. !this.B && (this.initialize && Wa(this.initialize)) && (this.B = this.initialize(a));
  2453. this.k = this.k || {
  2454. Ag: q
  2455. };
  2456. this.wB();
  2457. this.Jr();
  2458. this.B && (this.B.ir = this)
  2459. },
  2460. wB: function() {
  2461. var a = this.B;
  2462. if (a) {
  2463. var b = a.style;
  2464. b.position = "absolute";
  2465. b.zIndex = this.uz || "10";
  2466. b.MozUserSelect = "none";
  2467. b.WebkitTextSizeAdjust = "none";
  2468. this.k.Ag || x.D.Ta(a, "BMap_noprint");
  2469. G() || x.M(a, "contextmenu", na)
  2470. }
  2471. },
  2472. remove: function() {
  2473. this.C = p;
  2474. this.B && (this.B.parentNode && this.B.parentNode.removeChild(this.B), this.B = this.B.ir = p)
  2475. },
  2476. za: function() {
  2477. this.B = zb(this.C.Ua, "<div unselectable='on'></div>");
  2478. this.Pa == q && x.D.U(this.B);
  2479. return this.B
  2480. },
  2481. Jr: function() {
  2482. this.qc(this.k.anchor)
  2483. },
  2484. qc: function(a) {
  2485. if (this.h1 || !Va(a) || isNaN(a) || a < Tb || 3 < a) a = this.defaultAnchor;
  2486. this.k = this.k || {
  2487. Ag: q
  2488. };
  2489. this.k.ya = this.k.ya || this.defaultOffset;
  2490. var b = this.k.anchor;
  2491. this.k.anchor = a;
  2492. if (this.B) {
  2493. var c = this.B,
  2494. d = this.k.ya.width,
  2495. e = this.k.ya.height;
  2496. c.style.left = c.style.top = c.style.right = c.style.bottom = "auto";
  2497. switch (a) {
  2498. case Tb:
  2499. c.style.top = e + "px";
  2500. c.style.left = d + "px";
  2501. break;
  2502. case Ub:
  2503. c.style.top = e + "px";
  2504. c.style.right = d + "px";
  2505. break;
  2506. case Vb:
  2507. c.style.bottom = e + "px";
  2508. c.style.left = d + "px";
  2509. break;
  2510. case 3:
  2511. c.style.bottom = e + "px", c.style.right = d + "px"
  2512. }
  2513. c = ["TL", "TR", "BL", "BR"];
  2514. x.D.Rb(this.B, "anchor" + c[b]);
  2515. x.D.Ta(this.B, "anchor" + c[a])
  2516. }
  2517. },
  2518. yD: function() {
  2519. return this.k.anchor
  2520. },
  2521. getContainer: t("B"),
  2522. Te: function(a) {
  2523. a instanceof L && (this.k = this.k || {
  2524. Ag: q
  2525. }, this.k.ya = new L(a.width, a.height), this.B && this.qc(this.k.anchor))
  2526. },
  2527. Pf: function() {
  2528. return this.k.ya
  2529. },
  2530. Hd: t("B"),
  2531. show: function() {
  2532. this.Pa != o && (this.Pa = o, this.B && x.D.show(this.B))
  2533. },
  2534. U: function() {
  2535. this.Pa != q && (this.Pa = q, this.B && x.D.U(this.B))
  2536. },
  2537. isPrintable: function() {
  2538. return !!this.k.Ag
  2539. },
  2540. mh: function() {
  2541. return !this.B && !this.C ? q : !! this.Pa
  2542. }
  2543. });
  2544. var Tb = 0,
  2545. Ub = 1,
  2546. Vb = 2;
  2547. function jb(a) {
  2548. Sb.call(this);
  2549. a = a || {};
  2550. this.k = {
  2551. Ag: q,
  2552. BF: a.showZoomInfo || o,
  2553. anchor: a.anchor,
  2554. ya: a.offset,
  2555. type: a.type,
  2556. tW: a.enableGeolocation || q
  2557. };
  2558. this.defaultAnchor = G() ? 3 : Tb;
  2559. this.defaultOffset = new L(10, 10);
  2560. this.qc(a.anchor);
  2561. this.jn(a.type);
  2562. this.ye()
  2563. }
  2564. x.lang.ta(jb, Sb, "NavigationControl");
  2565. x.extend(jb.prototype, {
  2566. initialize: function(a) {
  2567. this.C = a;
  2568. return this.B
  2569. },
  2570. jn: function(a) {
  2571. this.k.type = Va(a) && 0 <= a && 3 >= a ? a : 0
  2572. },
  2573. fp: function() {
  2574. return this.k.type
  2575. },
  2576. ye: function() {
  2577. var a = this;
  2578. I.load("navictrl", function() {
  2579. a.uf()
  2580. })
  2581. }
  2582. });
  2583. function Wb(a) {
  2584. Sb.call(this);
  2585. a = a || {};
  2586. this.k = {
  2587. anchor: a.anchor || Vb,
  2588. ya: a.offset || new L(10, 30),
  2589. h_: a.showAddressBar !== q,
  2590. N1: a.enableAutoLocation || q,
  2591. AM: a.locationIcon || p
  2592. };
  2593. var b = this;
  2594. this.uz = 1200;
  2595. b.W_ = [];
  2596. this.ke = [];
  2597. I.load("geoctrl", function() {
  2598. (function d() {
  2599. if (0 !== b.ke.length) {
  2600. var a = b.ke.shift();
  2601. b[a.method].apply(b, a.arguments);
  2602. d()
  2603. }
  2604. })();
  2605. b.UP()
  2606. });
  2607. Pa(Ia)
  2608. }
  2609. x.lang.ta(Wb, Sb, "GeolocationControl");
  2610. x.extend(Wb.prototype, {
  2611. location: function() {
  2612. this.ke.push({
  2613. method: "location",
  2614. arguments: arguments
  2615. })
  2616. },
  2617. getAddressComponent: ca(p)
  2618. });
  2619. function Xb(a) {
  2620. Sb.call(this);
  2621. a = a || {};
  2622. this.k = {
  2623. Ag: q,
  2624. anchor: a.anchor,
  2625. ya: a.offset
  2626. };
  2627. this.cc = [];
  2628. this.defaultAnchor = Vb;
  2629. this.defaultOffset = new L(5, 2);
  2630. this.qc(a.anchor);
  2631. this.XJ = q;
  2632. this.ye()
  2633. }
  2634. x.lang.ta(Xb, Sb, "CopyrightControl");
  2635. x.object.extend(Xb.prototype, {
  2636. initialize: function(a) {
  2637. this.C = a;
  2638. return this.B
  2639. },
  2640. mw: function(a) {
  2641. if (a && Va(a.id) && !isNaN(a.id)) {
  2642. var b = {
  2643. bounds: p,
  2644. content: ""
  2645. },
  2646. c;
  2647. for (c in a) b[c] = a[c];
  2648. if (a = this.om(a.id)) for (var d in b) a[d] = b[d];
  2649. else this.cc.push(b)
  2650. }
  2651. },
  2652. om: function(a) {
  2653. for (var b = 0, c = this.cc.length; b < c; b++) if (this.cc[b].id == a) return this.cc[b]
  2654. },
  2655. FD: t("cc"),
  2656. cF: function(a) {
  2657. for (var b = 0, c = this.cc.length; b < c; b++) this.cc[b].id == a && (r = this.cc.splice(b, 1), b--, c = this.cc.length)
  2658. },
  2659. ye: function() {
  2660. var a = this;
  2661. I.load("copyrightctrl", function() {
  2662. a.uf()
  2663. })
  2664. }
  2665. });
  2666. function lb(a) {
  2667. Sb.call(this);
  2668. a = a || {};
  2669. this.k = {
  2670. Ag: q,
  2671. size: a.size || new L(150, 150),
  2672. padding: 5,
  2673. Va: a.isOpen === o ? o : q,
  2674. k0: 4,
  2675. ya: a.offset,
  2676. anchor: a.anchor
  2677. };
  2678. this.defaultAnchor = 3;
  2679. this.defaultOffset = new L(0, 0);
  2680. this.xq = this.yq = 13;
  2681. this.qc(a.anchor);
  2682. this.xe(this.k.size);
  2683. this.ye()
  2684. }
  2685. x.lang.ta(lb, Sb, "OverviewMapControl");
  2686. x.extend(lb.prototype, {
  2687. initialize: function(a) {
  2688. this.C = a;
  2689. return this.B
  2690. },
  2691. qc: function(a) {
  2692. Sb.prototype.qc.call(this, a)
  2693. },
  2694. me: function() {
  2695. this.me.jo = o;
  2696. this.k.Va = !this.k.Va;
  2697. this.B || (this.me.jo = q)
  2698. },
  2699. xe: function(a) {
  2700. a instanceof L || (a = new L(150, 150));
  2701. a.width = 0 < a.width ? a.width : 150;
  2702. a.height = 0 < a.height ? a.height : 150;
  2703. this.k.size = a
  2704. },
  2705. yb: function() {
  2706. return this.k.size
  2707. },
  2708. Va: function() {
  2709. return this.k.Va
  2710. },
  2711. ye: function() {
  2712. var a = this;
  2713. I.load("control", function() {
  2714. a.uf()
  2715. })
  2716. }
  2717. });
  2718. function Yb(a) {
  2719. Sb.call(this);
  2720. a = a || {};
  2721. this.defaultAnchor = Tb;
  2722. this.pV = a.canCheckSize === q ? q : o;
  2723. this.gj = "";
  2724. this.defaultOffset = new L(10, 10);
  2725. this.onChangeBefore = [];
  2726. this.onChangeAfter = [];
  2727. this.onChangeSuccess = [];
  2728. this.k = {
  2729. Ag: q,
  2730. ya: a.offset || this.defaultOffset,
  2731. anchor: a.anchor || this.defaultAnchor,
  2732. expand: !! a.expand
  2733. };
  2734. a.onChangeBefore && Wa(a.onChangeBefore) && this.onChangeBefore.push(a.onChangeBefore);
  2735. a.onChangeAfter && Wa(a.onChangeAfter) && this.onChangeAfter.push(a.onChangeAfter);
  2736. a.onChangeSuccess && Wa(a.onChangeSuccess) && this.onChangeSuccess.push(a.onChangeSuccess);
  2737. this.qc(a.anchor);
  2738. this.ye()
  2739. }
  2740. x.lang.ta(Yb, Sb, "CityListControl");
  2741. x.object.extend(Yb.prototype, {
  2742. initialize: function(a) {
  2743. this.C = a;
  2744. return this.B
  2745. },
  2746. ye: function() {
  2747. var a = this;
  2748. I.load("citylistcontrol", function() {
  2749. a.uf()
  2750. }, o)
  2751. }
  2752. });
  2753. function kb(a) {
  2754. Sb.call(this);
  2755. a = a || {};
  2756. this.k = {
  2757. Ag: q,
  2758. color: "black",
  2759. dd: "metric",
  2760. ya: a.offset
  2761. };
  2762. this.defaultAnchor = Vb;
  2763. this.defaultOffset = new L(81, 18);
  2764. this.qc(a.anchor);
  2765. this.Zh = {
  2766. metric: {
  2767. name: "metric",
  2768. lK: 1,
  2769. WL: 1E3,
  2770. BO: "\u7c73",
  2771. CO: "\u516c\u91cc"
  2772. },
  2773. us: {
  2774. name: "us",
  2775. lK: 3.2808,
  2776. WL: 5280,
  2777. BO: "\u82f1\u5c3a",
  2778. CO: "\u82f1\u91cc"
  2779. }
  2780. };
  2781. this.Zh[this.k.dd] || (this.k.dd = "metric");
  2782. this.QI = p;
  2783. this.pI = {};
  2784. this.ye()
  2785. }
  2786. x.lang.ta(kb, Sb, "ScaleControl");
  2787. x.object.extend(kb.prototype, {
  2788. initialize: function(a) {
  2789. this.C = a;
  2790. return this.B
  2791. },
  2792. Kk: function(a) {
  2793. this.k.color = a + ""
  2794. },
  2795. e2: function() {
  2796. return this.k.color
  2797. },
  2798. yF: function(a) {
  2799. this.k.dd = this.Zh[a] && this.Zh[a].name || this.k.dd
  2800. },
  2801. MX: function() {
  2802. return this.k.dd
  2803. },
  2804. ye: function() {
  2805. var a = this;
  2806. I.load("control", function() {
  2807. a.uf()
  2808. })
  2809. }
  2810. });
  2811. var Zb = 0;
  2812. function mb(a) {
  2813. Sb.call(this);
  2814. a = a || {};
  2815. this.defaultAnchor = Ub;
  2816. this.defaultOffset = new L(10, 10);
  2817. this.k = {
  2818. Ag: q,
  2819. ph: [La, Xa, Ra, Oa],
  2820. XV: ["B_DIMENSIONAL_MAP", "B_SATELLITE_MAP", "B_NORMAL_MAP"],
  2821. type: a.type || Zb,
  2822. ya: a.offset || this.defaultOffset,
  2823. xW: o
  2824. };
  2825. this.qc(a.anchor);
  2826. "[object Array]" == Object.prototype.toString.call(a.mapTypes) && (this.k.ph = a.mapTypes.slice(0));
  2827. this.ye()
  2828. }
  2829. x.lang.ta(mb, Sb, "MapTypeControl");
  2830. x.object.extend(mb.prototype, {
  2831. initialize: function(a) {
  2832. this.C = a;
  2833. return this.B
  2834. },
  2835. Jy: function(a) {
  2836. this.C.Yn = a
  2837. },
  2838. ye: function() {
  2839. var a = this;
  2840. I.load("control", function() {
  2841. a.uf()
  2842. }, o)
  2843. }
  2844. });
  2845. function $b(a) {
  2846. Sb.call(this);
  2847. a = a || {};
  2848. this.k = {
  2849. Ag: q,
  2850. ya: a.offset,
  2851. anchor: a.anchor
  2852. };
  2853. this.Si = q;
  2854. this.Tv = p;
  2855. this.yI = new ac({
  2856. Of: "api"
  2857. });
  2858. this.zI = new bc(p, {
  2859. Of: "api"
  2860. });
  2861. this.defaultAnchor = Ub;
  2862. this.defaultOffset = new L(10, 10);
  2863. this.qc(a.anchor);
  2864. this.ye();
  2865. Pa(va)
  2866. }
  2867. x.lang.ta($b, Sb, "PanoramaControl");
  2868. x.extend($b.prototype, {
  2869. initialize: function(a) {
  2870. this.C = a;
  2871. return this.B
  2872. },
  2873. ye: function() {
  2874. var a = this;
  2875. I.load("control", function() {
  2876. a.uf()
  2877. })
  2878. }
  2879. });
  2880. function cc(a) {
  2881. x.lang.Ba.call(this);
  2882. this.k = {
  2883. Ua: p,
  2884. cursor: "default"
  2885. };
  2886. this.k = x.extend(this.k, a);
  2887. this.Lb = "contextmenu";
  2888. this.C = p;
  2889. this.xa = [];
  2890. this.Ff = [];
  2891. this.Ae = [];
  2892. this.Pw = this.gs = p;
  2893. this.Ph = q;
  2894. var b = this;
  2895. I.load("menu", function() {
  2896. b.wb()
  2897. })
  2898. }
  2899. x.lang.ta(cc, x.lang.Ba, "ContextMenu");
  2900. x.object.extend(cc.prototype, {
  2901. qa: function(a, b) {
  2902. this.C = a;
  2903. this.wl = b || p
  2904. },
  2905. remove: function() {
  2906. this.C = this.wl = p
  2907. },
  2908. ow: function(a) {
  2909. if (a && !("menuitem" != a.Lb || "" == a.Vg || 0 >= a.aj)) {
  2910. for (var b = 0, c = this.xa.length; b < c; b++) if (this.xa[b] === a) return;
  2911. this.xa.push(a);
  2912. this.Ff.push(a)
  2913. }
  2914. },
  2915. removeItem: function(a) {
  2916. if (a && "menuitem" == a.Lb) {
  2917. for (var b = 0, c = this.xa.length; b < c; b++) this.xa[b] === a && (this.xa[b].remove(), this.xa.splice(b, 1), c--);
  2918. b = 0;
  2919. for (c = this.Ff.length; b < c; b++) this.Ff[b] === a && (this.Ff[b].remove(), this.Ff.splice(b, 1), c--)
  2920. }
  2921. },
  2922. RB: function() {
  2923. this.xa.push({
  2924. Lb: "divider",
  2925. Oj: this.Ae.length
  2926. });
  2927. this.Ae.push({
  2928. D: p
  2929. })
  2930. },
  2931. eF: function(a) {
  2932. if (this.Ae[a]) {
  2933. for (var b = 0, c = this.xa.length; b < c; b++) this.xa[b] && ("divider" == this.xa[b].Lb && this.xa[b].Oj == a) && (this.xa.splice(b, 1), c--), this.xa[b] && ("divider" == this.xa[b].Lb && this.xa[b].Oj > a) && this.xa[b].Oj--;
  2934. this.Ae.splice(a, 1)
  2935. }
  2936. },
  2937. Hd: t("B"),
  2938. show: function() {
  2939. this.Ph != o && (this.Ph = o)
  2940. },
  2941. U: function() {
  2942. this.Ph != q && (this.Ph = q)
  2943. },
  2944. NZ: function(a) {
  2945. a && (this.k.cursor = a)
  2946. },
  2947. getItem: function(a) {
  2948. return this.Ff[a]
  2949. }
  2950. });
  2951. var dc = F.pa + "menu_zoom_in.png",
  2952. ec = F.pa + "menu_zoom_out.png";
  2953. function fc(a, b, c) {
  2954. if (a && Wa(b)) {
  2955. x.lang.Ba.call(this);
  2956. this.k = {
  2957. width: 100,
  2958. id: "",
  2959. Cm: ""
  2960. };
  2961. c = c || {};
  2962. this.k.width = 1 * c.width ? c.width : 100;
  2963. this.k.id = c.id ? c.id : "";
  2964. this.k.Cm = c.iconUrl ? c.iconUrl : "";
  2965. this.Vg = a + "";
  2966. this.xz = b;
  2967. this.C = p;
  2968. this.Lb = "menuitem";
  2969. this.Pr = this.lv = this.B = this.Hh = p;
  2970. this.Lh = o;
  2971. var d = this;
  2972. I.load("menu", function() {
  2973. d.wb()
  2974. })
  2975. }
  2976. }
  2977. x.lang.ta(fc, x.lang.Ba, "MenuItem");
  2978. x.object.extend(fc.prototype, {
  2979. qa: function(a, b) {
  2980. this.C = a;
  2981. this.Hh = b
  2982. },
  2983. remove: function() {
  2984. this.C = this.Hh = p
  2985. },
  2986. Rt: function(a) {
  2987. a && (this.Vg = a + "")
  2988. },
  2989. Tb: function(a) {
  2990. a && (this.k.Cm = a)
  2991. },
  2992. Hd: t("B"),
  2993. enable: function() {
  2994. this.Lh = o
  2995. },
  2996. disable: function() {
  2997. this.Lh = q
  2998. }
  2999. });
  3000. function fb(a, b) {
  3001. a && !b && (b = a);
  3002. this.Ee = this.De = this.Je = this.Ie = this.Ll = this.ul = p;
  3003. a && (this.Ll = new H(a.lng, a.lat), this.ul = new H(b.lng, b.lat), this.Je = a.lng, this.Ie = a.lat, this.Ee = b.lng, this.De = b.lat)
  3004. }
  3005. x.object.extend(fb.prototype, {
  3006. yj: function() {
  3007. return !this.Ll || !this.ul
  3008. },
  3009. mb: function(a) {
  3010. return !(a instanceof fb) || this.yj() ? q : this.re().mb(a.re()) && this.kf().mb(a.kf())
  3011. },
  3012. re: t("Ll"),
  3013. kf: t("ul"),
  3014. GV: function(a) {
  3015. return !(a instanceof fb) || this.yj() || a.yj() ? q : a.Je > this.Je && a.Ee < this.Ee && a.Ie > this.Ie && a.De < this.De
  3016. },
  3017. Ja: function() {
  3018. return this.yj() ? p : new H((this.Je + this.Ee) / 2, (this.Ie + this.De) / 2)
  3019. },
  3020. ft: function(a) {
  3021. if (!(a instanceof fb) || Math.max(a.Je, a.Ee) < Math.min(this.Je, this.Ee) || Math.min(a.Je, a.Ee) > Math.max(this.Je, this.Ee) || Math.max(a.Ie, a.De) < Math.min(this.Ie, this.De) || Math.min(a.Ie, a.De) > Math.max(this.Ie, this.De)) return p;
  3022. var b = Math.max(this.Je, a.Je),
  3023. c = Math.min(this.Ee, a.Ee),
  3024. d = Math.max(this.Ie, a.Ie),
  3025. a = Math.min(this.De, a.De);
  3026. return new fb(new H(b, d), new H(c, a))
  3027. },
  3028. bs: function(a) {
  3029. return !(a instanceof H) || this.yj() ? q : a.lng >= this.Je && a.lng <= this.Ee && a.lat >= this.Ie && a.lat <= this.De
  3030. },
  3031. extend: function(a) {
  3032. if (a instanceof H) {
  3033. var b = a.lng,
  3034. a = a.lat;
  3035. this.Ll || (this.Ll = new H(0, 0));
  3036. this.ul || (this.ul = new H(0, 0));
  3037. if (!this.Je || this.Je > b) this.Ll.lng = this.Je = b;
  3038. if (!this.Ee || this.Ee < b) this.ul.lng = this.Ee = b;
  3039. if (!this.Ie || this.Ie > a) this.Ll.lat = this.Ie = a;
  3040. if (!this.De || this.De < a) this.ul.lat = this.De = a
  3041. }
  3042. },
  3043. KF: function() {
  3044. return this.yj() ? new H(0, 0) : new H(Math.abs(this.Ee - this.Je), Math.abs(this.De - this.Ie))
  3045. }
  3046. });
  3047. function H(a, b) {
  3048. isNaN(a) && (a = Jb(a), a = isNaN(a) ? 0 : a);
  3049. Za(a) && (a = parseFloat(a));
  3050. isNaN(b) && (b = Jb(b), b = isNaN(b) ? 0 : b);
  3051. Za(b) && (b = parseFloat(b));
  3052. this.lng = a;
  3053. this.lat = b
  3054. }
  3055. H.bM = function(a) {
  3056. return a && 180 >= a.lng && -180 <= a.lng && 74 >= a.lat && -74 <= a.lat
  3057. };
  3058. H.prototype.mb = function(a) {
  3059. return a && this.lat == a.lat && this.lng == a.lng
  3060. };
  3061. function gc() {}
  3062. gc.prototype.nh = function() {
  3063. aa("lngLatToPoint\u65b9\u6cd5\u672a\u5b9e\u73b0")
  3064. };
  3065. gc.prototype.wi = function() {
  3066. aa("pointToLngLat\u65b9\u6cd5\u672a\u5b9e\u73b0")
  3067. };
  3068. function hc() {};
  3069. var eb = {
  3070. nK: function(a, b, c) {
  3071. I.load("coordtransutils", function() {
  3072. eb.ZU(a, b, c)
  3073. }, o)
  3074. },
  3075. mK: function(a, b, c) {
  3076. I.load("coordtransutils", function() {
  3077. eb.YU(a, b, c)
  3078. }, o)
  3079. }
  3080. };
  3081. function ic() {
  3082. this.Oa = [];
  3083. var a = this;
  3084. I.load("convertor", function() {
  3085. a.SP()
  3086. })
  3087. }
  3088. x.ta(ic, x.lang.Ba, "Convertor");
  3089. x.extend(ic.prototype, {
  3090. translate: function(a, b, c, d) {
  3091. this.Oa.push({
  3092. method: "translate",
  3093. arguments: [a, b, c, d]
  3094. })
  3095. }
  3096. });
  3097. S(ic.prototype, {
  3098. translate: ic.prototype.translate
  3099. });
  3100. function R() {}
  3101. R.prototype = new gc;
  3102. x.extend(R, {
  3103. iP: 6370996.81,
  3104. rG: [1.289059486E7, 8362377.87, 5591021, 3481989.83, 1678043.12, 0],
  3105. Au: [75, 60, 45, 30, 15, 0],
  3106. oP: [
  3107. [1.410526172116255E-8, 8.98305509648872E-6, -1.9939833816331, 200.9824383106796, -187.2403703815547, 91.6087516669843, -23.38765649603339, 2.57121317296198, -0.03801003308653, 1.73379812E7],
  3108. [-7.435856389565537E-9, 8.983055097726239E-6, -0.78625201886289, 96.32687599759846, -1.85204757529826, -59.36935905485877, 47.40033549296737, -16.50741931063887, 2.28786674699375, 1.026014486E7],
  3109. [-3.030883460898826E-8, 8.98305509983578E-6, 0.30071316287616, 59.74293618442277, 7.357984074871, -25.38371002664745, 13.45380521110908, -3.29883767235584, 0.32710905363475, 6856817.37],
  3110. [-1.981981304930552E-8, 8.983055099779535E-6, 0.03278182852591, 40.31678527705744, 0.65659298677277, -4.44255534477492, 0.85341911805263, 0.12923347998204, -0.04625736007561, 4482777.06],
  3111. [3.09191371068437E-9, 8.983055096812155E-6, 6.995724062E-5, 23.10934304144901, -2.3663490511E-4, -0.6321817810242, -0.00663494467273, 0.03430082397953, -0.00466043876332, 2555164.4],
  3112. [2.890871144776878E-9, 8.983055095805407E-6, -3.068298E-8, 7.47137025468032, -3.53937994E-6, -0.02145144861037, -1.234426596E-5, 1.0322952773E-4, -3.23890364E-6, 826088.5]
  3113. ],
  3114. oG: [
  3115. [-0.0015702102444, 111320.7020616939, 1704480524535203, -10338987376042340, 26112667856603880, -35149669176653700, 26595700718403920, -10725012454188240, 1800819912950474, 82.5],
  3116. [8.277824516172526E-4, 111320.7020463578, 6.477955746671607E8, -4.082003173641316E9, 1.077490566351142E10, -1.517187553151559E10, 1.205306533862167E10, -5.124939663577472E9, 9.133119359512032E8, 67.5],
  3117. [0.00337398766765, 111320.7020202162, 4481351.045890365, -2.339375119931662E7, 7.968221547186455E7, -1.159649932797253E8, 9.723671115602145E7, -4.366194633752821E7, 8477230.501135234, 52.5],
  3118. [0.00220636496208, 111320.7020209128, 51751.86112841131, 3796837.749470245, 992013.7397791013, -1221952.21711287, 1340652.697009075, -620943.6990984312, 144416.9293806241, 37.5],
  3119. [-3.441963504368392E-4, 111320.7020576856, 278.2353980772752, 2485758.690035394, 6070.750963243378, 54821.18345352118, 9540.606633304236, -2710.55326746645, 1405.483844121726, 22.5],
  3120. [-3.218135878613132E-4, 111320.7020701615, 0.00369383431289, 823725.6402795718, 0.46104986909093, 2351.343141331292, 1.58060784298199, 8.77738589078284, 0.37238884252424, 7.45]
  3121. ],
  3122. j2: function(a, b) {
  3123. if (!a || !b) return 0;
  3124. var c, d, a = this.Eb(a);
  3125. if (!a) return 0;
  3126. c = this.Tk(a.lng);
  3127. d = this.Tk(a.lat);
  3128. b = this.Eb(b);
  3129. return !b ? 0 : this.Pe(c, this.Tk(b.lng), d, this.Tk(b.lat))
  3130. },
  3131. Vo: function(a, b) {
  3132. if (!a || !b) return 0;
  3133. a.lng = this.OD(a.lng, -180, 180);
  3134. a.lat = this.SD(a.lat, -74, 74);
  3135. b.lng = this.OD(b.lng, -180, 180);
  3136. b.lat = this.SD(b.lat, -74, 74);
  3137. return this.Pe(this.Tk(a.lng), this.Tk(b.lng), this.Tk(a.lat), this.Tk(b.lat))
  3138. },
  3139. Eb: function(a) {
  3140. if (a === p || a === j) return new H(0, 0);
  3141. var b, c;
  3142. b = new H(Math.abs(a.lng), Math.abs(a.lat));
  3143. for (var d = 0; d < this.rG.length; d++) if (b.lat >= this.rG[d]) {
  3144. c = this.oP[d];
  3145. break
  3146. }
  3147. a = this.oK(a, c);
  3148. return a = new H(a.lng.toFixed(6), a.lat.toFixed(6))
  3149. },
  3150. xb: function(a) {
  3151. if (a === p || a === j || 180 < a.lng || -180 > a.lng || 90 < a.lat || -90 > a.lat) return new H(0, 0);
  3152. var b, c;
  3153. a.lng = this.OD(a.lng, -180, 180);
  3154. a.lat = this.SD(a.lat, -74, 74);
  3155. b = new H(a.lng, a.lat);
  3156. for (var d = 0; d < this.Au.length; d++) if (b.lat >= this.Au[d]) {
  3157. c = this.oG[d];
  3158. break
  3159. }
  3160. if (!c) for (d = 0; d < this.Au.length; d++) if (b.lat <= -this.Au[d]) {
  3161. c = this.oG[d];
  3162. break
  3163. }
  3164. a = this.oK(a, c);
  3165. return a = new H(a.lng.toFixed(2), a.lat.toFixed(2))
  3166. },
  3167. oK: function(a, b) {
  3168. if (a && b) {
  3169. var c = b[0] + b[1] * Math.abs(a.lng),
  3170. d = Math.abs(a.lat) / b[9],
  3171. d = b[2] + b[3] * d + b[4] * d * d + b[5] * d * d * d + b[6] * d * d * d * d + b[7] * d * d * d * d * d + b[8] * d * d * d * d * d * d,
  3172. c = c * (0 > a.lng ? -1 : 1),
  3173. d = d * (0 > a.lat ? -1 : 1);
  3174. return new H(c, d)
  3175. }
  3176. },
  3177. Pe: function(a, b, c, d) {
  3178. return this.iP * Math.acos(Math.sin(c) * Math.sin(d) + Math.cos(c) * Math.cos(d) * Math.cos(b - a))
  3179. },
  3180. Tk: function(a) {
  3181. return Math.PI * a / 180
  3182. },
  3183. j4: function(a) {
  3184. return 180 * a / Math.PI
  3185. },
  3186. SD: function(a, b, c) {
  3187. b != p && (a = Math.max(a, b));
  3188. c != p && (a = Math.min(a, c));
  3189. return a
  3190. },
  3191. OD: function(a, b, c) {
  3192. for (; a > c;) a -= c - b;
  3193. for (; a < b;) a += c - b;
  3194. return a
  3195. }
  3196. });
  3197. x.extend(R.prototype, {
  3198. Jm: function(a) {
  3199. return R.xb(a)
  3200. },
  3201. nh: function(a) {
  3202. a = R.xb(a);
  3203. return new Q(a.lng, a.lat)
  3204. },
  3205. qh: function(a) {
  3206. return R.Eb(a)
  3207. },
  3208. wi: function(a) {
  3209. a = new H(a.x, a.y);
  3210. return R.Eb(a)
  3211. },
  3212. ac: function(a, b, c, d, e) {
  3213. if (a) return a = this.Jm(a, e), b = this.Bc(b), new Q(Math.round((a.lng - c.lng) / b + d.width / 2), Math.round((c.lat - a.lat) / b + d.height / 2))
  3214. },
  3215. ub: function(a, b, c, d, e) {
  3216. if (a) return b = this.Bc(b), this.qh(new H(c.lng + b * (a.x - d.width / 2), c.lat - b * (a.y - d.height / 2)), e)
  3217. },
  3218. Bc: function(a) {
  3219. return Math.pow(2, 18 - a)
  3220. }
  3221. });
  3222. function hb() {
  3223. this.gj = "bj"
  3224. }
  3225. hb.prototype = new R;
  3226. x.extend(hb.prototype, {
  3227. Jm: function(a, b) {
  3228. return this.CQ(b, R.xb(a))
  3229. },
  3230. qh: function(a, b) {
  3231. return R.Eb(this.DQ(b, a))
  3232. },
  3233. lngLatToPointFor3D: function(a, b) {
  3234. var c = this,
  3235. d = R.xb(a);
  3236. I.load("coordtrans", function() {
  3237. var a = hc.QD(c.gj || "bj", d),
  3238. a = new Q(a.x, a.y);
  3239. b && b(a)
  3240. }, o)
  3241. },
  3242. pointToLngLatFor3D: function(a, b) {
  3243. var c = this,
  3244. d = new H(a.x, a.y);
  3245. I.load("coordtrans", function() {
  3246. var a = hc.PD(c.gj || "bj", d),
  3247. a = new H(a.lng, a.lat),
  3248. a = R.Eb(a);
  3249. b && b(a)
  3250. }, o)
  3251. },
  3252. CQ: function(a, b) {
  3253. if (I.hb("coordtrans").Bd == I.Fj.Zp) {
  3254. var c = hc.QD(a || "bj", b);
  3255. return new H(c.x, c.y)
  3256. }
  3257. I.load("coordtrans", s());
  3258. return new H(0, 0)
  3259. },
  3260. DQ: function(a, b) {
  3261. if (I.hb("coordtrans").Bd == I.Fj.Zp) {
  3262. var c = hc.PD(a || "bj", b);
  3263. return new H(c.lng, c.lat)
  3264. }
  3265. I.load("coordtrans", s());
  3266. return new H(0, 0)
  3267. },
  3268. Bc: function(a) {
  3269. return Math.pow(2, 20 - a)
  3270. }
  3271. });
  3272. function jc() {
  3273. this.Lb = "overlay"
  3274. }
  3275. x.lang.ta(jc, x.lang.Ba, "Overlay");
  3276. jc.ym = function(a) {
  3277. a *= 1;
  3278. return !a ? 0 : -1E5 * a << 1
  3279. };
  3280. x.extend(jc.prototype, {
  3281. Ce: function(a) {
  3282. if (!this.V && Wa(this.initialize) && (this.V = this.initialize(a))) this.V.style.WebkitUserSelect = "none";
  3283. this.draw()
  3284. },
  3285. initialize: function() {
  3286. aa("initialize\u65b9\u6cd5\u672a\u5b9e\u73b0")
  3287. },
  3288. draw: function() {
  3289. aa("draw\u65b9\u6cd5\u672a\u5b9e\u73b0")
  3290. },
  3291. remove: function() {
  3292. this.V && this.V.parentNode && this.V.parentNode.removeChild(this.V);
  3293. this.V = p;
  3294. this.dispatchEvent(new N("onremove"))
  3295. },
  3296. U: function() {
  3297. this.V && x.D.U(this.V)
  3298. },
  3299. show: function() {
  3300. this.V && x.D.show(this.V)
  3301. },
  3302. mh: function() {
  3303. return !this.V || "none" == this.V.style.display || "hidden" == this.V.style.visibility ? q : o
  3304. }
  3305. });
  3306. z.Se(function(a) {
  3307. function b(a, b) {
  3308. var c = K("div"),
  3309. g = c.style;
  3310. g.position = "absolute";
  3311. g.top = g.left = g.width = g.height = "0";
  3312. g.zIndex = b;
  3313. a.appendChild(c);
  3314. return c
  3315. }
  3316. var c = a.R;
  3317. c.qd = a.qd = b(a.platform, 200);
  3318. a.Td.sD = b(c.qd, 800);
  3319. a.Td.GE = b(c.qd, 700);
  3320. a.Td.aL = b(c.qd, 600);
  3321. a.Td.zE = b(c.qd, 500);
  3322. a.Td.EM = b(c.qd, 400);
  3323. a.Td.FM = b(c.qd, 300);
  3324. a.Td.OO = b(c.qd, 201);
  3325. a.Td.ot = b(c.qd, 200)
  3326. });
  3327. function gb() {
  3328. x.lang.Ba.call(this);
  3329. jc.call(this);
  3330. this.map = p;
  3331. this.Pa = o;
  3332. this.zb = p;
  3333. this.dH = 0
  3334. }
  3335. x.lang.ta(gb, jc, "OverlayInternal");
  3336. x.extend(gb.prototype, {
  3337. initialize: function(a) {
  3338. this.map = a;
  3339. x.lang.Ba.call(this, this.ba);
  3340. return p
  3341. },
  3342. nx: t("map"),
  3343. draw: s(),
  3344. Hj: s(),
  3345. remove: function() {
  3346. this.map = p;
  3347. x.lang.Rw(this.ba);
  3348. jc.prototype.remove.call(this)
  3349. },
  3350. U: function() {
  3351. this.Pa !== q && (this.Pa = q)
  3352. },
  3353. show: function() {
  3354. this.Pa !== o && (this.Pa = o)
  3355. },
  3356. mh: function() {
  3357. return !this.V ? q : !! this.Pa
  3358. },
  3359. Na: t("V"),
  3360. LN: function(a) {
  3361. var a = a || {},
  3362. b;
  3363. for (b in a) this.z[b] = a[b]
  3364. },
  3365. St: ba("zIndex"),
  3366. ii: function() {
  3367. this.z.ii = o
  3368. },
  3369. gW: function() {
  3370. this.z.ii = q
  3371. },
  3372. uo: ba("hg"),
  3373. zp: function() {
  3374. this.hg = p
  3375. }
  3376. });
  3377. function kc() {
  3378. this.map = p;
  3379. this.va = {};
  3380. this.ze = []
  3381. }
  3382. z.Se(function(a) {
  3383. var b = new kc;
  3384. b.map = a;
  3385. a.va = b.va;
  3386. a.ze = b.ze;
  3387. a.addEventListener("load", function(a) {
  3388. b.draw(a)
  3389. });
  3390. a.addEventListener("moveend", function(a) {
  3391. b.draw(a)
  3392. });
  3393. x.ea.la && 8 > x.ea.la || "BackCompat" === document.compatMode ? a.addEventListener("zoomend", function(a) {
  3394. setTimeout(function() {
  3395. b.draw(a)
  3396. }, 20)
  3397. }) : a.addEventListener("zoomend", function(a) {
  3398. b.draw(a)
  3399. });
  3400. a.addEventListener("maptypechange", function(a) {
  3401. b.draw(a)
  3402. });
  3403. a.addEventListener("addoverlay", function(a) {
  3404. a = a.target;
  3405. if (a instanceof gb) b.va[a.ba] || (b.va[a.ba] = a);
  3406. else {
  3407. for (var d = q, e = 0, f = b.ze.length; e < f; e++) if (b.ze[e] === a) {
  3408. d = o;
  3409. break
  3410. }
  3411. d || b.ze.push(a)
  3412. }
  3413. });
  3414. a.addEventListener("removeoverlay", function(a) {
  3415. a = a.target;
  3416. if (a instanceof gb) delete b.va[a.ba];
  3417. else for (var d = 0, e = b.ze.length; d < e; d++) if (b.ze[d] === a) {
  3418. b.ze.splice(d, 1);
  3419. break
  3420. }
  3421. });
  3422. a.addEventListener("clearoverlays", function() {
  3423. this.Xc();
  3424. for (var a in b.va) b.va[a].z.ii && (b.va[a].remove(), delete b.va[a]);
  3425. a = 0;
  3426. for (var d = b.ze.length; a < d; a++) b.ze[a].ii !== q && (b.ze[a].remove(), b.ze[a] = p, b.ze.splice(a, 1), a--, d--)
  3427. });
  3428. a.addEventListener("infowindowopen", function() {
  3429. var a = this.zb;
  3430. a && (x.D.U(a.xc), x.D.U(a.bc))
  3431. });
  3432. a.addEventListener("movestart", function() {
  3433. this.jh() && this.jh().WI()
  3434. });
  3435. a.addEventListener("moveend", function() {
  3436. this.jh() && this.jh().LI()
  3437. })
  3438. });
  3439. kc.prototype.draw = function(a) {
  3440. if (z.cq) {
  3441. var b = z.cq.Os(this.map);
  3442. "canvas" === b.Lb && b.canvas && b.xQ(b.canvas.getContext("2d"))
  3443. }
  3444. for (var c in this.va) this.va[c].draw(a);
  3445. x.jc.Fb(this.ze, function(a) {
  3446. a.draw()
  3447. });
  3448. this.map.R.nb && this.map.R.nb.sa();
  3449. z.cq && b.vF()
  3450. };
  3451. function lc(a) {
  3452. gb.call(this);
  3453. a = a || {};
  3454. this.z = {
  3455. strokeColor: a.strokeColor || "#3a6bdb",
  3456. mc: a.strokeWeight || 5,
  3457. sd: a.strokeOpacity || 0.65,
  3458. strokeStyle: a.strokeStyle || "solid",
  3459. ii: a.enableMassClear === q ? q : o,
  3460. wk: p,
  3461. sm: p,
  3462. Nf: a.enableEditing === o ? o : q,
  3463. NM: 5,
  3464. V_: q,
  3465. ff: a.enableClicking === q ? q : o,
  3466. ni: a.icons && 0 < a.icons.length ? a.icons : p
  3467. };
  3468. 0 >= this.z.mc && (this.z.mc = 5);
  3469. if (0 > this.z.sd || 1 < this.z.sd) this.z.sd = 0.65;
  3470. if (0 > this.z.qg || 1 < this.z.qg) this.z.qg = 0.65;
  3471. "solid" != this.z.strokeStyle && "dashed" != this.z.strokeStyle && (this.z.strokeStyle = "solid");
  3472. this.V = p;
  3473. this.Mu = new fb(0, 0);
  3474. this.bf = [];
  3475. this.nc = [];
  3476. this.Qa = {}
  3477. }
  3478. x.lang.ta(lc, gb, "Graph");
  3479. lc.ix = function(a) {
  3480. var b = [];
  3481. if (!a) return b;
  3482. Za(a) && x.jc.Fb(a.split(";"), function(a) {
  3483. a = a.split(",");
  3484. b.push(new H(a[0], a[1]))
  3485. });
  3486. "[object Array]" == Object.prototype.toString.apply(a) && 0 < a.length && (b = a);
  3487. return b
  3488. };
  3489. lc.QE = [0.09, 0.0050, 1.0E-4, 1.0E-5];
  3490. x.extend(lc.prototype, {
  3491. initialize: function(a) {
  3492. this.map = a;
  3493. return p
  3494. },
  3495. draw: s(),
  3496. Ir: function(a) {
  3497. this.bf.length = 0;
  3498. this.ia = lc.ix(a).slice(0);
  3499. this.Eh()
  3500. },
  3501. ge: function(a) {
  3502. this.Ir(a)
  3503. },
  3504. Eh: function() {
  3505. if (this.ia) {
  3506. var a = this;
  3507. a.Mu = new fb;
  3508. x.jc.Fb(this.ia, function(b) {
  3509. a.Mu.extend(b)
  3510. })
  3511. }
  3512. },
  3513. pe: t("ia"),
  3514. hn: function(a, b) {
  3515. b && this.ia[a] && (this.bf.length = 0, this.ia[a] = new H(b.lng, b.lat), this.Eh())
  3516. },
  3517. setStrokeColor: function(a) {
  3518. this.z.strokeColor = a
  3519. },
  3520. DX: function() {
  3521. return this.z.strokeColor
  3522. },
  3523. Op: function(a) {
  3524. 0 < a && (this.z.mc = a)
  3525. },
  3526. BL: function() {
  3527. return this.z.mc
  3528. },
  3529. Mp: function(a) {
  3530. a == j || (1 < a || 0 > a) || (this.z.sd = a)
  3531. },
  3532. EX: function() {
  3533. return this.z.sd
  3534. },
  3535. Lt: function(a) {
  3536. 1 < a || 0 > a || (this.z.qg = a)
  3537. },
  3538. aX: function() {
  3539. return this.z.qg
  3540. },
  3541. Np: function(a) {
  3542. "solid" != a && "dashed" != a || (this.z.strokeStyle = a)
  3543. },
  3544. AL: function() {
  3545. return this.z.strokeStyle
  3546. },
  3547. setFillColor: function(a) {
  3548. this.z.fillColor = a || ""
  3549. },
  3550. $W: function() {
  3551. return this.z.fillColor
  3552. },
  3553. Gd: t("Mu"),
  3554. remove: function() {
  3555. this.map && this.map.removeEventListener("onmousemove", this.iv);
  3556. gb.prototype.remove.call(this);
  3557. this.bf.length = 0
  3558. },
  3559. Nf: function() {
  3560. if (!(2 > this.ia.length)) {
  3561. this.z.Nf = o;
  3562. var a = this;
  3563. I.load("poly", function() {
  3564. a.Rl()
  3565. }, o)
  3566. }
  3567. },
  3568. fW: function() {
  3569. this.z.Nf = q;
  3570. var a = this;
  3571. I.load("poly", function() {
  3572. a.mk()
  3573. }, o)
  3574. }
  3575. });
  3576. function mc(a) {
  3577. gb.call(this);
  3578. this.V = this.map = p;
  3579. this.z = {
  3580. width: 0,
  3581. height: 0,
  3582. ya: new L(0, 0),
  3583. opacity: 1,
  3584. background: "transparent",
  3585. Px: 1,
  3586. qM: "#000",
  3587. zY: "solid",
  3588. point: p
  3589. };
  3590. this.LN(a);
  3591. this.point = this.z.point
  3592. }
  3593. x.lang.ta(mc, gb, "Division");
  3594. x.extend(mc.prototype, {
  3595. Hj: function() {
  3596. var a = this.z,
  3597. b = this.content,
  3598. c = ['<div class="BMap_Division" style="position:absolute;'];
  3599. c.push("width:" + a.width + "px;display:block;");
  3600. c.push("overflow:hidden;");
  3601. "none" != a.borderColor && c.push("border:" + a.Px + "px " + a.zY + " " + a.qM + ";");
  3602. c.push("opacity:" + a.opacity + "; filter:(opacity=" + 100 * a.opacity + ")");
  3603. c.push("background:" + a.background + ";");
  3604. c.push('z-index:60;">');
  3605. c.push(b);
  3606. c.push("</div>");
  3607. this.V = zb(this.map.Qf().GE, c.join(""))
  3608. },
  3609. initialize: function(a) {
  3610. this.map = a;
  3611. this.Hj();
  3612. this.V && x.M(this.V, G() ? "touchstart" : "mousedown", function(a) {
  3613. ma(a)
  3614. });
  3615. return this.V
  3616. },
  3617. draw: function() {
  3618. var a = this.map.Re(this.z.point);
  3619. this.z.ya = new L(-Math.round(this.z.width / 2) - Math.round(this.z.Px), -Math.round(this.z.height / 2) - Math.round(this.z.Px));
  3620. this.V.style.left = a.x + this.z.ya.width + "px";
  3621. this.V.style.top = a.y + this.z.ya.height + "px"
  3622. },
  3623. ha: function() {
  3624. return this.z.point
  3625. },
  3626. M0: function() {
  3627. return this.map.ac(this.ha())
  3628. },
  3629. sa: function(a) {
  3630. this.z.point = a;
  3631. this.draw()
  3632. },
  3633. OZ: function(a, b) {
  3634. this.z.width = Math.round(a);
  3635. this.z.height = Math.round(b);
  3636. this.V && (this.V.style.width = this.z.width + "px", this.V.style.height = this.z.height + "px", this.draw())
  3637. }
  3638. });
  3639. function nc(a, b, c) {
  3640. a && b && (this.imageUrl = a, this.size = b, a = new L(Math.floor(b.width / 2), Math.floor(b.height / 2)), c = c || {}, a = c.anchor || a, b = c.imageOffset || new L(0, 0), this.imageSize = c.imageSize, this.anchor = a, this.imageOffset = b, this.infoWindowAnchor = c.infoWindowAnchor || this.anchor, this.printImageUrl = c.printImageUrl || "")
  3641. }
  3642. x.extend(nc.prototype, {
  3643. MN: function(a) {
  3644. a && (this.imageUrl = a)
  3645. },
  3646. d_: function(a) {
  3647. a && (this.printImageUrl = a)
  3648. },
  3649. xe: function(a) {
  3650. a && (this.size = new L(a.width, a.height))
  3651. },
  3652. qc: function(a) {
  3653. a && (this.anchor = new L(a.width, a.height))
  3654. },
  3655. Mt: function(a) {
  3656. a && (this.imageOffset = new L(a.width, a.height))
  3657. },
  3658. UZ: function(a) {
  3659. a && (this.infoWindowAnchor = new L(a.width, a.height))
  3660. },
  3661. RZ: function(a) {
  3662. a && (this.imageSize = new L(a.width, a.height))
  3663. },
  3664. toString: ca("Icon")
  3665. });
  3666. function oc(a, b) {
  3667. if (a) {
  3668. b = b || {};
  3669. this.style = {
  3670. anchor: b.anchor || new L(0, 0),
  3671. fillColor: b.fillColor || "#000",
  3672. qg: b.fillOpacity || 0,
  3673. scale: b.scale || 1,
  3674. rotation: b.rotation || 0,
  3675. strokeColor: b.strokeColor || "#000",
  3676. sd: b.strokeOpacity || 1,
  3677. mc: b.strokeWeight
  3678. };
  3679. this.Lb = "number" === typeof a ? a : "UserDefined";
  3680. this.Ji = this.style.anchor;
  3681. this.or = new L(0, 0);
  3682. this.anchor = p;
  3683. this.jB = a;
  3684. var c = this;
  3685. I.load("symbol", function() {
  3686. c.Jn()
  3687. }, o)
  3688. }
  3689. }
  3690. x.extend(oc.prototype, {
  3691. setPath: ba("jB"),
  3692. setAnchor: function(a) {
  3693. this.Ji = this.style.anchor = a
  3694. },
  3695. setRotation: function(a) {
  3696. this.style.rotation = a
  3697. },
  3698. setScale: function(a) {
  3699. this.style.scale = a
  3700. },
  3701. setStrokeWeight: function(a) {
  3702. this.style.mc = a
  3703. },
  3704. setStrokeColor: function(a) {
  3705. a = x.as.rC(a, this.style.sd);
  3706. this.style.strokeColor = a
  3707. },
  3708. setStrokeOpacity: function(a) {
  3709. this.style.sd = a
  3710. },
  3711. setFillOpacity: function(a) {
  3712. this.style.qg = a
  3713. },
  3714. setFillColor: function(a) {
  3715. this.style.fillColor = a
  3716. }
  3717. });
  3718. function pc(a, b, c, d) {
  3719. a && (this.Bv = {}, this.$K = d ? !! d : q, this.Vc = [], this.v_ = a instanceof oc ? a : p, this.EI = b === j ? o : !! (b.indexOf("%") + 1), this.$j = isNaN(parseFloat(b)) ? 1 : this.EI ? parseFloat(b) / 100 : parseFloat(b), this.FI = !! (c.indexOf("%") + 1), this.repeat = c != j ? this.FI ? parseFloat(c) / 100 : parseFloat(c) : 0)
  3720. };
  3721. function qc(a, b) {
  3722. x.lang.Ba.call(this);
  3723. this.content = a;
  3724. this.map = p;
  3725. b = b || {};
  3726. this.z = {
  3727. width: b.width || 0,
  3728. height: b.height || 0,
  3729. maxWidth: b.maxWidth || 730,
  3730. ya: b.offset || new L(0, 0),
  3731. title: b.title || "",
  3732. HE: b.maxContent || "",
  3733. dh: b.enableMaximize || q,
  3734. Ds: b.enableAutoPan === q ? q : o,
  3735. eD: b.enableCloseOnClick === q ? q : o,
  3736. margin: b.margin || [10, 10, 40, 10],
  3737. mC: b.collisions || [
  3738. [10, 10],
  3739. [10, 10],
  3740. [10, 10],
  3741. [10, 10]
  3742. ],
  3743. YX: q,
  3744. UY: b.onClosing || ca(o),
  3745. RK: q,
  3746. jD: b.enableParano === o ? o : q,
  3747. message: b.message,
  3748. lD: b.enableSearchTool === o ? o : q,
  3749. Bx: b.headerContent || "",
  3750. fD: b.enableContentScroll || q
  3751. };
  3752. if (0 != this.z.width && (220 > this.z.width && (this.z.width = 220), 730 < this.z.width)) this.z.width = 730;
  3753. if (0 != this.z.height && (60 > this.z.height && (this.z.height = 60), 650 < this.z.height)) this.z.height = 650;
  3754. if (0 != this.z.maxWidth && (220 > this.z.maxWidth && (this.z.maxWidth = 220), 730 < this.z.maxWidth)) this.z.maxWidth = 730;
  3755. this.ae = q;
  3756. this.Ei = F.pa;
  3757. this.$a = p;
  3758. var c = this;
  3759. I.load("infowindow", function() {
  3760. c.wb()
  3761. })
  3762. }
  3763. x.lang.ta(qc, x.lang.Ba, "InfoWindow");
  3764. x.extend(qc.prototype, {
  3765. setWidth: function(a) {
  3766. !a && 0 != a || (isNaN(a) || 0 > a) || (0 != a && (220 > a && (a = 220), 730 < a && (a = 730)), this.z.width = a)
  3767. },
  3768. setHeight: function(a) {
  3769. !a && 0 != a || (isNaN(a) || 0 > a) || (0 != a && (60 > a && (a = 60), 650 < a && (a = 650)), this.z.height = a)
  3770. },
  3771. PN: function(a) {
  3772. !a && 0 != a || (isNaN(a) || 0 > a) || (0 != a && (220 > a && (a = 220), 730 < a && (a = 730)), this.z.maxWidth = a)
  3773. },
  3774. Dc: function(a) {
  3775. this.z.title = a
  3776. },
  3777. getTitle: function() {
  3778. return this.z.title
  3779. },
  3780. bd: ba("content"),
  3781. uk: t("content"),
  3782. Ot: function(a) {
  3783. this.z.HE = a + ""
  3784. },
  3785. fe: s(),
  3786. Ds: function() {
  3787. this.z.Ds = o
  3788. },
  3789. disableAutoPan: function() {
  3790. this.z.Ds = q
  3791. },
  3792. enableCloseOnClick: function() {
  3793. this.z.eD = o
  3794. },
  3795. disableCloseOnClick: function() {
  3796. this.z.eD = q
  3797. },
  3798. dh: function() {
  3799. this.z.dh = o
  3800. },
  3801. Uw: function() {
  3802. this.z.dh = q
  3803. },
  3804. show: function() {
  3805. this.Pa = o
  3806. },
  3807. U: function() {
  3808. this.Pa = q
  3809. },
  3810. close: function() {
  3811. this.U()
  3812. },
  3813. Tx: function() {
  3814. this.ae = o
  3815. },
  3816. restore: function() {
  3817. this.ae = q
  3818. },
  3819. mh: function() {
  3820. return this.Va()
  3821. },
  3822. Va: ca(q),
  3823. ha: function() {
  3824. if (this.$a && this.$a.ha) return this.$a.ha()
  3825. },
  3826. Pf: function() {
  3827. return this.z.ya
  3828. }
  3829. });
  3830. Ka.prototype.Mb = function(a, b) {
  3831. if (a instanceof qc && b instanceof H) {
  3832. var c = this.R;
  3833. c.Lm ? c.Lm.sa(b) : (c.Lm = new T(b, {
  3834. icon: new nc(F.pa + "blank.gif", {
  3835. width: 1,
  3836. height: 1
  3837. }),
  3838. offset: new L(0, 0),
  3839. clickable: q
  3840. }), c.Lm.AR = 1);
  3841. this.Ia(c.Lm);
  3842. c.Lm.Mb(a)
  3843. }
  3844. };
  3845. Ka.prototype.Xc = function() {
  3846. var a = this.R.nb || this.R.ll;
  3847. a && a.$a && a.$a.Xc()
  3848. };
  3849. gb.prototype.Mb = function(a) {
  3850. this.map && (this.map.Xc(), a.Pa = o, this.map.R.ll = a, a.$a = this, x.lang.Ba.call(a, a.ba))
  3851. };
  3852. gb.prototype.Xc = function() {
  3853. this.map && this.map.R.ll && (this.map.R.ll.Pa = q, x.lang.Rw(this.map.R.ll.ba), this.map.R.ll = p)
  3854. };
  3855. function rc(a, b) {
  3856. gb.call(this);
  3857. this.content = a;
  3858. this.V = this.map = p;
  3859. b = b || {};
  3860. this.z = {
  3861. width: 0,
  3862. ya: b.offset || new L(0, 0),
  3863. Rp: {
  3864. backgroundColor: "#fff",
  3865. border: "1px solid #f00",
  3866. padding: "1px",
  3867. whiteSpace: "nowrap",
  3868. font: "12px " + F.fontFamily,
  3869. zIndex: "80",
  3870. MozUserSelect: "none"
  3871. },
  3872. position: b.position || p,
  3873. ii: b.enableMassClear === q ? q : o,
  3874. ff: o
  3875. };
  3876. 0 > this.z.width && (this.z.width = 0);
  3877. Gb(b.enableClicking) && (this.z.ff = b.enableClicking);
  3878. this.point = this.z.position;
  3879. var c = this;
  3880. I.load("marker", function() {
  3881. c.wb()
  3882. })
  3883. }
  3884. x.lang.ta(rc, gb, "Label");
  3885. x.extend(rc.prototype, {
  3886. ha: function() {
  3887. return this.qv ? this.qv.ha() : this.point
  3888. },
  3889. sa: function(a) {
  3890. a instanceof H && !this.ox() && (this.point = this.z.position = new H(a.lng, a.lat))
  3891. },
  3892. bd: ba("content"),
  3893. uF: function(a) {
  3894. 0 <= a && 1 >= a && (this.z.opacity = a)
  3895. },
  3896. Te: function(a) {
  3897. a instanceof L && (this.z.ya = new L(a.width, a.height))
  3898. },
  3899. Pf: function() {
  3900. return this.z.ya
  3901. },
  3902. Kd: function(a) {
  3903. a = a || {};
  3904. this.z.Rp = x.extend(this.z.Rp, a)
  3905. },
  3906. yi: function(a) {
  3907. return this.Kd(a)
  3908. },
  3909. Dc: function(a) {
  3910. this.z.title = a || ""
  3911. },
  3912. getTitle: function() {
  3913. return this.z.title
  3914. },
  3915. ON: function(a) {
  3916. this.point = (this.qv = a) ? this.z.position = a.ha() : this.z.position = p
  3917. },
  3918. ox: function() {
  3919. return this.qv || p
  3920. },
  3921. uk: t("content")
  3922. });
  3923. function sc(a, b) {
  3924. if (0 !== arguments.length) {
  3925. gb.apply(this, arguments);
  3926. b = b || {};
  3927. this.z = {
  3928. gb: a,
  3929. opacity: b.opacity || 1,
  3930. Em: b.Em || "",
  3931. rs: b.displayOnMinLevel || 1,
  3932. ii: b.enableMassClear === q ? q : o,
  3933. qs: b.displayOnMaxLevel || 19,
  3934. p_: b.stretch || q
  3935. };
  3936. var c = this;
  3937. I.load("groundoverlay", function() {
  3938. c.wb()
  3939. })
  3940. }
  3941. }
  3942. x.lang.ta(sc, gb, "GroundOverlay");
  3943. x.extend(sc.prototype, {
  3944. setBounds: function(a) {
  3945. this.z.gb = a
  3946. },
  3947. getBounds: function() {
  3948. return this.z.gb
  3949. },
  3950. setOpacity: function(a) {
  3951. this.z.opacity = a
  3952. },
  3953. getOpacity: function() {
  3954. return this.z.opacity
  3955. },
  3956. setImageURL: function(a) {
  3957. this.z.Em = a
  3958. },
  3959. getImageURL: function() {
  3960. return this.z.Em
  3961. },
  3962. setDisplayOnMinLevel: function(a) {
  3963. this.z.rs = a
  3964. },
  3965. getDisplayOnMinLevel: function() {
  3966. return this.z.rs
  3967. },
  3968. setDisplayOnMaxLevel: function(a) {
  3969. this.z.qs = a
  3970. },
  3971. getDisplayOnMaxLevel: function() {
  3972. return this.z.qs
  3973. }
  3974. });
  3975. var tc = 3,
  3976. uc = 4;
  3977. function vc() {
  3978. var a = document.createElement("canvas");
  3979. return !(!a.getContext || !a.getContext("2d"))
  3980. }
  3981. function wc(a, b) {
  3982. var c = this;
  3983. vc() && (a === j && aa(Error("\u6ca1\u6709\u4f20\u5165points\u6570\u636e")), "[object Array]" !== Object.prototype.toString.call(a) && aa(Error("points\u6570\u636e\u4e0d\u662f\u6570\u7ec4")), b = b || {}, gb.apply(c, arguments), c.da = {
  3984. ia: a
  3985. }, c.z = {
  3986. shape: b.shape || tc,
  3987. size: b.size || uc,
  3988. color: b.color || "#fa937e",
  3989. ii: o
  3990. }, this.gB = [], this.ke = [], I.load("pointcollection", function() {
  3991. for (var a = 0, b; b = c.gB[a]; a++) c[b.method].apply(c, b.arguments);
  3992. for (a = 0; b = c.ke[a]; a++) c[b.method].apply(c, b.arguments)
  3993. }))
  3994. }
  3995. x.lang.ta(wc, gb, "PointCollection");
  3996. x.extend(wc.prototype, {
  3997. initialize: function(a) {
  3998. this.gB && this.gB.push({
  3999. method: "initialize",
  4000. arguments: arguments
  4001. })
  4002. },
  4003. setPoints: function(a) {
  4004. this.ke && this.ke.push({
  4005. method: "setPoints",
  4006. arguments: arguments
  4007. })
  4008. },
  4009. setStyles: function(a) {
  4010. this.ke && this.ke.push({
  4011. method: "setStyles",
  4012. arguments: arguments
  4013. })
  4014. },
  4015. clear: function() {
  4016. this.ke && this.ke.push({
  4017. method: "clear",
  4018. arguments: arguments
  4019. })
  4020. },
  4021. remove: function() {
  4022. this.ke && this.ke.push({
  4023. method: "remove",
  4024. arguments: arguments
  4025. })
  4026. }
  4027. });
  4028. var xc = new nc(F.pa + "marker_red_sprite.png", new L(19, 25), {
  4029. anchor: new L(10, 25),
  4030. infoWindowAnchor: new L(10, 0)
  4031. }),
  4032. yc = new nc(F.pa + "marker_red_sprite.png", new L(20, 11), {
  4033. anchor: new L(6, 11),
  4034. imageOffset: new L(-19, -13)
  4035. });
  4036. function T(a, b) {
  4037. gb.call(this);
  4038. b = b || {};
  4039. this.point = a;
  4040. this.tq = this.map = p;
  4041. this.z = {
  4042. ya: b.offset || new L(0, 0),
  4043. vj: b.icon || xc,
  4044. Nk: yc,
  4045. title: b.title || "",
  4046. label: p,
  4047. WJ: b.baseZIndex || 0,
  4048. ff: o,
  4049. E4: q,
  4050. vE: q,
  4051. ii: b.enableMassClear === q ? q : o,
  4052. Xb: q,
  4053. uN: b.raiseOnDrag === o ? o : q,
  4054. BN: q,
  4055. Ed: b.draggingCursor || F.Ed,
  4056. rotation: b.rotation || 0
  4057. };
  4058. b.icon && !b.shadow && (this.z.Nk = p);
  4059. b.enableDragging && (this.z.Xb = b.enableDragging);
  4060. Gb(b.enableClicking) && (this.z.ff = b.enableClicking);
  4061. var c = this;
  4062. I.load("marker", function() {
  4063. c.wb()
  4064. })
  4065. }
  4066. T.Fu = jc.ym(-90) + 1E6;
  4067. T.kG = T.Fu + 1E6;
  4068. x.lang.ta(T, gb, "Marker");
  4069. x.extend(T.prototype, {
  4070. Tb: function(a) {
  4071. if (a instanceof nc || a instanceof oc) this.z.vj = a
  4072. },
  4073. Wo: function() {
  4074. return this.z.vj
  4075. },
  4076. zy: function(a) {
  4077. a instanceof nc && (this.z.Nk = a)
  4078. },
  4079. getShadow: function() {
  4080. return this.z.Nk
  4081. },
  4082. fn: function(a) {
  4083. this.z.label = a || p
  4084. },
  4085. MD: function() {
  4086. return this.z.label
  4087. },
  4088. Xb: function() {
  4089. this.z.Xb = o
  4090. },
  4091. KC: function() {
  4092. this.z.Xb = q
  4093. },
  4094. ha: t("point"),
  4095. sa: function(a) {
  4096. a instanceof H && (this.point = new H(a.lng, a.lat))
  4097. },
  4098. zi: function(a, b) {
  4099. this.z.vE = !! a;
  4100. a && (this.GG = b || 0)
  4101. },
  4102. Dc: function(a) {
  4103. this.z.title = a + ""
  4104. },
  4105. getTitle: function() {
  4106. return this.z.title
  4107. },
  4108. Te: function(a) {
  4109. a instanceof L && (this.z.ya = a)
  4110. },
  4111. Pf: function() {
  4112. return this.z.ya
  4113. },
  4114. dn: ba("tq"),
  4115. Lp: function(a) {
  4116. this.z.rotation = a
  4117. },
  4118. yL: function() {
  4119. return this.z.rotation
  4120. }
  4121. });
  4122. function zc(a, b) {
  4123. lc.call(this, b);
  4124. b = b || {};
  4125. this.z.qg = b.fillOpacity ? b.fillOpacity : 0.65;
  4126. this.z.fillColor = "" == b.fillColor ? "" : b.fillColor ? b.fillColor : "#fff";
  4127. this.ge(a);
  4128. var c = this;
  4129. I.load("poly", function() {
  4130. c.wb()
  4131. })
  4132. }
  4133. x.lang.ta(zc, lc, "Polygon");
  4134. x.extend(zc.prototype, {
  4135. ge: function(a, b) {
  4136. this.ro = lc.ix(a).slice(0);
  4137. var c = lc.ix(a).slice(0);
  4138. 1 < c.length && c.push(new H(c[0].lng, c[0].lat));
  4139. lc.prototype.ge.call(this, c, b)
  4140. },
  4141. hn: function(a, b) {
  4142. this.ro[a] && (this.ro[a] = new H(b.lng, b.lat), this.ia[a] = new H(b.lng, b.lat), 0 == a && !this.ia[0].mb(this.ia[this.ia.length - 1]) && (this.ia[this.ia.length - 1] = new H(b.lng, b.lat)), this.Eh())
  4143. },
  4144. pe: function() {
  4145. var a = this.ro;
  4146. 0 == a.length && (a = this.ia);
  4147. return a
  4148. }
  4149. });
  4150. function Ac(a, b) {
  4151. lc.call(this, b);
  4152. this.Ir(a);
  4153. var c = this;
  4154. I.load("poly", function() {
  4155. c.wb()
  4156. })
  4157. }
  4158. x.lang.ta(Ac, lc, "Polyline");
  4159. function Bc(a, b, c) {
  4160. this.point = a;
  4161. this.wa = Math.abs(b);
  4162. zc.call(this, [], c)
  4163. }
  4164. Bc.QE = [0.01, 1.0E-4, 1.0E-5, 4.0E-6];
  4165. x.lang.ta(Bc, zc, "Circle");
  4166. x.extend(Bc.prototype, {
  4167. initialize: function(a) {
  4168. this.map = a;
  4169. this.ia = this.ev(this.point, this.wa);
  4170. this.Eh();
  4171. return p
  4172. },
  4173. Ja: t("point"),
  4174. Vf: function(a) {
  4175. a && (this.point = a)
  4176. },
  4177. wL: t("wa"),
  4178. qf: function(a) {
  4179. this.wa = Math.abs(a)
  4180. },
  4181. ev: function(a, b) {
  4182. if (!a || !b || !this.map) return [];
  4183. for (var c = [], d = b / 6378800, e = Math.PI / 180 * a.lat, f = Math.PI / 180 * a.lng, g = 0; 360 > g; g += 9) {
  4184. var i = Math.PI / 180 * g,
  4185. k = Math.asin(Math.sin(e) * Math.cos(d) + Math.cos(e) * Math.sin(d) * Math.cos(i)),
  4186. i = new H(((f - Math.atan2(Math.sin(i) * Math.sin(d) * Math.cos(e), Math.cos(d) - Math.sin(e) * Math.sin(k)) + Math.PI) % (2 * Math.PI) - Math.PI) * (180 / Math.PI), k * (180 / Math.PI));
  4187. c.push(i)
  4188. }
  4189. d = c[0];
  4190. c.push(new H(d.lng, d.lat));
  4191. return c
  4192. }
  4193. });
  4194. var Cc = {};
  4195. function Dc(a) {
  4196. this.map = a;
  4197. this.Km = [];
  4198. this.Wf = [];
  4199. this.Eg = [];
  4200. this.lV = 300;
  4201. this.aF = 0;
  4202. this.wg = {};
  4203. this.fj = {};
  4204. this.th = 0;
  4205. this.pE = o;
  4206. this.wK = {};
  4207. this.ao = this.Mn(1);
  4208. this.md = this.Mn(2);
  4209. this.vl = this.Mn(3);
  4210. a.platform.appendChild(this.ao);
  4211. a.platform.appendChild(this.md);
  4212. a.platform.appendChild(this.vl);
  4213. var b = 256 * Math.pow(2, 15),
  4214. c = 3 * b,
  4215. a = R.xb(new H(180, 0)).lng,
  4216. c = c - a,
  4217. b = -3 * b,
  4218. d = R.xb(new H(-180, 0)).lng;
  4219. this.hI = a;
  4220. this.iI = d;
  4221. this.NA = c + (d - b);
  4222. this.jI = a - d
  4223. }
  4224. z.Se(function(a) {
  4225. var b = new Dc(a);
  4226. b.qa();
  4227. a.bb = b
  4228. });
  4229. x.extend(Dc.prototype, {
  4230. qa: function() {
  4231. var a = this,
  4232. b = a.map;
  4233. b.addEventListener("loadcode", function() {
  4234. a.Qx()
  4235. });
  4236. b.addEventListener("addtilelayer", function(b) {
  4237. a.Yg(b)
  4238. });
  4239. b.addEventListener("removetilelayer", function(b) {
  4240. a.zh(b)
  4241. });
  4242. b.addEventListener("setmaptype", function(b) {
  4243. a.Bg(b)
  4244. });
  4245. b.addEventListener("zoomstartcode", function(b) {
  4246. a.Lc(b)
  4247. });
  4248. b.addEventListener("setcustomstyles", function(b) {
  4249. a.Nt(b.target);
  4250. a.Tf(o)
  4251. })
  4252. },
  4253. Qx: function() {
  4254. var a = this;
  4255. if (x.ea.la) try {
  4256. document.execCommand("BackgroundImageCache", q, o)
  4257. } catch (b) {}
  4258. this.loaded || a.Gx();
  4259. a.Tf();
  4260. this.loaded || (this.loaded = o, I.load("tile", function() {
  4261. a.TP()
  4262. }))
  4263. },
  4264. Gx: function() {
  4265. for (var a = this.map.oa().jr, b = 0; b < a.length; b++) {
  4266. var c = new Ec;
  4267. x.extend(c, a[b]);
  4268. this.Km.push(c);
  4269. c.qa(this.map, this.ao)
  4270. }
  4271. this.Nt()
  4272. },
  4273. Mn: function(a) {
  4274. var b = K("div");
  4275. b.style.position = "absolute";
  4276. b.style.overflow = "visible";
  4277. b.style.left = b.style.top = "0";
  4278. b.style.zIndex = a;
  4279. return b
  4280. },
  4281. vf: function() {
  4282. this.th--;
  4283. var a = this;
  4284. this.pE && (this.map.dispatchEvent(new N("onfirsttileloaded")), this.pE = q);
  4285. 0 == this.th && (this.Ni && (clearTimeout(this.Ni), this.Ni = p), this.Ni = setTimeout(function() {
  4286. if (a.th == 0) {
  4287. a.map.dispatchEvent(new N("ontilesloaded"));
  4288. a.pE = o
  4289. }
  4290. a.Ni = p
  4291. }, 80))
  4292. },
  4293. XD: function(a, b) {
  4294. return "TILE-" + b.ba + "-" + a[0] + "-" + a[1] + "-" + a[2]
  4295. },
  4296. Ex: function(a) {
  4297. var b = a.Gb;
  4298. b && yb(b) && b.parentNode.removeChild(b);
  4299. delete this.wg[a.name];
  4300. a.loaded || (Fc(a), a.Gb = p, a.Nm = p)
  4301. },
  4302. xm: function(a, b, c) {
  4303. var d = this.map,
  4304. e = d.oa(),
  4305. f = d.Ka,
  4306. g = d.lc,
  4307. i = e.Bc(f),
  4308. k = this.lL(),
  4309. l = k[0],
  4310. m = k[1],
  4311. n = k[2],
  4312. u = k[3],
  4313. v = k[4],
  4314. c = "undefined" != typeof c ? c : 0,
  4315. e = e.k.Ob,
  4316. k = d.ba.replace(/^TANGRAM_/, "");
  4317. for (this.Rc ? this.Rc.length = 0 : this.Rc = []; l < n; l++) for (var w = m; w < u; w++) {
  4318. var y = l,
  4319. C = w;
  4320. this.Rc.push([y, C]);
  4321. y = k + "_" + b + "_" + y + "_" + C + "_" + f;
  4322. this.wK[y] = y
  4323. }
  4324. this.Rc.sort(function(a) {
  4325. return function(b, c) {
  4326. return 0.4 * Math.abs(b[0] - a[0]) + 0.6 * Math.abs(b[1] - a[1]) - (0.4 * Math.abs(c[0] - a[0]) + 0.6 * Math.abs(c[1] - a[1]))
  4327. }
  4328. }([v[0] - 1, v[1] - 1]));
  4329. g = [Math.round(-g.lng / i), Math.round(g.lat / i)];
  4330. l = -d.offsetY + d.height / 2;
  4331. a.style.left = -d.offsetX + d.width / 2 + "px";
  4332. a.style.top = l + "px";
  4333. this.Ke ? this.Ke.length = 0 : this.Ke = [];
  4334. l = 0;
  4335. for (d = a.childNodes.length; l < d; l++) w = a.childNodes[l], w.fr = q, this.Ke.push(w);
  4336. if (l = this.Qm) for (var A in l) delete l[A];
  4337. else this.Qm = {};
  4338. this.Le ? this.Le.length = 0 : this.Le = [];
  4339. l = 0;
  4340. for (d = this.Rc.length; l < d; l++) {
  4341. A = this.Rc[l][0];
  4342. i = this.Rc[l][1];
  4343. w = 0;
  4344. for (m = this.Ke.length; w < m; w++) if (n = this.Ke[w], n.id == k + "_" + b + "_" + A + "_" + i + "_" + f) {
  4345. n.fr = o;
  4346. this.Qm[n.id] = n;
  4347. break
  4348. }
  4349. }
  4350. l = 0;
  4351. for (d = this.Ke.length; l < d; l++) n = this.Ke[l], n.fr || this.Le.push(n);
  4352. this.nn = [];
  4353. w = (e + c) * this.map.K.devicePixelRatio;
  4354. l = 0;
  4355. for (d = this.Rc.length; l < d; l++) A = this.Rc[l][0], i = this.Rc[l][1], u = A * e + g[0] - c / 2, v = (-1 - i) * e + g[1] - c / 2, y = k + "_" + b + "_" + A + "_" + i + "_" + f, m = this.Qm[y], n = p, m ? (n = m.style, n.left = u + "px", n.top = v + "px", m.Xe || this.nn.push([A, i, m])) : (0 < this.Le.length ? (m = this.Le.shift(), m.getContext("2d").clearRect(-c / 2, -c / 2, w, w), n = m.style) : (m = document.createElement("canvas"), n = m.style, n.position = "absolute", n.width = e + c + "px", n.height = e + c + "px", this.Lx() && (n.WebkitTransform = "scale(1.001)"), m.setAttribute("width", w), m.setAttribute("height", w), a.appendChild(m)), m.id = y, n.left = u + "px", n.top = v + "px", -1 < y.indexOf("bg") && (u = "#F3F1EC", this.map.K.zo && (u = this.map.K.zo), n.background = u ? u : ""), this.nn.push([A, i, m])), m.style.visibility = "";
  4356. l = 0;
  4357. for (d = this.Le.length; l < d; l++) this.Le[l].style.visibility = "hidden";
  4358. return this.nn
  4359. },
  4360. Lx: function() {
  4361. return /M040/i.test(navigator.userAgent)
  4362. },
  4363. lL: function() {
  4364. var a = this.map,
  4365. b = a.oa(),
  4366. c = b.bE(a.Ka),
  4367. d = a.lc,
  4368. e = Math.ceil(d.lng / c),
  4369. f = Math.ceil(d.lat / c),
  4370. b = b.k.Ob,
  4371. c = [e, f, (d.lng - e * c) / c * b, (d.lat - f * c) / c * b];
  4372. return [c[0] - Math.ceil((a.width / 2 - c[2]) / b), c[1] - Math.ceil((a.height / 2 - c[3]) / b), c[0] + Math.ceil((a.width / 2 + c[2]) / b), c[1] + Math.ceil((a.height / 2 + c[3]) / b), c]
  4373. },
  4374. k_: function(a, b, c, d) {
  4375. var e = this;
  4376. e.s1 = b;
  4377. var f = this.map.oa(),
  4378. g = e.XD(a, c),
  4379. i = f.k.Ob,
  4380. b = [a[0] * i + b[0], (-1 - a[1]) * i + b[1]],
  4381. k = this.wg[g];
  4382. if (this.map.oa() !== Xa && this.map.oa() !== Ra) {
  4383. var l = this.xw(a[0], a[2]).offsetX;
  4384. b[0] += l;
  4385. b.Q0 = l
  4386. }
  4387. k && k.Gb ? (wb(k.Gb, b), d && (d = new Q(a[0], a[1]), f = this.map.K.te ? this.map.K.te.style : "normal", d = c.getTilesUrl(d, a[2], f), k.loaded = q, Gc(k, d)), k.loaded ? this.vf() : Hc(k, function() {
  4388. e.vf()
  4389. })) : (k = this.fj[g]) && k.Gb ? (c.Pb.insertBefore(k.Gb, c.Pb.lastChild), this.wg[g] = k, wb(k.Gb, b), d && (d = new Q(a[0], a[1]), f = this.map.K.te ? this.map.K.te.style : "normal", d = c.getTilesUrl(d, a[2], f), k.loaded = q, Gc(k, d)), k.loaded ? this.vf() : Hc(k, function() {
  4390. e.vf()
  4391. })) : (k = i * Math.pow(2, f.qm() - a[2]), new H(a[0] * k, a[1] * k), d = new Q(a[0], a[1]), f = this.map.K.te ? this.map.K.te.style : "normal", d = c.getTilesUrl(d, a[2], f), k = new Ic(this, d, b, a, c), Hc(k, function() {
  4392. e.vf()
  4393. }), k.$n(), this.wg[g] = k)
  4394. },
  4395. vf: function() {
  4396. this.th--;
  4397. var a = this;
  4398. 0 == this.th && (this.Ni && (clearTimeout(this.Ni), this.Ni = p), this.Ni = setTimeout(function() {
  4399. if (a.th == 0) {
  4400. a.map.dispatchEvent(new N("ontilesloaded"));
  4401. if (ta) {
  4402. if (qa && ra && sa) {
  4403. var b = ab(),
  4404. c = a.map.yb();
  4405. setTimeout(function() {
  4406. Pa(5030, {
  4407. load_script_time: ra - qa,
  4408. load_tiles_time: b - sa,
  4409. map_width: c.width,
  4410. map_height: c.height,
  4411. map_size: c.width * c.height
  4412. })
  4413. }, 1E4);
  4414. ua.pc("img_fisrt_loaded");
  4415. ua.pc("map_width", c.width);
  4416. ua.pc("map_height", c.height);
  4417. ua.pc("map_size", c.width * c.height);
  4418. ua.Xm();
  4419. z.Ij("cus.fire", "time", {
  4420. z_imgfirstloaded: b - sa
  4421. })
  4422. }
  4423. ta = q
  4424. }
  4425. }
  4426. a.Ni = p
  4427. }, 80))
  4428. },
  4429. XD: function(a, b) {
  4430. return this.map.oa() === Oa ? "TILE-" + b.ba + "-" + this.map.Cw + "-" + a[0] + "-" + a[1] + "-" + a[2] : "TILE-" + b.ba + "-" + a[0] + "-" + a[1] + "-" + a[2]
  4431. },
  4432. Ex: function(a) {
  4433. var b = a.Gb;
  4434. b && (Jc(b), yb(b) && b.parentNode.removeChild(b));
  4435. delete this.wg[a.name];
  4436. a.loaded || (Jc(b), Fc(a), a.Gb = p, a.Nm = p)
  4437. },
  4438. xw: function(a, b) {
  4439. for (var c = 0, d = 6 * Math.pow(2, b - 3), e = d / 2 - 1, f = -d / 2; a > e;) a -= d, c -= this.NA;
  4440. for (; a < f;) a += d, c += this.NA;
  4441. c = Math.round(c / Math.pow(2, 18 - b));
  4442. return {
  4443. offsetX: c,
  4444. Fw: a
  4445. }
  4446. },
  4447. nV: function(a) {
  4448. for (var b = a.lng; b > this.hI;) b -= this.jI;
  4449. for (; b < this.iI;) b += this.jI;
  4450. a.lng = b;
  4451. return a
  4452. },
  4453. oV: function(a, b) {
  4454. for (var c = 256 * Math.pow(2, 18 - b), d = Math.floor(this.hI / c), e = Math.floor(this.iI / c), c = Math.floor(this.NA / c), f = [], g = 0; g < a.length; g++) {
  4455. var i = a[g],
  4456. k = i[0],
  4457. i = i[1];
  4458. if (k >= d) {
  4459. var k = k + c,
  4460. l = "id_" + k + "_" + i + "_" + b;
  4461. a[l] || (a[l] = o, f.push([k, i]))
  4462. } else k <= e && (k -= c, l = "id_" + k + "_" + i + "_" + b, a[l] || (a[l] = o, f.push([k, i])))
  4463. }
  4464. for (g = 0; g < f.length; g++) a.push(f[g]);
  4465. return a
  4466. },
  4467. Tf: function(a) {
  4468. var b = this;
  4469. if (b.map.oa() == Oa) I.load("coordtrans", function() {
  4470. b.map.Vb || (b.map.Vb = Oa.tk(b.map.$g), b.map.Cw = Oa.jL(b.map.Vb));
  4471. b.lI()
  4472. }, o);
  4473. else {
  4474. if (a && a) for (var c in this.fj) delete this.fj[c];
  4475. b.lI(a)
  4476. }
  4477. },
  4478. lI: function(a) {
  4479. var b = this.Km.concat(this.Wf),
  4480. c = b.length,
  4481. d = this.map,
  4482. e = d.oa(),
  4483. f = d.lc;
  4484. this.map.oa() !== Xa && this.map.oa() !== Ra && (f = this.nV(f));
  4485. for (var g = 0; g < c; g++) {
  4486. var i = b[g];
  4487. if (i.fc && d.Ka < i.fc) break;
  4488. if (i.vw) {
  4489. var k = this.Pb = i.Pb;
  4490. if (a) {
  4491. var l = k;
  4492. if (l && l.childNodes) for (var m = l.childNodes.length, n = m - 1; 0 <= n; n--) m = l.childNodes[n], l.removeChild(m), m = p
  4493. }
  4494. if (this.map.Ub()) {
  4495. this.md.style.display = "block";
  4496. k.style.display = "none";
  4497. this.map.dispatchEvent(new N("vectorchanged"), {
  4498. isvector: o
  4499. });
  4500. continue
  4501. } else k.style.display = "block", this.md.style.display = "none", this.map.dispatchEvent(new N("vectorchanged"), {
  4502. isvector: q
  4503. })
  4504. }
  4505. if (!i.ZH && !(i.mp && !this.map.Ub() || i.iM && this.map.Ub())) {
  4506. d = this.map;
  4507. e = d.oa();
  4508. k = e.bp();
  4509. m = d.Ka;
  4510. f = d.lc;
  4511. e == Oa && f.mb(new H(0, 0)) && (f = d.lc = k.Jm(d.ef, d.Vb));
  4512. var u = e.Bc(m),
  4513. k = e.bE(m),
  4514. l = Math.ceil(f.lng / k),
  4515. v = Math.ceil(f.lat / k),
  4516. w = e.k.Ob,
  4517. k = [l, v, (f.lng - l * k) / k * w, (f.lat - v * k) / k * w],
  4518. n = k[0] - Math.ceil((d.width / 2 - k[2]) / w),
  4519. l = k[1] - Math.ceil((d.height / 2 - k[3]) / w),
  4520. v = k[0] + Math.ceil((d.width / 2 + k[2]) / w),
  4521. y = 0;
  4522. e === Oa && 15 == d.fa() && (y = 1);
  4523. e = k[1] + Math.ceil((d.height / 2 + k[3]) / w) + y;
  4524. this.RJ = new H(f.lng, f.lat);
  4525. var C = this.wg,
  4526. w = -this.RJ.lng / u,
  4527. y = this.RJ.lat / u,
  4528. u = [Math.ceil(w), Math.ceil(y)],
  4529. f = d.fa(),
  4530. A;
  4531. for (A in C) {
  4532. var B = C[A],
  4533. D = B.info;
  4534. (D[2] != f || D[2] == f && (n > D[0] || v <= D[0] || l > D[1] || e <= D[1])) && this.Ex(B)
  4535. }
  4536. C = -d.offsetX + d.width / 2;
  4537. B = -d.offsetY + d.height / 2;
  4538. i.Pb && (i.Pb.style.left = Math.ceil(w + C) - u[0] + "px", i.Pb.style.top = Math.ceil(y + B) - u[1] + "px", i.Pb.style.WebkitTransform = "translate3d(0,0,0)");
  4539. w = [];
  4540. for (d.LB = []; n < v; n++) for (y = l; y < e; y++) w.push([n, y]), d.LB.push({
  4541. x: n,
  4542. y: y
  4543. });
  4544. this.map.oa() !== Xa && this.map.oa() !== Ra && (w = this.oV(w, m));
  4545. w.sort(function(a) {
  4546. return function(b, c) {
  4547. return 0.4 * Math.abs(b[0] - a[0]) + 0.6 * Math.abs(b[1] - a[1]) - (0.4 * Math.abs(c[0] - a[0]) + 0.6 * Math.abs(c[1] - a[1]))
  4548. }
  4549. }([k[0] - 1, k[1] - 1]));
  4550. m = w.length;
  4551. this.th += m;
  4552. for (n = 0; n < m; n++) this.k_([w[n][0], w[n][1], f], u, i, a)
  4553. }
  4554. }
  4555. },
  4556. Yg: function(a) {
  4557. var b = this,
  4558. c = a.target,
  4559. a = b.map.Ub();
  4560. if (c instanceof db) a && !c.Fm && (c.qa(this.map, this.md), c.Fm = o);
  4561. else if (c.Xf && this.map.Yg(c.Xf), c.mp) {
  4562. for (a = 0; a < b.Eg.length; a++) if (b.Eg[a] == c) return;
  4563. I.load("vector", function() {
  4564. c.qa(b.map, b.md);
  4565. b.Eg.push(c)
  4566. }, o)
  4567. } else {
  4568. for (a = 0; a < b.Wf.length; a++) if (b.Wf[a] == c) return;
  4569. c.qa(this.map, this.vl);
  4570. b.Wf.push(c)
  4571. }
  4572. },
  4573. zh: function(a) {
  4574. var a = a.target,
  4575. b = this.map.Ub();
  4576. if (a instanceof db) b && a.Fm && (a.remove(), a.Fm = q);
  4577. else {
  4578. a.Xf && this.map.zh(a.Xf);
  4579. if (a.mp) for (var b = 0, c = this.Eg.length; b < c; b++) a == this.Eg[b] && this.Eg.splice(b, 1);
  4580. else {
  4581. b = 0;
  4582. for (c = this.Wf.length; b < c; b++) a == this.Wf[b] && this.Wf.splice(b, 1)
  4583. }
  4584. a.remove()
  4585. }
  4586. },
  4587. Bg: function() {
  4588. for (var a = this.Km, b = 0, c = a.length; b < c; b++) a[b].remove();
  4589. delete this.Pb;
  4590. this.Km = [];
  4591. this.fj = this.wg = {};
  4592. this.Gx();
  4593. this.Tf()
  4594. },
  4595. Lc: function() {
  4596. var a = this;
  4597. a.ud && x.D.U(a.ud);
  4598. setTimeout(function() {
  4599. a.Tf();
  4600. a.map.dispatchEvent(new N("onzoomend"))
  4601. }, 10)
  4602. },
  4603. t4: s(),
  4604. Nt: function(a) {
  4605. var b = this.map.oa();
  4606. if (!this.map.Ub() && (a ? this.map.K.s_ = a : a = this.map.K.s_, a)) for (var c = p, c = "2" == z.ou ? [z.url.proto + z.url.domain.main_domain_cdn.other[0] + "/"] : [z.url.proto + z.url.domain.main_domain_cdn.baidu[0] + "/", z.url.proto + z.url.domain.main_domain_cdn.baidu[1] + "/", z.url.proto + z.url.domain.main_domain_cdn.baidu[2] + "/"], d = 0, e; e = this.Km[d]; d++) if (e.f_ == o) {
  4607. b.k.Zb = 18;
  4608. e.getTilesUrl = function(b, d) {
  4609. var e = b.x,
  4610. e = this.map.bb.xw(e, d).Fw,
  4611. k = b.y,
  4612. l = 1;
  4613. this.map.dE() && (l = 2);
  4614. l = "customimage/tile?&x=" + e + "&y=" + k + "&z=" + d + "&udt=20150629&scale=" + l;
  4615. l = a.styleStr ? l + ("&styles=" + encodeURIComponent(a.styleStr)) : l + ("&customid=" + a.style);
  4616. return c[Math.abs(e + k) % c.length] + l
  4617. };
  4618. break
  4619. }
  4620. }
  4621. });
  4622. function Ic(a, b, c, d, e) {
  4623. this.Nm = a;
  4624. this.position = c;
  4625. this.Qu = [];
  4626. this.name = a.XD(d, e);
  4627. this.info = d;
  4628. this.oJ = e.lt();
  4629. d = K("img");
  4630. xb(d);
  4631. d.cL = q;
  4632. var f = d.style,
  4633. a = a.map.oa();
  4634. f.position = "absolute";
  4635. f.border = "none";
  4636. f.width = a.k.Ob + "px";
  4637. f.height = a.k.Ob + "px";
  4638. f.left = c[0] + "px";
  4639. f.top = c[1] + "px";
  4640. f.maxWidth = "none";
  4641. this.Gb = d;
  4642. this.src = b;
  4643. Kc && (this.Gb.style.opacity = 0);
  4644. var g = this;
  4645. this.Gb.onload = function() {
  4646. z.BY.FQ();
  4647. g.loaded = o;
  4648. if (g.Nm) {
  4649. var a = g.Nm,
  4650. b = a.fj;
  4651. if (!b[g.name]) {
  4652. a.aF++;
  4653. b[g.name] = g
  4654. }
  4655. if (g.Gb && !yb(g.Gb) && e.Pb) {
  4656. e.Pb.appendChild(g.Gb);
  4657. if (x.ea.la <= 6 && x.ea.la > 0 && g.oJ) g.Gb.style.cssText = g.Gb.style.cssText + (';filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' + g.src + '",sizingMethod=scale);')
  4658. }
  4659. var c = a.aF - a.lV,
  4660. d;
  4661. for (d in b) {
  4662. if (c <= 0) break;
  4663. if (!a.wg[d]) {
  4664. b[d].Nm = p;
  4665. var f = b[d].Gb;
  4666. if (f && f.parentNode) {
  4667. f.parentNode.removeChild(f);
  4668. Jc(f)
  4669. }
  4670. f = p;
  4671. b[d].Gb = p;
  4672. delete b[d];
  4673. a.aF--;
  4674. c--
  4675. }
  4676. }
  4677. Kc && new sb({
  4678. Ic: 20,
  4679. duration: 200,
  4680. ua: function(a) {
  4681. if (g.Gb && g.Gb.style) g.Gb.style.opacity = a * 1
  4682. },
  4683. finish: function() {
  4684. g.Gb && g.Gb.style && delete g.Gb.style.opacity
  4685. }
  4686. });
  4687. Fc(g)
  4688. }
  4689. };
  4690. this.Gb.onerror = function() {
  4691. Fc(g);
  4692. if (g.Nm) {
  4693. var a = g.Nm.map.oa();
  4694. if (a.k.mD) {
  4695. g.error = o;
  4696. g.Gb.src = a.k.mD;
  4697. g.Gb && !yb(g.Gb) && e.Pb.appendChild(g.Gb)
  4698. }
  4699. }
  4700. };
  4701. d = p
  4702. }
  4703. function Hc(a, b) {
  4704. a.Qu.push(b)
  4705. }
  4706. Ic.prototype.$n = function() {
  4707. this.Gb.src = 0 < x.ea.la && 6 >= x.ea.la && this.oJ ? F.pa + "blank.gif" : "" !== this.src && this.Gb.src == this.src ? this.src + "&t = " + Date.now() : this.src
  4708. };
  4709. function Fc(a) {
  4710. for (var b = 0; b < a.Qu.length; b++) a.Qu[b]();
  4711. a.Qu.length = 0
  4712. }
  4713. function Jc(a) {
  4714. if (a) {
  4715. a.onload = a.onerror = p;
  4716. var b = a.attributes,
  4717. c, d, e;
  4718. if (b) {
  4719. d = b.length;
  4720. for (c = 0; c < d; c += 1) e = b[c].name, Wa(a[e]) && (a[e] = p)
  4721. }
  4722. if (b = a.children) {
  4723. d = b.length;
  4724. for (c = 0; c < d; c += 1) Jc(a.children[c])
  4725. }
  4726. }
  4727. }
  4728. function Gc(a, b) {
  4729. a.src = b;
  4730. a.$n()
  4731. }
  4732. var Kc = !x.ea.la || 8 < x.ea.la;
  4733. function Ec(a) {
  4734. this.uh = a || {};
  4735. this.IV = this.uh.copyright || p;
  4736. this.R_ = this.uh.transparentPng || q;
  4737. this.vw = this.uh.baseLayer || q;
  4738. this.zIndex = this.uh.zIndex || 0;
  4739. this.ba = Ec.tS++
  4740. }
  4741. Ec.tS = 0;
  4742. x.lang.ta(Ec, x.lang.Ba, "TileLayer");
  4743. x.extend(Ec.prototype, {
  4744. qa: function(a, b) {
  4745. this.vw && (this.zIndex = -100);
  4746. this.map = a;
  4747. if (!this.Pb) {
  4748. var c = K("div"),
  4749. d = c.style;
  4750. d.position = "absolute";
  4751. d.overflow = "visible";
  4752. d.zIndex = this.zIndex;
  4753. d.left = Math.ceil(-a.offsetX + a.width / 2) + "px";
  4754. d.top = Math.ceil(-a.offsetY + a.height / 2) + "px";
  4755. b.appendChild(c);
  4756. this.Pb = c
  4757. }
  4758. },
  4759. remove: function() {
  4760. this.Pb && this.Pb.parentNode && (this.Pb.innerHTML = "", this.Pb.parentNode.removeChild(this.Pb));
  4761. delete this.Pb
  4762. },
  4763. lt: t("R_"),
  4764. getTilesUrl: function(a, b) {
  4765. if (this.map.oa() !== Xa && this.map.oa() !== Ra) var c = this.map.bb.xw(a.x, b).Fw;
  4766. var d = "";
  4767. this.uh.tileUrlTemplate && (d = this.uh.tileUrlTemplate.replace(/\{X\}/, c), d = d.replace(/\{Y\}/, a.y), d = d.replace(/\{Z\}/, b));
  4768. return d
  4769. },
  4770. om: t("IV"),
  4771. oa: function() {
  4772. return this.Hb || La
  4773. }
  4774. });
  4775. function Lc(a, b) {
  4776. Hb(a) ? b = a || {} : (b = b || {}, b.databoxId = a);
  4777. this.k = {
  4778. xK: b.databoxId,
  4779. fh: b.geotableId,
  4780. Wm: b.q || "",
  4781. eu: b.tags || "",
  4782. filter: b.filter || "",
  4783. Gy: b.sortby || "",
  4784. q_: b.styleId || "",
  4785. Sl: b.ak || pa,
  4786. sw: b.age || 36E5,
  4787. zIndex: 11,
  4788. wY: "VectorCloudLayer",
  4789. Bk: b.hotspotName || "vector_md_" + (1E5 * Math.random()).toFixed(0),
  4790. SU: "LBS\u4e91\u9ebb\u70b9\u5c42"
  4791. };
  4792. this.mp = o;
  4793. Ec.call(this, this.k);
  4794. this.aW = z.Hc + "geosearch/detail/";
  4795. this.bW = z.Hc + "geosearch/v2/detail/";
  4796. this.ip = {}
  4797. }
  4798. x.ta(Lc, Ec, "VectorCloudLayer");
  4799. function Mc(a) {
  4800. a = a || {};
  4801. this.k = x.extend(a, {
  4802. zIndex: 1,
  4803. wY: "VectorTrafficLayer",
  4804. SU: "\u77e2\u91cf\u8def\u51b5\u5c42"
  4805. });
  4806. this.mp = o;
  4807. Ec.call(this, this.k);
  4808. this.N_ = z.url.proto + z.url.domain.vector_traffic + "/gvd/?qt=lgvd&styles=pl&layers=tf";
  4809. this.Db = {
  4810. "0": [2, 1354709503, 2, 2, 0, [], 0, 0],
  4811. 1: [2, 1354709503, 3, 2, 0, [], 0, 0],
  4812. 10: [2, -231722753, 2, 2, 0, [], 0, 0],
  4813. 11: [2, -231722753, 3, 2, 0, [], 0, 0],
  4814. 12: [2, -231722753, 4, 2, 0, [], 0, 0],
  4815. 13: [2, -231722753, 5, 2, 0, [], 0, 0],
  4816. 14: [2, -231722753, 6, 2, 0, [], 0, 0],
  4817. 15: [2, -1, 4, 0, 0, [], 0, 0],
  4818. 16: [2, -1, 5.5, 0, 0, [], 0, 0],
  4819. 17: [2, -1, 7, 0, 0, [], 0, 0],
  4820. 18: [2, -1, 8.5, 0, 0, [], 0, 0],
  4821. 19: [2, -1, 10, 0, 0, [], 0, 0],
  4822. 2: [2, 1354709503, 4, 2, 0, [], 0, 0],
  4823. 3: [2, 1354709503, 5, 2, 0, [], 0, 0],
  4824. 4: [2, 1354709503, 6, 2, 0, [], 0, 0],
  4825. 5: [2, -6350337, 2, 2, 0, [], 0, 0],
  4826. 6: [2, -6350337, 3, 2, 0, [], 0, 0],
  4827. 7: [2, -6350337, 4, 2, 0, [], 0, 0],
  4828. 8: [2, -6350337, 5, 2, 0, [], 0, 0],
  4829. 9: [2, -6350337, 6, 2, 0, [], 0, 0]
  4830. }
  4831. }
  4832. x.ta(Mc, Ec, "VectorTrafficLayer");
  4833. function db(a) {
  4834. this.mV = [z.url.proto + z.url.domain.TILE_ONLINE_URLS[1] + "/gvd/?", z.url.proto + z.url.domain.TILE_ONLINE_URLS[2] + "/gvd/?", z.url.proto + z.url.domain.TILE_ONLINE_URLS[3] + "/gvd/?", z.url.proto + z.url.domain.TILE_ONLINE_URLS[4] + "/gvd/?"];
  4835. this.k = {
  4836. ZK: q
  4837. };
  4838. for (var b in a) this.k[b] = a[b];
  4839. this.Yh = this.Ih = this.Wa = this.B = this.C = p;
  4840. this.nM = 0;
  4841. var c = this;
  4842. I.load("vector", function() {
  4843. c.ye()
  4844. })
  4845. }
  4846. x.extend(db.prototype, {
  4847. qa: function(a, b) {
  4848. this.C = a;
  4849. this.B = b
  4850. },
  4851. remove: function() {
  4852. this.B = this.C = p
  4853. }
  4854. });
  4855. function Nc(a) {
  4856. Ec.call(this, a);
  4857. this.k = a || {};
  4858. this.iM = o;
  4859. this.Xf = new Mc;
  4860. this.Xf.My = this;
  4861. if (this.k.predictDate) {
  4862. if (1 > this.k.predictDate.weekday || 7 < this.k.predictDate.weekday) this.k.predictDate = 1;
  4863. if (0 > this.k.predictDate.hour || 23 < this.k.predictDate.hour) this.k.predictDate.hour = 0
  4864. }
  4865. this.wU = z.url.proto + z.url.domain.traffic + "/traffic/"
  4866. }
  4867. Nc.prototype = new Ec;
  4868. Nc.prototype.qa = function(a, b) {
  4869. Ec.prototype.qa.call(this, a, b);
  4870. this.C = a
  4871. };
  4872. Nc.prototype.lt = ca(o);
  4873. Nc.prototype.getTilesUrl = function(a, b) {
  4874. var c = "";
  4875. this.k.predictDate ? c = "HistoryService?day=" + (this.k.predictDate.weekday - 1) + "&hour=" + this.k.predictDate.hour + "&t=" + (new Date).getTime() + "&" : (c = "TrafficTileService?time=" + (new Date).getTime() + "&", c += "label=web2D&v=016&");
  4876. return (this.wU + c + "level=" + b + "&x=" + a.x + "&y=" + a.y).replace(/-(\d+)/gi, "M$1")
  4877. };
  4878. var Oc = [z.url.proto + z.url.domain.TILES_YUN_HOST[0] + "/georender/gss", z.url.proto + z.url.domain.TILES_YUN_HOST[1] + "/georender/gss", z.url.proto + z.url.domain.TILES_YUN_HOST[2] + "/georender/gss", z.url.proto + z.url.domain.TILES_YUN_HOST[3] + "/georender/gss"],
  4879. Pc = z.url.proto + z.url.domain.main_domain_nocdn.baidu + "/style/poi/rangestyle",
  4880. Qc = 100;
  4881. function nb(a, b) {
  4882. Ec.call(this);
  4883. var c = this;
  4884. this.iM = o;
  4885. var d = q;
  4886. try {
  4887. document.createElement("canvas").getContext("2d"), d = o
  4888. } catch (e) {
  4889. d = q
  4890. }
  4891. d && (this.Xf = new Lc(a, b), this.Xf.My = this);
  4892. Hb(a) ? b = a || {} : (c.Pn = a, b = b || {});
  4893. b.geotableId && (c.xf = b.geotableId);
  4894. b.databoxId && (c.Pn = b.databoxId);
  4895. d = z.Hc + "geosearch";
  4896. c.oc = {
  4897. qN: b.pointDensity || Qc,
  4898. VX: d + "/detail/",
  4899. WX: d + "/v2/detail/",
  4900. sw: b.age || 36E5,
  4901. Wm: b.q || "",
  4902. A_: "png",
  4903. P2: [5, 5, 5, 5],
  4904. vY: {
  4905. backgroundColor: "#FFFFD5",
  4906. borderColor: "#808080"
  4907. },
  4908. Sl: b.ak || pa,
  4909. eu: b.tags || "",
  4910. filter: b.filter || "",
  4911. Gy: b.sortby || "",
  4912. Bk: b.hotspotName || "tile_md_" + (1E5 * Math.random()).toFixed(0),
  4913. PF: o
  4914. };
  4915. I.load("clayer", function() {
  4916. c.Od()
  4917. })
  4918. }
  4919. nb.prototype = new Ec;
  4920. nb.prototype.qa = function(a, b) {
  4921. Ec.prototype.qa.call(this, a, b);
  4922. this.C = a
  4923. };
  4924. nb.prototype.getTilesUrl = function(a, b) {
  4925. var c = a.x,
  4926. d = a.y,
  4927. e = this.oc,
  4928. c = Oc[Math.abs(c + d) % Oc.length] + "/image?grids=" + c + "_" + d + "_" + b + "&q=" + e.Wm + "&tags=" + e.eu + "&filter=" + e.filter + "&sortby=" + e.Gy + "&ak=" + this.oc.Sl + "&age=" + e.sw + "&page_size=" + e.qN + "&format=" + e.A_;
  4929. e.PF || (e = (1E5 * Math.random()).toFixed(0), c += "&timeStamp=" + e);
  4930. this.xf ? c += "&geotable_id=" + this.xf : this.Pn && (c += "&databox_id=" + this.Pn);
  4931. return c
  4932. };
  4933. nb.prototype.enableUseCache = function() {
  4934. this.oc.PF = o
  4935. };
  4936. nb.prototype.disableUseCache = function() {
  4937. this.oc.PF = q
  4938. };
  4939. nb.UT = /^point\(|\)$/ig;
  4940. nb.VT = /\s+/;
  4941. nb.XT = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;
  4942. function Rc(a, b, c) {
  4943. this.af = a;
  4944. this.jr = b instanceof Ec ? [b] : b.slice(0);
  4945. c = c || {};
  4946. this.k = {
  4947. B_: c.tips || "",
  4948. AE: "",
  4949. fc: c.minZoom || 3,
  4950. Zb: c.maxZoom || 18,
  4951. O2: c.minZoom || 3,
  4952. N2: c.maxZoom || 18,
  4953. Ob: 256,
  4954. GF: c.textColor || "black",
  4955. mD: c.errorImageUrl || "",
  4956. we: c.projection || new R
  4957. };
  4958. 1 <= this.jr.length && (this.jr[0].vw = o);
  4959. x.extend(this.k, c)
  4960. }
  4961. x.extend(Rc.prototype, {
  4962. getName: t("af"),
  4963. Ys: function() {
  4964. return this.k.B_
  4965. },
  4966. t2: function() {
  4967. return this.k.AE
  4968. },
  4969. IX: function() {
  4970. return this.jr[0]
  4971. },
  4972. H2: t("jr"),
  4973. JX: function() {
  4974. return this.k.Ob
  4975. },
  4976. Xo: function() {
  4977. return this.k.fc
  4978. },
  4979. qm: function() {
  4980. return this.k.Zb
  4981. },
  4982. setMaxZoom: function(a) {
  4983. this.k.Zb = a
  4984. },
  4985. wm: function() {
  4986. return this.k.GF
  4987. },
  4988. bp: function() {
  4989. return this.k.we
  4990. },
  4991. k2: function() {
  4992. return this.k.mD
  4993. },
  4994. JX: function() {
  4995. return this.k.Ob
  4996. },
  4997. Bc: function(a) {
  4998. return Math.pow(2, 18 - a)
  4999. },
  5000. bE: function(a) {
  5001. return this.Bc(a) * this.k.Ob
  5002. }
  5003. });
  5004. var Sc = [z.url.proto + z.url.domain.TILE_BASE_URLS[0] + "/it/", z.url.proto + z.url.domain.TILE_BASE_URLS[1] + "/it/", z.url.proto + z.url.domain.TILE_BASE_URLS[2] + "/it/", z.url.proto + z.url.domain.TILE_BASE_URLS[3] + "/it/", z.url.proto + z.url.domain.TILE_BASE_URLS[4] + "/it/"],
  5005. Tc = [z.url.proto + z.url.domain.TILE_ONLINE_URLS[0] + "/tile/", z.url.proto + z.url.domain.TILE_ONLINE_URLS[1] + "/tile/", z.url.proto + z.url.domain.TILE_ONLINE_URLS[2] + "/tile/", z.url.proto + z.url.domain.TILE_ONLINE_URLS[3] + "/tile/", z.url.proto + z.url.domain.TILE_ONLINE_URLS[4] + "/tile/"],
  5006. Uc = {
  5007. dark: "dl",
  5008. light: "ll",
  5009. normal: "pl"
  5010. },
  5011. Vc = new Ec;
  5012. Vc.f_ = o;
  5013. Vc.getTilesUrl = function(a, b, c) {
  5014. var d = a.x;
  5015. a = a.y;
  5016. e = 1;
  5017. tdir = bdmapcfg.tiles_dir.length>0?bdmapcfg.tiles_dir:bdmapcfg.home + "tiles";
  5018. return tdir + "/" + b + "/" + d + "/" + a + bdmapcfg.imgext; /*guoguo 使用本地的瓦片 */
  5019. /*
  5020. c = Uc[c];
  5021. this.map.dE() && (e = 2);
  5022. d = this.map.bb.xw(d, b).Fw;
  5023. return (Tc[Math.abs(d + a) % Tc.length] + "?qt=tile&x=" + (d + "").replace(/-/gi, "M") + "&y=" + (a + "").replace(/-/gi, "M") + "&z=" + b + "&styles=" + c + "&scaler=" + e + (6 == x.ea.la ? "&color_dep=32&colors=50" : "") + "&udt=20160730").replace(/-(\d+)/gi, "M$1")*/
  5024. };
  5025. var La = new Rc("\u5730\u56fe", Vc, {
  5026. tips: "\u663e\u793a\u666e\u901a\u5730\u56fe",
  5027. maxZoom: 19
  5028. }),
  5029. Wc = new Ec;
  5030. Wc.lO = [z.url.proto + z.url.domain.TIlE_PERSPECT_URLS[0] + "/resource/mappic/", z.url.proto + z.url.domain.TIlE_PERSPECT_URLS[1] + "/resource/mappic/", z.url.proto + z.url.domain.TIlE_PERSPECT_URLS[2] + "/resource/mappic/", z.url.proto + z.url.domain.TIlE_PERSPECT_URLS[3] + "/resource/mappic/"];
  5031. Wc.getTilesUrl = function(a, b) {
  5032. var c = a.x,
  5033. d = a.y,
  5034. e = 256 * Math.pow(2, 20 - b),
  5035. d = Math.round((9998336 - e * d) / e) - 1;
  5036. return url = this.lO[Math.abs(c + d) % this.lO.length] + this.map.Vb + "/" + this.map.Cw + "/3/lv" + (21 - b) + "/" + c + "," + d + ".jpg"
  5037. };
  5038. var Oa = new Rc("\u4e09\u7ef4", Wc, {
  5039. tips: "\u663e\u793a\u4e09\u7ef4\u5730\u56fe",
  5040. minZoom: 15,
  5041. maxZoom: 20,
  5042. textColor: "white",
  5043. projection: new hb
  5044. });
  5045. Oa.Bc = function(a) {
  5046. return Math.pow(2, 20 - a)
  5047. };
  5048. Oa.tk = function(a) {
  5049. if (!a) return "";
  5050. var b = F.gC,
  5051. c;
  5052. for (c in b) if (-1 < a.search(c)) return b[c].iy;
  5053. return ""
  5054. };
  5055. Oa.jL = function(a) {
  5056. return {
  5057. bj: 2,
  5058. gz: 1,
  5059. sz: 14,
  5060. sh: 4
  5061. }[a]
  5062. };
  5063. var Xc = new Ec({
  5064. vw: o
  5065. });
  5066. Xc.getTilesUrl = function(a, b) {
  5067. var c = a.x,
  5068. d = a.y;
  5069. return (Sc[Math.abs(c + d) % Sc.length] + "u=x=" + c + ";y=" + d + ";z=" + b + ";v=009;type=sate&fm=46&udt=20141015").replace(/-(\d+)/gi, "M$1")
  5070. };
  5071. var Xa = new Rc("\u536b\u661f", Xc, {
  5072. tips: "\u663e\u793a\u536b\u661f\u5f71\u50cf",
  5073. minZoom: 1,
  5074. maxZoom: 19,
  5075. textColor: "white"
  5076. }),
  5077. Yc = new Ec({
  5078. transparentPng: o
  5079. });
  5080. Yc.getTilesUrl = function(a, b) {
  5081. var c = a.x,
  5082. d = a.y;
  5083. return (Tc[Math.abs(c + d) % Tc.length] + "?qt=tile&x=" + (c + "").replace(/-/gi, "M") + "&y=" + (d + "").replace(/-/gi, "M") + "&z=" + b + "&styles=sl" + (6 == x.ea.la ? "&color_dep=32&colors=50" : "") + "&udt=20141015").replace(/-(\d+)/gi, "M$1")
  5084. };
  5085. var Ra = new Rc("\u6df7\u5408", [Xc, Yc], {
  5086. tips: "\u663e\u793a\u5e26\u6709\u8857\u9053\u7684\u536b\u661f\u5f71\u50cf",
  5087. labelText: "\u8def\u7f51",
  5088. minZoom: 1,
  5089. maxZoom: 19,
  5090. textColor: "white"
  5091. });
  5092. var Zc = 1,
  5093. U = {};
  5094. window.n0 = U;
  5095. function V(a, b) {
  5096. x.lang.Ba.call(this);
  5097. this.zd = {};
  5098. this.gn(a);
  5099. b = b || {};
  5100. b.ka = b.renderOptions || {};
  5101. this.k = {
  5102. ka: {
  5103. Ga: b.ka.panel || p,
  5104. map: b.ka.map || p,
  5105. Zg: b.ka.autoViewport || o,
  5106. It: b.ka.selectFirstResult,
  5107. bt: b.ka.highlightMode,
  5108. Xb: b.ka.enableDragging || q
  5109. },
  5110. ay: b.onSearchComplete || s(),
  5111. cN: b.onMarkersSet || s(),
  5112. bN: b.onInfoHtmlSet || s(),
  5113. eN: b.onResultsHtmlSet || s(),
  5114. aN: b.onGetBusListComplete || s(),
  5115. $M: b.onGetBusLineComplete || s(),
  5116. YM: b.onBusListHtmlSet || s(),
  5117. XM: b.onBusLineHtmlSet || s(),
  5118. NE: b.onPolylinesSet || s(),
  5119. Ap: b.reqFrom || ""
  5120. };
  5121. this.k.ka.Zg = "undefined" != typeof b && "undefined" != typeof b.renderOptions && "undefined" != typeof b.renderOptions.autoViewport ? b.renderOptions.autoViewport : o;
  5122. this.k.ka.Ga = x.Ec(this.k.ka.Ga)
  5123. }
  5124. x.ta(V, x.lang.Ba);
  5125. x.extend(V.prototype, {
  5126. getResults: function() {
  5127. return this.Gc ? this.Ki : this.ja
  5128. },
  5129. enableAutoViewport: function() {
  5130. this.k.ka.Zg = o
  5131. },
  5132. disableAutoViewport: function() {
  5133. this.k.ka.Zg = q
  5134. },
  5135. gn: function(a) {
  5136. a && (this.zd.src = a)
  5137. },
  5138. wF: function(a) {
  5139. this.k.ay = a || s()
  5140. },
  5141. setMarkersSetCallback: function(a) {
  5142. this.k.cN = a || s()
  5143. },
  5144. setPolylinesSetCallback: function(a) {
  5145. this.k.NE = a || s()
  5146. },
  5147. setInfoHtmlSetCallback: function(a) {
  5148. this.k.bN = a || s()
  5149. },
  5150. setResultsHtmlSetCallback: function(a) {
  5151. this.k.eN = a || s()
  5152. },
  5153. um: t("Bd")
  5154. });
  5155. var $c = {
  5156. tG: z.Hc,
  5157. ab: function(a, b, c, d, e) {
  5158. var f = (1E5 * Math.random()).toFixed(0);
  5159. z._rd["_cbk" + f] = function(b) {
  5160. b.result && b.result.error && 202 === b.result.error ? alert("\u8be5AK\u56e0\u4e3a\u6076\u610f\u884c\u4e3a\u5df2\u7ecf\u88ab\u7ba1\u7406\u5458\u5c01\u7981\uff01") : (c = c || {}, a && a(b, c), delete z._rd["_cbk" + f])
  5161. };
  5162. d = d || "";
  5163. b = c && c.FO ? Fb(b, encodeURI) : Fb(b, encodeURIComponent);
  5164. this.tG = c && c.Fs ? c.AN ? c.AN : z.qp : z.Hc;
  5165. d = this.tG + d + "?" + b + "&ie=utf-8&oue=1&fromproduct=jsapi";
  5166. e || (d += "&res=api");
  5167. d = d + ("&callback=BMap._rd._cbk" + f) + ("&ak=" + pa);
  5168. Qb(d)
  5169. }
  5170. };
  5171. window.u0 = $c;
  5172. z._rd = {};
  5173. var P = {};
  5174. window.t0 = P;
  5175. P.wN = function(a) {
  5176. a = a.replace(/<\/?[^>]*>/g, "");
  5177. return a = a.replace(/[ | ]* /g, " ")
  5178. };
  5179. P.bZ = function(a) {
  5180. return a.replace(/([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, "$1,$2;")
  5181. };
  5182. P.cZ = function(a, b) {
  5183. return a.replace(RegExp("(((-?\\d+)(\\.\\d+)?),((-?\\d+)(\\.\\d+)?);)(((-?\\d+)(\\.\\d+)?),((-?\\d+)(\\.\\d+)?);){" + b + "}", "ig"), "$1")
  5184. };
  5185. var ad = 2,
  5186. bd = 3,
  5187. dd = 0,
  5188. ed = "bt",
  5189. fd = "nav",
  5190. gd = "walk",
  5191. hd = "bl",
  5192. id = "bsl",
  5193. jd = 14,
  5194. kd = 15,
  5195. ld = 18,
  5196. md = 20,
  5197. nd = 31;
  5198. z.I = window.Instance = x.lang.Mc;
  5199. function od(a, b, c) {
  5200. x.lang.Ba.call(this);
  5201. if (a) {
  5202. this.Ua = "object" == typeof a ? a : x.Ec(a);
  5203. this.page = 1;
  5204. this.Id = 100;
  5205. this.SJ = "pg";
  5206. this.Uf = 4;
  5207. this.$J = b;
  5208. this.update = o;
  5209. a = {
  5210. page: 1,
  5211. Ue: 100,
  5212. Id: 100,
  5213. Uf: 4,
  5214. SJ: "pg",
  5215. update: o
  5216. };
  5217. c || (c = a);
  5218. for (var d in c)"undefined" != typeof c[d] && (this[d] = c[d]);
  5219. this.ua()
  5220. }
  5221. }
  5222. x.extend(od.prototype, {
  5223. ua: function() {
  5224. this.qa()
  5225. },
  5226. qa: function() {
  5227. this.uV();
  5228. this.Ua.innerHTML = this.QV()
  5229. },
  5230. uV: function() {
  5231. isNaN(parseInt(this.page)) && (this.page = 1);
  5232. isNaN(parseInt(this.Id)) && (this.Id = 1);
  5233. 1 > this.page && (this.page = 1);
  5234. 1 > this.Id && (this.Id = 1);
  5235. this.page > this.Id && (this.page = this.Id);
  5236. this.page = parseInt(this.page);
  5237. this.Id = parseInt(this.Id)
  5238. },
  5239. y2: function() {
  5240. location.search.match(RegExp("[?&]?" + this.SJ + "=([^&]*)[&$]?", "gi"));
  5241. this.page = RegExp.$1
  5242. },
  5243. QV: function() {
  5244. var a = [],
  5245. b = this.page - 1,
  5246. c = this.page + 1;
  5247. a.push('<p style="margin:0;padding:0;white-space:nowrap">');
  5248. if (!(1 > b)) {
  5249. if (this.page >= this.Uf) {
  5250. var d;
  5251. a.push('<span style="margin-right:3px"><a style="color:#7777cc" href="javascript:void(0)" onclick="{temp1}">\u9996\u9875</a></span>'.replace("{temp1}", "BMap.I('" + this.ba + "').toPage(1);"))
  5252. }
  5253. a.push('<span style="margin-right:3px"><a style="color:#7777cc" href="javascript:void(0)" onclick="{temp2}">\u4e0a\u4e00\u9875</a></span>'.replace("{temp2}", "BMap.I('" + this.ba + "').toPage(" + b + ");"))
  5254. }
  5255. if (this.page < this.Uf) d = 0 == this.page % this.Uf ? this.page - this.Uf - 1 : this.page - this.page % this.Uf + 1, b = d + this.Uf - 1;
  5256. else {
  5257. d = Math.floor(this.Uf / 2);
  5258. var e = this.Uf % 2 - 1,
  5259. b = this.Id > this.page + d ? this.page + d : this.Id;
  5260. d = this.page - d - e
  5261. }
  5262. this.page > this.Id - this.Uf && this.page >= this.Uf && (d = this.Id - this.Uf + 1, b = this.Id);
  5263. for (e = d; e <= b; e++) 0 < e && (e == this.page ? a.push('<span style="margin-right:3px">' + e + "</span>") : 1 <= e && e <= this.Id && (d = '<span><a style="color:#7777cc;margin-right:3px" href="javascript:void(0)" onclick="{temp3}">[' + e + "]</a></span>", a.push(d.replace("{temp3}", "BMap.I('" + this.ba + "').toPage(" + e + ");"))));
  5264. c > this.Id || a.push('<span><a style="color:#7777cc" href="javascript:void(0)" onclick="{temp4}">\u4e0b\u4e00\u9875</a></span>'.replace("{temp4}", "BMap.I('" + this.ba + "').toPage(" + c + ");"));
  5265. a.push("</p>");
  5266. return a.join("")
  5267. },
  5268. toPage: function(a) {
  5269. a = a ? a : 1;
  5270. "function" == typeof this.$J && (this.$J(a), this.page = a);
  5271. this.update && this.ua()
  5272. }
  5273. });
  5274. function bb(a, b) {
  5275. V.call(this, a, b);
  5276. b = b || {};
  5277. b.renderOptions = b.renderOptions || {};
  5278. this.Kp(b.pageCapacity);
  5279. "undefined" != typeof b.renderOptions.selectFirstResult && !b.renderOptions.selectFirstResult ? this.LC() : this.hD();
  5280. this.va = [];
  5281. this.sf = [];
  5282. this.jb = -1;
  5283. this.Oa = [];
  5284. var c = this;
  5285. I.load("local", function() {
  5286. c.Bz()
  5287. }, o)
  5288. }
  5289. x.ta(bb, V, "LocalSearch");
  5290. bb.aq = 10;
  5291. bb.r0 = 1;
  5292. bb.Cn = 100;
  5293. bb.jG = 2E3;
  5294. bb.qG = 1E5;
  5295. x.extend(bb.prototype, {
  5296. search: function(a, b) {
  5297. this.Oa.push({
  5298. method: "search",
  5299. arguments: [a, b]
  5300. })
  5301. },
  5302. bn: function(a, b, c) {
  5303. this.Oa.push({
  5304. method: "searchInBounds",
  5305. arguments: [a, b, c]
  5306. })
  5307. },
  5308. Gp: function(a, b, c, d) {
  5309. this.Oa.push({
  5310. method: "searchNearby",
  5311. arguments: [a, b, c, d]
  5312. })
  5313. },
  5314. Me: function() {
  5315. delete this.Ea;
  5316. delete this.Bd;
  5317. delete this.ja;
  5318. delete this.ga;
  5319. this.jb = -1;
  5320. this.rb();
  5321. this.k.ka.Ga && (this.k.ka.Ga.innerHTML = "")
  5322. },
  5323. zm: s(),
  5324. hD: function() {
  5325. this.k.ka.It = o
  5326. },
  5327. LC: function() {
  5328. this.k.ka.It = q
  5329. },
  5330. Kp: function(a) {
  5331. this.k.Fk = "number" == typeof a && !isNaN(a) ? 1 > a ? bb.aq : a > bb.Cn ? bb.aq : a : bb.aq
  5332. },
  5333. lf: function() {
  5334. return this.k.Fk
  5335. },
  5336. toString: ca("LocalSearch")
  5337. });
  5338. var pd = bb.prototype;
  5339. S(pd, {
  5340. clearResults: pd.Me,
  5341. setPageCapacity: pd.Kp,
  5342. getPageCapacity: pd.lf,
  5343. gotoPage: pd.zm,
  5344. searchNearby: pd.Gp,
  5345. searchInBounds: pd.bn,
  5346. search: pd.search,
  5347. enableFirstResultSelection: pd.hD,
  5348. disableFirstResultSelection: pd.LC
  5349. });
  5350. function qd(a, b) {
  5351. V.call(this, a, b)
  5352. }
  5353. x.ta(qd, V, "BaseRoute");
  5354. x.extend(qd.prototype, {
  5355. Me: s()
  5356. });
  5357. function rd(a, b) {
  5358. V.call(this, a, b);
  5359. b = b || {};
  5360. this.Qt(b.policy);
  5361. this.Kp(b.pageCapacity);
  5362. this.vd = ed;
  5363. this.Bu = jd;
  5364. this.Cu = Zc;
  5365. this.va = [];
  5366. this.jb = -1;
  5367. this.k.fd = b.enableTraffic || q;
  5368. this.Oa = [];
  5369. var c = this;
  5370. I.load("route", function() {
  5371. c.Od()
  5372. })
  5373. }
  5374. rd.Cn = 100;
  5375. rd.kP = [0, 1, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 1, 1, 1];
  5376. x.ta(rd, qd, "TransitRoute");
  5377. x.extend(rd.prototype, {
  5378. Qt: function(a) {
  5379. this.k.ad = 0 <= a && 4 >= a ? a : 0
  5380. },
  5381. BA: function(a, b) {
  5382. this.Oa.push({
  5383. method: "_internalSearch",
  5384. arguments: [a, b]
  5385. })
  5386. },
  5387. search: function(a, b) {
  5388. this.Oa.push({
  5389. method: "search",
  5390. arguments: [a, b]
  5391. })
  5392. },
  5393. Kp: function(a) {
  5394. if ("string" === typeof a && (a = parseInt(a, 10), isNaN(a))) {
  5395. this.k.Fk = rd.Cn;
  5396. return
  5397. }
  5398. this.k.Fk = "number" !== typeof a ? rd.Cn : 1 <= a && a <= rd.Cn ? Math.round(a) : rd.Cn
  5399. },
  5400. toString: ca("TransitRoute"),
  5401. iU: function(a) {
  5402. return a.replace(/\(.*\)/, "")
  5403. }
  5404. });
  5405. var sd = rd.prototype;
  5406. S(sd, {
  5407. _internalSearch: sd.BA
  5408. });
  5409. function td(a, b) {
  5410. V.call(this, a, b);
  5411. this.va = [];
  5412. this.jb = -1;
  5413. this.Oa = [];
  5414. var c = this,
  5415. d = this.k.ka;
  5416. 1 !== d.bt && 2 !== d.bt && (d.bt = 1);
  5417. this.Vz = this.k.ka.Xb ? o : q;
  5418. I.load("route", function() {
  5419. c.Od()
  5420. });
  5421. this.mE && this.mE()
  5422. }
  5423. td.xP = " \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(" ");
  5424. x.ta(td, qd, "DWRoute");
  5425. x.extend(td.prototype, {
  5426. search: function(a, b, c) {
  5427. this.Oa.push({
  5428. method: "search",
  5429. arguments: [a, b, c]
  5430. })
  5431. }
  5432. });
  5433. function ud(a, b) {
  5434. td.call(this, a, b);
  5435. b = b || {};
  5436. this.k.fd = b.enableTraffic || q;
  5437. this.Qt(b.policy);
  5438. this.vd = fd;
  5439. this.Bu = md;
  5440. this.Cu = bd
  5441. }
  5442. x.ta(ud, td, "DrivingRoute");
  5443. ud.prototype.Qt = function(a) {
  5444. this.k.ad = 0 <= a && 2 >= a ? a : 0
  5445. };
  5446. function vd(a, b) {
  5447. td.call(this, a, b);
  5448. this.vd = gd;
  5449. this.Bu = nd;
  5450. this.Cu = ad;
  5451. this.Vz = q
  5452. }
  5453. x.ta(vd, td, "WalkingRoute");
  5454. function wd(a, b) {
  5455. x.lang.Ba.call(this);
  5456. this.Sf = [];
  5457. this.Tm = [];
  5458. this.k = b;
  5459. this.dc = a;
  5460. this.map = this.k.ka.map || p;
  5461. this.ty = this.k.ty;
  5462. this.zb = p;
  5463. this.hj = 0;
  5464. this.Hy = "";
  5465. this.$d = 1;
  5466. this.$w = "";
  5467. this.Bp = [0, 0, 0, 0, 0, 0, 0];
  5468. this.CE = [];
  5469. this.fs = [1, 1, 1, 1, 1, 1, 1];
  5470. this.tO = [1, 1, 1, 1, 1, 1, 1];
  5471. this.Gt = [0, 0, 0, 0, 0, 0, 0];
  5472. this.Cp = [0, 0, 0, 0, 0, 0, 0];
  5473. this.Ma = [{
  5474. o: "",
  5475. Lf: 0,
  5476. tn: 0,
  5477. x: 0,
  5478. y: 0,
  5479. Ac: -1
  5480. }, {
  5481. o: "",
  5482. Lf: 0,
  5483. tn: 0,
  5484. x: 0,
  5485. y: 0,
  5486. Ac: -1
  5487. }, {
  5488. o: "",
  5489. Lf: 0,
  5490. tn: 0,
  5491. x: 0,
  5492. y: 0,
  5493. Ac: -1
  5494. }, {
  5495. o: "",
  5496. Lf: 0,
  5497. tn: 0,
  5498. x: 0,
  5499. y: 0,
  5500. Ac: -1
  5501. }, {
  5502. o: "",
  5503. Lf: 0,
  5504. tn: 0,
  5505. x: 0,
  5506. y: 0,
  5507. Ac: -1
  5508. }, {
  5509. o: "",
  5510. Lf: 0,
  5511. tn: 0,
  5512. x: 0,
  5513. y: 0,
  5514. Ac: -1
  5515. }, {
  5516. o: "",
  5517. Lf: 0,
  5518. tn: 0,
  5519. x: 0,
  5520. y: 0,
  5521. Ac: -1
  5522. }];
  5523. this.fi = -1;
  5524. this.gu = [];
  5525. this.hu = [];
  5526. I.load("route", s())
  5527. }
  5528. x.lang.ta(wd, x.lang.Ba, "RouteAddr");
  5529. var xd = navigator.userAgent;
  5530. /ipad|iphone|ipod|iph/i.test(xd);
  5531. var yd = /android/i.test(xd);
  5532. function zd(a) {
  5533. this.uh = a || {}
  5534. }
  5535. x.extend(zd.prototype, {
  5536. GN: function(a, b, c) {
  5537. var d = this;
  5538. I.load("route", function() {
  5539. d.Od(a, b, c)
  5540. })
  5541. }
  5542. });
  5543. function Ad(a) {
  5544. this.k = {};
  5545. x.extend(this.k, a);
  5546. this.Oa = [];
  5547. var b = this;
  5548. I.load("othersearch", function() {
  5549. b.Od()
  5550. })
  5551. }
  5552. x.ta(Ad, x.lang.Ba, "Geocoder");
  5553. x.extend(Ad.prototype, {
  5554. tm: function(a, b, c) {
  5555. this.Oa.push({
  5556. method: "getPoint",
  5557. arguments: [a, b, c]
  5558. })
  5559. },
  5560. Rs: function(a, b, c) {
  5561. this.Oa.push({
  5562. method: "getLocation",
  5563. arguments: [a, b, c]
  5564. })
  5565. },
  5566. toString: ca("Geocoder")
  5567. });
  5568. var Bd = Ad.prototype;
  5569. S(Bd, {
  5570. getPoint: Bd.tm,
  5571. getLocation: Bd.Rs
  5572. });
  5573. function Geolocation(a) {
  5574. a = a || {};
  5575. this.K = {
  5576. timeout: a.timeout || 1E4,
  5577. maximumAge: a.maximumAge || 6E5
  5578. };
  5579. this.ke = [];
  5580. var b = this;
  5581. I.load("othersearch", function() {
  5582. for (var a = 0, d; d = b.ke[a]; a++) b[d.method].apply(b, d.arguments)
  5583. })
  5584. }
  5585. x.extend(Geolocation.prototype, {
  5586. getCurrentPosition: function(a, b) {
  5587. this.ke.push({
  5588. method: "getCurrentPosition",
  5589. arguments: arguments
  5590. })
  5591. },
  5592. getStatus: ca(2)
  5593. });
  5594. function Ed(a) {
  5595. a = a || {};
  5596. a.ka = a.renderOptions || {};
  5597. this.k = {
  5598. ka: {
  5599. map: a.ka.map || p
  5600. }
  5601. };
  5602. this.Oa = [];
  5603. var b = this;
  5604. I.load("othersearch", function() {
  5605. b.Od()
  5606. })
  5607. }
  5608. x.ta(Ed, x.lang.Ba, "LocalCity");
  5609. x.extend(Ed.prototype, {
  5610. get: function(a) {
  5611. this.Oa.push({
  5612. method: "get",
  5613. arguments: [a]
  5614. })
  5615. },
  5616. toString: ca("LocalCity")
  5617. });
  5618. function Fd() {
  5619. this.Oa = [];
  5620. var a = this;
  5621. I.load("othersearch", function() {
  5622. a.Od()
  5623. })
  5624. }
  5625. x.ta(Fd, x.lang.Ba, "Boundary");
  5626. x.extend(Fd.prototype, {
  5627. get: function(a, b) {
  5628. this.Oa.push({
  5629. method: "get",
  5630. arguments: [a, b]
  5631. })
  5632. },
  5633. toString: ca("Boundary")
  5634. });
  5635. function Gd(a, b) {
  5636. V.call(this, a, b);
  5637. this.uP = hd;
  5638. this.wP = kd;
  5639. this.tP = id;
  5640. this.vP = ld;
  5641. this.Oa = [];
  5642. var c = this;
  5643. I.load("buslinesearch", function() {
  5644. c.Od()
  5645. })
  5646. }
  5647. Gd.mv = F.pa + "iw_plus.gif";
  5648. Gd.zS = F.pa + "iw_minus.gif";
  5649. Gd.sU = F.pa + "stop_icon.png";
  5650. x.ta(Gd, V);
  5651. x.extend(Gd.prototype, {
  5652. getBusList: function(a) {
  5653. this.Oa.push({
  5654. method: "getBusList",
  5655. arguments: [a]
  5656. })
  5657. },
  5658. getBusLine: function(a) {
  5659. this.Oa.push({
  5660. method: "getBusLine",
  5661. arguments: [a]
  5662. })
  5663. },
  5664. setGetBusListCompleteCallback: function(a) {
  5665. this.k.aN = a || s()
  5666. },
  5667. setGetBusLineCompleteCallback: function(a) {
  5668. this.k.$M = a || s()
  5669. },
  5670. setBusListHtmlSetCallback: function(a) {
  5671. this.k.YM = a || s()
  5672. },
  5673. setBusLineHtmlSetCallback: function(a) {
  5674. this.k.XM = a || s()
  5675. },
  5676. setPolylinesSetCallback: function(a) {
  5677. this.k.NE = a || s()
  5678. }
  5679. });
  5680. function Hd(a) {
  5681. V.call(this, a);
  5682. a = a || {};
  5683. this.oc = {
  5684. input: a.input || p,
  5685. WB: a.baseDom || p,
  5686. types: a.types || [],
  5687. ay: a.onSearchComplete || s()
  5688. };
  5689. this.zd.src = a.location || "\u5168\u56fd";
  5690. this.cj = "";
  5691. this.mg = p;
  5692. this.VH = "";
  5693. this.Ri();
  5694. Pa(Ha);
  5695. var b = this;
  5696. I.load("autocomplete", function() {
  5697. b.Od()
  5698. })
  5699. }
  5700. x.ta(Hd, V, "Autocomplete");
  5701. x.extend(Hd.prototype, {
  5702. Ri: s(),
  5703. show: s(),
  5704. U: s(),
  5705. xF: function(a) {
  5706. this.oc.types = a
  5707. },
  5708. gn: function(a) {
  5709. this.zd.src = a
  5710. },
  5711. search: ba("cj"),
  5712. wy: ba("VH")
  5713. });
  5714. var Sa;
  5715. function Na(a, b) {
  5716. function c() {
  5717. e.k.visible ? ("inter" === e.Ge && e.k.haveBreakId && e.k.indoorExitControl === o ? x.D.show(e.uA) : x.D.U(e.uA), this.k.closeControl && this.wf && this.C && this.C.Na() === this.B ? x.D.show(e.wf) : x.D.U(e.wf), this.k.forceCloseControl && x.D.show(e.wf)) : (x.D.U(e.wf), x.D.U(e.uA))
  5718. }
  5719. this.B = "string" == typeof a ? x.$(a) : a;
  5720. this.ba = Id++;
  5721. this.k = {
  5722. enableScrollWheelZoom: o,
  5723. panoramaRenderer: "flash",
  5724. swfSrc: z.tg("main_domain_nocdn", "res/swf/") + "APILoader.swf",
  5725. visible: o,
  5726. indoorExitControl: o,
  5727. indoorFloorControl: q,
  5728. linksControl: o,
  5729. clickOnRoad: o,
  5730. navigationControl: o,
  5731. closeControl: o,
  5732. indoorSceneSwitchControl: o,
  5733. albumsControl: q,
  5734. albumsControlOptions: {},
  5735. copyrightControlOptions: {},
  5736. forceCloseControl: q,
  5737. haveBreakId: q
  5738. };
  5739. var b = b || {},
  5740. d;
  5741. for (d in b) this.k[d] = b[d];
  5742. b.closeControl === o && (this.k.forceCloseControl = o);
  5743. this.Ca = {
  5744. heading: 0,
  5745. pitch: 0
  5746. };
  5747. this.Zn = [];
  5748. this.Kb = this.Xa = p;
  5749. this.dk = this.Yq();
  5750. this.va = [];
  5751. this.Lc = 1;
  5752. this.Ge = this.XS = this.dl = "";
  5753. this.Fe = {};
  5754. this.Jf = p;
  5755. this.Rg = [];
  5756. this.ur = [];
  5757. "cvsRender" == this.dk || Ma() ? (this.Wj = 90, this.Yj = -90) : "cssRender" == this.dk && (this.Wj = 45, this.Yj = -45);
  5758. this.yr = q;
  5759. var e = this;
  5760. this.$n = function() {
  5761. this.dk === "flashRender" ? I.load("panoramaflash", function() {
  5762. e.Ri()
  5763. }, o) : I.load("panorama", function() {
  5764. e.wb()
  5765. }, o);
  5766. b.Of == "api" ? Pa(Ca) : Pa(Da);
  5767. this.$n = s()
  5768. };
  5769. this.k.KS !== o && (this.$n(), z.Ij("cus.fire", "count", "z_loadpanoramacount"));
  5770. this.BT(this.B);
  5771. this.addEventListener("id_changed", function() {
  5772. Pa(Ba, {
  5773. from: b.Of
  5774. })
  5775. });
  5776. this.OP();
  5777. this.addEventListener("indoorexit_options_changed", c);
  5778. this.addEventListener("scene_type_changed", c);
  5779. this.addEventListener("onclose_options_changed", c);
  5780. this.addEventListener("onvisible_changed", c)
  5781. }
  5782. var Jd = 4,
  5783. Kd = 1,
  5784. Id = 0;
  5785. x.lang.ta(Na, x.lang.Ba, "Panorama");
  5786. x.extend(Na.prototype, {
  5787. OP: function() {
  5788. var a = this,
  5789. b = this.wf = K("div");
  5790. b.className = "pano_close";
  5791. b.style.cssText = "z-index: 1201;display: none";
  5792. b.title = "\u9000\u51fa\u5168\u666f";
  5793. b.onclick = function() {
  5794. a.U()
  5795. };
  5796. this.B.appendChild(b);
  5797. var c = this.uA = K("a");
  5798. c.className = "pano_pc_indoor_exit";
  5799. c.style.cssText = "z-index: 1201;display: none";
  5800. c.innerHTML = '<span style="float:right;margin-right:12px;">\u51fa\u53e3</span>';
  5801. c.title = "\u9000\u51fa\u5ba4\u5185\u666f";
  5802. c.onclick = function() {
  5803. a.Qo()
  5804. };
  5805. this.B.appendChild(c);
  5806. window.ActiveXObject && !document.addEventListener && (b.style.backgroundColor = "rgb(37,37,37)", c.style.backgroundColor = "rgb(37,37,37)")
  5807. },
  5808. Qo: s(),
  5809. BT: function(a) {
  5810. var b, c;
  5811. b = a.style;
  5812. c = Ua(a).position;
  5813. "absolute" != c && "relative" != c && (b.position = "relative", b.zIndex = 0);
  5814. if ("absolute" === c || "relative" === c) if (a = Ua(a).zIndex, !a || "auto" === a) b.zIndex = 0
  5815. },
  5816. iX: t("Zn"),
  5817. Yb: t("Xa"),
  5818. KX: t("Uv"),
  5819. WN: t("Uv"),
  5820. ha: t("Kb"),
  5821. Da: t("Ca"),
  5822. fa: t("Lc"),
  5823. hh: t("dl"),
  5824. A2: function() {
  5825. return this.U0 || []
  5826. },
  5827. v2: t("XS"),
  5828. Xs: t("Ge"),
  5829. yy: function(a) {
  5830. a !== this.Ge && (this.Ge = a, this.dispatchEvent(new N("onscene_type_changed")))
  5831. },
  5832. rc: function(a, b, c) {
  5833. "object" === typeof b && (c = b, b = j);
  5834. a != this.Xa && (this.ol = this.Xa, this.pl = this.Kb, this.Xa = a, this.Ge = b || "street", this.Kb = p, c && c.pov && this.Nc(c.pov))
  5835. },
  5836. sa: function(a) {
  5837. a.mb(this.Kb) || (this.ol = this.Xa, this.pl = this.Kb, this.Kb = a, this.Xa = p)
  5838. },
  5839. Nc: function(a) {
  5840. a && (this.Ca = a, a = this.Ca.pitch, a > this.Wj ? a = this.Wj : a < this.Yj && (a = this.Yj), this.yr = o, this.Ca.pitch = a)
  5841. },
  5842. a_: function(a, b) {
  5843. this.Yj = 0 <= a ? 0 : a;
  5844. this.Wj = 0 >= b ? 0 : b
  5845. },
  5846. Oc: function(a) {
  5847. a != this.Lc && (a > Jd && (a = Jd), a < Kd && (a = Kd), a != this.Lc && (this.Lc = a), "cssRender" === this.dk && this.Nc(this.Ca))
  5848. },
  5849. uB: function() {
  5850. if (this.C) for (var a = this.C.tx(), b = 0; b < a.length; b++)(a[b] instanceof T || a[b] instanceof rc) && a[b].point && this.va.push(a[b])
  5851. },
  5852. tF: ba("C"),
  5853. Pt: function(a) {
  5854. this.Jf = a || "none"
  5855. },
  5856. Lk: function(a) {
  5857. for (var b in a) {
  5858. if ("object" == typeof a[b]) for (var c in a[b]) this.k[b][c] = a[b][c];
  5859. else this.k[b] = a[b];
  5860. a.closeControl === o && (this.k.forceCloseControl = o);
  5861. a.closeControl === q && (this.k.forceCloseControl = q);
  5862. switch (b) {
  5863. case "linksControl":
  5864. this.dispatchEvent(new N("onlinks_visible_changed"));
  5865. break;
  5866. case "clickOnRoad":
  5867. this.dispatchEvent(new N("onclickonroad_changed"));
  5868. break;
  5869. case "navigationControl":
  5870. this.dispatchEvent(new N("onnavigation_visible_changed"));
  5871. break;
  5872. case "indoorSceneSwitchControl":
  5873. this.dispatchEvent(new N("onindoor_default_switch_mode_changed"));
  5874. break;
  5875. case "albumsControl":
  5876. this.dispatchEvent(new N("onalbums_visible_changed"));
  5877. break;
  5878. case "albumsControlOptions":
  5879. this.dispatchEvent(new N("onalbums_options_changed"));
  5880. break;
  5881. case "copyrightControlOptions":
  5882. this.dispatchEvent(new N("oncopyright_options_changed"));
  5883. break;
  5884. case "closeControl":
  5885. this.dispatchEvent(new N("onclose_options_changed"));
  5886. break;
  5887. case "indoorExitControl":
  5888. this.dispatchEvent(new N("onindoorexit_options_changed"));
  5889. break;
  5890. case "indoorFloorControl":
  5891. this.dispatchEvent(new N("onindoorfloor_options_changed"))
  5892. }
  5893. }
  5894. },
  5895. Ak: function() {
  5896. this.xl.style.visibility = "hidden"
  5897. },
  5898. Cy: function() {
  5899. this.xl.style.visibility = "visible"
  5900. },
  5901. wW: function() {
  5902. this.k.enableScrollWheelZoom = o
  5903. },
  5904. hW: function() {
  5905. this.k.enableScrollWheelZoom = q
  5906. },
  5907. show: function() {
  5908. this.k.visible = o
  5909. },
  5910. U: function() {
  5911. this.k.visible = q
  5912. },
  5913. Yq: function() {
  5914. return Ta() && !G() && "javascript" != this.k.panoramaRenderer ? "flashRender" : !G() && Mb() ? "cvsRender" : "cssRender"
  5915. },
  5916. Ia: function(a) {
  5917. this.Fe[a.jd] = a
  5918. },
  5919. Sb: function(a) {
  5920. delete this.Fe[a]
  5921. },
  5922. $D: function() {
  5923. return this.k.visible
  5924. },
  5925. gh: function() {
  5926. return new L(this.B.clientWidth, this.B.clientHeight)
  5927. },
  5928. Na: t("B"),
  5929. fL: function() {
  5930. var a = z.tg("baidumap", "?"),
  5931. b = this.Yb();
  5932. if (b) {
  5933. var b = {
  5934. panotype: this.Xs(),
  5935. heading: this.Da().heading,
  5936. pitch: this.Da().pitch,
  5937. pid: b,
  5938. panoid: b,
  5939. from: "api"
  5940. },
  5941. c;
  5942. for (c in b) a += c + "=" + b[c] + "&"
  5943. }
  5944. return a.slice(0, -1)
  5945. },
  5946. Cx: function() {
  5947. this.Lk({
  5948. copyrightControlOptions: {
  5949. logoVisible: q
  5950. }
  5951. })
  5952. },
  5953. AF: function() {
  5954. this.Lk({
  5955. copyrightControlOptions: {
  5956. logoVisible: o
  5957. }
  5958. })
  5959. },
  5960. QB: function(a) {
  5961. function b(a, b) {
  5962. return function() {
  5963. a.ur.push({
  5964. JM: b,
  5965. IM: arguments
  5966. })
  5967. }
  5968. }
  5969. for (var c = a.getPanoMethodList(), d = "", e = 0, f = c.length; e < f; e++) d = c[e], this[d] = b(this, d);
  5970. this.Rg.push(a)
  5971. },
  5972. dF: function(a) {
  5973. for (var b = this.Rg.length; b--;) this.Rg[b] === a && this.Rg.splice(b, 1)
  5974. },
  5975. sF: s()
  5976. });
  5977. var Ld = Na.prototype;
  5978. S(Ld, {
  5979. setId: Ld.rc,
  5980. setPosition: Ld.sa,
  5981. setPov: Ld.Nc,
  5982. setZoom: Ld.Oc,
  5983. setOptions: Ld.Lk,
  5984. getId: Ld.Yb,
  5985. getPosition: Ld.ha,
  5986. getPov: Ld.Da,
  5987. getZoom: Ld.fa,
  5988. getLinks: Ld.iX,
  5989. getBaiduMapUrl: Ld.fL,
  5990. hideMapLogo: Ld.Cx,
  5991. showMapLogo: Ld.AF,
  5992. enableDoubleClickZoom: Ld.P1,
  5993. disableDoubleClickZoom: Ld.E1,
  5994. enableScrollWheelZoom: Ld.wW,
  5995. disableScrollWheelZoom: Ld.hW,
  5996. show: Ld.show,
  5997. hide: Ld.U,
  5998. addPlugin: Ld.QB,
  5999. removePlugin: Ld.dF,
  6000. getVisible: Ld.$D,
  6001. addOverlay: Ld.Ia,
  6002. removeOverlay: Ld.Sb,
  6003. getSceneType: Ld.Xs,
  6004. setPanoramaPOIType: Ld.Pt,
  6005. exitInter: Ld.Qo,
  6006. setInteractiveState: Ld.sF
  6007. });
  6008. S(window, {
  6009. BMAP_PANORAMA_POI_HOTEL: "hotel",
  6010. BMAP_PANORAMA_POI_CATERING: "catering",
  6011. BMAP_PANORAMA_POI_MOVIE: "movie",
  6012. BMAP_PANORAMA_POI_TRANSIT: "transit",
  6013. BMAP_PANORAMA_POI_INDOOR_SCENE: "indoor_scene",
  6014. BMAP_PANORAMA_POI_NONE: "none",
  6015. BMAP_PANORAMA_INDOOR_SCENE: "inter",
  6016. BMAP_PANORAMA_STREET_SCENE: "street"
  6017. });
  6018. function Md() {
  6019. x.lang.Ba.call(this);
  6020. this.jd = "PanoramaOverlay_" + this.ba;
  6021. this.P = p;
  6022. this.Pa = o
  6023. }
  6024. x.lang.ta(Md, x.lang.Ba, "PanoramaOverlayBase");
  6025. x.extend(Md.prototype, {
  6026. w2: t("jd"),
  6027. qa: function() {
  6028. aa("initialize\u65b9\u6cd5\u672a\u5b9e\u73b0")
  6029. },
  6030. remove: function() {
  6031. aa("remove\u65b9\u6cd5\u672a\u5b9e\u73b0")
  6032. },
  6033. If: function() {
  6034. aa("_setOverlayProperty\u65b9\u6cd5\u672a\u5b9e\u73b0")
  6035. }
  6036. });
  6037. function Nd(a, b) {
  6038. Md.call(this);
  6039. var c = {
  6040. position: p,
  6041. altitude: 2,
  6042. displayDistance: o
  6043. },
  6044. b = b || {},
  6045. d;
  6046. for (d in b) c[d] = b[d];
  6047. this.Kb = c.position;
  6048. this.Mj = a;
  6049. this.rq = c.altitude;
  6050. this.$Q = c.displayDistance;
  6051. this.GF = c.color;
  6052. this.PL = c.hoverColor;
  6053. this.backgroundColor = c.backgroundColor;
  6054. this.UJ = c.backgroundHoverColor;
  6055. this.borderColor = c.borderColor;
  6056. this.YJ = c.borderHoverColor;
  6057. this.fontSize = c.fontSize;
  6058. this.padding = c.padding;
  6059. this.gE = c.imageUrl;
  6060. this.size = c.size;
  6061. this.se = c.image;
  6062. this.width = c.width;
  6063. this.height = c.height;
  6064. this.ZX = c.imageData;
  6065. this.borderWidth = c.borderWidth
  6066. }
  6067. x.lang.ta(Nd, Md, "PanoramaLabel");
  6068. x.extend(Nd.prototype, {
  6069. b2: t("borderWidth"),
  6070. getImageData: t("ZX"),
  6071. wm: t("GF"),
  6072. p2: t("PL"),
  6073. X1: t("backgroundColor"),
  6074. Y1: t("UJ"),
  6075. Z1: t("borderColor"),
  6076. a2: t("YJ"),
  6077. m2: t("fontSize"),
  6078. x2: t("padding"),
  6079. q2: t("gE"),
  6080. yb: t("size"),
  6081. jx: t("se"),
  6082. sa: function(a) {
  6083. this.Kb = a;
  6084. this.If("position", a)
  6085. },
  6086. ha: t("Kb"),
  6087. bd: function(a) {
  6088. this.Mj = a;
  6089. this.If("content", a)
  6090. },
  6091. uk: t("Mj"),
  6092. nF: function(a) {
  6093. this.rq = a;
  6094. this.If("altitude", a)
  6095. },
  6096. To: t("rq"),
  6097. Da: function() {
  6098. var a = this.ha(),
  6099. b = p,
  6100. c = p;
  6101. this.P && (c = this.P.ha());
  6102. if (a && c) if (a.mb(c)) b = this.P.Da();
  6103. else {
  6104. b = {};
  6105. b.heading = Od(a.lng - c.lng, a.lat - c.lat) || 0;
  6106. var a = b,
  6107. c = this.To(),
  6108. d = this.Un();
  6109. a.pitch = Math.round(180 * (Math.atan(c / d) / Math.PI)) || 0
  6110. }
  6111. return b
  6112. },
  6113. Un: function() {
  6114. var a = 0,
  6115. b, c;
  6116. this.P && (b = this.P.ha(), (c = this.ha()) && !c.mb(b) && (a = R.Vo(b, c)));
  6117. return a
  6118. },
  6119. U: function() {
  6120. aa("hide\u65b9\u6cd5\u672a\u5b9e\u73b0")
  6121. },
  6122. show: function() {
  6123. aa("show\u65b9\u6cd5\u672a\u5b9e\u73b0")
  6124. },
  6125. If: s()
  6126. });
  6127. var Pd = Nd.prototype;
  6128. S(Pd, {
  6129. setPosition: Pd.sa,
  6130. getPosition: Pd.ha,
  6131. setContent: Pd.bd,
  6132. getContent: Pd.uk,
  6133. setAltitude: Pd.nF,
  6134. getAltitude: Pd.To,
  6135. getPov: Pd.Da,
  6136. show: Pd.show,
  6137. hide: Pd.U
  6138. });
  6139. function Qd(a, b) {
  6140. Md.call(this);
  6141. var c = {
  6142. icon: "",
  6143. title: "",
  6144. panoInfo: p,
  6145. altitude: 2
  6146. },
  6147. b = b || {},
  6148. d;
  6149. for (d in b) c[d] = b[d];
  6150. this.Kb = a;
  6151. this.QH = c.icon;
  6152. this.mJ = c.title;
  6153. this.rq = c.altitude;
  6154. this.nT = c.panoInfo;
  6155. this.Ca = {
  6156. heading: 0,
  6157. pitch: 0
  6158. }
  6159. }
  6160. x.lang.ta(Qd, Md, "PanoramaMarker");
  6161. x.extend(Qd.prototype, {
  6162. sa: function(a) {
  6163. this.Kb = a;
  6164. this.If("position", a)
  6165. },
  6166. ha: t("Kb"),
  6167. Dc: function(a) {
  6168. this.mJ = a;
  6169. this.If("title", a)
  6170. },
  6171. dp: t("mJ"),
  6172. Tb: function(a) {
  6173. this.QH = icon;
  6174. this.If("icon", a)
  6175. },
  6176. Wo: t("QH"),
  6177. nF: function(a) {
  6178. this.rq = a;
  6179. this.If("altitude", a)
  6180. },
  6181. To: t("rq"),
  6182. RD: t("nT"),
  6183. Da: function() {
  6184. var a = p;
  6185. if (this.P) {
  6186. var a = this.P.ha(),
  6187. b = this.ha(),
  6188. a = Od(b.lng - a.lng, b.lat - a.lat);
  6189. isNaN(a) && (a = 0);
  6190. a = {
  6191. heading: a,
  6192. pitch: 0
  6193. }
  6194. } else a = this.Ca;
  6195. return a
  6196. },
  6197. If: s()
  6198. });
  6199. var Rd = Qd.prototype;
  6200. S(Rd, {
  6201. setPosition: Rd.sa,
  6202. getPosition: Rd.ha,
  6203. setTitle: Rd.Dc,
  6204. getTitle: Rd.dp,
  6205. setAltitude: Rd.nF,
  6206. getAltitude: Rd.To,
  6207. getPanoInfo: Rd.RD,
  6208. getIcon: Rd.Wo,
  6209. setIcon: Rd.Tb,
  6210. getPov: Rd.Da
  6211. });
  6212. function Od(a, b) {
  6213. var c = 0;
  6214. if (0 !== a && 0 !== b) {
  6215. var c = 180 * (Math.atan(a / b) / Math.PI),
  6216. d = 0;
  6217. 0 < a && 0 > b && (d = 90);
  6218. 0 > a && 0 > b && (d = 180);
  6219. 0 > a && 0 < b && (d = 270);
  6220. c = (c + 90) % 90 + d
  6221. } else 0 === a ? c = 0 > b ? 180 : 0 : 0 === b && (c = 0 < a ? 90 : 270);
  6222. return Math.round(c)
  6223. }
  6224. function Ma(a) {
  6225. if ("boolean" === typeof Sd) return Sd;
  6226. if (a === q || !window.WebGLRenderingContext || x.platform.Gm && -1 == navigator.userAgent.indexOf("Android 5")) return Sd = q;
  6227. var a = document.createElement("canvas"),
  6228. b = p;
  6229. try {
  6230. b = a.getContext("webgl")
  6231. } catch (c) {
  6232. Sd = q
  6233. }
  6234. return Sd = b === p ? q : o
  6235. }
  6236. var Sd;
  6237. function Td() {
  6238. if ("boolean" === typeof Ud) return Ud;
  6239. Ud = o;
  6240. if (x.platform.qE) return o;
  6241. var a = navigator.userAgent;
  6242. return -1 < a.indexOf("Chrome") || -1 < a.indexOf("SAMSUNG-GT-I9508") ? o : Ud = q
  6243. }
  6244. var Ud;
  6245. function bc(a, b) {
  6246. this.P = a || p;
  6247. var c = this;
  6248. c.P && c.ca();
  6249. I.load("pservice", function() {
  6250. c.sQ()
  6251. });
  6252. "api" == (b || {}).Of ? Pa(Fa) : Pa(Ga);
  6253. this.xd = {
  6254. getPanoramaById: [],
  6255. getPanoramaByLocation: [],
  6256. getVisiblePOIs: [],
  6257. getRecommendPanosById: [],
  6258. getPanoramaVersions: [],
  6259. checkPanoSupportByCityCode: [],
  6260. getPanoramaByPOIId: [],
  6261. getCopyrightProviders: []
  6262. }
  6263. }
  6264. z.Sm(function(a) {
  6265. "flashRender" !== a.Yq() && new bc(a, {
  6266. Of: "api"
  6267. })
  6268. });
  6269. x.extend(bc.prototype, {
  6270. ca: function() {
  6271. function a(a) {
  6272. if (a) {
  6273. if (a.id != b.Uv) {
  6274. b.WN(a.id);
  6275. b.da = a;
  6276. Td() || b.dispatchEvent(new N("onthumbnail_complete"));
  6277. b.Xa != p && (b.pl = b._position);
  6278. for (var c in a) if (a.hasOwnProperty(c)) switch (b["_" + c] = a[c], c) {
  6279. case "position":
  6280. b.Kb = a[c];
  6281. break;
  6282. case "id":
  6283. b.Xa = a[c];
  6284. break;
  6285. case "links":
  6286. b.Zn = a[c];
  6287. break;
  6288. case "zoom":
  6289. b.Lc = a[c]
  6290. }
  6291. if (b.pl) {
  6292. var f = b.pl,
  6293. g = b._position;
  6294. c = f.lat;
  6295. var i = g.lat,
  6296. k = Nb(i - c),
  6297. f = Nb(g.lng - f.lng);
  6298. c = Math.sin(k / 2) * Math.sin(k / 2) + Math.cos(Nb(c)) * Math.cos(Nb(i)) * Math.sin(f / 2) * Math.sin(f / 2);
  6299. b.eH = 6371E3 * 2 * Math.atan2(Math.sqrt(c), Math.sqrt(1 - c))
  6300. }
  6301. c = new N("ondataload");
  6302. c.data = a;
  6303. b.dispatchEvent(c);
  6304. b.dispatchEvent(new N("onposition_changed"));
  6305. b.dispatchEvent(new N("onlinks_changed"));
  6306. b.dispatchEvent(new N("oncopyright_changed"), {
  6307. copyright: a.copyright
  6308. });
  6309. a.$l && b.k.closeControl ? x.D.show(b.vR) : x.D.U(b.vR)
  6310. }
  6311. } else b.Xa = b.ol, b.Kb = b.pl, b.dispatchEvent(new N("onnoresult"))
  6312. }
  6313. var b = this.P,
  6314. c = this;
  6315. b.addEventListener("id_changed", function() {
  6316. c.$o(b.Yb(), a)
  6317. });
  6318. b.addEventListener("iid_changed", function() {
  6319. c.Sg(bc.$k + "qt=idata&iid=" + b.qA + "&fn=", function(b) {
  6320. if (b && b.result && 0 == b.result.error) {
  6321. var b = b.content[0].interinfo,
  6322. e = {};
  6323. e.$l = b.BreakID;
  6324. for (var f = b.Defaultfloor, g = p, i = 0; i < b.Floors.length; i++) if (b.Floors[i].Floor == f) {
  6325. g = b.Floors[i];
  6326. break
  6327. }
  6328. e.id = g.StartID || g.Points[0].PID;
  6329. c.$o(e.id, a, e)
  6330. }
  6331. })
  6332. });
  6333. b.addEventListener("position_changed_inner", function() {
  6334. c.qj(b.ha(), a)
  6335. })
  6336. },
  6337. $o: function(a, b) {
  6338. this.xd.getPanoramaById.push(arguments)
  6339. },
  6340. qj: function(a, b, c) {
  6341. this.xd.getPanoramaByLocation.push(arguments)
  6342. },
  6343. aE: function(a, b, c, d) {
  6344. this.xd.getVisiblePOIs.push(arguments)
  6345. },
  6346. wx: function(a, b) {
  6347. this.xd.getRecommendPanosById.push(arguments)
  6348. },
  6349. vx: function(a) {
  6350. this.xd.getPanoramaVersions.push(arguments)
  6351. },
  6352. dC: function(a, b) {
  6353. this.xd.checkPanoSupportByCityCode.push(arguments)
  6354. },
  6355. ux: function(a, b) {
  6356. this.xd.getPanoramaByPOIId.push(arguments)
  6357. },
  6358. kL: function(a) {
  6359. this.xd.getCopyrightProviders.push(arguments)
  6360. }
  6361. });
  6362. var Vd = bc.prototype;
  6363. S(Vd, {
  6364. getPanoramaById: Vd.$o,
  6365. getPanoramaByLocation: Vd.qj,
  6366. getPanoramaByPOIId: Vd.ux
  6367. });
  6368. function ac(a) {
  6369. Ec.call(this);
  6370. "api" == (a || {}).Of ? Pa(za) : Pa(Aa)
  6371. }
  6372. ac.xG = z.tg("pano", "tile/");
  6373. ac.prototype = new Ec;
  6374. ac.prototype.getTilesUrl = function(a, b) {
  6375. var c = ac.xG[(a.x + a.y) % ac.xG.length] + "?udt=20150114&qt=tile&styles=pl&x=" + a.x + "&y=" + a.y + "&z=" + b;
  6376. x.ea.la && 6 >= x.ea.la && (c += "&color_dep=32");
  6377. return c
  6378. };
  6379. ac.prototype.lt = ca(o);
  6380. Wd.Sd = new R;
  6381. function Wd() {}
  6382. x.extend(Wd, {
  6383. iW: function(a, b, c) {
  6384. c = x.lang.Mc(c);
  6385. b = {
  6386. data: b
  6387. };
  6388. "position_changed" == a && (b.data = Wd.Sd.wi(new Q(b.data.mercatorX, b.data.mercatorY)));
  6389. c.dispatchEvent(new N("on" + a), b)
  6390. }
  6391. });
  6392. var Xd = Wd;
  6393. S(Xd, {
  6394. dispatchFlashEvent: Xd.iW
  6395. });
  6396. var Yd = {
  6397. mP: 50
  6398. };
  6399. Yd.Du = z.tg("pano")[0];
  6400. Yd.zu = {
  6401. width: 220,
  6402. height: 60
  6403. };
  6404. x.extend(Yd, {
  6405. kp: function(a, b, c, d) {
  6406. if (!b || !c || !c.lngLat || !c.panoInstance) d();
  6407. else {
  6408. this.fo === j && (this.fo = new bc(p, {
  6409. Of: "api"
  6410. }));
  6411. var e = this;
  6412. this.fo.dC(b, function(b) {
  6413. b ? e.fo.qj(c.lngLat, Yd.mP, function(b) {
  6414. if (b && b.id) {
  6415. var f = b.id,
  6416. k = b.vh,
  6417. b = b.wh,
  6418. l = bc.Sd.nh(c.lngLat),
  6419. m = e.aS(l, {
  6420. x: k,
  6421. y: b
  6422. }),
  6423. k = e.uL(f, m, 0, Yd.zu.width, Yd.zu.height);
  6424. a.content = e.bS(a.content, k, c.titleTip, c.beforeDomId);
  6425. a.addEventListener("open", function() {
  6426. ha.M(x.Ec("infoWndPano"), "click", function() {
  6427. c.panoInstance.rc(f);
  6428. c.panoInstance.show();
  6429. c.panoInstance.Nc({
  6430. heading: m,
  6431. pitch: 0
  6432. })
  6433. })
  6434. })
  6435. }
  6436. d()
  6437. }) : d()
  6438. })
  6439. }
  6440. },
  6441. bS: function(a, b, c, d) {
  6442. var c = c || "",
  6443. e;
  6444. !d || !a.split(d)[0] ? (d = a, a = "") : (d = a.split(d)[0], e = d.lastIndexOf("<"), d = a.substring(0, e), a = a.substring(e));
  6445. e = [];
  6446. var f = Yd.zu.width,
  6447. g = Yd.zu.height;
  6448. e.push(d);
  6449. e.push("<div id='infoWndPano' class='panoInfoBox' style='height:" + g + "px;width:" + f + "px; margin-top: -19px;'>");
  6450. e.push("<img class='pano_thumnail_img' width='" + f + "' height='" + g + "' border='0' alt='" + c + "\u5916\u666f' title='" + c + "\u5916\u666f' src='" + b + "' onerror='Pano.PanoEntranceUtil.thumbnailNotFound(this, " + f + ", " + g + ");' />");
  6451. e.push("<div class='panoInfoBoxTitleBg' style='width:" + f + "px;'></div><a href='javascript:void(0)' class='panoInfoBoxTitleContent' >\u8fdb\u5165\u5168\u666f&gt;&gt;</a>");
  6452. e.push("</div>");
  6453. e.push(a);
  6454. return e.join("")
  6455. },
  6456. aS: function(a, b) {
  6457. var c = 90 - 180 * Math.atan2(a.y - b.y, a.x - b.x) / Math.PI;
  6458. 0 > c && (c += 360);
  6459. return c
  6460. },
  6461. uL: function(a, b, c, d, e) {
  6462. var f = {
  6463. panoId: a,
  6464. panoHeading: b || 0,
  6465. panoPitch: c || 0,
  6466. width: d,
  6467. height: e
  6468. };
  6469. return (Yd.Du + "?qt=pr3d&fovy=75&quality=80&panoid={panoId}&heading={panoHeading}&pitch={panoPitch}&width={width}&height={height}").replace(/\{(.*?)\}/g, function(a, b) {
  6470. return f[b]
  6471. })
  6472. }
  6473. });
  6474. var Zd = document,
  6475. $d = Math,
  6476. ae = Zd.createElement("div").style,
  6477. be;
  6478. a: {
  6479. for (var ce = ["t", "webkitT", "MozT", "msT", "OT"], de, ee = 0, fe = ce.length; ee < fe; ee++) if (de = ce[ee] + "ransform", de in ae) {
  6480. be = ce[ee].substr(0, ce[ee].length - 1);
  6481. break a
  6482. }
  6483. be = q
  6484. }
  6485. var ge = be ? "-" + be.toLowerCase() + "-" : "",
  6486. ie = he("transform"),
  6487. je = he("transitionProperty"),
  6488. ke = he("transitionDuration"),
  6489. le = he("transformOrigin"),
  6490. ne = he("transitionTimingFunction"),
  6491. pe = he("transitionDelay"),
  6492. yd = /android/gi.test(navigator.appVersion),
  6493. qe = /iphone|ipad/gi.test(navigator.appVersion),
  6494. re = /hp-tablet/gi.test(navigator.appVersion),
  6495. se = he("perspective") in ae,
  6496. te = "ontouchstart" in window && !re,
  6497. ue = be !== q,
  6498. ve = he("transition") in ae,
  6499. we = "onorientationchange" in window ? "orientationchange" : "resize",
  6500. xe = te ? "touchstart" : "mousedown",
  6501. ye = te ? "touchmove" : "mousemove",
  6502. ze = te ? "touchend" : "mouseup",
  6503. Ae = te ? "touchcancel" : "mouseup",
  6504. Be = be === q ? q : {
  6505. "": "transitionend",
  6506. webkit: "webkitTransitionEnd",
  6507. Moz: "transitionend",
  6508. O: "otransitionend",
  6509. ms: "MSTransitionEnd"
  6510. }[be],
  6511. Ce = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame ||
  6512. function(a) {
  6513. return setTimeout(a, 1)
  6514. },
  6515. De = window.cancelRequestAnimationFrame || window.A4 || window.webkitCancelRequestAnimationFrame || window.mozCancelRequestAnimationFrame || window.oCancelRequestAnimationFrame || window.msCancelRequestAnimationFrame || clearTimeout,
  6516. Ee = se ? " translateZ(0)" : "";
  6517. function Fe(a, b) {
  6518. var c = this,
  6519. d;
  6520. c.xn = "object" == typeof a ? a : Zd.getElementById(a);
  6521. c.xn.style.overflow = "hidden";
  6522. c.Nb = c.xn.children[0];
  6523. c.options = {
  6524. hp: o,
  6525. vn: o,
  6526. x: 0,
  6527. y: 0,
  6528. Bo: o,
  6529. iV: q,
  6530. Ux: o,
  6531. DE: o,
  6532. Uk: o,
  6533. Bi: q,
  6534. E_: 0,
  6535. Bw: q,
  6536. zx: o,
  6537. mi: o,
  6538. Ci: o,
  6539. rD: yd,
  6540. Dx: qe,
  6541. DW: qe && se,
  6542. kF: "",
  6543. zoom: q,
  6544. Vk: 1,
  6545. Xp: 4,
  6546. kW: 2,
  6547. SO: "scroll",
  6548. Yt: q,
  6549. Fy: 1,
  6550. dN: p,
  6551. WM: function(a) {
  6552. a.preventDefault()
  6553. },
  6554. gN: p,
  6555. VM: p,
  6556. fN: p,
  6557. UM: p,
  6558. $x: p,
  6559. hN: p,
  6560. ZM: p,
  6561. vp: p,
  6562. iN: p,
  6563. up: p
  6564. };
  6565. for (d in b) c.options[d] = b[d];
  6566. c.x = c.options.x;
  6567. c.y = c.options.y;
  6568. c.options.Uk = ue && c.options.Uk;
  6569. c.options.mi = c.options.hp && c.options.mi;
  6570. c.options.Ci = c.options.vn && c.options.Ci;
  6571. c.options.zoom = c.options.Uk && c.options.zoom;
  6572. c.options.Bi = ve && c.options.Bi;
  6573. c.options.zoom && yd && (Ee = "");
  6574. c.Nb.style[je] = c.options.Uk ? ge + "transform" : "top left";
  6575. c.Nb.style[ke] = "0";
  6576. c.Nb.style[le] = "0 0";
  6577. c.options.Bi && (c.Nb.style[ne] = "cubic-bezier(0.33,0.66,0.66,1)");
  6578. c.options.Uk ? c.Nb.style[ie] = "translate(" + c.x + "px," + c.y + "px)" + Ee : c.Nb.style.cssText += ";position:absolute;top:" + c.y + "px;left:" + c.x + "px";
  6579. c.options.Bi && (c.options.rD = o);
  6580. c.refresh();
  6581. c.ca(we, window);
  6582. c.ca(xe);
  6583. !te && "none" != c.options.SO && (c.ca("DOMMouseScroll"), c.ca("mousewheel"));
  6584. c.options.Bw && (c.tV = setInterval(function() {
  6585. c.pQ()
  6586. }, 500));
  6587. this.options.zx && (Event.prototype.stopImmediatePropagation || (document.body.removeEventListener = function(a, b, c) {
  6588. var d = Node.prototype.removeEventListener;
  6589. a === "click" ? d.call(document.body, a, b.NL || b, c) : d.call(document.body, a, b, c)
  6590. }, document.body.addEventListener = function(a, b, c) {
  6591. var d = Node.prototype.addEventListener;
  6592. a === "click" ? d.call(document.body, a, b.NL || (b.NL = function(a) {
  6593. a.lZ || b(a)
  6594. }), c) : d.call(document.body, a, b, c)
  6595. }), c.ca("click", document.body, o))
  6596. }
  6597. Fe.prototype = {
  6598. enabled: o,
  6599. x: 0,
  6600. y: 0,
  6601. Aj: [],
  6602. scale: 1,
  6603. yC: 0,
  6604. zC: 0,
  6605. Qe: [],
  6606. pf: [],
  6607. VB: p,
  6608. Qy: 0,
  6609. handleEvent: function(a) {
  6610. switch (a.type) {
  6611. case xe:
  6612. if (!te && 0 !== a.button) break;
  6613. this.Nv(a);
  6614. break;
  6615. case ye:
  6616. this.ZS(a);
  6617. break;
  6618. case ze:
  6619. case Ae:
  6620. this.$u(a);
  6621. break;
  6622. case we:
  6623. this.nB();
  6624. break;
  6625. case "DOMMouseScroll":
  6626. case "mousewheel":
  6627. this.EU(a);
  6628. break;
  6629. case Be:
  6630. this.AU(a);
  6631. break;
  6632. case "click":
  6633. this.AQ(a)
  6634. }
  6635. },
  6636. pQ: function() {
  6637. !this.rh && (!this.Wk && !(this.Vl || this.vy == this.Nb.offsetWidth * this.scale && this.Fp == this.Nb.offsetHeight * this.scale)) && this.refresh()
  6638. },
  6639. Ev: function(a) {
  6640. var b;
  6641. this[a + "Scrollbar"] ? (this[a + "ScrollbarWrapper"] || (b = Zd.createElement("div"), this.options.kF ? b.className = this.options.kF + a.toUpperCase() : b.style.cssText = "position:absolute;z-index:100;" + ("h" == a ? "height:7px;bottom:1px;left:2px;right:" + (this.Ci ? "7" : "2") + "px" : "width:7px;bottom:" + (this.mi ? "7" : "2") + "px;top:2px;right:1px"), b.style.cssText += ";pointer-events:none;" + ge + "transition-property:opacity;" + ge + "transition-duration:" + (this.options.DW ? "350ms" : "0") + ";overflow:hidden;opacity:" + (this.options.Dx ? "0" : "1"), this.xn.appendChild(b), this[a + "ScrollbarWrapper"] = b, b = Zd.createElement("div"), this.options.kF || (b.style.cssText = "position:absolute;z-index:100;background:rgba(0,0,0,0.5);border:1px solid rgba(255,255,255,0.9);" + ge + "background-clip:padding-box;" + ge + "box-sizing:border-box;" + ("h" == a ? "height:100%" : "width:100%") + ";" + ge + "border-radius:3px;border-radius:3px"), b.style.cssText += ";pointer-events:none;" + ge + "transition-property:" + ge + "transform;" + ge + "transition-timing-function:cubic-bezier(0.33,0.66,0.66,1);" + ge + "transition-duration:0;" + ge + "transform: translate(0,0)" + Ee, this.options.Bi && (b.style.cssText += ";" + ge + "transition-timing-function:cubic-bezier(0.33,0.66,0.66,1)"), this[a + "ScrollbarWrapper"].appendChild(b), this[a + "ScrollbarIndicator"] = b), "h" == a ? (this.KL = this.LL.clientWidth, this.SX = $d.max($d.round(this.KL * this.KL / this.vy), 8), this.RX.style.width = this.SX + "px") : (this.JO = this.KO.clientHeight, this.Z_ = $d.max($d.round(this.JO * this.JO / this.Fp), 8), this.Y_.style.height = this.Z_ + "px"), this.oB(a, o)) : this[a + "ScrollbarWrapper"] && (ue && (this[a + "ScrollbarIndicator"].style[ie] = ""), this[a + "ScrollbarWrapper"].parentNode.removeChild(this[a + "ScrollbarWrapper"]), this[a + "ScrollbarWrapper"] = p, this[a + "ScrollbarIndicator"] = p)
  6642. },
  6643. nB: function() {
  6644. var a = this;
  6645. setTimeout(function() {
  6646. a.refresh()
  6647. }, yd ? 200 : 0)
  6648. },
  6649. xr: function(a, b) {
  6650. this.Wk || (a = this.hp ? a : 0, b = this.vn ? b : 0, this.options.Uk ? this.Nb.style[ie] = "translate(" + a + "px," + b + "px) scale(" + this.scale + ")" + Ee : (a = $d.round(a), b = $d.round(b), this.Nb.style.left = a + "px", this.Nb.style.top = b + "px"), this.x = a, this.y = b, this.oB("h"), this.oB("v"))
  6651. },
  6652. oB: function(a, b) {
  6653. var c = "h" == a ? this.x : this.y;
  6654. this[a + "Scrollbar"] && (c *= this[a + "ScrollbarProp"], 0 > c ? (this.options.rD || (c = this[a + "ScrollbarIndicatorSize"] + $d.round(3 * c), 8 > c && (c = 8), this[a + "ScrollbarIndicator"].style["h" == a ? "width" : "height"] = c + "px"), c = 0) : c > this[a + "ScrollbarMaxScroll"] && (this.options.rD ? c = this[a + "ScrollbarMaxScroll"] : (c = this[a + "ScrollbarIndicatorSize"] - $d.round(3 * (c - this[a + "ScrollbarMaxScroll"])), 8 > c && (c = 8), this[a + "ScrollbarIndicator"].style["h" == a ? "width" : "height"] = c + "px", c = this[a + "ScrollbarMaxScroll"] + (this[a + "ScrollbarIndicatorSize"] - c))), this[a + "ScrollbarWrapper"].style[pe] = "0", this[a + "ScrollbarWrapper"].style.opacity = b && this.options.Dx ? "0" : "1", this[a + "ScrollbarIndicator"].style[ie] = "translate(" + ("h" == a ? c + "px,0)" : "0," + c + "px)") + Ee)
  6655. },
  6656. AQ: function(a) {
  6657. if (a.wR === o) return this.NB = a.target, this.ax = Date.now(), o;
  6658. if (this.NB && this.ax) {
  6659. if (600 < Date.now() - this.ax) return this.ax = this.NB = p, o
  6660. } else {
  6661. for (var b = a.target; b != this.Nb && b != document.body;) b = b.parentNode;
  6662. if (b == document.body) return o
  6663. }
  6664. for (b = a.target; 1 != b.nodeType;) b = b.parentNode;
  6665. b = b.tagName.toLowerCase();
  6666. if ("select" != b && "input" != b && "textarea" != b) return a.stopImmediatePropagation ? a.stopImmediatePropagation() : a.lZ = o, a.stopPropagation(), a.preventDefault(), this.ax = this.NB = p, q
  6667. },
  6668. Nv: function(a) {
  6669. var b = te ? a.touches[0] : a,
  6670. c, d;
  6671. if (this.enabled) {
  6672. this.options.WM && this.options.WM.call(this, a);
  6673. (this.options.Bi || this.options.zoom) && this.nJ(0);
  6674. this.Wk = this.Vl = this.rh = q;
  6675. this.IC = this.HC = this.fw = this.ew = this.OC = this.NC = 0;
  6676. this.options.zoom && (te && 1 < a.touches.length) && (d = $d.abs(a.touches[0].pageX - a.touches[1].pageX), c = $d.abs(a.touches[0].pageY - a.touches[1].pageY), this.G_ = $d.sqrt(d * d + c * c), this.by = $d.abs(a.touches[0].pageX + a.touches[1].pageX - 2 * this.TF) / 2 - this.x, this.dy = $d.abs(a.touches[0].pageY + a.touches[1].pageY - 2 * this.UF) / 2 - this.y, this.options.vp && this.options.vp.call(this, a));
  6677. if (this.options.Ux && (this.options.Uk ? (c = getComputedStyle(this.Nb, p)[ie].replace(/[^0-9\-.,]/g, "").split(","), d = +(c[12] || c[4]), c = +(c[13] || c[5])) : (d = +getComputedStyle(this.Nb, p).left.replace(/[^0-9-]/g, ""), c = +getComputedStyle(this.Nb, p).top.replace(/[^0-9-]/g, "")), d != this.x || c != this.y)) this.options.Bi ? this.Vd(Be) : De(this.VB), this.Aj = [], this.xr(d, c), this.options.$x && this.options.$x.call(this);
  6678. this.gw = this.x;
  6679. this.hw = this.y;
  6680. this.au = this.x;
  6681. this.bu = this.y;
  6682. this.vh = b.pageX;
  6683. this.wh = b.pageY;
  6684. this.startTime = a.timeStamp || Date.now();
  6685. this.options.gN && this.options.gN.call(this, a);
  6686. this.ca(ye, window);
  6687. this.ca(ze, window);
  6688. this.ca(Ae, window)
  6689. }
  6690. },
  6691. ZS: function(a) {
  6692. var b = te ? a.touches[0] : a,
  6693. c = b.pageX - this.vh,
  6694. d = b.pageY - this.wh,
  6695. e = this.x + c,
  6696. f = this.y + d,
  6697. g = a.timeStamp || Date.now();
  6698. this.options.VM && this.options.VM.call(this, a);
  6699. if (this.options.zoom && te && 1 < a.touches.length) e = $d.abs(a.touches[0].pageX - a.touches[1].pageX), f = $d.abs(a.touches[0].pageY - a.touches[1].pageY), this.F_ = $d.sqrt(e * e + f * f), this.Wk = o, b = 1 / this.G_ * this.F_ * this.scale, b < this.options.Vk ? b = 0.5 * this.options.Vk * Math.pow(2, b / this.options.Vk) : b > this.options.Xp && (b = 2 * this.options.Xp * Math.pow(0.5, this.options.Xp / b)), this.op = b / this.scale, e = this.by - this.by * this.op + this.x, f = this.dy - this.dy * this.op + this.y, this.Nb.style[ie] = "translate(" + e + "px," + f + "px) scale(" + b + ")" + Ee, this.options.iN && this.options.iN.call(this, a);
  6700. else {
  6701. this.vh = b.pageX;
  6702. this.wh = b.pageY;
  6703. if (0 < e || e < this.ee) e = this.options.Bo ? this.x + c / 2 : 0 <= e || 0 <= this.ee ? 0 : this.ee;
  6704. if (f > this.nf || f < this.od) f = this.options.Bo ? this.y + d / 2 : f >= this.nf || 0 <= this.od ? this.nf : this.od;
  6705. this.NC += c;
  6706. this.OC += d;
  6707. this.ew = $d.abs(this.NC);
  6708. this.fw = $d.abs(this.OC);
  6709. 6 > this.ew && 6 > this.fw || (this.options.DE && (this.ew > this.fw + 5 ? (f = this.y, d = 0) : this.fw > this.ew + 5 && (e = this.x, c = 0)), this.rh = o, this.xr(e, f), this.HC = 0 < c ? -1 : 0 > c ? 1 : 0, this.IC = 0 < d ? -1 : 0 > d ? 1 : 0, 300 < g - this.startTime && (this.startTime = g, this.au = this.x, this.bu = this.y), this.options.fN && this.options.fN.call(this, a))
  6710. }
  6711. },
  6712. $u: function(a) {
  6713. if (!(te && 0 !== a.touches.length)) {
  6714. var b = this,
  6715. c = te ? a.changedTouches[0] : a,
  6716. d, e, f = {
  6717. Aa: 0,
  6718. time: 0
  6719. },
  6720. g = {
  6721. Aa: 0,
  6722. time: 0
  6723. },
  6724. i = (a.timeStamp || Date.now()) - b.startTime;
  6725. d = b.x;
  6726. e = b.y;
  6727. b.Vd(ye, window);
  6728. b.Vd(ze, window);
  6729. b.Vd(Ae, window);
  6730. b.options.UM && b.options.UM.call(b, a);
  6731. if (b.Wk) d = b.scale * b.op, d = Math.max(b.options.Vk, d), d = Math.min(b.options.Xp, d), b.op = d / b.scale, b.scale = d, b.x = b.by - b.by * b.op + b.x, b.y = b.dy - b.dy * b.op + b.y, b.Nb.style[ke] = "200ms", b.Nb.style[ie] = "translate(" + b.x + "px," + b.y + "px) scale(" + b.scale + ")" + Ee, b.Wk = q, b.refresh(), b.options.up && b.options.up.call(b, a);
  6732. else {
  6733. if (b.rh) {
  6734. if (300 > i && b.options.Ux) {
  6735. f = d ? b.kI(d - b.au, i, -b.x, b.vy - b.ru + b.x, b.options.Bo ? b.ru : 0) : f;
  6736. g = e ? b.kI(e - b.bu, i, -b.y, 0 > b.od ? b.Fp - b.yn + b.y - b.nf : 0, b.options.Bo ? b.yn : 0) : g;
  6737. d = b.x + f.Aa;
  6738. e = b.y + g.Aa;
  6739. if (0 < b.x && 0 < d || b.x < b.ee && d < b.ee) f = {
  6740. Aa: 0,
  6741. time: 0
  6742. };
  6743. if (b.y > b.nf && e > b.nf || b.y < b.od && e < b.od) g = {
  6744. Aa: 0,
  6745. time: 0
  6746. }
  6747. }
  6748. f.Aa || g.Aa ? (c = $d.max($d.max(f.time, g.time), 10), b.options.Yt && (f = d - b.gw, g = e - b.hw, $d.abs(f) < b.options.Fy && $d.abs(g) < b.options.Fy ? b.scrollTo(b.gw, b.hw, 200) : (f = b.eJ(d, e), d = f.x, e = f.y, c = $d.max(f.time, c))), b.scrollTo($d.round(d), $d.round(e), c)) : b.options.Yt ? (f = d - b.gw, g = e - b.hw, $d.abs(f) < b.options.Fy && $d.abs(g) < b.options.Fy ? b.scrollTo(b.gw, b.hw, 200) : (f = b.eJ(b.x, b.y), (f.x != b.x || f.y != b.y) && b.scrollTo(f.x, f.y, f.time))) : b.io(200)
  6749. } else {
  6750. if (te) if (b.EK && b.options.zoom) clearTimeout(b.EK), b.EK = p, b.options.vp && b.options.vp.call(b, a), b.zoom(b.vh, b.wh, 1 == b.scale ? b.options.kW : 1), b.options.up && setTimeout(function() {
  6751. b.options.up.call(b, a)
  6752. }, 200);
  6753. else if (this.options.zx) {
  6754. for (d = c.target; 1 != d.nodeType;) d = d.parentNode;
  6755. e = d.tagName.toLowerCase();
  6756. "select" != e && "input" != e && "textarea" != e ? (e = Zd.createEvent("MouseEvents"), e.initMouseEvent("click", o, o, a.view, 1, c.screenX, c.screenY, c.clientX, c.clientY, a.ctrlKey, a.altKey, a.shiftKey, a.metaKey, 0, p), e.wR = o, d.dispatchEvent(e)) : d.focus()
  6757. }
  6758. b.io(400)
  6759. }
  6760. b.options.hN && b.options.hN.call(b, a)
  6761. }
  6762. }
  6763. },
  6764. io: function(a) {
  6765. var b = 0 <= this.x ? 0 : this.x < this.ee ? this.ee : this.x,
  6766. c = this.y >= this.nf || 0 < this.od ? this.nf : this.y < this.od ? this.od : this.y;
  6767. if (b == this.x && c == this.y) {
  6768. if (this.rh && (this.rh = q, this.options.$x && this.options.$x.call(this)), this.mi && this.options.Dx && ("webkit" == be && (this.LL.style[pe] = "300ms"), this.LL.style.opacity = "0"), this.Ci && this.options.Dx)"webkit" == be && (this.KO.style[pe] = "300ms"), this.KO.style.opacity = "0"
  6769. } else this.scrollTo(b, c, a || 0)
  6770. },
  6771. EU: function(a) {
  6772. var b = this,
  6773. c, d;
  6774. if ("wheelDeltaX" in a) c = a.wheelDeltaX / 12, d = a.wheelDeltaY / 12;
  6775. else if ("wheelDelta" in a) c = d = a.wheelDelta / 12;
  6776. else if ("detail" in a) c = d = 3 * -a.detail;
  6777. else return;
  6778. if ("zoom" == b.options.SO) {
  6779. if (d = b.scale * Math.pow(2, 1 / 3 * (d ? d / Math.abs(d) : 0)), d < b.options.Vk && (d = b.options.Vk), d > b.options.Xp && (d = b.options.Xp), d != b.scale)!b.Qy && b.options.vp && b.options.vp.call(b, a), b.Qy++, b.zoom(a.pageX, a.pageY, d, 400), setTimeout(function() {
  6780. b.Qy--;
  6781. !b.Qy && b.options.up && b.options.up.call(b, a)
  6782. }, 400)
  6783. } else c = b.x + c, d = b.y + d, 0 < c ? c = 0 : c < b.ee && (c = b.ee), d > b.nf ? d = b.nf : d < b.od && (d = b.od), 0 > b.od && b.scrollTo(c, d, 0)
  6784. },
  6785. AU: function(a) {
  6786. a.target == this.Nb && (this.Vd(Be), this.AB())
  6787. },
  6788. AB: function() {
  6789. var a = this,
  6790. b = a.x,
  6791. c = a.y,
  6792. d = Date.now(),
  6793. e, f, g;
  6794. a.Vl || (a.Aj.length ? (e = a.Aj.shift(), e.x == b && e.y == c && (e.time = 0), a.Vl = o, a.rh = o, a.options.Bi) ? (a.nJ(e.time), a.xr(e.x, e.y), a.Vl = q, e.time ? a.ca(Be) : a.io(0)) : (g = function() {
  6795. var i = Date.now(),
  6796. k;
  6797. if (i >= d + e.time) {
  6798. a.xr(e.x, e.y);
  6799. a.Vl = q;
  6800. a.options.TY && a.options.TY.call(a);
  6801. a.AB()
  6802. } else {
  6803. i = (i - d) / e.time - 1;
  6804. f = $d.sqrt(1 - i * i);
  6805. i = (e.x - b) * f + b;
  6806. k = (e.y - c) * f + c;
  6807. a.xr(i, k);
  6808. if (a.Vl) a.VB = Ce(g)
  6809. }
  6810. }, g()) : a.io(400))
  6811. },
  6812. nJ: function(a) {
  6813. a += "ms";
  6814. this.Nb.style[ke] = a;
  6815. this.mi && (this.RX.style[ke] = a);
  6816. this.Ci && (this.Y_.style[ke] = a)
  6817. },
  6818. kI: function(a, b, c, d, e) {
  6819. var b = $d.abs(a) / b,
  6820. f = b * b / 0.0012;
  6821. 0 < a && f > c ? (c += e / (6 / (6.0E-4 * (f / b))), b = b * c / f, f = c) : 0 > a && f > d && (d += e / (6 / (6.0E-4 * (f / b))), b = b * d / f, f = d);
  6822. return {
  6823. Aa: f * (0 > a ? -1 : 1),
  6824. time: $d.round(b / 6.0E-4)
  6825. }
  6826. },
  6827. $j: function(a) {
  6828. for (var b = -a.offsetLeft, c = -a.offsetTop; a = a.offsetParent;) b -= a.offsetLeft, c -= a.offsetTop;
  6829. a != this.xn && (b *= this.scale, c *= this.scale);
  6830. return {
  6831. left: b,
  6832. top: c
  6833. }
  6834. },
  6835. eJ: function(a, b) {
  6836. var c, d, e;
  6837. e = this.Qe.length - 1;
  6838. c = 0;
  6839. for (d = this.Qe.length; c < d; c++) if (a >= this.Qe[c]) {
  6840. e = c;
  6841. break
  6842. }
  6843. e == this.yC && (0 < e && 0 > this.HC) && e--;
  6844. a = this.Qe[e];
  6845. d = (d = $d.abs(a - this.Qe[this.yC])) ? 500 * ($d.abs(this.x - a) / d) : 0;
  6846. this.yC = e;
  6847. e = this.pf.length - 1;
  6848. for (c = 0; c < e; c++) if (b >= this.pf[c]) {
  6849. e = c;
  6850. break
  6851. }
  6852. e == this.zC && (0 < e && 0 > this.IC) && e--;
  6853. b = this.pf[e];
  6854. c = (c = $d.abs(b - this.pf[this.zC])) ? 500 * ($d.abs(this.y - b) / c) : 0;
  6855. this.zC = e;
  6856. e = $d.round($d.max(d, c)) || 200;
  6857. return {
  6858. x: a,
  6859. y: b,
  6860. time: e
  6861. }
  6862. },
  6863. ca: function(a, b, c) {
  6864. (b || this.Nb).addEventListener(a, this, !! c)
  6865. },
  6866. Vd: function(a, b, c) {
  6867. (b || this.Nb).removeEventListener(a, this, !! c)
  6868. },
  6869. EC: fa(2),
  6870. refresh: function() {
  6871. var a, b, c, d = 0;
  6872. b = 0;
  6873. this.scale < this.options.Vk && (this.scale = this.options.Vk);
  6874. this.ru = this.xn.clientWidth || 1;
  6875. this.yn = this.xn.clientHeight || 1;
  6876. this.nf = -this.options.E_ || 0;
  6877. this.vy = $d.round(this.Nb.offsetWidth * this.scale);
  6878. this.Fp = $d.round((this.Nb.offsetHeight + this.nf) * this.scale);
  6879. this.ee = this.ru - this.vy;
  6880. this.od = this.yn - this.Fp + this.nf;
  6881. this.IC = this.HC = 0;
  6882. this.options.dN && this.options.dN.call(this);
  6883. this.hp = this.options.hp && 0 > this.ee;
  6884. this.vn = this.options.vn && (!this.options.iV && !this.hp || this.Fp > this.yn);
  6885. this.mi = this.hp && this.options.mi;
  6886. this.Ci = this.vn && this.options.Ci && this.Fp > this.yn;
  6887. a = this.$j(this.xn);
  6888. this.TF = -a.left;
  6889. this.UF = -a.top;
  6890. if ("string" == typeof this.options.Yt) {
  6891. this.Qe = [];
  6892. this.pf = [];
  6893. c = this.Nb.querySelectorAll(this.options.Yt);
  6894. a = 0;
  6895. for (b = c.length; a < b; a++) d = this.$j(c[a]), d.left += this.TF, d.top += this.UF, this.Qe[a] = d.left < this.ee ? this.ee : d.left * this.scale, this.pf[a] = d.top < this.od ? this.od : d.top * this.scale
  6896. } else if (this.options.Yt) {
  6897. for (this.Qe = []; d >= this.ee;) this.Qe[b] = d, d -= this.ru, b++;
  6898. this.ee % this.ru && (this.Qe[this.Qe.length] = this.ee - this.Qe[this.Qe.length - 1] + this.Qe[this.Qe.length - 1]);
  6899. b = d = 0;
  6900. for (this.pf = []; d >= this.od;) this.pf[b] = d, d -= this.yn, b++;
  6901. this.od % this.yn && (this.pf[this.pf.length] = this.od - this.pf[this.pf.length - 1] + this.pf[this.pf.length - 1])
  6902. }
  6903. this.Ev("h");
  6904. this.Ev("v");
  6905. this.Wk || (this.Nb.style[ke] = "0", this.io(400))
  6906. },
  6907. scrollTo: function(a, b, c, d) {
  6908. var e = a;
  6909. this.stop();
  6910. e.length || (e = [{
  6911. x: a,
  6912. y: b,
  6913. time: c,
  6914. mZ: d
  6915. }]);
  6916. a = 0;
  6917. for (b = e.length; a < b; a++) e[a].mZ && (e[a].x = this.x - e[a].x, e[a].y = this.y - e[a].y), this.Aj.push({
  6918. x: e[a].x,
  6919. y: e[a].y,
  6920. time: e[a].time || 0
  6921. });
  6922. this.AB()
  6923. },
  6924. disable: function() {
  6925. this.stop();
  6926. this.io(0);
  6927. this.enabled = q;
  6928. this.Vd(ye, window);
  6929. this.Vd(ze, window);
  6930. this.Vd(Ae, window)
  6931. },
  6932. enable: function() {
  6933. this.enabled = o
  6934. },
  6935. stop: function() {
  6936. this.options.Bi ? this.Vd(Be) : De(this.VB);
  6937. this.Aj = [];
  6938. this.Vl = this.rh = q
  6939. },
  6940. zoom: function(a, b, c, d) {
  6941. var e = c / this.scale;
  6942. this.options.Uk && (this.Wk = o, d = d === j ? 200 : d, a = a - this.TF - this.x, b = b - this.UF - this.y, this.x = a - a * e + this.x, this.y = b - b * e + this.y, this.scale = c, this.refresh(), this.x = 0 < this.x ? 0 : this.x < this.ee ? this.ee : this.x, this.y = this.y > this.nf ? this.nf : this.y < this.od ? this.od : this.y, this.Nb.style[ke] = d + "ms", this.Nb.style[ie] = "translate(" + this.x + "px," + this.y + "px) scale(" + c + ")" + Ee, this.Wk = q)
  6943. }
  6944. };
  6945. function he(a) {
  6946. if ("" === be) return a;
  6947. a = a.charAt(0).toUpperCase() + a.substr(1);
  6948. return be + a
  6949. }
  6950. ae = p;
  6951. function Ge(a) {
  6952. this.k = {
  6953. anchor: Vb,
  6954. offset: new L(0, 0),
  6955. maxWidth: "100%",
  6956. imageHeight: 80
  6957. };
  6958. var a = a || {},
  6959. b;
  6960. for (b in a) this.k[b] = a[b];
  6961. this.Hl = new bc(p, {
  6962. Of: "api"
  6963. });
  6964. this.bk = [];
  6965. this.P = p;
  6966. this.eg = {
  6967. height: this.k.imageHeight,
  6968. width: this.k.imageHeight * He
  6969. };
  6970. this.Pc = this.pB = this.$l = this.Yc = p
  6971. }
  6972. var Ie = [0, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 5, 5, 5, 6, 6, 7, 8, 8, 8, 9, 10],
  6973. Je = "\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(" ");
  6974. z.Sm(function(a) {
  6975. var b = p;
  6976. a.addEventListener("position_changed", function() {
  6977. a.k.visible && a.k.albumsControl === o && (b ? b.ny(a.Yb()) : (b = new Ge(a.k.albumsControlOptions), b.qa(a)))
  6978. });
  6979. a.addEventListener("albums_visible_changed", function() {
  6980. a.k.albumsControl === o ? (b ? b.ny(a.Yb()) : (b = new Ge(a.k.albumsControlOptions), b.qa(a)), b.show()) : b.U()
  6981. });
  6982. a.addEventListener("albums_options_changed", function() {
  6983. b && b.Lk(a.k.albumsControlOptions)
  6984. });
  6985. a.addEventListener("visible_changed", function() {
  6986. b && (a.$D() ? a.k.albumsControl === o && (b.B.style.visibility = "visible") : b.B.style.visibility = "hidden")
  6987. })
  6988. });
  6989. var He = 1.8;
  6990. G() && (He = 1);
  6991. x.extend(Ge.prototype, {
  6992. Lk: function(a) {
  6993. for (var b in a) this.k[b] = a[b];
  6994. a = this.k.imageHeight + "px";
  6995. this.qc(this.k.anchor);
  6996. this.B.style.width = isNaN(Number(this.k.maxWidth)) === o ? this.k.maxWidth : this.k.maxWidth + "px";
  6997. this.B.style.height = a;
  6998. this.gk.style.height = a;
  6999. this.Wh.style.height = a;
  7000. this.eg = {
  7001. height: this.k.imageHeight,
  7002. width: this.k.imageHeight * He
  7003. };
  7004. this.fk.style.height = this.eg.height - 6 + "px";
  7005. this.fk.style.width = this.eg.width - 6 + "px";
  7006. this.ny(this.P.Yb(), o)
  7007. },
  7008. qa: function(a) {
  7009. this.P = a;
  7010. this.ds();
  7011. this.ZP();
  7012. this.eY();
  7013. this.ny(a.Yb())
  7014. },
  7015. ds: function() {
  7016. var a = this.k.imageHeight + "px";
  7017. this.B = K("div");
  7018. var b = this.B.style;
  7019. b.cssText = "background:rgb(37,37,37);background:rgba(37,37,37,0.9);";
  7020. b.position = "absolute";
  7021. b.zIndex = "2000";
  7022. b.width = isNaN(Number(this.k.maxWidth)) === o ? this.k.maxWidth : this.k.maxWidth + "px";
  7023. b.padding = "8px 0";
  7024. b.visibility = "hidden";
  7025. b.height = a;
  7026. this.gk = K("div");
  7027. b = this.gk.style;
  7028. b.position = "absolute";
  7029. b.overflow = "hidden";
  7030. b.width = "100%";
  7031. b.height = a;
  7032. this.Wh = K("div");
  7033. b = this.Wh.style;
  7034. b.height = a;
  7035. this.gk.appendChild(this.Wh);
  7036. this.B.appendChild(this.gk);
  7037. this.P.B.appendChild(this.B);
  7038. this.fk = K("div", {
  7039. "class": "pano_photo_item_seleted"
  7040. });
  7041. this.fk.style.height = this.eg.height - 6 + "px";
  7042. this.fk.style.width = this.eg.width - 6 + "px";
  7043. this.qc(this.k.anchor)
  7044. },
  7045. BH: function(a) {
  7046. for (var b = this.bk, c = b.length - 1; 0 <= c; c--) if (b[c].panoId == a) return c;
  7047. return -1
  7048. },
  7049. ny: function(a, b) {
  7050. if (b || !this.bk[this.Yc] || !(this.bk[this.Yc].panoId == a && 3 !== this.bk[this.Yc].recoType)) {
  7051. var c = this,
  7052. d = this.BH(a);
  7053. !b && -1 !== d && this.bk[d] && 3 !== this.bk[d].recoType ? this.Jp(d) : this.xX(function(a) {
  7054. for (var b = {}, d, i, k = q, l = [], m = 0, n = a.length; m < n; m++) d = a[m].catlog, i = a[m].floor, j !== d && ("" === d && j !== i ? (k = o, b[i] || (b[i] = []), b[i].push(a[m])) : (b[Ie[d]] || (b[Ie[d]] = []), b[Ie[d]].push(a[m])));
  7055. for (var u in b) k ? l.push({
  7056. data: u + "F",
  7057. index: u
  7058. }) : l.push({
  7059. data: Je[u],
  7060. index: u
  7061. });
  7062. c.TG = b;
  7063. c.Pi = l;
  7064. c.Dl(a);
  7065. 0 == a.length ? c.U() : c.show()
  7066. })
  7067. }
  7068. },
  7069. RV: function() {
  7070. if (!this.Mi) {
  7071. var a = this.lX(this.Pi),
  7072. b = K("div");
  7073. b.style.cssText = ["width:" + 134 * this.Pi.length + "px;", "overflow:hidden;-ms-user-select:none;-moz-user-select:none;-webkit-user-select:none;"].join("");
  7074. b.innerHTML = a;
  7075. a = K("div");
  7076. a.appendChild(b);
  7077. a.style.cssText = "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";
  7078. new Fe(a, {
  7079. Bo: q,
  7080. Ux: o,
  7081. mi: q,
  7082. Ci: q,
  7083. vn: q,
  7084. DE: o,
  7085. Bw: o,
  7086. zx: o
  7087. });
  7088. this.B.appendChild(a);
  7089. for (var c = this, d = b.getElementsByTagName("span"), e = 0, f = d.length; e < f; e++) b = d[e], x.M(b, "click", function() {
  7090. if (this.getAttribute("dataindex")) {
  7091. c.Dl(c.TG[this.getAttribute("dataindex")]);
  7092. for (var a = 0, b = d.length; a < b; a++) d[a].style.color = "#FFFFFF";
  7093. this.style.color = "#3383FF"
  7094. }
  7095. });
  7096. this.Mi = a
  7097. }
  7098. },
  7099. OV: function() {
  7100. if (this.Mi) a = this.iL(this.Pi), this.oQ.innerHTML = a;
  7101. else {
  7102. var a = this.iL(this.Pi),
  7103. b = K("ul"),
  7104. c = this;
  7105. b.style.cssText = "list-style: none;padding:0px;margin:0px;display:block;width:60px;position:absolute;top:7px";
  7106. b.innerHTML = a;
  7107. x.M(b, "click", function(a) {
  7108. if (a = (a.srcElement || a.target).getAttribute("dataindex")) {
  7109. c.Dl(c.TG[a]);
  7110. for (var d = b.getElementsByTagName("li"), e = 0, f = d.length; e < f; e++) d[e].childNodes[0].getAttribute("dataindex") === a ? x.D.Ta(d[e], "pano_catlogLiActive") : x.D.Rb(d[e], "pano_catlogLiActive")
  7111. }
  7112. });
  7113. var a = K("div"),
  7114. d = K("a"),
  7115. e = K("span"),
  7116. f = K("a"),
  7117. g = K("span"),
  7118. i = ["background:url(" + F.pa + "panorama/catlog_icon.png) no-repeat;", "display:block;width:10px;height:7px;margin:0 auto;"].join("");
  7119. e.style.cssText = i + "background-position:-18px 0;";
  7120. d.style.cssText = "background:#1C1C1C;display:block;position:absolute;width:58px;";
  7121. g.style.cssText = i + "background-position:0 0;";
  7122. f.style.cssText = "background:#1C1C1C;display:block;position:absolute;width:58px;";
  7123. f.style.top = this.k.imageHeight - 7 + "px";
  7124. a.style.cssText = "position:absolute;top:0px;left:0px;width:60px;";
  7125. d.appendChild(e);
  7126. f.appendChild(g);
  7127. x.M(d, "mouseover", function() {
  7128. var a = parseInt(b.style.top, 10);
  7129. 7 !== a && (e.style.backgroundPosition = "-27px 0");
  7130. new sb({
  7131. Ic: 60,
  7132. hc: tb.Cs,
  7133. duration: 300,
  7134. ua: function(c) {
  7135. b.style.top = a + (7 - a) * c + "px"
  7136. }
  7137. })
  7138. });
  7139. x.M(d, "mouseout", function() {
  7140. e.style.backgroundPosition = "-18px 0"
  7141. });
  7142. x.M(f, "mouseover", function() {
  7143. var a = parseInt(b.style.top, 10),
  7144. d = c.k.imageHeight - 14;
  7145. if (!(parseInt(b.offsetHeight, 10) < d)) {
  7146. var e = d - parseInt(b.offsetHeight, 10) + 7;
  7147. e !== a && (g.style.backgroundPosition = "-9px 0");
  7148. new sb({
  7149. Ic: 60,
  7150. hc: tb.Cs,
  7151. duration: 300,
  7152. ua: function(c) {
  7153. b.style.top = a + (e - a) * c + "px"
  7154. }
  7155. })
  7156. }
  7157. });
  7158. x.M(f, "mouseout", function() {
  7159. g.style.backgroundPosition = "0 0"
  7160. });
  7161. a.appendChild(d);
  7162. a.appendChild(f);
  7163. d = K("div");
  7164. d.style.cssText = ["position:absolute;z-index:2001;left:20px;", "height:" + this.k.imageHeight + "px;", "width:62px;overflow:hidden;background:rgb(37,37,37);background:rgba(37,37,37,0.9);"].join("");
  7165. d.appendChild(b);
  7166. d.appendChild(a);
  7167. this.Mi = d;
  7168. this.oQ = b;
  7169. this.B.appendChild(d)
  7170. }
  7171. },
  7172. PV: function() {
  7173. if (this.Pi && !(0 >= this.Pi.length)) {
  7174. var a = K("div");
  7175. a.innerHTML = this.Xz;
  7176. a.style.cssText = "position:absolute;background:#252525";
  7177. this.B.appendChild(a);
  7178. this.Gs = a;
  7179. this.Pc.fg.style.left = this.eg.width + 8 + "px";
  7180. this.Mi && (this.Mi.style.left = parseInt(this.Mi.style.left, 10) + this.eg.width + 8 + "px");
  7181. var b = this;
  7182. x.M(a, "click", function() {
  7183. b.P.rc(b.zW)
  7184. })
  7185. }
  7186. },
  7187. Dl: function(a) {
  7188. this.bk = a;
  7189. this.k.showCatalog && (0 < this.Pi.length ? (Ta() ? this.OV() : this.RV(), this.Pc.offsetLeft = 60) : (this.Gs && (this.B.removeChild(this.Gs), this.Gs = p, this.Pc.fg.style.left = "0px"), this.Mi && (this.B.removeChild(this.Mi), this.Mi = p), this.Pc.offsetLeft = 0));
  7190. var b = this.fX(a);
  7191. Ta() && (this.Pi && 0 < this.Pi.length && this.k.showExit && this.Xz) && (this.Pc.offsetLeft += this.eg.width + 8, this.Gs ? this.Gs.innerHTML = this.Xz : this.PV());
  7192. this.Wh.innerHTML = b;
  7193. this.Wh.style.width = (this.eg.width + 8) * a.length + 8 + "px";
  7194. a = this.B.offsetWidth;
  7195. b = this.Wh.offsetWidth;
  7196. this.Pc.Ns && (b += this.Pc.Ns());
  7197. b < a - 2 * this.Pc.Gi - this.Pc.offsetLeft ? this.B.style.width = b + this.Pc.offsetLeft + "px" : (this.B.style.width = isNaN(Number(this.k.maxWidth)) === o ? this.k.maxWidth : this.k.maxWidth + "px", b < this.B.offsetWidth - 2 * this.Pc.Gi - this.Pc.offsetLeft && (this.B.style.width = b + this.Pc.offsetLeft + "px"));
  7198. this.Pc.refresh();
  7199. this.pB = this.Wh.children;
  7200. this.Wh.appendChild(this.fk);
  7201. this.fk.style.left = "-100000px";
  7202. a = this.BH(this.P.Yb(), this.Y0); - 1 !== a && this.Jp(a)
  7203. },
  7204. lX: function(a) {
  7205. for (var b = "", c, d = 0, e = a.length; d < e; d++) c = '<div style="color:white;opacity:0.5;margin:0 35px;float:left;text-align: center"><span dataIndex="' + a[d].index + '">' + a[d].data + "</span></div>", b += c;
  7206. return b
  7207. },
  7208. iL: function(a) {
  7209. for (var b = "", c, d = 0, e = a.length; d < e; d++) c = '<li class="pano_catlogLi"><span style="display:block;width:100%;" dataIndex="' + a[d].index + '">' + a[d].data + "</span></li>", b += c;
  7210. return b
  7211. },
  7212. fX: function(a) {
  7213. for (var b, c, d, e, f = [], g = this.eg.height, i = this.eg.width, k = 0; k < a.length; k++) b = a[k], recoType = b.recoType, d = b.panoId, e = b.name, c = b.heading, b = b.pitch, c = Yd.uL(d, c, b, 198, 108), b = '<a href="javascript:void(0);" class="pano_photo_item" data-index="' + k + '"><img style="width:' + (i - 2) + "px;height:" + (g - 2) + 'px;" data-index="' + k + '" name="' + e + '" src="' + c + '" alt="' + e + '"/><span class="pano_photo_decs" data-index="' + k + '" style="width:' + i + "px;font-size:" + Math.floor(g / 6) + "px; line-height:" + Math.floor(g / 6) + 'px;"><em class="pano_poi_' + recoType + '"></em>' + e + "</span></a>", 3 === recoType ? Ta() ? (this.Xz = b, this.zW = d, a.splice(k, 1), k--) : (b = '<a href="javascript:void(0);" class="pano_photo_item" data-index="' + k + '"><img style="width:' + (i - 2) + "px;height:" + (g - 2) + 'px;" data-index="' + k + '" name="' + e + '" src="' + c + '" alt="' + e + '"/><div style="background:rgba(37,37,37,0.5);position:absolute;top:0px;left:0px;width:100%;height:100%;text-align: center;line-height:' + this.k.imageHeight + 'px;" data-index="' + k + '"><img src="' + F.pa + 'panorama/photoexit.png" style="border:none;vertical-align:middle;" data-index="' + k + '" alt=""/></div></a>', f.push(b)) : f.push(b);
  7214. return f.join("")
  7215. },
  7216. xX: function(a) {
  7217. var b = this,
  7218. c = this.P.Yb();
  7219. c && this.Hl.wx(c, function(d) {
  7220. b.P.Yb() === c && a(d)
  7221. })
  7222. },
  7223. qc: function(a) {
  7224. if (!Va(a) || isNaN(a) || a < Tb || 3 < a) a = this.defaultAnchor;
  7225. var b = this.B,
  7226. c = this.k.offset.width,
  7227. d = this.k.offset.height;
  7228. b.style.left = b.style.top = b.style.right = b.style.bottom = "auto";
  7229. switch (a) {
  7230. case Tb:
  7231. b.style.top = d + "px";
  7232. b.style.left = c + "px";
  7233. break;
  7234. case Ub:
  7235. b.style.top = d + "px";
  7236. b.style.right = c + "px";
  7237. break;
  7238. case Vb:
  7239. b.style.bottom = d + "px";
  7240. b.style.left = c + "px";
  7241. break;
  7242. case 3:
  7243. b.style.bottom = d + "px", b.style.right = c + "px"
  7244. }
  7245. },
  7246. ZP: function() {
  7247. this.XP()
  7248. },
  7249. XP: function() {
  7250. var a = this;
  7251. x.M(this.B, "touchstart", function(a) {
  7252. a.stopPropagation()
  7253. });
  7254. x.M(this.gk, "click", function(b) {
  7255. if ((b = (b.srcElement || b.target).getAttribute("data-index")) && b != a.Yc) a.Jp(b), a.P.rc(a.bk[b].panoId)
  7256. });
  7257. x.M(this.Wh, "mouseover", function(b) {
  7258. b = (b.srcElement || b.target).getAttribute("data-index");
  7259. b !== p && a.kK(b, o)
  7260. });
  7261. this.P.addEventListener("size_changed", function() {
  7262. isNaN(Number(a.k.maxWidth)) && a.Lk({
  7263. maxWidth: a.k.maxWidth
  7264. })
  7265. })
  7266. },
  7267. Jp: function(a) {
  7268. this.fk.style.left = this.pB[a].offsetLeft + 8 + "px";
  7269. this.fk.setAttribute("data-index", this.pB[a].getAttribute("data-index"));
  7270. this.Yc = a;
  7271. this.kK(a)
  7272. },
  7273. kK: function(a, b) {
  7274. var c = this.eg.width + 8,
  7275. d = 0;
  7276. this.Pc.Ns && (d = this.Pc.Ns() / 2);
  7277. var e = this.gk.offsetWidth - 2 * d,
  7278. f = this.Wh.offsetLeft || this.Pc.x,
  7279. f = f - d,
  7280. g = -a * c;
  7281. g > f && this.Pc.scrollTo(g + d);
  7282. c = g - c;
  7283. f -= e;
  7284. c < f && (!b || b && 8 < g - f) && this.Pc.scrollTo(c + e + d)
  7285. },
  7286. eY: function() {
  7287. this.Pc = G() ? new Fe(this.gk, {
  7288. Bo: q,
  7289. Ux: o,
  7290. mi: q,
  7291. Ci: q,
  7292. vn: q,
  7293. DE: o,
  7294. Bw: o,
  7295. zx: o
  7296. }) : new Ke(this.gk)
  7297. },
  7298. U: function() {
  7299. this.B.style.visibility = "hidden"
  7300. },
  7301. show: function() {
  7302. this.B.style.visibility = "visible"
  7303. }
  7304. });
  7305. function Ke(a) {
  7306. this.B = a;
  7307. this.Ug = a.children[0];
  7308. this.Lr = p;
  7309. this.Gi = 20;
  7310. this.offsetLeft = 0;
  7311. this.qa()
  7312. }
  7313. Ke.prototype = {
  7314. qa: function() {
  7315. this.Ug.style.position = "relative";
  7316. this.refresh();
  7317. this.ds();
  7318. this.Yl()
  7319. },
  7320. refresh: function() {
  7321. this.co = this.B.offsetWidth - this.Ns();
  7322. this.PA = -(this.Ug.offsetWidth - this.co - this.Gi);
  7323. this.rv = this.Gi + this.offsetLeft;
  7324. this.Ug.style.left = this.rv + "px";
  7325. this.Ug.children[0] && (this.Lr = this.Ug.children[0].offsetWidth);
  7326. this.fg && (this.fg.children[0].style.marginTop = this.Dr.children[0].style.marginTop = this.fg.offsetHeight / 2 - this.fg.children[0].offsetHeight / 2 + "px")
  7327. },
  7328. Ns: function() {
  7329. return 2 * this.Gi
  7330. },
  7331. ds: function() {
  7332. this.Fv = K("div");
  7333. this.Fv.innerHTML = '<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>';
  7334. this.fg = this.Fv.children[0];
  7335. this.Dr = this.Fv.children[1];
  7336. this.B.appendChild(this.Fv);
  7337. this.fg.children[0].style.marginTop = this.Dr.children[0].style.marginTop = this.fg.offsetHeight / 2 - this.fg.children[0].offsetHeight / 2 + "px"
  7338. },
  7339. Yl: function() {
  7340. var a = this;
  7341. x.M(this.fg, "click", function() {
  7342. a.scrollTo(a.Ug.offsetLeft + a.co)
  7343. });
  7344. x.M(this.Dr, "click", function() {
  7345. a.scrollTo(a.Ug.offsetLeft - a.co)
  7346. })
  7347. },
  7348. BU: function() {
  7349. x.D.Rb(this.fg, "pano_arrow_disable");
  7350. x.D.Rb(this.Dr, "pano_arrow_disable");
  7351. var a = this.Ug.offsetLeft;
  7352. a >= this.rv && x.D.Ta(this.fg, "pano_arrow_disable");
  7353. a - this.co <= this.PA && x.D.Ta(this.Dr, "pano_arrow_disable")
  7354. },
  7355. scrollTo: function(a) {
  7356. a = a < this.Ug.offsetLeft ? Math.ceil((a - this.Gi - this.co) / this.Lr) * this.Lr + this.co + this.Gi - 8 : Math.ceil((a - this.Gi) / this.Lr) * this.Lr + this.Gi;
  7357. a < this.PA ? a = this.PA : a > this.rv && (a = this.rv);
  7358. var b = this.Ug.offsetLeft,
  7359. c = this;
  7360. new sb({
  7361. Ic: 60,
  7362. hc: tb.Cs,
  7363. duration: 300,
  7364. ua: function(d) {
  7365. c.Ug.style.left = b + (a - b) * d + "px"
  7366. },
  7367. finish: function() {
  7368. c.BU()
  7369. }
  7370. })
  7371. }
  7372. };
  7373. z.Map = Ka;
  7374. z.Hotspot = ib;
  7375. z.MapType = Rc;
  7376. z.Point = H;
  7377. z.Pixel = Q;
  7378. z.Size = L;
  7379. z.Bounds = fb;
  7380. z.TileLayer = Ec;
  7381. z.Projection = gc;
  7382. z.MercatorProjection = R;
  7383. z.PerspectiveProjection = hb;
  7384. z.Copyright = function(a, b, c) {
  7385. this.id = a;
  7386. this.gb = b;
  7387. this.content = c
  7388. };
  7389. z.Overlay = jc;
  7390. z.Label = rc;
  7391. z.GroundOverlay = sc;
  7392. z.PointCollection = wc;
  7393. z.Marker = T;
  7394. z.Icon = nc;
  7395. z.IconSequence = pc;
  7396. z.Symbol = oc;
  7397. z.Polyline = Ac;
  7398. z.Polygon = zc;
  7399. z.InfoWindow = qc;
  7400. z.Circle = Bc;
  7401. z.Control = Sb;
  7402. z.NavigationControl = jb;
  7403. z.GeolocationControl = Wb;
  7404. z.OverviewMapControl = lb;
  7405. z.CopyrightControl = Xb;
  7406. z.ScaleControl = kb;
  7407. z.MapTypeControl = mb;
  7408. z.CityListControl = Yb;
  7409. z.PanoramaControl = $b;
  7410. z.TrafficLayer = Nc;
  7411. z.CustomLayer = nb;
  7412. z.ContextMenu = cc;
  7413. z.MenuItem = fc;
  7414. z.LocalSearch = bb;
  7415. z.TransitRoute = rd;
  7416. z.DrivingRoute = ud;
  7417. z.WalkingRoute = vd;
  7418. z.Autocomplete = Hd;
  7419. z.RouteSearch = zd;
  7420. z.Geocoder = Ad;
  7421. z.LocalCity = Ed;
  7422. z.Geolocation = Geolocation;
  7423. z.Convertor = ic;
  7424. z.BusLineSearch = Gd;
  7425. z.Boundary = Fd;
  7426. z.VectorCloudLayer = Lc;
  7427. z.VectorTrafficLayer = Mc;
  7428. z.Panorama = Na;
  7429. z.PanoramaLabel = Nd;
  7430. z.PanoramaService = bc;
  7431. z.PanoramaCoverageLayer = ac;
  7432. z.PanoramaFlashInterface = Wd;
  7433. function S(a, b) {
  7434. for (var c in b) a[c] = b[c]
  7435. }
  7436. S(window, {
  7437. BMap: z,
  7438. _jsload2: function(a, b) {
  7439. ha.Iy.oY && ha.Iy.set(a, b);
  7440. I.sV(a, b)
  7441. },
  7442. BMAP_API_VERSION: "2.0"
  7443. });
  7444. var W = Ka.prototype;
  7445. S(W, {
  7446. getBounds: W.Gd,
  7447. getCenter: W.Ja,
  7448. getMapType: W.oa,
  7449. getSize: W.yb,
  7450. setSize: W.xe,
  7451. getViewport: W.Zs,
  7452. getZoom: W.fa,
  7453. centerAndZoom: W.Cd,
  7454. panTo: W.ui,
  7455. panBy: W.yg,
  7456. setCenter: W.Vf,
  7457. setCurrentCity: W.qF,
  7458. setMapType: W.Bg,
  7459. setViewport: W.Bh,
  7460. setZoom: W.Oc,
  7461. highResolutionEnabled: W.dE,
  7462. zoomTo: W.Fg,
  7463. zoomIn: W.VF,
  7464. zoomOut: W.WF,
  7465. addHotspot: W.nw,
  7466. removeHotspot: W.oZ,
  7467. clearHotspots: W.bm,
  7468. checkResize: W.vV,
  7469. addControl: W.lw,
  7470. removeControl: W.vN,
  7471. getContainer: W.Na,
  7472. addContextMenu: W.uo,
  7473. removeContextMenu: W.zp,
  7474. addOverlay: W.Ia,
  7475. removeOverlay: W.Sb,
  7476. clearOverlays: W.hK,
  7477. openInfoWindow: W.Mb,
  7478. closeInfoWindow: W.Xc,
  7479. pointToOverlayPixel: W.Re,
  7480. overlayPixelToPoint: W.kN,
  7481. getInfoWindow: W.jh,
  7482. getOverlays: W.tx,
  7483. getPanes: function() {
  7484. return {
  7485. floatPane: this.Td.sD,
  7486. markerMouseTarget: this.Td.GE,
  7487. floatShadow: this.Td.aL,
  7488. labelPane: this.Td.zE,
  7489. markerPane: this.Td.EM,
  7490. markerShadow: this.Td.FM,
  7491. mapPane: this.Td.ot,
  7492. vertexPane: this.Td.OO
  7493. }
  7494. },
  7495. addTileLayer: W.Yg,
  7496. removeTileLayer: W.zh,
  7497. pixelToPoint: W.ub,
  7498. pointToPixel: W.ac,
  7499. setFeatureStyle: W.Ip,
  7500. selectBaseElement: W.S3,
  7501. setMapStyle: W.Nt,
  7502. enable3DBuilding: W.Mo,
  7503. disable3DBuilding: W.eW,
  7504. getPanorama: W.rm
  7505. });
  7506. var Le = Rc.prototype;
  7507. S(Le, {
  7508. getTileLayer: Le.IX,
  7509. getMinZoom: Le.Xo,
  7510. getMaxZoom: Le.qm,
  7511. getProjection: Le.bp,
  7512. getTextColor: Le.wm,
  7513. getTips: Le.Ys
  7514. });
  7515. S(window, {
  7516. BMAP_NORMAL_MAP: La,
  7517. BMAP_PERSPECTIVE_MAP: Oa,
  7518. BMAP_SATELLITE_MAP: Xa,
  7519. BMAP_HYBRID_MAP: Ra
  7520. });
  7521. var Me = R.prototype;
  7522. S(Me, {
  7523. lngLatToPoint: Me.nh,
  7524. pointToLngLat: Me.wi
  7525. });
  7526. var Ne = hb.prototype;
  7527. S(Ne, {
  7528. lngLatToPoint: Ne.nh,
  7529. pointToLngLat: Ne.wi
  7530. });
  7531. var Oe = fb.prototype;
  7532. S(Oe, {
  7533. equals: Oe.mb,
  7534. containsPoint: Oe.bs,
  7535. containsBounds: Oe.GV,
  7536. intersects: Oe.ft,
  7537. extend: Oe.extend,
  7538. getCenter: Oe.Ja,
  7539. isEmpty: Oe.yj,
  7540. getSouthWest: Oe.re,
  7541. getNorthEast: Oe.kf,
  7542. toSpan: Oe.KF
  7543. });
  7544. var Pe = jc.prototype;
  7545. S(Pe, {
  7546. isVisible: Pe.mh,
  7547. show: Pe.show,
  7548. hide: Pe.U
  7549. });
  7550. jc.getZIndex = jc.ym;
  7551. var Qe = gb.prototype;
  7552. S(Qe, {
  7553. openInfoWindow: Qe.Mb,
  7554. closeInfoWindow: Qe.Xc,
  7555. enableMassClear: Qe.ii,
  7556. disableMassClear: Qe.gW,
  7557. show: Qe.show,
  7558. hide: Qe.U,
  7559. getMap: Qe.nx,
  7560. addContextMenu: Qe.uo,
  7561. removeContextMenu: Qe.zp
  7562. });
  7563. var Re = T.prototype;
  7564. S(Re, {
  7565. setIcon: Re.Tb,
  7566. getIcon: Re.Wo,
  7567. setPosition: Re.sa,
  7568. getPosition: Re.ha,
  7569. setOffset: Re.Te,
  7570. getOffset: Re.Pf,
  7571. getLabel: Re.MD,
  7572. setLabel: Re.fn,
  7573. setTitle: Re.Dc,
  7574. setTop: Re.zi,
  7575. enableDragging: Re.Xb,
  7576. disableDragging: Re.KC,
  7577. setZIndex: Re.St,
  7578. getMap: Re.nx,
  7579. setAnimation: Re.dn,
  7580. setShadow: Re.zy,
  7581. hide: Re.U,
  7582. setRotation: Re.Lp,
  7583. getRotation: Re.yL
  7584. });
  7585. S(window, {
  7586. BMAP_ANIMATION_DROP: 1,
  7587. BMAP_ANIMATION_BOUNCE: 2
  7588. });
  7589. var Se = rc.prototype;
  7590. S(Se, {
  7591. setStyle: Se.Kd,
  7592. setStyles: Se.yi,
  7593. setContent: Se.bd,
  7594. setPosition: Se.sa,
  7595. getPosition: Se.ha,
  7596. setOffset: Se.Te,
  7597. getOffset: Se.Pf,
  7598. setTitle: Se.Dc,
  7599. setZIndex: Se.St,
  7600. getMap: Se.nx,
  7601. getContent: Se.uk
  7602. });
  7603. var Te = nc.prototype;
  7604. S(Te, {
  7605. setImageUrl: Te.MN,
  7606. setSize: Te.xe,
  7607. setAnchor: Te.qc,
  7608. setImageOffset: Te.Mt,
  7609. setImageSize: Te.RZ,
  7610. setInfoWindowAnchor: Te.UZ,
  7611. setPrintImageUrl: Te.d_
  7612. });
  7613. var We = qc.prototype;
  7614. S(We, {
  7615. redraw: We.fe,
  7616. setTitle: We.Dc,
  7617. setContent: We.bd,
  7618. getContent: We.uk,
  7619. getPosition: We.ha,
  7620. enableMaximize: We.dh,
  7621. disableMaximize: We.Uw,
  7622. isOpen: We.Va,
  7623. setMaxContent: We.Ot,
  7624. maximize: We.Tx,
  7625. enableAutoPan: We.Ds
  7626. });
  7627. var Xe = lc.prototype;
  7628. S(Xe, {
  7629. getPath: Xe.pe,
  7630. setPath: Xe.ge,
  7631. setPositionAt: Xe.hn,
  7632. getStrokeColor: Xe.DX,
  7633. setStrokeWeight: Xe.Op,
  7634. getStrokeWeight: Xe.BL,
  7635. setStrokeOpacity: Xe.Mp,
  7636. getStrokeOpacity: Xe.EX,
  7637. setFillOpacity: Xe.Lt,
  7638. getFillOpacity: Xe.aX,
  7639. setStrokeStyle: Xe.Np,
  7640. getStrokeStyle: Xe.AL,
  7641. getFillColor: Xe.$W,
  7642. getBounds: Xe.Gd,
  7643. enableEditing: Xe.Nf,
  7644. disableEditing: Xe.fW
  7645. });
  7646. var Ye = Bc.prototype;
  7647. S(Ye, {
  7648. setCenter: Ye.Vf,
  7649. getCenter: Ye.Ja,
  7650. getRadius: Ye.wL,
  7651. setRadius: Ye.qf
  7652. });
  7653. var Ze = zc.prototype;
  7654. S(Ze, {
  7655. getPath: Ze.pe,
  7656. setPath: Ze.ge,
  7657. setPositionAt: Ze.hn
  7658. });
  7659. var $e = ib.prototype;
  7660. S($e, {
  7661. getPosition: $e.ha,
  7662. setPosition: $e.sa,
  7663. getText: $e.WD,
  7664. setText: $e.Rt
  7665. });
  7666. H.prototype.equals = H.prototype.mb;
  7667. Q.prototype.equals = Q.prototype.mb;
  7668. L.prototype.equals = L.prototype.mb;
  7669. S(window, {
  7670. BMAP_ANCHOR_TOP_LEFT: Tb,
  7671. BMAP_ANCHOR_TOP_RIGHT: Ub,
  7672. BMAP_ANCHOR_BOTTOM_LEFT: Vb,
  7673. BMAP_ANCHOR_BOTTOM_RIGHT: 3
  7674. });
  7675. var af = Sb.prototype;
  7676. S(af, {
  7677. setAnchor: af.qc,
  7678. getAnchor: af.yD,
  7679. setOffset: af.Te,
  7680. getOffset: af.Pf,
  7681. show: af.show,
  7682. hide: af.U,
  7683. isVisible: af.mh,
  7684. toString: af.toString
  7685. });
  7686. var bf = jb.prototype;
  7687. S(bf, {
  7688. getType: bf.fp,
  7689. setType: bf.jn
  7690. });
  7691. S(window, {
  7692. BMAP_NAVIGATION_CONTROL_LARGE: 0,
  7693. BMAP_NAVIGATION_CONTROL_SMALL: 1,
  7694. BMAP_NAVIGATION_CONTROL_PAN: 2,
  7695. BMAP_NAVIGATION_CONTROL_ZOOM: 3
  7696. });
  7697. var cf = lb.prototype;
  7698. S(cf, {
  7699. changeView: cf.me,
  7700. setSize: cf.xe,
  7701. getSize: cf.yb
  7702. });
  7703. var df = kb.prototype;
  7704. S(df, {
  7705. getUnit: df.MX,
  7706. setUnit: df.yF
  7707. });
  7708. S(window, {
  7709. BMAP_UNIT_METRIC: "metric",
  7710. BMAP_UNIT_IMPERIAL: "us"
  7711. });
  7712. var ef = Xb.prototype;
  7713. S(ef, {
  7714. addCopyright: ef.mw,
  7715. removeCopyright: ef.cF,
  7716. getCopyright: ef.om,
  7717. getCopyrightCollection: ef.FD
  7718. });
  7719. S(window, {
  7720. BMAP_MAPTYPE_CONTROL_HORIZONTAL: Zb,
  7721. BMAP_MAPTYPE_CONTROL_DROPDOWN: 1,
  7722. BMAP_MAPTYPE_CONTROL_MAP: 2
  7723. });
  7724. var ff = Ec.prototype;
  7725. S(ff, {
  7726. getMapType: ff.oa,
  7727. getCopyright: ff.om,
  7728. isTransparentPng: ff.lt
  7729. });
  7730. var gf = cc.prototype;
  7731. S(gf, {
  7732. addItem: gf.ow,
  7733. addSeparator: gf.RB,
  7734. removeSeparator: gf.eF
  7735. });
  7736. var jf = fc.prototype;
  7737. S(jf, {
  7738. setText: jf.Rt
  7739. });
  7740. var kf = V.prototype;
  7741. S(kf, {
  7742. getStatus: kf.um,
  7743. setSearchCompleteCallback: kf.wF,
  7744. getPageCapacity: kf.lf,
  7745. setPageCapacity: kf.Kp,
  7746. setLocation: kf.gn,
  7747. disableFirstResultSelection: kf.LC,
  7748. enableFirstResultSelection: kf.hD,
  7749. gotoPage: kf.zm,
  7750. searchNearby: kf.Gp,
  7751. searchInBounds: kf.bn,
  7752. search: kf.search
  7753. });
  7754. S(window, {
  7755. BMAP_STATUS_SUCCESS: 0,
  7756. BMAP_STATUS_CITY_LIST: 1,
  7757. BMAP_STATUS_UNKNOWN_LOCATION: 2,
  7758. BMAP_STATUS_UNKNOWN_ROUTE: 3,
  7759. BMAP_STATUS_INVALID_KEY: 4,
  7760. BMAP_STATUS_INVALID_REQUEST: 5,
  7761. BMAP_STATUS_PERMISSION_DENIED: 6,
  7762. BMAP_STATUS_SERVICE_UNAVAILABLE: 7,
  7763. BMAP_STATUS_TIMEOUT: 8
  7764. });
  7765. S(window, {
  7766. BMAP_POI_TYPE_NORMAL: 0,
  7767. BMAP_POI_TYPE_BUSSTOP: 1,
  7768. BMAP_POI_TYPE_BUSLINE: 2,
  7769. BMAP_POI_TYPE_SUBSTOP: 3,
  7770. BMAP_POI_TYPE_SUBLINE: 4
  7771. });
  7772. S(window, {
  7773. BMAP_TRANSIT_POLICY_LEAST_TIME: 0,
  7774. BMAP_TRANSIT_POLICY_LEAST_TRANSFER: 2,
  7775. BMAP_TRANSIT_POLICY_LEAST_WALKING: 3,
  7776. BMAP_TRANSIT_POLICY_AVOID_SUBWAYS: 4,
  7777. BMAP_LINE_TYPE_BUS: 0,
  7778. BMAP_LINE_TYPE_SUBWAY: 1,
  7779. BMAP_LINE_TYPE_FERRY: 2
  7780. });
  7781. var lf = qd.prototype;
  7782. S(lf, {
  7783. clearResults: lf.Me
  7784. });
  7785. sd = rd.prototype;
  7786. S(sd, {
  7787. setPolicy: sd.Qt,
  7788. toString: sd.toString,
  7789. setPageCapacity: sd.Kp
  7790. });
  7791. S(window, {
  7792. BMAP_DRIVING_POLICY_LEAST_TIME: 0,
  7793. BMAP_DRIVING_POLICY_LEAST_DISTANCE: 1,
  7794. BMAP_DRIVING_POLICY_AVOID_HIGHWAYS: 2
  7795. });
  7796. S(window, {
  7797. BMAP_MODE_DRIVING: "driving",
  7798. BMAP_MODE_TRANSIT: "transit",
  7799. BMAP_MODE_WALKING: "walking",
  7800. BMAP_MODE_NAVIGATION: "navigation"
  7801. });
  7802. var mf = zd.prototype;
  7803. S(mf, {
  7804. routeCall: mf.GN
  7805. });
  7806. S(window, {
  7807. BMAP_HIGHLIGHT_STEP: 1,
  7808. BMAP_HIGHLIGHT_ROUTE: 2
  7809. });
  7810. S(window, {
  7811. BMAP_ROUTE_TYPE_DRIVING: bd,
  7812. BMAP_ROUTE_TYPE_WALKING: ad
  7813. });
  7814. S(window, {
  7815. BMAP_ROUTE_STATUS_NORMAL: dd,
  7816. BMAP_ROUTE_STATUS_EMPTY: 1,
  7817. BMAP_ROUTE_STATUS_ADDRESS: 2
  7818. });
  7819. var nf = ud.prototype;
  7820. S(nf, {
  7821. setPolicy: nf.Qt
  7822. });
  7823. var of = Hd.prototype;
  7824. S(of, {
  7825. show: of.show,
  7826. hide: of.U,
  7827. setTypes: of.xF,
  7828. setLocation: of.gn,
  7829. search: of.search,
  7830. setInputValue: of.wy
  7831. });
  7832. S(nb.prototype, {});
  7833. var pf = Fd.prototype;
  7834. S(pf, {
  7835. get: pf.get
  7836. });
  7837. S(ac.prototype, {});
  7838. S(db.prototype, {});
  7839. S(window, {
  7840. BMAP_POINT_DENSITY_HIGH: 200,
  7841. BMAP_POINT_DENSITY_MEDIUM: Qc,
  7842. BMAP_POINT_DENSITY_LOW: 50
  7843. });
  7844. S(window, {
  7845. BMAP_POINT_SHAPE_STAR: 1,
  7846. BMAP_POINT_SHAPE_WATERDROP: 2,
  7847. BMAP_POINT_SHAPE_CIRCLE: tc,
  7848. BMAP_POINT_SHAPE_SQUARE: 4,
  7849. BMAP_POINT_SHAPE_RHOMBUS: 5
  7850. });
  7851. S(window, {
  7852. BMAP_POINT_SIZE_TINY: 1,
  7853. BMAP_POINT_SIZE_SMALLER: 2,
  7854. BMAP_POINT_SIZE_SMALL: 3,
  7855. BMAP_POINT_SIZE_NORMAL: uc,
  7856. BMAP_POINT_SIZE_BIG: 5,
  7857. BMAP_POINT_SIZE_BIGGER: 6,
  7858. BMAP_POINT_SIZE_HUGE: 7
  7859. });
  7860. S(window, {
  7861. BMap_Symbol_SHAPE_CAMERA: 11,
  7862. BMap_Symbol_SHAPE_WARNING: 12,
  7863. BMap_Symbol_SHAPE_SMILE: 13,
  7864. BMap_Symbol_SHAPE_CLOCK: 14,
  7865. BMap_Symbol_SHAPE_POINT: 9,
  7866. BMap_Symbol_SHAPE_PLANE: 10,
  7867. BMap_Symbol_SHAPE_CIRCLE: 1,
  7868. BMap_Symbol_SHAPE_RECTANGLE: 2,
  7869. BMap_Symbol_SHAPE_RHOMBUS: 3,
  7870. BMap_Symbol_SHAPE_STAR: 4,
  7871. BMap_Symbol_SHAPE_BACKWARD_CLOSED_ARROW: 5,
  7872. BMap_Symbol_SHAPE_FORWARD_CLOSED_ARROW: 6,
  7873. BMap_Symbol_SHAPE_BACKWARD_OPEN_ARROW: 7,
  7874. BMap_Symbol_SHAPE_FORWARD_OPEN_ARROW: 8
  7875. });
  7876. S(window, {
  7877. BMAP_CONTEXT_MENU_ICON_ZOOMIN: dc,
  7878. BMAP_CONTEXT_MENU_ICON_ZOOMOUT: ec
  7879. });
  7880. S(window, {
  7881. BMAP_SYS_DRAWER: Ja,
  7882. BMAP_SVG_DRAWER: 1,
  7883. BMAP_VML_DRAWER: 2,
  7884. BMAP_CANVAS_DRAWER: 3,
  7885. BMAP_SVG_DRAWER_FIRST: 4
  7886. });
  7887. z.TU();
  7888. })()