| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133 |
- var __extends = (this && this.__extends) || (function () {
- var extendStatics = Object.setPrototypeOf ||
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
- return function (d, b) {
- extendStatics(d, b);
- function __() { this.constructor = d; }
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
- };
- })();
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
- return c > 3 && r && Object.defineProperty(target, key, r), r;
- };
- var __metadata = (this && this.__metadata) || function (k, v) {
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
- };
- import { Injectable } from '@angular/core';
- import { CordovaCheck, CordovaInstance, Plugin, InstanceProperty, InstanceCheck, checkAvailability, IonicNativePlugin } from '@ionic-native/core';
- import { Observable } from 'rxjs/Observable';
- import 'rxjs/add/observable/fromEvent';
- /**
- * @hidden
- */
- var LatLng = (function () {
- function LatLng(lat, lng) {
- this.lat = lat;
- this.lng = lng;
- }
- LatLng.prototype.equals = function (other) {
- return this.lat === other.lat && this.lng === other.lng;
- };
- LatLng.prototype.toString = function () {
- return this.lat + ',' + this.lng;
- };
- LatLng.prototype.toUrlValue = function (precision) {
- precision = precision || 6;
- return this.lat.toFixed(precision) + ',' + this.lng.toFixed(precision);
- };
- return LatLng;
- }());
- export { LatLng };
- /**
- * @hidden
- */
- var LatLngBounds = (function () {
- function LatLngBounds(points) {
- this._objectInstance = new (GoogleMaps.getPlugin()).LatLngBounds(points);
- }
- /**
- * Converts to string
- * @return {string}
- */
- LatLngBounds.prototype.toString = function () { return; };
- /**
- * Returns a string of the form "lat_sw,lng_sw,lat_ne,lng_ne" for this bounds, where "sw" corresponds to the southwest corner of the bounding box, while "ne" corresponds to the northeast corner of that box.
- * @param precision {number}
- * @return {string}
- */
- LatLngBounds.prototype.toUrlValue = function (precision) { return; };
- /**
- * Extends this bounds to contain the given point.
- * @param LatLng {ILatLng}
- */
- LatLngBounds.prototype.extend = function (latLng) { };
- /**
- * Returns true if the given lat/lng is in this bounds.
- * @param LatLng {ILatLng}
- */
- LatLngBounds.prototype.contains = function (LatLng) { return; };
- /**
- * Computes the center of this LatLngBounds
- * @return {LatLng}
- */
- LatLngBounds.prototype.getCenter = function () { return; };
- __decorate([
- InstanceProperty,
- __metadata("design:type", Object)
- ], LatLngBounds.prototype, "northeast", void 0);
- __decorate([
- InstanceProperty,
- __metadata("design:type", Object)
- ], LatLngBounds.prototype, "southwest", void 0);
- __decorate([
- InstanceProperty,
- __metadata("design:type", String)
- ], LatLngBounds.prototype, "type", void 0);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", String)
- ], LatLngBounds.prototype, "toString", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Number]),
- __metadata("design:returntype", String)
- ], LatLngBounds.prototype, "toUrlValue", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Object]),
- __metadata("design:returntype", void 0)
- ], LatLngBounds.prototype, "extend", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Object]),
- __metadata("design:returntype", Boolean)
- ], LatLngBounds.prototype, "contains", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", LatLng)
- ], LatLngBounds.prototype, "getCenter", null);
- return LatLngBounds;
- }());
- export { LatLngBounds };
- /**
- * @hidden
- */
- var VisibleRegion = (function () {
- function VisibleRegion(southwest, northeast, farLeft, farRight, nearLeft, nearRight) {
- this._objectInstance = new (GoogleMaps.getPlugin()).VisibleRegion(southwest, northeast, farLeft, farRight, nearLeft, nearRight);
- }
- /**
- * Converts to string
- * @return {string}
- */
- VisibleRegion.prototype.toString = function () { return; };
- /**
- * Returns a string of the form "lat_sw,lng_sw,lat_ne,lng_ne" for this bounds, where "sw" corresponds to the southwest corner of the bounding box, while "ne" corresponds to the northeast corner of that box.
- * @param precision {number}
- * @return {string}
- */
- VisibleRegion.prototype.toUrlValue = function (precision) { return; };
- /**
- * Returns true if the given lat/lng is in this bounds.
- * @param LatLng {ILatLng}
- */
- VisibleRegion.prototype.contains = function (LatLng) { return; };
- __decorate([
- InstanceProperty,
- __metadata("design:type", Object)
- ], VisibleRegion.prototype, "northeast", void 0);
- __decorate([
- InstanceProperty,
- __metadata("design:type", Object)
- ], VisibleRegion.prototype, "southwest", void 0);
- __decorate([
- InstanceProperty,
- __metadata("design:type", Object)
- ], VisibleRegion.prototype, "farLeft", void 0);
- __decorate([
- InstanceProperty,
- __metadata("design:type", Object)
- ], VisibleRegion.prototype, "farRight", void 0);
- __decorate([
- InstanceProperty,
- __metadata("design:type", Object)
- ], VisibleRegion.prototype, "nearLeft", void 0);
- __decorate([
- InstanceProperty,
- __metadata("design:type", Object)
- ], VisibleRegion.prototype, "nearRight", void 0);
- __decorate([
- InstanceProperty,
- __metadata("design:type", String)
- ], VisibleRegion.prototype, "type", void 0);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", String)
- ], VisibleRegion.prototype, "toString", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Number]),
- __metadata("design:returntype", String)
- ], VisibleRegion.prototype, "toUrlValue", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Object]),
- __metadata("design:returntype", Boolean)
- ], VisibleRegion.prototype, "contains", null);
- return VisibleRegion;
- }());
- export { VisibleRegion };
- /**
- * @hidden
- */
- export var StreetViewSource = {
- DEFAULT: 'DEFAULT',
- OUTDOOR: 'OUTDOOR'
- };
- /**
- * @hidden
- * You can listen to these events where appropriate
- */
- export var GoogleMapsEvent = {
- MAP_READY: 'map_ready',
- MAP_CLICK: 'map_click',
- MAP_LONG_CLICK: 'map_long_click',
- POI_CLICK: 'poi_click',
- MY_LOCATION_CLICK: 'my_location_click',
- MY_LOCATION_BUTTON_CLICK: 'my_location_button_click',
- INDOOR_BUILDING_FOCUSED: 'indoor_building_focused',
- INDOOR_LEVEL_ACTIVATED: 'indoor_level_activated',
- CAMERA_MOVE_START: 'camera_move_start',
- CAMERA_MOVE: 'camera_move',
- CAMERA_MOVE_END: 'camera_move_end',
- OVERLAY_CLICK: 'overlay_click',
- POLYGON_CLICK: 'polygon_click',
- POLYLINE_CLICK: 'polyline_click',
- CIRCLE_CLICK: 'circle_click',
- GROUND_OVERLAY_CLICK: 'groundoverlay_click',
- INFO_CLICK: 'info_click',
- INFO_LONG_CLICK: 'info_long_click',
- INFO_CLOSE: 'info_close',
- INFO_OPEN: 'info_open',
- MARKER_CLICK: 'marker_click',
- MARKER_DRAG: 'marker_drag',
- MARKER_DRAG_START: 'marker_drag_start',
- MARKER_DRAG_END: 'marker_drag_end',
- MAP_DRAG: 'map_drag',
- MAP_DRAG_START: 'map_drag_start',
- MAP_DRAG_END: 'map_drag_end',
- KML_CLICK: 'kml_click',
- PANORAMA_READY: 'panorama_ready',
- PANORAMA_CAMERA_CHANGE: 'panorama_camera_change',
- PANORAMA_LOCATION_CHANGE: 'panorama_location_change',
- PANORAMA_CLICK: 'panorama_click'
- };
- /**
- * @hidden
- */
- export var GoogleMapsAnimation = {
- BOUNCE: 'BOUNCE',
- DROP: 'DROP'
- };
- /**
- * @hidden
- */
- export var GoogleMapsMapTypeId = {
- NORMAL: 'MAP_TYPE_NORMAL',
- ROADMAP: 'MAP_TYPE_ROADMAP',
- SATELLITE: 'MAP_TYPE_SATELLITE',
- HYBRID: 'MAP_TYPE_HYBRID',
- TERRAIN: 'MAP_TYPE_TERRAIN',
- NONE: 'MAP_TYPE_NONE'
- };
- /**
- * @name Google Maps
- * @description
- * This plugin uses the native Google Maps SDK
- * Note: As of Ionic native 4.0, this using the 2.0 version of the google maps plugin. Please make sure your plugin is updated
- * @usage
- * ```typescript
- * import {
- * GoogleMaps,
- * GoogleMap,
- * GoogleMapsEvent,
- * GoogleMapOptions,
- * CameraPosition,
- * MarkerOptions,
- * Marker
- * } from '@ionic-native/google-maps';
- * import { Component } from "@angular/core/";
- *
- * @Component({
- * selector: 'page-home',
- * templateUrl: 'home.html'
- * })
- * export class HomePage {
- * map: GoogleMap;
- * constructor() { }
- *
- * ionViewDidLoad() {
- * this.loadMap();
- * }
- *
- * loadMap() {
- *
- * let mapOptions: GoogleMapOptions = {
- * camera: {
- * target: {
- * lat: 43.0741904,
- * lng: -89.3809802
- * },
- * zoom: 18,
- * tilt: 30
- * }
- * };
- *
- * this.map = GoogleMaps.create('map_canvas', mapOptions);
- *
- * // Wait the MAP_READY before using any methods.
- * this.map.one(GoogleMapsEvent.MAP_READY)
- * .then(() => {
- * console.log('Map is ready!');
- *
- * // Now you can use all methods safely.
- * this.map.addMarker({
- * title: 'Ionic',
- * icon: 'blue',
- * animation: 'DROP',
- * position: {
- * lat: 43.0741904,
- * lng: -89.3809802
- * }
- * })
- * .then(marker => {
- * marker.on(GoogleMapsEvent.MARKER_CLICK)
- * .subscribe(() => {
- * alert('clicked');
- * });
- * });
- *
- * });
- * }
- * }
- *
- * ```
- * @classes
- * GoogleMap
- * Circle
- * Encoding
- * Environment
- * Geocoder
- * GroundOverlay
- * HtmlInfoWindow
- * Geocoder
- * LatLng
- * LatLngBounds
- * Marker
- * MarkerCluster
- * Polygon
- * Polyline
- * Spherical
- * KmlOverlay
- * Poly
- * TileOverlay
- * BaseClass
- * BaseArrayClass
- * @interfaces
- * GoogleMapOptions
- * CameraPosition
- * CircleOptions
- * GeocoderRequest
- * GeocoderResult
- * GroundOverlayOptions
- * ILatLng
- * MarkerIcon
- * MarkerOptions
- * MarkerClusterIcon
- * MarkerClusterOptions
- * MyLocation
- * MyLocationOptions
- * PolygonOptions
- * PolylineOptions
- * TileOverlayOptions
- * KmlOverlayOptions
- * VisibleRegion
- */
- var GoogleMaps = (function (_super) {
- __extends(GoogleMaps, _super);
- function GoogleMaps() {
- return _super !== null && _super.apply(this, arguments) || this;
- }
- GoogleMaps_1 = GoogleMaps;
- /**
- * Creates a new GoogleMap instance
- * @param element {string | HTMLElement} Element ID or reference to attach the map to
- * @param options {GoogleMapOptions} [options] Options
- * @return {GoogleMap}
- */
- GoogleMaps.create = function (element, options) {
- if (element instanceof HTMLElement) {
- if (element.getAttribute('__pluginMapId')) {
- console.error('GoogleMaps', element.tagName + '[__pluginMapId=\'' + element.getAttribute('__pluginMapId') + '\'] has already map.');
- return;
- }
- }
- else if (typeof element === 'object') {
- options = element;
- element = null;
- }
- var googleMap = new GoogleMap(element, options);
- googleMap.set('_overlays', {});
- return googleMap;
- };
- /**
- * @deprecation
- * @hidden
- */
- GoogleMaps.prototype.create = function (element, options) {
- console.error('GoogleMaps', '[deprecated] Please use GoogleMaps.create()');
- return GoogleMaps_1.create(element, options);
- };
- /**
- * Creates a new StreetView instance
- * @param element {string | HTMLElement} Element ID or reference to attach the map to
- * @param options {StreetViewOptions} [options] Options
- * @return {StreetViewPanorama}
- */
- GoogleMaps.createPanorama = function (element, options) {
- if (element instanceof HTMLElement) {
- if (element.getAttribute('__pluginMapId')) {
- console.error('GoogleMaps', element.tagName + '[__pluginMapId=\'' + element.getAttribute('__pluginMapId') + '\'] has already map.');
- return;
- }
- }
- return new StreetViewPanorama(element, options);
- };
- GoogleMaps.decorators = [
- { type: Injectable },
- ];
- /** @nocollapse */
- GoogleMaps.ctorParameters = function () { return []; };
- GoogleMaps = GoogleMaps_1 = __decorate([
- Plugin({
- pluginName: 'GoogleMaps',
- pluginRef: 'plugin.google.maps',
- plugin: 'cordova-plugin-googlemaps',
- repo: 'https://github.com/mapsplugin/cordova-plugin-googlemaps',
- document: 'https://github.com/mapsplugin/cordova-plugin-googlemaps-doc/blob/master/v2.0.0/README.md',
- install: 'ionic cordova plugin add cordova-plugin-googlemaps --variable API_KEY_FOR_ANDROID="YOUR_ANDROID_API_KEY_IS_HERE" --variable API_KEY_FOR_IOS="YOUR_IOS_API_KEY_IS_HERE"',
- installVariables: ['API_KEY_FOR_ANDROID', 'API_KEY_FOR_IOS'],
- platforms: ['Android', 'iOS']
- })
- ], GoogleMaps);
- return GoogleMaps;
- var GoogleMaps_1;
- }(IonicNativePlugin));
- export { GoogleMaps };
- /**
- * @hidden
- * https://github.com/mapsplugin/cordova-plugin-googlemaps-doc/blob/master/v2.0.0/class/BaseClass/README.md
- */
- var BaseClass = (function () {
- function BaseClass() {
- }
- /**
- * Adds an event listener.
- * @param eventName {string} event name you want to observe.
- * @return {Observable<any>}
- */
- BaseClass.prototype.addEventListener = function (eventName) {
- var _this = this;
- return new Observable(function (observer) {
- _this._objectInstance.on(eventName, function () {
- var args = [];
- for (var _i = 0; _i < arguments.length; _i++) {
- args[_i] = arguments[_i];
- }
- if (args[args.length - 1] instanceof GoogleMaps.getPlugin().BaseClass) {
- if (args[args.length - 1].type === 'Map' || args[args.length - 1].type === 'StreetViewPanorama') {
- args[args.length - 1] = _this;
- }
- else if (_this instanceof MarkerCluster) {
- var overlay = _this.get(args[args.length - 1].getId());
- if (!overlay) {
- var markerJS = args[args.length - 1];
- var markerId_1 = markerJS.getId();
- var markerCluster = _this;
- overlay = new Marker(markerCluster.getMap(), markerJS);
- _this.get('_overlays')[markerId_1] = overlay;
- markerJS.one(markerJS.getId() + '_remove', function () {
- _this.get('_overlays')[markerId_1] = null;
- });
- }
- args[args.length - 1] = overlay;
- }
- else {
- args[args.length - 1] = _this._objectInstance.getMap().get('_overlays')[args[args.length - 1].getId()];
- }
- }
- observer.next(args);
- });
- });
- };
- /**
- * Adds an event listener that works once.
- * @param eventName {string} event name you want to observe.
- * @return {Promise<any>}
- */
- BaseClass.prototype.addListenerOnce = function (eventName) {
- var _this = this;
- return new Promise(function (resolve) {
- _this._objectInstance.one(eventName, function () {
- var args = [];
- for (var _i = 0; _i < arguments.length; _i++) {
- args[_i] = arguments[_i];
- }
- if (args[args.length - 1] instanceof GoogleMaps.getPlugin().BaseClass) {
- if (args[args.length - 1].type === 'Map' || args[args.length - 1].type === 'StreetViewPanorama') {
- args[args.length - 1] = _this;
- }
- else if (_this instanceof MarkerCluster) {
- var overlay = _this.get(args[args.length - 1].getId());
- if (!overlay) {
- var markerJS = args[args.length - 1];
- var markerId_2 = markerJS.getId();
- var markerCluster = _this;
- overlay = new Marker(markerCluster.getMap(), markerJS);
- _this.get('_overlays')[markerId_2] = overlay;
- markerJS.one(markerJS.getId() + '_remove', function () {
- _this.get('_overlays')[markerId_2] = null;
- });
- }
- args[args.length - 1] = overlay;
- }
- else {
- args[args.length - 1] = _this._objectInstance.getMap().get('_overlays')[args[args.length - 1].getId()];
- }
- }
- resolve(args);
- });
- });
- };
- /**
- * Gets a value
- * @param key {any}
- */
- BaseClass.prototype.get = function (key) { return; };
- /**
- * Sets a value
- * @param key {string} The key name for the value. `(key)_changed` will be fired when you set value through this method.
- * @param value {any}
- * @param noNotify {boolean} [options] True if you want to prevent firing the `(key)_changed` event.
- */
- BaseClass.prototype.set = function (key, value, noNotify) { };
- /**
- * Bind a key to another object
- * @param key {string} The property name you want to observe.
- * @param target {any} The target object you want to observe.
- * @param targetKey? {string} [options] The property name you want to observe. If you omit this, the `key` argument is used.
- * @param noNotify? {boolean} [options] True if you want to prevent `(key)_changed` event when you bind first time, because the internal status is changed from `undefined` to something.
- */
- BaseClass.prototype.bindTo = function (key, target, targetKey, noNotify) { };
- /**
- * Alias of `addEventListener`
- * @param key {string} The property name you want to observe.
- * @return {Observable<any>}
- */
- BaseClass.prototype.on = function (eventName) {
- var _this = this;
- return new Observable(function (observer) {
- _this._objectInstance.on(eventName, function () {
- var args = [];
- for (var _i = 0; _i < arguments.length; _i++) {
- args[_i] = arguments[_i];
- }
- if (args[args.length - 1] instanceof GoogleMaps.getPlugin().BaseClass) {
- if (args[args.length - 1].type === 'Map' || args[args.length - 1].type === 'StreetViewPanorama') {
- args[args.length - 1] = _this;
- }
- else if (_this instanceof MarkerCluster) {
- var overlay = _this.get(args[args.length - 1].getId());
- if (!overlay) {
- var markerJS = args[args.length - 1];
- var markerId_3 = markerJS.getId();
- var markerCluster = _this;
- overlay = new Marker(markerCluster.getMap(), markerJS);
- _this.get('_overlays')[markerId_3] = overlay;
- markerJS.one(markerJS.getId() + '_remove', function () {
- _this.get('_overlays')[markerId_3] = null;
- });
- }
- args[args.length - 1] = overlay;
- }
- else {
- args[args.length - 1] = _this._objectInstance.getMap().get('_overlays')[args[args.length - 1].getId()];
- }
- }
- observer.next(args);
- });
- });
- };
- /**
- * Alias of `addEventListenerOnce`
- * @param key {string} The property name you want to observe.
- * @return {Promise<any>}
- */
- BaseClass.prototype.one = function (eventName) {
- var _this = this;
- return new Promise(function (resolve) {
- _this._objectInstance.one(eventName, function () {
- var args = [];
- for (var _i = 0; _i < arguments.length; _i++) {
- args[_i] = arguments[_i];
- }
- if (args[args.length - 1] instanceof GoogleMaps.getPlugin().BaseClass) {
- if (args[args.length - 1].type === 'Map' || args[args.length - 1].type === 'StreetViewPanorama') {
- args[args.length - 1] = _this;
- }
- else if (_this instanceof MarkerCluster) {
- var overlay = _this.get(args[args.length - 1].getId());
- if (!overlay) {
- var markerJS = args[args.length - 1];
- var markerId_4 = markerJS.getId();
- var markerCluster = _this;
- overlay = new Marker(markerCluster.getMap(), markerJS);
- _this.get('_overlays')[markerId_4] = overlay;
- markerJS.one(markerJS.getId() + '_remove', function () {
- _this.get('_overlays')[markerId_4] = null;
- });
- }
- args[args.length - 1] = overlay;
- }
- else {
- args[args.length - 1] = _this._objectInstance.getMap().get('_overlays')[args[args.length - 1].getId()];
- }
- }
- resolve(args);
- });
- });
- };
- /**
- * Clears all stored values
- */
- BaseClass.prototype.empty = function () { };
- /**
- * Dispatch event.
- * @param eventName {string} Event name
- * @param parameters {any} [options] The data you want to pass to event listerners.
- */
- BaseClass.prototype.trigger = function (eventName) {
- var parameters = [];
- for (var _i = 1; _i < arguments.length; _i++) {
- parameters[_i - 1] = arguments[_i];
- }
- };
- /**
- * Executes off() and empty()
- */
- BaseClass.prototype.destroy = function () {
- if (this._objectInstance.type === 'Map') {
- var map = this._objectInstance.getMap();
- if (map) {
- delete this._objectInstance.getMap().get('_overlays')[this._objectInstance.getId()];
- }
- }
- this._objectInstance.remove();
- };
- /**
- * Remove event listener(s)
- * The `removeEventListener()` has three usages:
- * - removeEventListener("eventName", listenerFunction);
- * This removes one particular event listener
- * - removeEventListener("eventName");
- * This removes the event listeners that added for the event name.
- * - removeEventListener();
- * This removes all listeners.
- *
- * @param eventName {string} [options] Event name
- * @param listener {Function} [options] Event listener
- */
- BaseClass.prototype.removeEventListener = function (eventName, listener) { };
- /**
- * Alias of `removeEventListener`
- *
- * @param eventName {string} [options] Event name
- * @param listener {Function} [options] Event listener
- */
- BaseClass.prototype.off = function (eventName, listener) { };
- __decorate([
- InstanceCheck({ observable: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [String]),
- __metadata("design:returntype", Observable)
- ], BaseClass.prototype, "addEventListener", null);
- __decorate([
- InstanceCheck(),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [String]),
- __metadata("design:returntype", Promise)
- ], BaseClass.prototype, "addListenerOnce", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [String]),
- __metadata("design:returntype", Object)
- ], BaseClass.prototype, "get", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [String, Object, Boolean]),
- __metadata("design:returntype", void 0)
- ], BaseClass.prototype, "set", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [String, Object, String, Boolean]),
- __metadata("design:returntype", void 0)
- ], BaseClass.prototype, "bindTo", null);
- __decorate([
- InstanceCheck({ observable: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [String]),
- __metadata("design:returntype", Observable)
- ], BaseClass.prototype, "on", null);
- __decorate([
- InstanceCheck(),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [String]),
- __metadata("design:returntype", Promise)
- ], BaseClass.prototype, "one", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", void 0)
- ], BaseClass.prototype, "empty", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [String, Object]),
- __metadata("design:returntype", void 0)
- ], BaseClass.prototype, "trigger", null);
- __decorate([
- CordovaCheck({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", void 0)
- ], BaseClass.prototype, "destroy", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [String, Function]),
- __metadata("design:returntype", void 0)
- ], BaseClass.prototype, "removeEventListener", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [String, Function]),
- __metadata("design:returntype", void 0)
- ], BaseClass.prototype, "off", null);
- BaseClass = __decorate([
- Plugin({
- plugin: 'cordova-plugin-googlemaps',
- pluginName: 'GoogleMaps',
- pluginRef: 'plugin.google.maps.BaseClass',
- repo: ''
- })
- ], BaseClass);
- return BaseClass;
- }());
- export { BaseClass };
- /**
- * @hidden
- * https://github.com/mapsplugin/cordova-plugin-googlemaps-doc/blob/master/v2.0.0/class/BaseArrayClass/README.md
- */
- var BaseArrayClass = (function (_super) {
- __extends(BaseArrayClass, _super);
- function BaseArrayClass(initialData) {
- var _this = _super.call(this) || this;
- if (initialData instanceof GoogleMaps.getPlugin().BaseArrayClass) {
- _this._objectInstance = initialData;
- }
- else {
- _this._objectInstance = new (GoogleMaps.getPlugin().BaseArrayClass)(initialData);
- }
- return _this;
- }
- /**
- * Removes all elements from the array.
- * @param noNotify? {boolean} [options] Set true to prevent remove_at events.
- */
- BaseArrayClass.prototype.empty = function (noNotify) { };
- /**
- * Iterate over each element, calling the provided callback.
- * @param fn {Function}
- */
- BaseArrayClass.prototype.forEach = function (fn) { };
- /**
- * Iterate over each element, calling the provided callback.
- * @param fn {Function}
- * @return {Promise<void>}
- */
- BaseArrayClass.prototype.forEachAsync = function (fn) {
- var _this = this;
- return new Promise(function (resolve) {
- _this._objectInstance.forEachAsync(fn, resolve);
- });
- };
- /**
- * Iterate over each element, then Returns a new value.
- * Then you can get the results of each callback.
- * @param fn {Function}
- * @return {Array<Object>} returns a new array with the results
- */
- BaseArrayClass.prototype.map = function (fn) { return; };
- /**
- * Iterate over each element, calling the provided callback.
- * Then you can get the results of each callback.
- * @param fn {Function}
- * @param callback {Function}
- * @return {Promise<any>} returns a new array with the results
- */
- BaseArrayClass.prototype.mapAsync = function (fn) {
- var _this = this;
- return new Promise(function (resolve) {
- _this._objectInstance.mapAsync(fn, resolve);
- });
- };
- /**
- * Same as `mapAsync`, but keep the execution order
- * @param fn {Function}
- * @param callback {Function}
- * @return {Promise<any>} returns a new array with the results
- */
- BaseArrayClass.prototype.mapSeries = function (fn) {
- var _this = this;
- return new Promise(function (resolve) {
- _this._objectInstance.mapSeries(fn, resolve);
- });
- };
- /**
- * The filter() method creates a new array with all elements that pass the test implemented by the provided function.
- * @param fn {Function}
- * @return {T[]} returns a new filtered array
- */
- BaseArrayClass.prototype.filter = function (fn) { return; };
- /**
- * The filterAsync() method creates a new array with all elements that pass the test implemented by the provided function.
- * @param fn {Function}
- * @param callback {Function}
- * @return {Promise<T[]>} returns a new filtered array
- */
- BaseArrayClass.prototype.filterAsync = function (fn) {
- var _this = this;
- return new Promise(function (resolve) {
- _this._objectInstance.filterAsync(fn, resolve);
- });
- };
- /**
- * Returns a reference to the underlying Array.
- * @return {Array<Object>}
- */
- BaseArrayClass.prototype.getArray = function () { return; };
- /**
- * Returns the element at the specified index.
- * @param index {number}
- * @return {Object}
- */
- BaseArrayClass.prototype.getAt = function (index) { };
- /**
- * Returns the number of the elements.
- * @return {number}
- */
- BaseArrayClass.prototype.getLength = function () { return; };
- /**
- * The indexOf() method returns the first index at which a given element can be found in the array, or -1 if it is not present.
- * @param element {Object}
- * @return {number}
- */
- BaseArrayClass.prototype.indexOf = function (element) { return; };
- /**
- * The reverse() method reverses an array in place.
- */
- BaseArrayClass.prototype.reverse = function () { };
- /**
- * The sort() method sorts the elements of an array in place and returns the array.
- */
- BaseArrayClass.prototype.sort = function () { };
- /**
- * Inserts an element at the specified index.
- * @param index {number}
- * @param element {Object}
- * @param noNotify? {boolean} [options] Set true to prevent insert_at event.
- * @return {Object}
- */
- BaseArrayClass.prototype.insertAt = function (index, element, noNotify) { };
- /**
- * Removes the last element of the array and returns that element.
- * @param noNotify? {boolean} [options] Set true to prevent remove_at event.
- * @return {Object}
- */
- BaseArrayClass.prototype.pop = function (noNotify) { return; };
- /**
- * Adds one element to the end of the array and returns the new length of the array.
- * @param element {object}
- * @param noNotify? {boolean} Set true to prevent insert_at events.
- */
- BaseArrayClass.prototype.push = function (element, noNotify) { };
- /**
- * Removes an element from the specified index.
- * @param index {number}
- * @param noNotify? {boolean} [options] Set true to prevent remove_at event.
- */
- BaseArrayClass.prototype.removeAt = function (index, noNotify) { return; };
- /**
- * Sets an element at the specified index.
- * @param index {number}
- * @param element {object}
- * @param noNotify? {boolean} [options] Set true to prevent set_at event.
- */
- BaseArrayClass.prototype.setAt = function (index, element, noNotify) { };
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Boolean]),
- __metadata("design:returntype", void 0)
- ], BaseArrayClass.prototype, "empty", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Function]),
- __metadata("design:returntype", void 0)
- ], BaseArrayClass.prototype, "forEach", null);
- __decorate([
- CordovaCheck(),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Function]),
- __metadata("design:returntype", Promise)
- ], BaseArrayClass.prototype, "forEachAsync", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Function]),
- __metadata("design:returntype", Array)
- ], BaseArrayClass.prototype, "map", null);
- __decorate([
- CordovaCheck(),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Function]),
- __metadata("design:returntype", Promise)
- ], BaseArrayClass.prototype, "mapAsync", null);
- __decorate([
- CordovaCheck(),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Function]),
- __metadata("design:returntype", Promise)
- ], BaseArrayClass.prototype, "mapSeries", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Function]),
- __metadata("design:returntype", Array)
- ], BaseArrayClass.prototype, "filter", null);
- __decorate([
- CordovaCheck(),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Function]),
- __metadata("design:returntype", Promise)
- ], BaseArrayClass.prototype, "filterAsync", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", Array)
- ], BaseArrayClass.prototype, "getArray", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Number]),
- __metadata("design:returntype", Object)
- ], BaseArrayClass.prototype, "getAt", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", Number)
- ], BaseArrayClass.prototype, "getLength", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Object]),
- __metadata("design:returntype", Number)
- ], BaseArrayClass.prototype, "indexOf", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", void 0)
- ], BaseArrayClass.prototype, "reverse", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", void 0)
- ], BaseArrayClass.prototype, "sort", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Number, Object, Boolean]),
- __metadata("design:returntype", void 0)
- ], BaseArrayClass.prototype, "insertAt", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Boolean]),
- __metadata("design:returntype", Object)
- ], BaseArrayClass.prototype, "pop", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Object, Boolean]),
- __metadata("design:returntype", void 0)
- ], BaseArrayClass.prototype, "push", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Number, Boolean]),
- __metadata("design:returntype", Object)
- ], BaseArrayClass.prototype, "removeAt", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Number, Object, Boolean]),
- __metadata("design:returntype", void 0)
- ], BaseArrayClass.prototype, "setAt", null);
- BaseArrayClass = __decorate([
- Plugin({
- plugin: 'cordova-plugin-googlemaps',
- pluginName: 'GoogleMaps',
- pluginRef: 'plugin.google.maps.BaseArrayClass',
- repo: ''
- }),
- __metadata("design:paramtypes", [Object])
- ], BaseArrayClass);
- return BaseArrayClass;
- }(BaseClass));
- export { BaseArrayClass };
- /**
- * @hidden
- * https://github.com/mapsplugin/cordova-plugin-googlemaps-doc/blob/master/v2.0.0/class/Circle/README.md
- */
- var Circle = (function (_super) {
- __extends(Circle, _super);
- function Circle(_map, _objectInstance) {
- var _this = _super.call(this) || this;
- _this._map = _map;
- _this._objectInstance = _objectInstance;
- return _this;
- }
- /**
- * Returns the ID of instance.
- * @return {string}
- */
- Circle.prototype.getId = function () { return; };
- /**
- * Returns the map instance.
- * @return {GoogleMap}
- */
- Circle.prototype.getMap = function () { return this._map; };
- /**
- * Changes the center position.
- * @param latLng {ILatLng}
- */
- Circle.prototype.setCenter = function (latLng) { };
- /**
- * Returns the current center position
- * @return {ILatLng}
- */
- Circle.prototype.getCenter = function () { return; };
- /**
- * Returns the current circle radius.
- * @return {number}
- */
- Circle.prototype.getRadius = function () { return; };
- /**
- * Changes the circle radius.
- * @param radius {number}
- */
- Circle.prototype.setRadius = function (radius) { };
- /**
- * Changes the filling color (inner color).
- * @param color {string}
- */
- Circle.prototype.setFillColor = function (color) { };
- /**
- * Returns the current circle filling color (inner color).
- * @return {string}
- */
- Circle.prototype.getFillColor = function () { return; };
- /**
- * Changes the stroke width.
- * @param strokeWidth {number}
- */
- Circle.prototype.setStrokeWidth = function (strokeWidth) { };
- /**
- * Returns the current circle stroke width (unit: pixel).
- * @return {number}
- */
- Circle.prototype.getStrokeWidth = function () { return; };
- /**
- * Changes the stroke color (outter color).
- * @param strokeColor {string}
- */
- Circle.prototype.setStrokeColor = function (strokeColor) { };
- /**
- * Returns the current circle stroke color (outer color).
- * @return {string}
- */
- Circle.prototype.getStrokeColor = function () { return; };
- /**
- * Changes click-ability of the circle.
- * @param clickable {boolean}
- */
- Circle.prototype.setClickable = function (clickable) { };
- /**
- * Returns true if the circle is clickable.
- * @return {boolean}
- */
- Circle.prototype.getClickable = function () { return; };
- /**
- * Changes the circle zIndex order.
- * @param zIndex {number}
- */
- Circle.prototype.setZIndex = function (zIndex) { };
- /**
- * Returns the current circle zIndex.
- * @return {number}
- */
- Circle.prototype.getZIndex = function () { return; };
- /**
- * Remove the circle.
- */
- Circle.prototype.remove = function () { };
- /**
- * Returns the latLngBounds (rectangle) that contains the circle.
- * @return {LatLngBounds}
- */
- Circle.prototype.getBounds = function () { return; };
- /**
- * Set circle visibility
- * @param visible {boolean}
- */
- Circle.prototype.setVisible = function (visible) { };
- /**
- * Returns true if the circle is visible.
- * @return {boolean}
- */
- Circle.prototype.getVisible = function () { return; };
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", String)
- ], Circle.prototype, "getId", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Object]),
- __metadata("design:returntype", void 0)
- ], Circle.prototype, "setCenter", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", Object)
- ], Circle.prototype, "getCenter", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", Number)
- ], Circle.prototype, "getRadius", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Number]),
- __metadata("design:returntype", void 0)
- ], Circle.prototype, "setRadius", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [String]),
- __metadata("design:returntype", void 0)
- ], Circle.prototype, "setFillColor", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", String)
- ], Circle.prototype, "getFillColor", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Number]),
- __metadata("design:returntype", void 0)
- ], Circle.prototype, "setStrokeWidth", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", Number)
- ], Circle.prototype, "getStrokeWidth", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [String]),
- __metadata("design:returntype", void 0)
- ], Circle.prototype, "setStrokeColor", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", String)
- ], Circle.prototype, "getStrokeColor", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Boolean]),
- __metadata("design:returntype", void 0)
- ], Circle.prototype, "setClickable", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", Boolean)
- ], Circle.prototype, "getClickable", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Number]),
- __metadata("design:returntype", void 0)
- ], Circle.prototype, "setZIndex", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", Number)
- ], Circle.prototype, "getZIndex", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", void 0)
- ], Circle.prototype, "remove", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", LatLngBounds)
- ], Circle.prototype, "getBounds", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Boolean]),
- __metadata("design:returntype", void 0)
- ], Circle.prototype, "setVisible", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", Boolean)
- ], Circle.prototype, "getVisible", null);
- return Circle;
- }(BaseClass));
- export { Circle };
- /**
- * @hidden
- */
- var Environment = (function () {
- function Environment() {
- }
- Environment_1 = Environment;
- /**
- * Get the open source software license information for Google Maps SDK for iOS.
- * @return {Promise<any>}
- */
- Environment.getLicenseInfo = function () {
- return new Promise(function (resolve) {
- GoogleMaps.getPlugin().environment.getLicenseInfo(function (text) { return resolve(text); });
- });
- };
- /**
- * @deprecation
- * @hidden
- */
- Environment.prototype.getLicenseInfo = function () {
- console.error('GoogleMaps', '[deprecated] This method is static. Please use Environment.getLicenseInfo()');
- return Environment_1.getLicenseInfo();
- };
- /**
- * Specifies the background color of the app.
- * @param color
- */
- Environment.setBackgroundColor = function (color) {
- GoogleMaps.getPlugin().environment.setBackgroundColor(color);
- };
- /**
- * @deprecation
- * @hidden
- */
- Environment.prototype.setBackgroundColor = function (color) {
- console.error('GoogleMaps', '[deprecated] This method is static. Please use Environment.setBackgroundColor()');
- Environment_1.setBackgroundColor(color);
- };
- Environment = Environment_1 = __decorate([
- Plugin({
- plugin: 'cordova-plugin-googlemaps',
- pluginName: 'GoogleMaps',
- pluginRef: 'plugin.google.maps.environment',
- repo: ''
- })
- ], Environment);
- return Environment;
- var Environment_1;
- }());
- export { Environment };
- /**
- * @hidden
- */
- var Geocoder = (function () {
- function Geocoder() {
- }
- Geocoder_1 = Geocoder;
- /**
- * @deprecation
- * @hidden
- */
- Geocoder.prototype.geocode = function (request) {
- console.error('GoogleMaps', '[deprecated] This method is static. Please use Geocoder.geocode()');
- return Geocoder_1.geocode(request);
- };
- /**
- * Converts position to address and vice versa
- * @param {GeocoderRequest} request Request object with either an address or a position
- * @return {Promise<GeocoderResult[] | BaseArrayClass<GeocoderResult>>}
- */
- Geocoder.geocode = function (request) {
- if (request.address instanceof Array || Array.isArray(request.address) ||
- request.position instanceof Array || Array.isArray(request.position)) {
- // -------------------------
- // Geocoder.geocode({
- // address: [
- // "Kyoto, Japan",
- // "Tokyo, Japan"
- // ]
- // })
- // -------------------------
- return new Promise(function (resolve, reject) {
- GoogleMaps.getPlugin().Geocoder.geocode(request, function (mvcArray) {
- if (mvcArray) {
- resolve(new BaseArrayClass(mvcArray));
- }
- else {
- reject();
- }
- });
- });
- }
- else {
- // -------------------------
- // Geocoder.geocode({
- // address: "Kyoto, Japan"
- // })
- // -------------------------
- return new Promise(function (resolve, reject) {
- GoogleMaps.getPlugin().Geocoder.geocode(request, function (results) {
- if (results) {
- resolve(results);
- }
- else {
- reject();
- }
- });
- });
- }
- };
- Geocoder = Geocoder_1 = __decorate([
- Plugin({
- pluginName: 'GoogleMaps',
- pluginRef: 'plugin.google.maps.Geocoder',
- plugin: 'cordova-plugin-googlemaps',
- repo: ''
- })
- ], Geocoder);
- return Geocoder;
- var Geocoder_1;
- }());
- export { Geocoder };
- /**
- * @hidden
- */
- var LocationService = (function () {
- function LocationService() {
- }
- /**
- * Get the current device location without map
- * @return {Promise<MyLocation>}
- */
- LocationService.getMyLocation = function (options) {
- return new Promise(function (resolve, reject) {
- GoogleMaps.getPlugin().LocationService.getMyLocation(options, resolve, reject);
- });
- };
- /**
- * Return true if the application has geolocation permission
- * @return {Promise<MyLocation>}
- */
- LocationService.hasPermission = function () {
- return new Promise(function (resolve, reject) {
- GoogleMaps.getPlugin().LocationService.hasPermission(resolve, reject);
- });
- };
- LocationService = __decorate([
- Plugin({
- pluginName: 'GoogleMaps',
- pluginRef: 'plugin.google.maps.LocationService',
- plugin: 'cordova-plugin-googlemaps',
- repo: ''
- })
- ], LocationService);
- return LocationService;
- }());
- export { LocationService };
- /**
- * @hidden
- */
- var Encoding = (function () {
- function Encoding() {
- }
- Encoding_1 = Encoding;
- /**
- * @deprecation
- * @hidden
- */
- Encoding.prototype.decodePath = function (encoded, precision) {
- console.error('GoogleMaps', '[deprecated] This method is static. Please use Encoding.decodePath()');
- return Encoding_1.decodePath(encoded, precision);
- };
- /**
- * @deprecation
- * @hidden
- */
- Encoding.prototype.encodePath = function (path) {
- console.error('GoogleMaps', '[deprecated] This method is static. Please use Encoding.encodePath()');
- return Encoding_1.encodePath(path);
- };
- /**
- * Decodes an encoded path string into a sequence of LatLngs.
- * @param encoded {string} an encoded path string
- * @param precision? {number} default: 5
- * @return {ILatLng[]}
- */
- Encoding.decodePath = function (encoded, precision) {
- return GoogleMaps.getPlugin().geometry.encoding.decodePath(encoded, precision);
- };
- /**
- * Encodes a sequence of LatLngs into an encoded path string.
- * @param path {Array<ILatLng> | BaseArrayClass<ILatLng>} a sequence of LatLngs
- * @return {string}
- */
- Encoding.encodePath = function (path) {
- return GoogleMaps.getPlugin().geometry.encoding.encodePath(path);
- };
- Encoding = Encoding_1 = __decorate([
- Plugin({
- pluginName: 'GoogleMaps',
- pluginRef: 'plugin.google.maps.geometry.encoding',
- plugin: 'cordova-plugin-googlemaps',
- repo: ''
- })
- ], Encoding);
- return Encoding;
- var Encoding_1;
- }());
- export { Encoding };
- /**
- * @hidden
- */
- var Poly = (function () {
- function Poly() {
- }
- /**
- * Returns true if the specified location is in the polygon path
- * @param location {ILatLng}
- * @param path {ILatLng[]}
- * @return {boolean}
- */
- Poly.containsLocation = function (location, path) {
- return GoogleMaps.getPlugin().geometry.poly.containsLocation(location, path);
- };
- /**
- * Returns true if the specified location is on the polyline path
- * @param location {ILatLng}
- * @param path {ILatLng[]}
- * @return {boolean}
- */
- Poly.isLocationOnEdge = function (location, path) {
- return GoogleMaps.getPlugin().geometry.poly.isLocationOnEdge(location, path);
- };
- Poly = __decorate([
- Plugin({
- pluginName: 'GoogleMaps',
- pluginRef: 'plugin.google.maps.geometry.poly',
- plugin: 'cordova-plugin-googlemaps',
- repo: ''
- })
- ], Poly);
- return Poly;
- }());
- export { Poly };
- /**
- * @hidden
- */
- var Spherical = (function () {
- function Spherical() {
- }
- Spherical_1 = Spherical;
- /**
- * @deprecation
- * @hidden
- */
- Spherical.prototype.computeDistanceBetween = function (from, to) {
- console.error('GoogleMaps', '[deprecated] This method is static. Please use Spherical.computeDistanceBetween()');
- return Spherical_1.computeDistanceBetween(from, to);
- };
- /**
- * @deprecation
- * @hidden
- */
- Spherical.prototype.computeOffset = function (from, distance, heading) {
- console.error('GoogleMaps', '[deprecated] This method is static. Please use Spherical.computeOffset()');
- return Spherical_1.computeOffset(from, distance, heading);
- };
- /**
- * @deprecation
- * @hidden
- */
- Spherical.prototype.computeOffsetOrigin = function (to, distance, heading) {
- console.error('GoogleMaps', '[deprecated] This method is static. Please use Spherical.computeOffsetOrigin()');
- return Spherical_1.computeOffsetOrigin(to, distance, heading);
- };
- /**
- * @deprecation
- * @hidden
- */
- Spherical.prototype.computeLength = function (path) {
- console.error('GoogleMaps', '[deprecated] This method is static. Please use Spherical.computeLength()');
- return Spherical_1.computeLength(path);
- };
- /**
- * @deprecation
- * @hidden
- */
- Spherical.prototype.computeArea = function (path) {
- console.error('GoogleMaps', '[deprecated] This method is static. Please use Spherical.computeArea()');
- return Spherical_1.computeArea(path);
- };
- /**
- * @deprecation
- * @hidden
- */
- Spherical.prototype.computeSignedArea = function (path) {
- console.error('GoogleMaps', '[deprecated] This method is static. Please use Spherical.computeSignedArea()');
- return Spherical_1.computeSignedArea(path);
- };
- /**
- * @deprecation
- * @hidden
- */
- Spherical.prototype.computeHeading = function (from, to) {
- console.error('GoogleMaps', '[deprecated] This method is static. Please use Spherical.computeHeading()');
- return Spherical_1.computeHeading(from, to);
- };
- /**
- * @deprecation
- * @hidden
- */
- Spherical.prototype.interpolate = function (from, to, fraction) {
- console.error('GoogleMaps', '[deprecated] This method is static. Please use Spherical.interpolate()');
- return Spherical_1.interpolate(from, to, fraction);
- };
- /**
- * Returns the distance, in meters, between two LatLngs.
- * @param locationA {ILatLng}
- * @param locationB {ILatLng}
- * @return {number}
- */
- Spherical.computeDistanceBetween = function (from, to) {
- return GoogleMaps.getPlugin().geometry.spherical.computeDistanceBetween(from, to);
- };
- /**
- * Returns the LatLng resulting from moving a distance from an origin in the specified heading (expressed in degrees clockwise from north)
- * @param from {ILatLng}
- * @param distance {number}
- * @param heading {number}
- * @return {LatLng}
- */
- Spherical.computeOffset = function (from, distance, heading) {
- return GoogleMaps.getPlugin().geometry.spherical.computeOffset(from, distance, heading);
- };
- /**
- * Returns the location of origin when provided with a LatLng destination, meters travelled and original heading. Headings are expressed in degrees clockwise from North. This function returns null when no solution is available.
- * @param to {ILatLng} The destination LatLng.
- * @param distance {number} The distance travelled, in meters.
- * @param heading {number} The heading in degrees clockwise from north.
- * @return {LatLng}
- */
- Spherical.computeOffsetOrigin = function (to, distance, heading) {
- return GoogleMaps.getPlugin().geometry.spherical.computeOffsetOrigin(to, distance, heading);
- };
- /**
- * Returns the length of the given path.
- * @param path {Array<ILatLng> | BaseArrayClass<ILatLng>}
- * @return {number}
- */
- Spherical.computeLength = function (path) {
- return GoogleMaps.getPlugin().geometry.spherical.computeLength(path);
- };
- /**
- * Returns the area of a closed path. The computed area uses the same units as the radius.
- * @param path {Array<ILatLng> | BaseArrayClass<ILatLng>}.
- * @return {number}
- */
- Spherical.computeArea = function (path) {
- return GoogleMaps.getPlugin().geometry.spherical.computeArea(path);
- };
- /**
- * Returns the signed area of a closed path. The signed area may be used to determine the orientation of the path.
- * @param path {Array<ILatLng> | BaseArrayClass<ILatLng>}.
- * @return {number}
- */
- Spherical.computeSignedArea = function (path) {
- return GoogleMaps.getPlugin().geometry.spherical.computeSignedArea(path);
- };
- /**
- * Returns the heading from one LatLng to another LatLng. Headings are expressed in degrees clockwise from North within the range (-180,180).
- * @param from {ILatLng}
- * @param to {ILatLng}
- * @return {number}
- */
- Spherical.computeHeading = function (from, to) {
- return GoogleMaps.getPlugin().geometry.spherical.computeHeading(from, to);
- };
- /**
- * Returns the LatLng which lies the given fraction of the way between the origin LatLng and the destination LatLng.
- * @param from {ILatLng} The LatLng from which to start.
- * @param to {ILatLng} The LatLng toward which to travel.
- * @param fraction {number} A fraction of the distance to travel from 0.0 to 1.0 .
- * @return {LatLng}
- */
- Spherical.interpolate = function (from, to, fraction) {
- return GoogleMaps.getPlugin().geometry.spherical.interpolate(from, to, fraction);
- };
- Spherical = Spherical_1 = __decorate([
- Plugin({
- pluginName: 'GoogleMaps',
- pluginRef: 'plugin.google.maps.geometry.spherical',
- plugin: 'cordova-plugin-googlemaps',
- repo: ''
- })
- ], Spherical);
- return Spherical;
- var Spherical_1;
- }());
- export { Spherical };
- /**
- * @hidden
- */
- var StreetViewPanorama = (function (_super) {
- __extends(StreetViewPanorama, _super);
- function StreetViewPanorama(element, options) {
- var _this = _super.call(this) || this;
- if (checkAvailability(GoogleMaps.getPluginRef(), null, GoogleMaps.getPluginName()) === true) {
- if (element instanceof HTMLElement) {
- _this._objectInstance = GoogleMaps.getPlugin().StreetView.getPanorama(element, options);
- }
- else if (typeof element === 'string') {
- _this._objectInstance = GoogleMaps.getPlugin().StreetView.getPanorama(new Promise(function (resolve, reject) {
- var count = 0;
- var timer = setInterval(function () {
- var target = document.querySelector('.show-page #' + element);
- if (target) {
- clearInterval(timer);
- resolve([target, options]);
- }
- else {
- if (count++ < 20) {
- return;
- }
- clearInterval(timer);
- _this._objectInstance.remove();
- console.error('Can not find the element [#' + element + ']');
- reject();
- }
- }, 100);
- }), options);
- }
- }
- return _this;
- }
- /**
- * Sets the point of view for the Street View panorama.
- */
- StreetViewPanorama.prototype.setPov = function (pov) { };
- /**
- * Sets the StreetViewPanorama to a given location.
- */
- StreetViewPanorama.prototype.setPosition = function (cameraPosition) { };
- /**
- * Toggles the ability for users to use pan around on the panorama using gestures.
- * @param gestureEnable {boolean}
- */
- StreetViewPanorama.prototype.setPanningGesturesEnabled = function (gestureEnable) { };
- /**
- * Retrun true if the panning gesture is enabled.
- * @return {boolean}
- */
- StreetViewPanorama.prototype.getPanningGesturesEnabled = function () { return; };
- /**
- * Toggles the ability for users to zoom on the panorama using gestures.
- * @param gestureEnable {boolean}
- */
- StreetViewPanorama.prototype.setZoomGesturesEnabled = function (gestureEnable) { };
- /**
- * Retrun true if the zooming gesture is enabled.
- * @return {boolean}
- */
- StreetViewPanorama.prototype.getZoomGesturesEnabled = function () { return; };
- /**
- * Toggles the ability for users to see street names on the panorama.
- * @param gestureEnable {boolean}
- */
- StreetViewPanorama.prototype.setStreetNamesEnabled = function (gestureEnable) { };
- /**
- * Retrun true if the street names control is enabled.
- * @return {boolean}
- */
- StreetViewPanorama.prototype.getStreetNamesEnabled = function () { return; };
- /**
- * Toggles the ability for users to move between panoramas.
- * @param gestureEnable {boolean}
- */
- StreetViewPanorama.prototype.setNavigationEnabled = function (gestureEnable) { };
- /**
- * Retrun true if the navigation control is enabled.
- * @return {boolean}
- */
- StreetViewPanorama.prototype.getNavigationEnabled = function () { return; };
- /**
- * Retrun the navigation links (StreetViewLocation.links)
- * @return {StreetViewNavigationLink[]}
- */
- StreetViewPanorama.prototype.getLinks = function () { return; };
- /**
- * Retrun the current location
- * @return {StreetViewLocation}
- */
- StreetViewPanorama.prototype.getLocation = function () { return; };
- /**
- * Retrun the current panorama id
- * @return {string}
- */
- StreetViewPanorama.prototype.getPano = function () { return; };
- /**
- * Retrun the current position (StreetViewLocation.latLng)
- * @return {string}
- */
- StreetViewPanorama.prototype.getPosition = function () { return; };
- /**
- * Destroy a map completely
- * @return {Promise<any>}
- */
- StreetViewPanorama.prototype.remove = function () {
- var _this = this;
- return new Promise(function (resolve) {
- _this._objectInstance.remove(function () { return resolve(); });
- });
- };
- __decorate([
- CordovaInstance(),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Object]),
- __metadata("design:returntype", void 0)
- ], StreetViewPanorama.prototype, "setPov", null);
- __decorate([
- CordovaInstance(),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Object]),
- __metadata("design:returntype", void 0)
- ], StreetViewPanorama.prototype, "setPosition", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Boolean]),
- __metadata("design:returntype", void 0)
- ], StreetViewPanorama.prototype, "setPanningGesturesEnabled", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", Boolean)
- ], StreetViewPanorama.prototype, "getPanningGesturesEnabled", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Boolean]),
- __metadata("design:returntype", void 0)
- ], StreetViewPanorama.prototype, "setZoomGesturesEnabled", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", Boolean)
- ], StreetViewPanorama.prototype, "getZoomGesturesEnabled", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Boolean]),
- __metadata("design:returntype", void 0)
- ], StreetViewPanorama.prototype, "setStreetNamesEnabled", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", Boolean)
- ], StreetViewPanorama.prototype, "getStreetNamesEnabled", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Boolean]),
- __metadata("design:returntype", void 0)
- ], StreetViewPanorama.prototype, "setNavigationEnabled", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", Boolean)
- ], StreetViewPanorama.prototype, "getNavigationEnabled", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", Array)
- ], StreetViewPanorama.prototype, "getLinks", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", Object)
- ], StreetViewPanorama.prototype, "getLocation", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", String)
- ], StreetViewPanorama.prototype, "getPano", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", Object)
- ], StreetViewPanorama.prototype, "getPosition", null);
- __decorate([
- CordovaInstance(),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", Promise)
- ], StreetViewPanorama.prototype, "remove", null);
- StreetViewPanorama = __decorate([
- Plugin({
- pluginName: 'StreetViewPanorama',
- plugin: 'cordova-plugin-googlemaps'
- }),
- __metadata("design:paramtypes", [Object, Object])
- ], StreetViewPanorama);
- return StreetViewPanorama;
- }(BaseClass));
- export { StreetViewPanorama };
- /**
- * @hidden
- */
- var GoogleMap = (function (_super) {
- __extends(GoogleMap, _super);
- function GoogleMap(element, options) {
- var _this = _super.call(this) || this;
- if (checkAvailability(GoogleMaps.getPluginRef(), null, GoogleMaps.getPluginName()) === true) {
- if (element instanceof HTMLElement) {
- _this._objectInstance = GoogleMaps.getPlugin().Map.getMap(element, options);
- }
- else if (typeof element === 'string') {
- _this._objectInstance = GoogleMaps.getPlugin().Map.getMap(new Promise(function (resolve, reject) {
- var count = 0;
- var timer = setInterval(function () {
- var target = document.querySelector('.show-page #' + element);
- if (target) {
- clearInterval(timer);
- resolve([target, options]);
- }
- else {
- if (count++ < 20) {
- return;
- }
- clearInterval(timer);
- _this._objectInstance.remove();
- console.error('Can not find the element [#' + element + ']');
- reject();
- }
- }, 100);
- }), options);
- }
- else if (element === null && options) {
- _this._objectInstance = GoogleMaps.getPlugin().Map.getMap(null, options);
- }
- }
- return _this;
- }
- /**
- * Changes the map div
- * @param domNode {HTMLElement | string} [options] If you want to display the map in an html element, you need to specify an element or id. If omit this argument, the map is detached from webview.
- */
- GoogleMap.prototype.setDiv = function (domNode) {
- if (typeof domNode === 'string') {
- this._objectInstance.setDiv(document.querySelector('.show-page #' + domNode));
- }
- else {
- this._objectInstance.setDiv(domNode);
- }
- };
- /**
- * Returns the map HTML element
- * @return {HTMLElement}
- */
- GoogleMap.prototype.getDiv = function () { return; };
- /**
- * Changes the map type id
- * @param mapTypeId {string}
- */
- GoogleMap.prototype.setMapTypeId = function (mapTypeId) { };
- /**
- * Moves the camera with animation
- * @return {Promise<any>}
- */
- GoogleMap.prototype.animateCamera = function (cameraPosition) { return; };
- /**
- * Zooming in the camera with animation
- * @return {Promise<any>}
- */
- GoogleMap.prototype.animateCameraZoomIn = function () { return; };
- /**
- * Zooming out the camera with animation
- * @return {Promise<any>}
- */
- GoogleMap.prototype.animateCameraZoomOut = function () { return; };
- /**
- * Moves the camera without animation
- * @return {Promise<any>}
- */
- GoogleMap.prototype.moveCamera = function (cameraPosition) { return; };
- /**
- * Zooming in the camera without animation
- * @return {Promise<any>}
- */
- GoogleMap.prototype.moveCameraZoomIn = function () { return; };
- /**
- * Zooming out the camera without animation
- * @return {Promise<any>}
- */
- GoogleMap.prototype.moveCameraZoomOut = function () { return; };
- /**
- * Get the position of the camera.
- * @return {CameraPosition}
- */
- GoogleMap.prototype.getCameraPosition = function () { return; };
- /**
- * Get the current camera target position
- * @return {ILatLng}
- */
- GoogleMap.prototype.getCameraTarget = function () { return; };
- /**
- * Get the current camera zoom level
- * @return {number}
- */
- GoogleMap.prototype.getCameraZoom = function () { return; };
- /**
- * Get the current camera bearing
- * @return {number}
- */
- GoogleMap.prototype.getCameraBearing = function () { return; };
- /**
- * Get the current camera tilt (view angle)
- * @return {number}
- */
- GoogleMap.prototype.getCameraTilt = function () { return; };
- /**
- * Set the center position of the camera view
- * @param latLng {ILatLng | Array<ILatLng>}
- */
- GoogleMap.prototype.setCameraTarget = function (latLng) { };
- /**
- * Set zoom level of the camera
- * @param zoomLevel {number} Zoom level
- */
- GoogleMap.prototype.setCameraZoom = function (zoomLevel) { };
- /**
- * Set the camera view angle
- * @param tiltAngle {number} Tilt angle
- */
- GoogleMap.prototype.setCameraTilt = function (tiltAngle) { };
- /**
- * Set camera bearing
- * @param bearing {any}
- */
- GoogleMap.prototype.setCameraBearing = function (bearing) { };
- /**
- * Changes the center of the map by the given distance in pixels
- * @param x {number}
- * @param y {number}
- */
- GoogleMap.prototype.panBy = function (x, y) { };
- /**
- * Get the current visible region (southWest and northEast)
- * @return {VisibleRegion}
- */
- GoogleMap.prototype.getVisibleRegion = function () { return; };
- /**
- * Get the current device location
- * @return {Promise<MyLocation>}
- */
- GoogleMap.prototype.getMyLocation = function (options) {
- return new Promise(function (resolve, reject) {
- GoogleMaps.getPlugin().LocationService.getMyLocation(options, resolve, reject);
- });
- };
- /**
- * Set false to ignore all clicks on the map
- * @param isClickable {boolean}
- */
- GoogleMap.prototype.setClickable = function (isClickable) { };
- /**
- * Destroy a map completely
- * @return {Promise<any>}
- */
- GoogleMap.prototype.remove = function () {
- var _this = this;
- if (this.get('_overlays')) {
- Object.keys(this.get('_overlays')).forEach(function (overlayId) {
- _this.get('_overlays')[overlayId] = null;
- delete _this.get('_overlays')[overlayId];
- });
- }
- return new Promise(function (resolve) {
- _this._objectInstance.remove(function () { return resolve(); });
- });
- };
- /**
- * Remove all overlays, such as marker
- * @return {Promise<any>}
- */
- GoogleMap.prototype.clear = function () {
- var _this = this;
- if (this.get('_overlays')) {
- Object.keys(this.get('_overlays')).forEach(function (overlayId) {
- _this.get('_overlays')[overlayId] = null;
- delete _this.get('_overlays')[overlayId];
- });
- }
- return new Promise(function (resolve) {
- _this._objectInstance.clear(function () { return resolve(); });
- });
- };
- /**
- * Convert the unit from LatLng to the pixels from the left/top of the map div
- * @return {Promise<any>}
- */
- GoogleMap.prototype.fromLatLngToPoint = function (latLng) { return; };
- /**
- * Convert the unit from the pixels from the left/top to the LatLng
- * @return {Promise<LatLng>}
- */
- GoogleMap.prototype.fromPointToLatLng = function (point) { return; };
- /**
- * Set true if you want to show the MyLocation control (blue dot)
- * @param enabled {boolean}
- */
- GoogleMap.prototype.setMyLocationEnabled = function (enabled) { };
- /**
- * Set true if you want to show the MyLocation button
- * @param enabled {boolean}
- */
- GoogleMap.prototype.setMyLocationButtonEnabled = function (enabled) { };
- /**
- * Get the currently focused building
- * @return {Promise<any>}
- */
- GoogleMap.prototype.getFocusedBuilding = function () { return; };
- /**
- * Set true if you want to show the indoor map
- * @param enabled {boolean}
- */
- GoogleMap.prototype.setIndoorEnabled = function (enabled) { };
- /**
- * Set true if you want to show the traffic layer
- * @param enabled {boolean}
- */
- GoogleMap.prototype.setTrafficEnabled = function (enabled) { };
- /**
- * Set true if you want to show the compass button
- * @param enabled {boolean}
- */
- GoogleMap.prototype.setCompassEnabled = function (enabled) { };
- /**
- * Sets the preference for whether all gestures should be enabled or disabled
- * @param enabled {boolean}
- */
- GoogleMap.prototype.setAllGesturesEnabled = function (enabled) { };
- /**
- * Set visibility of the map
- * @param visible {boolean}
- */
- GoogleMap.prototype.setVisible = function (visible) { };
- /**
- * Adjust the map padding (same as CSS padding rule)
- * @param top {number}
- * @param right {number}
- * @param left {number}
- * @param bottom {number}
- */
- GoogleMap.prototype.setPadding = function (top, right, bottom, left) { };
- /**
- * Set options
- * @param options
- */
- GoogleMap.prototype.setOptions = function (options) { };
- /**
- * Adds a marker
- * @param options {MarkerOptions} options
- * @return {Promise<Marker>}
- */
- GoogleMap.prototype.addMarker = function (options) {
- var _this = this;
- return new Promise(function (resolve, reject) {
- _this._objectInstance.addMarker(options, function (marker) {
- if (marker) {
- var overlayId_1 = marker.getId();
- var overlay_1 = new Marker(_this, marker);
- _this.get('_overlays')[overlayId_1] = overlay_1;
- marker.one(overlayId_1 + '_remove', function () {
- if (_this.get('_overlays')) {
- _this.get('_overlays')[overlayId_1] = null;
- overlay_1.destroy();
- }
- });
- resolve(overlay_1);
- }
- else {
- reject();
- }
- });
- });
- };
- /**
- * Adds a marker in synchronous
- * @param options {MarkerOptions} options
- * @Returns {Marker}
- */
- GoogleMap.prototype.addMarkerSync = function (options) {
- var _this = this;
- var marker = this._objectInstance.addMarker(options);
- var overlayId = marker.getId();
- var overlay = new Marker(this, marker);
- this.get('_overlays')[overlayId] = overlay;
- marker.one(overlayId + '_remove', function () {
- if (_this.get('_overlays')) {
- _this.get('_overlays')[overlayId] = null;
- overlay.destroy();
- }
- });
- return overlay;
- };
- /**
- * Adds a marker cluster
- * @param options {MarkerClusterOptions} options
- * @return {Promise<MarkerCluster>}
- */
- GoogleMap.prototype.addMarkerCluster = function (options) {
- var _this = this;
- return new Promise(function (resolve, reject) {
- _this._objectInstance.addMarkerCluster(options, function (markerCluster) {
- if (markerCluster) {
- var overlayId_2 = markerCluster.getId();
- var overlay_2 = new MarkerCluster(_this, markerCluster);
- _this.get('_overlays')[overlayId_2] = overlay_2;
- markerCluster.one('remove', function () {
- if (_this.get('_overlays')) {
- _this.get('_overlays')[overlayId_2] = null;
- overlay_2.destroy();
- }
- });
- markerCluster.set('_overlays', new BaseArrayClass());
- resolve(overlay_2);
- }
- else {
- reject();
- }
- });
- });
- };
- /**
- * Adds a marker cluster in synchronous
- * @param options {MarkerClusterOptions} options
- * @Returns {MarkerCluster}
- */
- GoogleMap.prototype.addMarkerClusterSync = function (options) {
- var _this = this;
- var markerCluster = this._objectInstance.addMarkerCluster(options);
- var overlayId = markerCluster.getId();
- var overlay = new MarkerCluster(this, markerCluster);
- this.get('_overlays')[overlayId] = overlay;
- markerCluster.one(overlayId + '_remove', function () {
- if (_this.get('_overlays')) {
- _this.get('_overlays')[overlayId] = null;
- overlay.destroy();
- }
- });
- markerCluster.set('_overlays', new BaseArrayClass());
- return overlay;
- };
- /**
- * Adds a circle
- * @param options {CircleOptions} options
- * @return {Promise<Circle>}
- */
- GoogleMap.prototype.addCircle = function (options) {
- var _this = this;
- return new Promise(function (resolve, reject) {
- _this._objectInstance.addCircle(options, function (circle) {
- if (circle) {
- var overlayId_3 = circle.getId();
- var overlay_3 = new Circle(_this, circle);
- _this.get('_overlays')[overlayId_3] = overlay_3;
- circle.one(overlayId_3 + '_remove', function () {
- if (_this.get('_overlays')) {
- _this.get('_overlays')[overlayId_3] = null;
- overlay_3.destroy();
- }
- });
- resolve(overlay_3);
- }
- else {
- reject();
- }
- });
- });
- };
- /**
- * Adds a circle in synchronous
- * @param options {CircleOptions} options
- * @return {Circle}
- */
- GoogleMap.prototype.addCircleSync = function (options) {
- var _this = this;
- var circle = this._objectInstance.addCircle(options);
- var overlayId = circle.getId();
- var overlay = new Circle(this, circle);
- this.get('_overlays')[overlayId] = overlay;
- circle.one(overlayId + '_remove', function () {
- if (_this.get('_overlays')) {
- _this.get('_overlays')[overlayId] = null;
- overlay.destroy();
- }
- });
- return overlay;
- };
- /**
- * Adds a polygon
- * @param options {PolygonOptions} options
- * @return {Promise<Polygon>}
- */
- GoogleMap.prototype.addPolygon = function (options) {
- var _this = this;
- return new Promise(function (resolve, reject) {
- _this._objectInstance.addPolygon(options, function (polygon) {
- if (polygon) {
- var overlayId_4 = polygon.getId();
- var overlay_4 = new Polygon(_this, polygon);
- _this.get('_overlays')[overlayId_4] = overlay_4;
- polygon.one(overlayId_4 + '_remove', function () {
- if (_this.get('_overlays')) {
- _this.get('_overlays')[overlayId_4] = null;
- overlay_4.destroy();
- }
- });
- resolve(overlay_4);
- }
- else {
- reject();
- }
- });
- });
- };
- /**
- * Adds a polygon in synchronous
- * @param options {PolygonOptions} options
- * @return {Polygon}
- */
- GoogleMap.prototype.addPolygonSync = function (options) {
- var _this = this;
- var polygon = this._objectInstance.addPolygon(options);
- var overlayId = polygon.getId();
- var overlay = new Polygon(this, polygon);
- this.get('_overlays')[overlayId] = overlay;
- polygon.one(overlayId + '_remove', function () {
- if (_this.get('_overlays')) {
- _this.get('_overlays')[overlayId] = null;
- overlay.destroy();
- }
- });
- return overlay;
- };
- /**
- * Adds a polyline
- * @param options {PolylineOptions} options
- * @return {Promise<Polyline>}
- */
- GoogleMap.prototype.addPolyline = function (options) {
- var _this = this;
- return new Promise(function (resolve, reject) {
- _this._objectInstance.addPolyline(options, function (polyline) {
- if (polyline) {
- var overlayId_5 = polyline.getId();
- var overlay_5 = new Polyline(_this, polyline);
- _this.get('_overlays')[overlayId_5] = overlay_5;
- polyline.one(overlayId_5 + '_remove', function () {
- if (_this.get('_overlays')) {
- _this.get('_overlays')[overlayId_5] = null;
- overlay_5.destroy();
- }
- });
- resolve(overlay_5);
- }
- else {
- reject();
- }
- });
- });
- };
- /**
- * Adds a polyline in synchronous
- * @param options {PolylineOptions} options
- * @return {Polyline}
- */
- GoogleMap.prototype.addPolylineSync = function (options) {
- var _this = this;
- var polyline = this._objectInstance.addPolyline(options);
- var overlayId = polyline.getId();
- var overlay = new Polyline(this, polyline);
- this.get('_overlays')[overlayId] = overlay;
- polyline.one(overlayId + '_remove', function () {
- if (_this.get('_overlays')) {
- _this.get('_overlays')[overlayId] = null;
- overlay.destroy();
- }
- });
- return overlay;
- };
- /**
- * Adds a tile overlay
- * @param options {TileOverlayOptions} options
- * @return {Promise<TileOverlay>}
- */
- GoogleMap.prototype.addTileOverlay = function (options) {
- var _this = this;
- return new Promise(function (resolve, reject) {
- _this._objectInstance.addTileOverlay(options, function (tileOverlay) {
- if (tileOverlay) {
- var overlayId_6 = tileOverlay.getId();
- var overlay_6 = new TileOverlay(_this, tileOverlay);
- _this.get('_overlays')[overlayId_6] = overlay_6;
- tileOverlay.one(overlayId_6 + '_remove', function () {
- if (_this.get('_overlays')) {
- _this.get('_overlays')[overlayId_6] = null;
- overlay_6.destroy();
- }
- });
- resolve(overlay_6);
- }
- else {
- reject();
- }
- });
- });
- };
- /**
- * Adds a tile overlay in synchronous
- * @param options {TileOverlayOptions} options
- * @return {TileOverlay}
- */
- GoogleMap.prototype.addTileOverlaySync = function (options) {
- var _this = this;
- var tileOverlay = this._objectInstance.addTileOverlay(options);
- var overlayId = tileOverlay.getId();
- var overlay = new TileOverlay(this, tileOverlay);
- this.get('_overlays')[overlayId] = overlay;
- tileOverlay.one(overlayId + '_remove', function () {
- if (_this.get('_overlays')) {
- _this.get('_overlays')[overlayId] = null;
- overlay.destroy();
- }
- });
- return overlay;
- };
- /**
- * Adds a ground overlay
- * @param options {GroundOverlayOptions} options
- * @return {Promise<GroundOverlay>}
- */
- GoogleMap.prototype.addGroundOverlay = function (options) {
- var _this = this;
- return new Promise(function (resolve, reject) {
- _this._objectInstance.addGroundOverlay(options, function (groundOverlay) {
- if (groundOverlay) {
- var overlayId_7 = groundOverlay.getId();
- var overlay_7 = new GroundOverlay(_this, groundOverlay);
- _this.get('_overlays')[overlayId_7] = overlay_7;
- groundOverlay.one(overlayId_7 + '_remove', function () {
- if (_this.get('_overlays')) {
- _this.get('_overlays')[overlayId_7] = null;
- overlay_7.destroy();
- }
- });
- resolve(overlay_7);
- }
- else {
- reject();
- }
- });
- });
- };
- /**
- * Adds a ground overlay in synchronous
- * @param options {GroundOverlayOptions} options
- * @return {GroundOverlay}
- */
- GoogleMap.prototype.addGroundOverlaySync = function (options) {
- var _this = this;
- var groundOverlay = this._objectInstance.addGroundOverlay(options);
- var overlayId = groundOverlay.getId();
- var overlay = new GroundOverlay(this, groundOverlay);
- this.get('_overlays')[overlayId] = overlay;
- groundOverlay.one(overlayId + '_remove', function () {
- if (_this.get('_overlays')) {
- _this.get('_overlays')[overlayId] = null;
- overlay.destroy();
- }
- });
- return overlay;
- };
- /**
- * Adds a kml overlay
- * @param options {KmlOverlayOptions} options
- * @return {Promise<KmlOverlay>}
- */
- GoogleMap.prototype.addKmlOverlay = function (options) {
- var _this = this;
- return new Promise(function (resolve, reject) {
- _this._objectInstance.addKmlOverlay(options, function (kmlOverlay) {
- if (kmlOverlay) {
- var overlayId_8 = kmlOverlay.getId();
- var overlay_8 = new KmlOverlay(_this, kmlOverlay);
- _this.get('_overlays')[overlayId_8] = overlay_8;
- kmlOverlay.one(overlayId_8 + '_remove', function () {
- if (_this.get('_overlays')) {
- _this.get('_overlays')[overlayId_8] = null;
- overlay_8.destroy();
- }
- });
- resolve(overlay_8);
- }
- else {
- reject();
- }
- });
- });
- };
- /**
- * Returns the base64 encoded screen capture of the map.
- * @param options {ToDataUrlOptions} [options] options
- * @return {Promise<string>}
- */
- GoogleMap.prototype.toDataURL = function (options) { return; };
- __decorate([
- InstanceCheck(),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Object]),
- __metadata("design:returntype", void 0)
- ], GoogleMap.prototype, "setDiv", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", HTMLElement)
- ], GoogleMap.prototype, "getDiv", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [String]),
- __metadata("design:returntype", void 0)
- ], GoogleMap.prototype, "setMapTypeId", null);
- __decorate([
- CordovaInstance(),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Object]),
- __metadata("design:returntype", Promise)
- ], GoogleMap.prototype, "animateCamera", null);
- __decorate([
- CordovaInstance(),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", Promise)
- ], GoogleMap.prototype, "animateCameraZoomIn", null);
- __decorate([
- CordovaInstance(),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", Promise)
- ], GoogleMap.prototype, "animateCameraZoomOut", null);
- __decorate([
- CordovaInstance(),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Object]),
- __metadata("design:returntype", Promise)
- ], GoogleMap.prototype, "moveCamera", null);
- __decorate([
- CordovaInstance(),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", Promise)
- ], GoogleMap.prototype, "moveCameraZoomIn", null);
- __decorate([
- CordovaInstance(),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", Promise)
- ], GoogleMap.prototype, "moveCameraZoomOut", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", Object)
- ], GoogleMap.prototype, "getCameraPosition", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", Object)
- ], GoogleMap.prototype, "getCameraTarget", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", Number)
- ], GoogleMap.prototype, "getCameraZoom", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", Number)
- ], GoogleMap.prototype, "getCameraBearing", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", Number)
- ], GoogleMap.prototype, "getCameraTilt", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Object]),
- __metadata("design:returntype", void 0)
- ], GoogleMap.prototype, "setCameraTarget", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Number]),
- __metadata("design:returntype", void 0)
- ], GoogleMap.prototype, "setCameraZoom", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Number]),
- __metadata("design:returntype", void 0)
- ], GoogleMap.prototype, "setCameraTilt", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Object]),
- __metadata("design:returntype", void 0)
- ], GoogleMap.prototype, "setCameraBearing", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Number, Number]),
- __metadata("design:returntype", void 0)
- ], GoogleMap.prototype, "panBy", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", VisibleRegion)
- ], GoogleMap.prototype, "getVisibleRegion", null);
- __decorate([
- CordovaInstance(),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Object]),
- __metadata("design:returntype", Promise)
- ], GoogleMap.prototype, "getMyLocation", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Boolean]),
- __metadata("design:returntype", void 0)
- ], GoogleMap.prototype, "setClickable", null);
- __decorate([
- CordovaInstance(),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", Promise)
- ], GoogleMap.prototype, "remove", null);
- __decorate([
- InstanceCheck(),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", Promise)
- ], GoogleMap.prototype, "clear", null);
- __decorate([
- CordovaInstance(),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Object]),
- __metadata("design:returntype", Promise)
- ], GoogleMap.prototype, "fromLatLngToPoint", null);
- __decorate([
- CordovaInstance(),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Array]),
- __metadata("design:returntype", Promise)
- ], GoogleMap.prototype, "fromPointToLatLng", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Boolean]),
- __metadata("design:returntype", void 0)
- ], GoogleMap.prototype, "setMyLocationEnabled", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Boolean]),
- __metadata("design:returntype", void 0)
- ], GoogleMap.prototype, "setMyLocationButtonEnabled", null);
- __decorate([
- CordovaInstance(),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", Promise)
- ], GoogleMap.prototype, "getFocusedBuilding", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Boolean]),
- __metadata("design:returntype", void 0)
- ], GoogleMap.prototype, "setIndoorEnabled", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Boolean]),
- __metadata("design:returntype", void 0)
- ], GoogleMap.prototype, "setTrafficEnabled", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Boolean]),
- __metadata("design:returntype", void 0)
- ], GoogleMap.prototype, "setCompassEnabled", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Boolean]),
- __metadata("design:returntype", void 0)
- ], GoogleMap.prototype, "setAllGesturesEnabled", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Boolean]),
- __metadata("design:returntype", void 0)
- ], GoogleMap.prototype, "setVisible", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Number, Number, Number, Number]),
- __metadata("design:returntype", void 0)
- ], GoogleMap.prototype, "setPadding", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Object]),
- __metadata("design:returntype", void 0)
- ], GoogleMap.prototype, "setOptions", null);
- __decorate([
- InstanceCheck(),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Object]),
- __metadata("design:returntype", Promise)
- ], GoogleMap.prototype, "addMarker", null);
- __decorate([
- InstanceCheck(),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Object]),
- __metadata("design:returntype", Marker)
- ], GoogleMap.prototype, "addMarkerSync", null);
- __decorate([
- InstanceCheck(),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Object]),
- __metadata("design:returntype", Promise)
- ], GoogleMap.prototype, "addMarkerCluster", null);
- __decorate([
- InstanceCheck(),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Object]),
- __metadata("design:returntype", MarkerCluster)
- ], GoogleMap.prototype, "addMarkerClusterSync", null);
- __decorate([
- InstanceCheck(),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Object]),
- __metadata("design:returntype", Promise)
- ], GoogleMap.prototype, "addCircle", null);
- __decorate([
- InstanceCheck(),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Object]),
- __metadata("design:returntype", Circle)
- ], GoogleMap.prototype, "addCircleSync", null);
- __decorate([
- InstanceCheck(),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Object]),
- __metadata("design:returntype", Promise)
- ], GoogleMap.prototype, "addPolygon", null);
- __decorate([
- InstanceCheck(),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Object]),
- __metadata("design:returntype", Polygon)
- ], GoogleMap.prototype, "addPolygonSync", null);
- __decorate([
- InstanceCheck(),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Object]),
- __metadata("design:returntype", Promise)
- ], GoogleMap.prototype, "addPolyline", null);
- __decorate([
- InstanceCheck(),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Object]),
- __metadata("design:returntype", Polyline)
- ], GoogleMap.prototype, "addPolylineSync", null);
- __decorate([
- InstanceCheck(),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Object]),
- __metadata("design:returntype", Promise)
- ], GoogleMap.prototype, "addTileOverlay", null);
- __decorate([
- InstanceCheck(),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Object]),
- __metadata("design:returntype", TileOverlay)
- ], GoogleMap.prototype, "addTileOverlaySync", null);
- __decorate([
- InstanceCheck(),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Object]),
- __metadata("design:returntype", Promise)
- ], GoogleMap.prototype, "addGroundOverlay", null);
- __decorate([
- InstanceCheck(),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Object]),
- __metadata("design:returntype", GroundOverlay)
- ], GoogleMap.prototype, "addGroundOverlaySync", null);
- __decorate([
- InstanceCheck(),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Object]),
- __metadata("design:returntype", Promise)
- ], GoogleMap.prototype, "addKmlOverlay", null);
- __decorate([
- CordovaInstance(),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Object]),
- __metadata("design:returntype", Promise)
- ], GoogleMap.prototype, "toDataURL", null);
- GoogleMap = __decorate([
- Plugin({
- pluginName: 'GoogleMaps',
- plugin: 'cordova-plugin-googlemaps'
- }),
- __metadata("design:paramtypes", [Object, Object])
- ], GoogleMap);
- return GoogleMap;
- }(BaseClass));
- export { GoogleMap };
- /**
- * @hidden
- */
- var GroundOverlay = (function (_super) {
- __extends(GroundOverlay, _super);
- function GroundOverlay(_map, _objectInstance) {
- var _this = _super.call(this) || this;
- _this._map = _map;
- _this._objectInstance = _objectInstance;
- return _this;
- }
- /**
- * Returns the ID of instance.
- * @return {string}
- */
- GroundOverlay.prototype.getId = function () { return; };
- /**
- * Returns the map instance.
- * @return {GoogleMap}
- */
- GroundOverlay.prototype.getMap = function () { return this._map; };
- /**
- * Changes the bounds of the GroundOverlay
- * @param bounds { ILatLng[]}
- */
- GroundOverlay.prototype.setBounds = function (bounds) { };
- /**
- * Changes the bearing of the ground overlay
- * @param bearing {number}
- */
- GroundOverlay.prototype.setBearing = function (bearing) { };
- /**
- * Returns the current bearing value
- */
- GroundOverlay.prototype.getBearing = function () { return; };
- /**
- * Changes the image of the ground overlay
- * @param imageUrl {string} URL of image
- */
- GroundOverlay.prototype.setImage = function (imageUrl) { };
- ;
- /**
- * Changes the opacity of the ground overlay from 0.0 to 1.0
- * @param opacity {number}
- */
- GroundOverlay.prototype.setOpacity = function (opacity) { };
- /**
- * Returns the current opacity
- * @return {number}
- */
- GroundOverlay.prototype.getOpacity = function () { return; };
- /**
- * Changes click-ability of the ground overlay
- * @param clickable {boolean}
- */
- GroundOverlay.prototype.setClickable = function (clickable) { };
- /**
- * Returns true if the ground overlay is clickable
- * @return {boolean}
- */
- GroundOverlay.prototype.getClickable = function () { return; };
- /**
- * Changes visibility of the ground overlay
- * @param visible {boolean}
- */
- GroundOverlay.prototype.setVisible = function (visible) { };
- /**
- * Returns true if the ground overlay is visible
- * @return {boolean}
- */
- GroundOverlay.prototype.getVisible = function () { return; };
- /**
- * Changes the ground overlay zIndex order
- * @param index {number}
- */
- GroundOverlay.prototype.setZIndex = function (index) { };
- /**
- * Returns the current ground overlay zIndex
- * @return {number}
- */
- GroundOverlay.prototype.getZIndex = function () { return; };
- /**
- * Remove the ground overlay
- */
- GroundOverlay.prototype.remove = function () {
- delete this._objectInstance.getMap().get('_overlays')[this.getId()];
- this._objectInstance.remove();
- this.destroy();
- };
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", String)
- ], GroundOverlay.prototype, "getId", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Array]),
- __metadata("design:returntype", void 0)
- ], GroundOverlay.prototype, "setBounds", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Number]),
- __metadata("design:returntype", void 0)
- ], GroundOverlay.prototype, "setBearing", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", Number)
- ], GroundOverlay.prototype, "getBearing", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [String]),
- __metadata("design:returntype", void 0)
- ], GroundOverlay.prototype, "setImage", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Number]),
- __metadata("design:returntype", void 0)
- ], GroundOverlay.prototype, "setOpacity", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", Number)
- ], GroundOverlay.prototype, "getOpacity", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Boolean]),
- __metadata("design:returntype", void 0)
- ], GroundOverlay.prototype, "setClickable", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", Boolean)
- ], GroundOverlay.prototype, "getClickable", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Boolean]),
- __metadata("design:returntype", void 0)
- ], GroundOverlay.prototype, "setVisible", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", Boolean)
- ], GroundOverlay.prototype, "getVisible", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Number]),
- __metadata("design:returntype", void 0)
- ], GroundOverlay.prototype, "setZIndex", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", Number)
- ], GroundOverlay.prototype, "getZIndex", null);
- __decorate([
- CordovaCheck(),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", void 0)
- ], GroundOverlay.prototype, "remove", null);
- return GroundOverlay;
- }(BaseClass));
- export { GroundOverlay };
- /**
- * @hidden
- */
- var HtmlInfoWindow = (function (_super) {
- __extends(HtmlInfoWindow, _super);
- function HtmlInfoWindow() {
- var _this = _super.call(this) || this;
- _this._objectInstance = new (GoogleMaps.getPlugin().HtmlInfoWindow)();
- return _this;
- }
- /**
- * Changes the backgroundColor
- * @param color {string}
- */
- HtmlInfoWindow.prototype.setBackgroundColor = function (color) { };
- /**
- * Set your HTML contents.
- * @param content {any} String containing text or HTML element
- * @param cssOptions? {any} CSS styles for the container element of HTMLInfoWindow
- */
- HtmlInfoWindow.prototype.setContent = function (content, cssOptions) { };
- /**
- * Open the htmlInfoWindow
- * @param marker {Marker}
- */
- HtmlInfoWindow.prototype.open = function (marker) { };
- /**
- * Close the htmlInfoWindow
- */
- HtmlInfoWindow.prototype.close = function () { };
- __decorate([
- CordovaInstance(),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [String]),
- __metadata("design:returntype", void 0)
- ], HtmlInfoWindow.prototype, "setBackgroundColor", null);
- __decorate([
- CordovaInstance(),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Object, Object]),
- __metadata("design:returntype", void 0)
- ], HtmlInfoWindow.prototype, "setContent", null);
- __decorate([
- CordovaInstance(),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Object]),
- __metadata("design:returntype", Object)
- ], HtmlInfoWindow.prototype, "open", null);
- __decorate([
- CordovaInstance(),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", void 0)
- ], HtmlInfoWindow.prototype, "close", null);
- HtmlInfoWindow = __decorate([
- Plugin({
- plugin: 'cordova-plugin-googlemaps',
- pluginName: 'GoogleMaps',
- pluginRef: 'plugin.google.maps.HtmlInfoWindow',
- repo: ''
- }),
- __metadata("design:paramtypes", [])
- ], HtmlInfoWindow);
- return HtmlInfoWindow;
- }(BaseClass));
- export { HtmlInfoWindow };
- /**
- * @hidden
- */
- var Marker = (function (_super) {
- __extends(Marker, _super);
- function Marker(_map, _objectInstance) {
- var _this = _super.call(this) || this;
- _this._map = _map;
- _this._objectInstance = _objectInstance;
- return _this;
- }
- /**
- * Returns the ID of instance.
- * @return {string}
- */
- Marker.prototype.getId = function () { return; };
- /**
- * Returns the map instance.
- * @return {GoogleMap}
- */
- Marker.prototype.getMap = function () { return this._map; };
- /**
- * Set the marker position.
- * @param latLng {ILatLng}
- */
- Marker.prototype.setPosition = function (latLng) { return; };
- /**
- * Returns the marker position.
- * @return {ILatLng}
- */
- Marker.prototype.getPosition = function () { return; };
- /**
- * Show the normal infoWindow of the marker.
- */
- Marker.prototype.showInfoWindow = function () { };
- /**
- * Hide the normal infoWindow of the marker.
- */
- Marker.prototype.hideInfoWindow = function () { };
- /**
- * Specify the animation either `DROP` or `BOUNCE`
- * @param animation {string}
- */
- Marker.prototype.setAnimation = function (animation) { };
- /**
- * Set true if you **do not want** to move the map when you click on the marker.
- * @param disableAutoPan {boolean}
- */
- Marker.prototype.setDisableAutoPan = function (disableAutoPan) { };
- /**
- * Set false if you want to hide the marker.
- * @param visible
- */
- Marker.prototype.setVisible = function (visible) { };
- /**
- * Returns true if the marker is visible
- */
- Marker.prototype.isVisible = function () { return; };
- /**
- * Changes title of the normal infoWindow.
- * @param title {string}
- */
- Marker.prototype.setTitle = function (title) { };
- /**
- * Returns the title strings.
- * @return {string}
- */
- Marker.prototype.getTitle = function () { return; };
- /**
- * Changes snippet of the normal infoWindow.
- * @param snippet {string}
- */
- Marker.prototype.setSnippet = function (snippet) { };
- /**
- * Returns the snippet strings.
- * @return {string}
- */
- Marker.prototype.getSnippet = function () { return; };
- /**
- * Changes the marker opacity from 0.0 to 1.0.
- * @param alpha {number} Opacity
- */
- Marker.prototype.setOpacity = function (alpha) { };
- /**
- * Returns the marker opacity.
- * @return {number} Opacity
- */
- Marker.prototype.getOpacity = function () { return; };
- /**
- * Remove the marker.
- */
- Marker.prototype.remove = function () {
- delete this._objectInstance.getMap().get('_overlays')[this.getId()];
- this._objectInstance.remove();
- this.destroy();
- };
- /**
- * Changes the info window anchor. This defaults to 50% from the left of the image and at the bottom of the image.
- * @param x {number} Distance from left of the icon image in pixels.
- * @param y {number} Distance from top of the icon image in pixels.
- */
- Marker.prototype.setIconAnchor = function (x, y) { };
- /**
- * Changes the info window anchor. This defaults to 50% from the left of the image and at the top of the image.
- * @param x {number} Distance from left of the icon image in pixels.
- * @param y {number} Distance from top of the icon image in pixels.
- */
- Marker.prototype.setInfoWindowAnchor = function (x, y) { };
- /**
- * Returns true if the infoWindow is shown on the marker
- * @return {boolean}
- */
- Marker.prototype.isInfoWindowShown = function () { return; };
- /**
- * Higher zIndex value overlays will be drawn on top of lower zIndex value tile layers and overlays.
- * @param y {number} z-index
- */
- Marker.prototype.setZIndex = function (zIndex) { };
- /**
- * Get z-index
- * @return {number}
- */
- Marker.prototype.getZIndex = function () { return; };
- /**
- * Set true if you allow all users to drag the marker.
- * @param draggable {boolean}
- */
- Marker.prototype.setDraggable = function (draggable) { };
- /**
- * Returns true if the marker drag is enabled.
- * @return {boolean}
- */
- Marker.prototype.isDraggable = function () { return; };
- /**
- * Set true if you want to be flat marker.
- * @param flat {boolean}
- */
- Marker.prototype.setFlat = function (flat) { return; };
- /**
- * Changes icon url and/or size
- * @param icon
- */
- Marker.prototype.setIcon = function (icon) { return; };
- /**
- * Set the marker rotation angle.
- * @param rotation {number}
- */
- Marker.prototype.setRotation = function (rotation) { };
- /**
- * Returns the marker rotation angle.
- * @return {number}
- */
- Marker.prototype.getRotation = function () { return; };
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", String)
- ], Marker.prototype, "getId", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Object]),
- __metadata("design:returntype", void 0)
- ], Marker.prototype, "setPosition", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", Object)
- ], Marker.prototype, "getPosition", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", void 0)
- ], Marker.prototype, "showInfoWindow", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", void 0)
- ], Marker.prototype, "hideInfoWindow", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [String]),
- __metadata("design:returntype", void 0)
- ], Marker.prototype, "setAnimation", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Boolean]),
- __metadata("design:returntype", void 0)
- ], Marker.prototype, "setDisableAutoPan", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Boolean]),
- __metadata("design:returntype", void 0)
- ], Marker.prototype, "setVisible", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", Boolean)
- ], Marker.prototype, "isVisible", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [String]),
- __metadata("design:returntype", void 0)
- ], Marker.prototype, "setTitle", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", String)
- ], Marker.prototype, "getTitle", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [String]),
- __metadata("design:returntype", void 0)
- ], Marker.prototype, "setSnippet", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", String)
- ], Marker.prototype, "getSnippet", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Number]),
- __metadata("design:returntype", void 0)
- ], Marker.prototype, "setOpacity", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", Number)
- ], Marker.prototype, "getOpacity", null);
- __decorate([
- CordovaCheck(),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", void 0)
- ], Marker.prototype, "remove", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Number, Number]),
- __metadata("design:returntype", void 0)
- ], Marker.prototype, "setIconAnchor", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Number, Number]),
- __metadata("design:returntype", void 0)
- ], Marker.prototype, "setInfoWindowAnchor", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", Boolean)
- ], Marker.prototype, "isInfoWindowShown", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Number]),
- __metadata("design:returntype", void 0)
- ], Marker.prototype, "setZIndex", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", Number)
- ], Marker.prototype, "getZIndex", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Boolean]),
- __metadata("design:returntype", void 0)
- ], Marker.prototype, "setDraggable", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", Boolean)
- ], Marker.prototype, "isDraggable", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Boolean]),
- __metadata("design:returntype", void 0)
- ], Marker.prototype, "setFlat", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Object]),
- __metadata("design:returntype", void 0)
- ], Marker.prototype, "setIcon", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Number]),
- __metadata("design:returntype", void 0)
- ], Marker.prototype, "setRotation", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", Number)
- ], Marker.prototype, "getRotation", null);
- return Marker;
- }(BaseClass));
- export { Marker };
- /**
- * @hidden
- */
- var MarkerCluster = (function (_super) {
- __extends(MarkerCluster, _super);
- function MarkerCluster(_map, _objectInstance) {
- var _this = _super.call(this) || this;
- _this._map = _map;
- _this._objectInstance = _objectInstance;
- return _this;
- }
- /**
- * Returns the ID of instance.
- * @return {string}
- */
- MarkerCluster.prototype.getId = function () { return; };
- /**
- * Add one marker location
- * @param marker {MarkerOptions} one location
- * @param skipRedraw? {boolean} marker cluster does not redraw the marker cluster if true.
- */
- MarkerCluster.prototype.addMarker = function (marker, skipRedraw) { };
- /**
- * Add marker locations
- * @param markers {MarkerOptions[]} multiple location
- */
- MarkerCluster.prototype.addMarkers = function (markers) { };
- /**
- * Remove the marker cluster
- */
- MarkerCluster.prototype.remove = function () {
- this._objectInstance.set('_overlays', undefined);
- delete this._objectInstance.getMap().get('_overlays')[this.getId()];
- this._objectInstance.remove();
- this.destroy();
- };
- /**
- * Returns the map instance.
- * @return {GoogleMap}
- */
- MarkerCluster.prototype.getMap = function () { return this._map; };
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", String)
- ], MarkerCluster.prototype, "getId", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Object, Boolean]),
- __metadata("design:returntype", void 0)
- ], MarkerCluster.prototype, "addMarker", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Array]),
- __metadata("design:returntype", void 0)
- ], MarkerCluster.prototype, "addMarkers", null);
- __decorate([
- InstanceCheck(),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", void 0)
- ], MarkerCluster.prototype, "remove", null);
- return MarkerCluster;
- }(BaseClass));
- export { MarkerCluster };
- /**
- * @hidden
- */
- var Polygon = (function (_super) {
- __extends(Polygon, _super);
- function Polygon(_map, _objectInstance) {
- var _this = _super.call(this) || this;
- _this._map = _map;
- _this._objectInstance = _objectInstance;
- return _this;
- }
- /**
- * Returns the ID of instance.
- * @return {string}
- */
- Polygon.prototype.getId = function () { return; };
- /**
- * Returns the map instance.
- * @return {GoogleMap}
- */
- Polygon.prototype.getMap = function () { return this._map; };
- /**
- * Changes the polygon points.
- * @param points {ILatLng[]}
- */
- Polygon.prototype.setPoints = function (points) { };
- /**
- * Returns an instance of the BaseArrayClass.
- * You can modify the points.
- * @return {BaseArrayClass<ILatLng>}
- */
- Polygon.prototype.getPoints = function () {
- return new BaseArrayClass(this._objectInstance.getPoints());
- };
- /**
- * Changes the polygon holes.
- * @param holes {ILatLng[][]}
- */
- Polygon.prototype.setHoles = function (holes) { };
- /**
- * Returns an instance of the BaseArrayClass.
- * You can modify the holes.
- * @return {BaseArrayClass<ILatLng[]>}
- */
- Polygon.prototype.getHoles = function () {
- var holes = this._objectInstance.getPoints();
- var results = new BaseArrayClass();
- holes.forEach(function (hole) {
- results.push(hole);
- });
- return results;
- };
- /**
- * Changes the filling color (inner color)
- * @param fillColor {string}
- */
- Polygon.prototype.setFillColor = function (fillColor) { };
- /**
- * Returns the current polygon filling color (inner color).
- * @return {string}
- */
- Polygon.prototype.getFillColor = function () { return; };
- /**
- * Changes the stroke color (outer color)
- * @param strokeColor {string}
- */
- Polygon.prototype.setStrokeColor = function (strokeColor) { };
- /**
- * Returns the current polygon stroke color (outer color)
- * @return {string}
- */
- Polygon.prototype.getStrokeColor = function () { return; };
- /**
- * Changes click-ability of the polygon
- * @param clickable {boolean}
- */
- Polygon.prototype.setClickable = function (clickable) { };
- /**
- * Returns true if the polygon is clickable
- */
- Polygon.prototype.getClickable = function () { return; };
- /**
- * Changes visibility of the polygon
- * @param visible {boolean}
- */
- Polygon.prototype.setVisible = function (visible) { };
- /**
- * Returns true if the polygon is visible
- * @return {boolean}
- */
- Polygon.prototype.getVisible = function () { return; };
- /**
- * Changes the polygon zIndex order.
- * @param zIndex {number}
- */
- Polygon.prototype.setZIndex = function (zIndex) { };
- /**
- * Returns the current polygon zIndex
- * @return {number}
- */
- Polygon.prototype.getZIndex = function () { return; };
- /**
- * Remove the polygon.
- */
- Polygon.prototype.remove = function () {
- delete this._objectInstance.getMap().get('_overlays')[this.getId()];
- this._objectInstance.remove();
- this.destroy();
- };
- /**
- * Changes the polygon stroke width
- */
- Polygon.prototype.setStrokeWidth = function (strokeWidth) { };
- /**
- * Returns the polygon stroke width
- */
- Polygon.prototype.getStrokeWidth = function () { return; };
- /**
- * When true, edges of the polygon are interpreted as geodesic and will follow the curvature of the Earth.
- * @param geodesic {boolean}
- */
- Polygon.prototype.setGeodesic = function (geodesic) { };
- /**
- * Returns true if the polygon is geodesic.
- * @return {boolean}
- */
- Polygon.prototype.getGeodesic = function () { return; };
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", String)
- ], Polygon.prototype, "getId", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Array]),
- __metadata("design:returntype", void 0)
- ], Polygon.prototype, "setPoints", null);
- __decorate([
- CordovaCheck(),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", BaseArrayClass)
- ], Polygon.prototype, "getPoints", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Array]),
- __metadata("design:returntype", void 0)
- ], Polygon.prototype, "setHoles", null);
- __decorate([
- CordovaCheck(),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", BaseArrayClass)
- ], Polygon.prototype, "getHoles", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [String]),
- __metadata("design:returntype", void 0)
- ], Polygon.prototype, "setFillColor", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", String)
- ], Polygon.prototype, "getFillColor", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [String]),
- __metadata("design:returntype", void 0)
- ], Polygon.prototype, "setStrokeColor", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", String)
- ], Polygon.prototype, "getStrokeColor", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Boolean]),
- __metadata("design:returntype", void 0)
- ], Polygon.prototype, "setClickable", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", Boolean)
- ], Polygon.prototype, "getClickable", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Boolean]),
- __metadata("design:returntype", void 0)
- ], Polygon.prototype, "setVisible", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", Boolean)
- ], Polygon.prototype, "getVisible", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Number]),
- __metadata("design:returntype", void 0)
- ], Polygon.prototype, "setZIndex", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", Number)
- ], Polygon.prototype, "getZIndex", null);
- __decorate([
- InstanceCheck(),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", void 0)
- ], Polygon.prototype, "remove", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Number]),
- __metadata("design:returntype", void 0)
- ], Polygon.prototype, "setStrokeWidth", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", Number)
- ], Polygon.prototype, "getStrokeWidth", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Boolean]),
- __metadata("design:returntype", void 0)
- ], Polygon.prototype, "setGeodesic", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", Boolean)
- ], Polygon.prototype, "getGeodesic", null);
- return Polygon;
- }(BaseClass));
- export { Polygon };
- /**
- * @hidden
- */
- var Polyline = (function (_super) {
- __extends(Polyline, _super);
- function Polyline(_map, _objectInstance) {
- var _this = _super.call(this) || this;
- _this._map = _map;
- _this._objectInstance = _objectInstance;
- return _this;
- }
- /**
- * Returns the ID of instance.
- * @return {string}
- */
- Polyline.prototype.getId = function () { return; };
- /**
- * Returns the map instance.
- * @return {GoogleMap}
- */
- Polyline.prototype.getMap = function () { return this._map; };
- /**
- * Changes the polyline points.
- * @param points {ILatLng[]}
- */
- Polyline.prototype.setPoints = function (points) { };
- /**
- * Returns an instance of the BaseArrayClass
- * You can modify the points.
- * @return {BaseArrayClass<ILatLng>}
- */
- Polyline.prototype.getPoints = function () {
- return new BaseArrayClass(this._objectInstance.getPoints());
- };
- /**
- * When true, edges of the polyline are interpreted as geodesic and will follow the curvature of the Earth.
- * @param geoDesic {boolean}
- */
- Polyline.prototype.setGeoDesic = function (geoDesic) { };
- /**
- * Returns true if the polyline is geodesic
- */
- Polyline.prototype.getGeodesic = function () { return; };
- /**
- * Changes visibility of the polyline
- * @param visible {boolean}
- */
- Polyline.prototype.setVisible = function (visible) { };
- /**
- * Returns true if the polyline is visible
- * @return {boolean}
- */
- Polyline.prototype.getVisible = function () { return; };
- /**
- * Changes click-ability of the polyline
- * @param clickable {boolean}
- */
- Polyline.prototype.setClickable = function (clickable) { };
- /**
- * Returns true if the polyline is clickable
- * @return {boolean}
- */
- Polyline.prototype.getClickable = function () { return; };
- /**
- * Changes the polyline color
- * @param strokeColor {string}
- */
- Polyline.prototype.setStrokeColor = function (strokeColor) { };
- /**
- * Returns the current polyline color
- * @return {string}
- */
- Polyline.prototype.getStrokeColor = function () { return; };
- /**
- * Changes the polyline stroke width
- * @param strokeWidth {number}
- */
- Polyline.prototype.setStrokeWidth = function (strokeWidth) { };
- /**
- * Returns the current stroke width (unit: pixel).
- * @return {number}
- */
- Polyline.prototype.getStrokeWidth = function () { return; };
- /**
- * Changes the polyline zIndex order.
- * @param index {number}
- */
- Polyline.prototype.setZIndex = function (index) { };
- /**
- * Returns the current polyline zIndex
- * @return {number}
- */
- Polyline.prototype.getZIndex = function () { return; };
- /**
- * Remove the polyline
- */
- Polyline.prototype.remove = function () {
- delete this._objectInstance.getMap().get('_overlays')[this.getId()];
- this._objectInstance.remove();
- this.destroy();
- };
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", String)
- ], Polyline.prototype, "getId", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Array]),
- __metadata("design:returntype", void 0)
- ], Polyline.prototype, "setPoints", null);
- __decorate([
- CordovaCheck(),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", BaseArrayClass)
- ], Polyline.prototype, "getPoints", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Boolean]),
- __metadata("design:returntype", void 0)
- ], Polyline.prototype, "setGeoDesic", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", Boolean)
- ], Polyline.prototype, "getGeodesic", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Boolean]),
- __metadata("design:returntype", void 0)
- ], Polyline.prototype, "setVisible", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", Boolean)
- ], Polyline.prototype, "getVisible", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Boolean]),
- __metadata("design:returntype", void 0)
- ], Polyline.prototype, "setClickable", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", Boolean)
- ], Polyline.prototype, "getClickable", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [String]),
- __metadata("design:returntype", void 0)
- ], Polyline.prototype, "setStrokeColor", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", String)
- ], Polyline.prototype, "getStrokeColor", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Number]),
- __metadata("design:returntype", void 0)
- ], Polyline.prototype, "setStrokeWidth", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", Number)
- ], Polyline.prototype, "getStrokeWidth", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Number]),
- __metadata("design:returntype", void 0)
- ], Polyline.prototype, "setZIndex", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", Number)
- ], Polyline.prototype, "getZIndex", null);
- __decorate([
- InstanceCheck(),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", void 0)
- ], Polyline.prototype, "remove", null);
- return Polyline;
- }(BaseClass));
- export { Polyline };
- /**
- * @hidden
- */
- var TileOverlay = (function (_super) {
- __extends(TileOverlay, _super);
- function TileOverlay(_map, _objectInstance) {
- var _this = _super.call(this) || this;
- _this._map = _map;
- _this._objectInstance = _objectInstance;
- return _this;
- }
- /**
- * Returns the ID of instance.
- * @return {string}
- */
- TileOverlay.prototype.getId = function () { return; };
- /**
- * Returns the map instance.
- * @return {GoogleMap}
- */
- TileOverlay.prototype.getMap = function () { return this._map; };
- /**
- * Set whether the tiles should fade in.
- * @param fadeIn {boolean}
- */
- TileOverlay.prototype.setFadeIn = function (fadeIn) { };
- /**
- * Get whether the tiles should fade in
- * @return {boolean}
- */
- TileOverlay.prototype.getFadeIn = function () { return; };
- /**
- * Set the zIndex of the tile overlay
- * @param zIndex {number}
- */
- TileOverlay.prototype.setZIndex = function (zIndex) { };
- /**
- * Returns the zIndex of the tile overlay
- * @return {number}
- */
- TileOverlay.prototype.getZIndex = function () { return; };
- /**
- * Set the opacity of the tile overlay
- * @param opacity {number}
- */
- TileOverlay.prototype.setOpacity = function (opacity) { };
- /**
- * Returns the opacity of the tile overlay
- * @return {number}
- */
- TileOverlay.prototype.getOpacity = function () { return; };
- /**
- * Set false if you want to hide
- * @param visible {boolean}
- */
- TileOverlay.prototype.setVisible = function (visible) { };
- /**
- * Returns true if the tile overlay is visible
- * @return {boolean}
- */
- TileOverlay.prototype.getVisible = function () { return; };
- /**
- * Get tile size
- */
- TileOverlay.prototype.getTileSize = function () { return; };
- /**
- * Remove the tile overlay
- */
- TileOverlay.prototype.remove = function () {
- delete this._objectInstance.getMap().get('_overlays')[this.getId()];
- this._objectInstance.remove();
- this.destroy();
- };
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", String)
- ], TileOverlay.prototype, "getId", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Boolean]),
- __metadata("design:returntype", void 0)
- ], TileOverlay.prototype, "setFadeIn", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", Boolean)
- ], TileOverlay.prototype, "getFadeIn", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Number]),
- __metadata("design:returntype", void 0)
- ], TileOverlay.prototype, "setZIndex", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", Number)
- ], TileOverlay.prototype, "getZIndex", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Number]),
- __metadata("design:returntype", void 0)
- ], TileOverlay.prototype, "setOpacity", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", Number)
- ], TileOverlay.prototype, "getOpacity", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Boolean]),
- __metadata("design:returntype", void 0)
- ], TileOverlay.prototype, "setVisible", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", Boolean)
- ], TileOverlay.prototype, "getVisible", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", Object)
- ], TileOverlay.prototype, "getTileSize", null);
- __decorate([
- CordovaCheck(),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", void 0)
- ], TileOverlay.prototype, "remove", null);
- return TileOverlay;
- }(BaseClass));
- export { TileOverlay };
- /**
- * @hidden
- */
- var KmlOverlay = (function (_super) {
- __extends(KmlOverlay, _super);
- function KmlOverlay(_map, _objectInstance) {
- var _this = _super.call(this) || this;
- _this._map = _map;
- _this._objectInstance = _objectInstance;
- Object.defineProperty(self, 'camera', {
- value: _this._objectInstance.camera,
- writable: false
- });
- Object.defineProperty(self, 'kmlData', {
- value: _this._objectInstance.kmlData,
- writable: false
- });
- return _this;
- }
- /**
- * Returns the viewport to contains all overlays
- */
- KmlOverlay.prototype.getDefaultViewport = function () { return; };
- /**
- * Returns the ID of instance.
- * @return {string}
- */
- KmlOverlay.prototype.getId = function () { return; };
- /**
- * Returns the map instance.
- * @return {GoogleMap}
- */
- KmlOverlay.prototype.getMap = function () { return this._map; };
- /**
- * Changes visibility of the kml overlay
- * @param visible {boolean}
- */
- KmlOverlay.prototype.setVisible = function (visible) { };
- /**
- * Returns true if the kml overlay is visible
- * @return {boolean}
- */
- KmlOverlay.prototype.getVisible = function () { return; };
- /**
- * Changes click-ability of the KmlOverlay
- * @param clickable {boolean}
- */
- KmlOverlay.prototype.setClickable = function (clickable) { };
- /**
- * Returns true if the KmlOverlay is clickable
- * @return {boolean}
- */
- KmlOverlay.prototype.getClickable = function () { return; };
- /**
- * Remove the KmlOverlay
- */
- KmlOverlay.prototype.remove = function () {
- delete this._objectInstance.getMap().get('_overlays')[this.getId()];
- this._objectInstance.remove();
- this.destroy();
- };
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", Object)
- ], KmlOverlay.prototype, "getDefaultViewport", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", String)
- ], KmlOverlay.prototype, "getId", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Boolean]),
- __metadata("design:returntype", void 0)
- ], KmlOverlay.prototype, "setVisible", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", Boolean)
- ], KmlOverlay.prototype, "getVisible", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", [Boolean]),
- __metadata("design:returntype", void 0)
- ], KmlOverlay.prototype, "setClickable", null);
- __decorate([
- CordovaInstance({ sync: true }),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", Boolean)
- ], KmlOverlay.prototype, "getClickable", null);
- __decorate([
- InstanceCheck(),
- __metadata("design:type", Function),
- __metadata("design:paramtypes", []),
- __metadata("design:returntype", void 0)
- ], KmlOverlay.prototype, "remove", null);
- return KmlOverlay;
- }(BaseClass));
- export { KmlOverlay };
- //# sourceMappingURL=index.js.map
|