Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

evm-angular2-baidu-map

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

evm-angular2-baidu-map - npm Package Compare versions

Comparing version 4.2.4 to 4.2.6

2

bundles/evm-angular2-baidu-map.umd.js

@@ -236,3 +236,3 @@ (function (global, factory) {

window._loadingCallbacks.push(cb);
var MAP_URL = "https://api.map.baidu.com/api?v=2.0&ak=" + this._config.ak + "&callback=baidumapinit&s=1";
var MAP_URL = "https://api.map.baidu.com/api?v=2.0&ak=" + this._config.ak + "&callback=baidumapinit";
window.baidumapinit = function () {

@@ -239,0 +239,0 @@ window._scriptLoadState = LOADING_STATE.LOADED;

@@ -1,2 +0,2 @@

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core")):"function"==typeof define&&define.amd?define("evm-angular2-baidu-map",["exports","@angular/core"],e):e(t["evm-angular2-baidu-map"]={},t.ng.core)}(this,function(t,n){"use strict";function d(t){return null===t||t===undefined}function e(t){return t===undefined}function l(t){return"[object Boolean]"===Object.prototype.toString.call(t)}function u(t){return t?new window.BMap.Point(t.lng,t.lat):new window.BMap.Point}function o(t){return t?t.map(function(t){return new window.BMap.Point(t.lng,t.lat)}):[]}function h(t){return t?new window.BMap.Size(t.width,t.height):new window.BMap.Size}function f(t,e,n){if(!e&&!n)return new window.BMap.Icon(t);if(!e)return new window.BMap.Icon(t,h(e));var o={anchor:h(n.anchor),imageOffset:h(n.imageOffset),infoWindowAnchor:h(n.infoWindowAnchor),printImageUrl:n.printImageUrl};return new window.BMap.Icon(t,h(e),o)}function i(t,e){if(d(t))throw new Error(e)}function y(t){return e=t.getTileLayer,!("[object Function]"===Object.prototype.toString.call(e));var e}var r={NON:0,LOADED:1,LOADING:2};r[r.NON]="NON",r[r.LOADED]="LOADED",r[r.LOADING]="LOADING";var a=function(){this.ak=""};window._scriptLoadState=r.NON,window._loadingCallbacks=[];var s=function(){function t(t){i(t.ak,"ak must be provided"),this._config=t}return t.prototype.load=function(e){if(window._scriptLoadState===r.LOADED)return p("baidu-map .baidu-map-instance","block"),p("baidu-map .baidu-map-offline","none"),e();if(window._scriptLoadState!==r.LOADING){window._scriptLoadState=r.LOADING,window._loadingCallbacks.push(e);var n="https://api.map.baidu.com/api?v=2.0&ak="+this._config.ak+"&callback=baidumapinit&s=1";window.baidumapinit=function(){window._scriptLoadState=r.LOADED,p("baidu-map .baidu-map-instance","block"),p("baidu-map .baidu-map-offline","none"),window._loadingCallbacks.forEach(function(t){t()})},function t(e){var n=document.createElement("script");n.type="text/javascript";n.src=e;n.onerror=function(){p("baidu-map .baidu-map-offline","block"),p("baidu-map .baidu-map-instance","none"),document.body.removeChild(n),setTimeout(function(){t(e)},3e4)};document.body.appendChild(n)}(n)}else window._loadingCallbacks.push(e)},t}();function p(t,e){Array.prototype.slice.call(document.querySelectorAll(t)).forEach(function(t){t.style.display=e})}s.decorators=[{type:n.Injectable}],s.ctorParameters=function(){return[{type:a,decorators:[{type:n.Inject,args:[a]}]}]};var c=function(){function t(t){var e=this;this._loader=t,this._map=new Promise(function(t){e._mapResolver=t})}return t.prototype.createMap=function(n,o){var i=this;return new Promise(function(e){i._loader.load(function(){var t=new window.BMap.Map(n,function(n){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return Object.keys(n).filter(function(t){return e.indexOf(t)<0}).reduce(function(t,e){return t[e]=n[e],t},{})}(o,"mapType"));i.setOptions(o),i._mapResolver(t),e(t)})})},t.prototype.setOptions=function(n){var e=n.disableDragging,o=n.enableScrollWheelZoom,i=n.disableDoubleClickZoom,r=n.enableKeyboard,a=n.enableInertialDragging,s=n.enableAutoResize,p=n.enableContinuousZoom,c=n.disablePinchToZoom;l(e)&&this._map.then(function(t){return t[(e?"disable":"enable")+"Dragging"]()}),l(o)&&this._map.then(function(t){return t[(o?"enable":"disable")+"ScrollWheelZoom"]()}),l(s)&&this._map.then(function(t){return t[(s?"enable":"disable")+"AutoResize"]()}),l(i)&&this._map.then(function(t){return t[(i?"disable":"enable")+"DoubleClickZoom"]()}),l(r)&&this._map.then(function(t){return t[(r?"enable":"disable")+"Keyboard"]()}),l(a)&&this._map.then(function(t){return t[(a?"enable":"disable")+"InertialDragging"]()}),l(p)&&this._map.then(function(t){return t[(p?"enable":"disable")+"ContinuousZoom"]()}),l(c)&&this._map.then(function(t){return t[(c?"disable":"enable")+"PinchToZoom"]()}),d(n.cursor)||this._map.then(function(t){return t.setDefaultCursor(n.cursor)}),d(n.draggingCursor)||this._map.then(function(t){return t.setDraggingCursor(n.draggingCursor)}),d(n.currentCity)||this._map.then(function(t){return t.setCurrentCity(n.currentCity)}),d(n.centerAndZoom)||this._map.then(function(t){t.centerAndZoom(u(n.centerAndZoom),n.centerAndZoom.zoom)}),d(n.mapType)||this._map.then(function(t){var e=y(n.mapType)?window[n.mapType]:n.mapType;t.setMapType(e)})},t.prototype.addOverlay=function(n){return this._map.then(function(t){var e=n(t);return t.addOverlay(e),{map:t,overlay:e}})},t.prototype.removeOverlay=function(e){return this._map.then(function(t){t.removeOverlay(e)})},t.prototype.addTileLayer=function(n){return this._map.then(function(t){var e=n(t);return t.addTileLayer(e),{map:t,tilelayer:e}})},t.prototype.removeTileLayer=function(e){return this._map.then(function(t){t.removeOverlay(e)})},t.prototype.addControl=function(n){return this._map.then(function(t){var e=n(t);return t.addControl(e),{map:t,control:e}})},t.prototype.removeControl=function(e){return this._map.then(function(t){t.removeControl(e)})},t.prototype.getNativeMap=function(){return this._map},t}();c.decorators=[{type:n.Injectable}],c.ctorParameters=function(){return[{type:s}]};var O=function(){function t(t){this._service=t,this.loaded=new n.EventEmitter}return t.prototype.ngOnInit=function(){var n=this;i(this.type,"type is required for <control>"),this._service.addControl(function(){return n.control=n.createControl(n.type,n.options),n.control}).then(function(t){var e=t.control;n.loaded.emit(e)})},t.prototype.ngOnDestroy=function(){this._service.removeControl(this.control)},t.prototype.createControl=function(t,e){if("navigation"===t)return new window.BMap.NavigationControl((o={},(n=e)&&(d(n.anchor)||(o.anchor=n.anchor),d(n.enableGeolocation)||(o.enableGeolocation=n.enableGeolocation),d(n.offset)||(o.offset=h(n.offset)),d(n.showZoomInfo)||(o.showZoomInfo=n.showZoomInfo),d(n.type)||(o.type=n.type)),o));var n,o,i,r,a,s,p,c,l,u;if("overviewmap"===t)return new window.BMap.OverviewMapControl((r={},(i=e)&&(d(i.anchor)||(r.anchor=i.anchor),d(i.isOpen)||(r.isOpen=i.isOpen),d(i.offset)||(r.offset=h(i.offset)),d(i.size)||(r.size=h(i.size))),r));if("scale"===t)return new window.BMap.ScaleControl((s={},(a=e)&&(d(a.anchor)||(s.anchor=a.anchor),d(a.offset)||(s.offset=h(a.offset))),s));if("maptype"===t)return new window.BMap.MapTypeControl((c={},(p=e)&&(d(p.type)||(c.type=p.type)),c));if("geolocation"===t)return new window.BMap.GeolocationControl((u={},(l=e)&&(d(l.anchor)||(u.anchor=l.anchor),d(l.offset)||(u.offset=h(l.offset)),d(l.enableAutoLocation)||(u.enableAutoLocation=l.enableAutoLocation),d(l.locationIcon)||(u.locationIcon=f(l.locationIcon.imageUrl,l.locationIcon.size,l.locationIcon)),d(l.showAddressBar)||(u.showAddressBar=l.showAddressBar)),u));if("panorama"===t)return new window.BMap.PanoramaControl;throw new Error("Unsupported type:"+t+" of control")},t}();O.decorators=[{type:n.Directive,args:[{selector:"control"}]}],O.ctorParameters=function(){return[{type:c}]},O.propDecorators={type:[{type:n.Input}],options:[{type:n.Input}],loaded:[{type:n.Output}]};var m=function(){function t(t){this._service=t,this.loaded=new n.EventEmitter,this.clicked=new n.EventEmitter}return t.prototype.ngOnInit=function(){var e=this;i(this.options,"options is required for <baidu-map>"),i(this.options.centerAndZoom,"options.centerAndZoom is required for <baidu-map>"),this._service.createMap(this.mapInstance.nativeElement,this.options).then(function(t){return e.loaded.emit(t),t}).then(function(t){e.addListener(t)})},t.prototype.ngOnChanges=function(t){var e=t.options.currentValue;this._service.setOptions(e)},t.prototype.ngOnDestroy=function(){console.log("on map destroy")},t.prototype.addListener=function(t){var e=this;t.addEventListener("click",function(t){e.clicked.emit(t)})},t}();m.decorators=[{type:n.Component,args:[{providers:[c],selector:"baidu-map",styles:["\n .baidu-map-instance {\n width: 100%;\n height: 100%;\n display: none;\n }\n .baidu-map-offline {\n width: 100%;\n height: 100%;\n background-color: #E6E6E6;\n position: relative;\n display: none;\n }\n .baidu-map-offline label {\n fontSize: 30px;\n margin: 0;\n position: absolute;\n top: 50%;\n left: 50%;\n margin-right: -50%;\n transform: translate(-50%, -50%);\n }\n .tranclude-content {\n display: none;\n }\n "],template:'\n <div #mapinstance class="baidu-map-instance"></div>\n <div class="baidu-map-offline">\n <label>{{ \'NO_NETWORK\' }}</label>\n </div>\n <div class="tranclude-content">\n <ng-content></ng-content>\n </div>\n '}]}],m.ctorParameters=function(){return[{type:c}]},m.propDecorators={options:[{type:n.Input}],loaded:[{type:n.Output}],clicked:[{type:n.Output}],mapInstance:[{type:n.ViewChild,args:["mapinstance"]}]};var g=function(){function t(t){this._service=t,this.loaded=new n.EventEmitter,this.clicked=new n.EventEmitter}return t.prototype.ngOnInit=function(){var n=this;i(this.point,"point is required for <marker>"),this._service.addOverlay(function(){return n.marker=new window.BMap.Marker(u(n.point),(t=n.options,e={},t&&(t.offset&&(e.offset=h(t.offset)),t.icon&&(e.icon=f(t.icon.imageUrl,t.icon.size,t.icon)),d(t.enableMassClear)||(e.enableMassClear=t.enableMassClear),d(t.enableDragging)||(e.enableDragging=t.enableDragging),d(t.enableClicking)||(e.enableClicking=t.enableClicking),d(t.raiseOnDrag)||(e.raiseOnDrag=t.raiseOnDrag),d(t.draggingCursor)||(e.draggingCursor=t.draggingCursor),d(t.rotation)||(e.rotation=t.rotation),d(t.title)||(e.title=t.title),d(t.shadow)||(e.shadow=f(t.shadow.imageUrl,t.shadow.size,t.shadow))),e));var t,e}).then(function(t){var e=t.map;n.loaded.emit(n.marker),n.addListener(n.marker,e)}).then(function(){n.marker.setPosition(new window.BMap.Point(n.point.lng,n.point.lat))})},t.prototype.ngOnChanges=function(t){t.point&&!t.point.isFirstChange()&&this.marker.setPosition(u(t.point.currentValue)),t.options&&!t.options.isFirstChange()&&this.setOptions(t.options.currentValue)},t.prototype.ngOnDestroy=function(){this._service.removeOverlay(this.marker)},t.prototype.setOptions=function(t){d(t)||(d(t.offset)||this.marker.setOffset(h(t.offset)),d(t.icon)||this.marker.setIcon(f(t.icon.imageUrl,t.icon.size,t.icon)),d(t.enableMassClear)||this.marker[(t.enableMassClear?"enable":"disable")+"MassClear"](),d(t.enableDragging)||this.marker[(t.enableDragging?"enable":"disable")+"Dragging"](),d(t.rotation)||this.marker.setRotation(t.rotation),d(t.shadow)||this.marker.setShadow(f(t.shadow.imageUrl,t.shadow.size,t.shadow)),d(t.title)||this.marker.setTitle(t.title))},t.prototype.addListener=function(e,n){var o=this;e.addEventListener("click",function(t){o.clicked.emit({e:t,map:n,marker:e})})},t}();g.decorators=[{type:n.Directive,args:[{selector:"marker"}]}],g.ctorParameters=function(){return[{type:c}]},g.propDecorators={point:[{type:n.Input}],options:[{type:n.Input}],loaded:[{type:n.Output}],clicked:[{type:n.Output}]};var _=function(){function t(t){this._service=t,this.loaded=new n.EventEmitter}return t.prototype.ngOnInit=function(){var t=this;i(this.points,"points is required for <polyline>"),this._service.addOverlay(function(){return t.polyline=new window.BMap.Polyline(o(t.points),t.options)}).then(function(){t.loaded.emit(t.polyline)})},t.prototype.ngOnChanges=function(t){t.points&&!t.points.isFirstChange()&&this.polyline.setPath(o(t.points.currentValue)),t.options&&!t.options.isFirstChange()&&this.setOptions(t.options.currentValue)},t.prototype.ngOnDestroy=function(){this._service.removeOverlay(this.polyline)},t.prototype.setOptions=function(t){d(t)||(e(t.enableEditing)||(t.enableEditing?this.polyline.enableEditing():this.polyline.disableEditing()),e(t.enableMassClear)||(t.enableEditing?this.polyline.enableMassClear():this.polyline.disableMassClear()),e(t.strokeColor)||this.polyline.setStrokeColor(t.strokeColor),e(t.strokeOpacity)||this.polyline.setStrokeOpacity(t.strokeOpacity),e(t.strokeStyle)||this.polyline.setStrokeStyle(t.strokeStyle),e(t.strokeWeight)||this.polyline.setStrokeWeight(t.strokeWeight))},t}();_.decorators=[{type:n.Directive,args:[{selector:"polyline"}]}],_.ctorParameters=function(){return[{type:c}]},_.propDecorators={points:[{type:n.Input}],options:[{type:n.Input}],loaded:[{type:n.Output}]};var v=function(){function t(t){this._service=t,this.loaded=new n.EventEmitter}return t.prototype.ngOnInit=function(){var t=this;i(this.center,"center is required for <circle>"),i(this.radius,"center is required for <circle>"),this._service.addOverlay(function(){return t.circle=new window.BMap.Circle(u(t.center),t.radius,t.options)}).then(function(){t.loaded.emit(t.circle)})},t.prototype.ngOnChanges=function(t){t.center&&!t.center.isFirstChange()&&this.circle.setCenter(u(t.center.currentValue)),t.radius&&!t.radius.isFirstChange()&&this.circle.setRadius(t.radius.currentValue),t.options&&!t.options.isFirstChange()&&this.setOptions(t.options.currentValue)},t.prototype.ngOnDestroy=function(){this._service.removeOverlay(this.circle)},t.prototype.setOptions=function(t){d(t)||(e(t.enableEditing)||(t.enableEditing?this.circle.enableEditing():this.circle.disableEditing()),e(t.enableMassClear)||(t.enableEditing?this.circle.enableMassClear():this.circle.disableMassClear()),e(t.strokeColor)||this.circle.setStrokeColor(t.strokeColor),e(t.fillColor)||this.circle.setFillColor(t.fillColor),e(t.strokeOpacity)||this.circle.setStrokeOpacity(t.strokeOpacity),e(t.fillOpacity)||this.circle.setFillOpacity(t.fillOpacity),e(t.strokeStyle)||this.circle.setStrokeStyle(t.strokeStyle),e(t.strokeWeight)||this.circle.setStrokeWeight(t.strokeWeight))},t}();v.decorators=[{type:n.Directive,args:[{selector:"circle"}]}],v.ctorParameters=function(){return[{type:c}]},v.propDecorators={center:[{type:n.Input}],radius:[{type:n.Input}],options:[{type:n.Input}],loaded:[{type:n.Output}]};var A=function(){function t(t){this._service=t,this.loaded=new n.EventEmitter}return t.prototype.ngOnInit=function(){var t=this;i(this.points,"points is required for <polygon>"),this._service.addOverlay(function(){return t.polygon=new window.BMap.Polygon(o(t.points),t.options)}).then(function(){t.loaded.emit(t.polygon)})},t.prototype.ngOnChanges=function(t){t.points&&!t.points.isFirstChange()&&this.polygon.setPath(o(t.points.currentValue)),t.options&&!t.options.isFirstChange()&&this.setOptions(t.options.currentValue)},t.prototype.ngOnDestroy=function(){this._service.removeOverlay(this.polygon)},t.prototype.setOptions=function(t){d(t)||(e(t.enableEditing)||(t.enableEditing?this.polygon.enableEditing():this.polygon.disableEditing()),e(t.enableMassClear)||(t.enableEditing?this.polygon.enableMassClear():this.polygon.disableMassClear()),e(t.strokeColor)||this.polygon.setStrokeColor(t.strokeColor),e(t.fillColor)||this.polygon.setFillColor(t.fillColor),e(t.strokeOpacity)||this.polygon.setStrokeOpacity(t.strokeOpacity),e(t.fillOpacity)||this.polygon.setFillOpacity(t.fillOpacity),e(t.strokeStyle)||this.polygon.setStrokeStyle(t.strokeStyle),e(t.strokeWeight)||this.polygon.setStrokeWeight(t.strokeWeight))},t}();A.decorators=[{type:n.Directive,args:[{selector:"polygon"}]}],A.ctorParameters=function(){return[{type:c}]},A.propDecorators={points:[{type:n.Input}],options:[{type:n.Input}],loaded:[{type:n.Output}]};var w={NON:0,LOADED:1,LOADING:2};w[w.NON]="NON",w[w.LOADED]="LOADED",w[w.LOADING]="LOADING",window._heatmapLibLoadState=w.NON,window._heatmapLoadingCallbacks=[];var b=function(){function t(){}return t.prototype.load=function(e){if(window._heatmapLibLoadState===w.LOADED)return e();if(window._heatmapLibLoadState!==w.LOADING){window._heatmapLibLoadState=w.LOADING,window._heatmapLoadingCallbacks.push(e);!function t(e){var n=document.createElement("script");n.type="text/javascript";n.src=e;n.onerror=function(){document.body.removeChild(n),setTimeout(function(){t(e)},3e4)};n.onload=function(){window._heatmapLibLoadState=w.LOADED,window._heatmapLoadingCallbacks.forEach(function(t){t()})};document.body.appendChild(n)}("https://api.map.baidu.com/library/Heatmap/2.0/src/Heatmap_min.js")}else window._heatmapLoadingCallbacks.push(e)},t}();b.decorators=[{type:n.Injectable}];var C=function(){function t(t,e){this._service=t,this.heatmapLibLoader=e,this.loaded=new n.EventEmitter}return t.prototype.ngOnInit=function(){var t=this;i(this.dataset,"dataset is required for <heatmap>"),this._service.getNativeMap().then(function(){return t.heatmapLibLoader.load(function(){t._service.addOverlay(function(){return t.heatmap=new window.BMapLib.HeatmapOverlay(t.options)}).then(function(){t.loaded.emit(t.heatmap),t.dataset&&t.heatmap.setDataSet(t.dataset)})})})},t.prototype.ngOnChanges=function(t){t.dataset&&!t.dataset.isFirstChange()&&this.heatmap.setDataSet(t.dataset.currentValue),t.options&&!t.options.isFirstChange()&&this.heatmap.setOptions(t.options.currentValue)},t.prototype.ngOnDestroy=function(){this._service.removeOverlay(this.heatmap)},t}();C.decorators=[{type:n.Directive,args:[{selector:"heatmap"}]}],C.ctorParameters=function(){return[{type:c},{type:b}]},C.propDecorators={dataset:[{type:n.Input}],options:[{type:n.Input}],loaded:[{type:n.Output}]};var M=function(){function t(t){this._service=t,this.loaded=new n.EventEmitter}return t.prototype.ngOnInit=function(){var t=this,n=this.getTilesUrl;this._service.addTileLayer(function(){return t.tilelayer=new window.BMap.TileLayer(t.options),t.getTilesUrl&&(t.tilelayer.getTilesUrl=function(t,e){return n(t,e)}),t.tilelayer}).then(function(){t.loaded.emit(t.tilelayer)})},t.prototype.ngOnDestroy=function(){this._service.removeTileLayer(this.tilelayer)},t}();M.decorators=[{type:n.Directive,args:[{selector:"tilelayer"}]}],M.ctorParameters=function(){return[{type:c}]},M.propDecorators={getTilesUrl:[{type:n.Input}],options:[{type:n.Input}],loaded:[{type:n.Output}]};var P=function(){function t(t){this._service=t,this.loaded=new n.EventEmitter}return t.prototype.ngOnInit=function(){var t=this;this._service.addTileLayer(function(){return t.trafficlayer=new window.BMap.TrafficLayer(t.options),t.trafficlayer}).then(function(){t.loaded.emit(t.trafficlayer)})},t.prototype.ngOnDestroy=function(){this._service.removeTileLayer(this.trafficlayer)},t}();P.decorators=[{type:n.Directive,args:[{selector:"trafficlayer"}]}],P.ctorParameters=function(){return[{type:c}]},P.propDecorators={options:[{type:n.Input}],loaded:[{type:n.Output}]};var T={BMAP_ANCHOR_TOP_LEFT:0,BMAP_ANCHOR_TOP_RIGHT:1,BMAP_ANCHOR_BOTTOM_LEFT:2,BMAP_ANCHOR_BOTTOM_RIGHT:3};T[T.BMAP_ANCHOR_TOP_LEFT]="BMAP_ANCHOR_TOP_LEFT",T[T.BMAP_ANCHOR_TOP_RIGHT]="BMAP_ANCHOR_TOP_RIGHT",T[T.BMAP_ANCHOR_BOTTOM_LEFT]="BMAP_ANCHOR_BOTTOM_LEFT",T[T.BMAP_ANCHOR_BOTTOM_RIGHT]="BMAP_ANCHOR_BOTTOM_RIGHT";var L={BMAP_NAVIGATION_CONTROL_LARGE:0,BMAP_NAVIGATION_CONTROL_SMALL:1,BMAP_NAVIGATION_CONTROL_PAN:2,BMAP_NAVIGATION_CONTROL_ZOOM:3};L[L.BMAP_NAVIGATION_CONTROL_LARGE]="BMAP_NAVIGATION_CONTROL_LARGE",L[L.BMAP_NAVIGATION_CONTROL_SMALL]="BMAP_NAVIGATION_CONTROL_SMALL",L[L.BMAP_NAVIGATION_CONTROL_PAN]="BMAP_NAVIGATION_CONTROL_PAN",L[L.BMAP_NAVIGATION_CONTROL_ZOOM]="BMAP_NAVIGATION_CONTROL_ZOOM";var N={BMAP_MAPTYPE_CONTROL_HORIZONTAL:0,BMAP_MAPTYPE_CONTROL_DROPDOWN:1,BMAP_MAPTYPE_CONTROL_MAP:2};N[N.BMAP_MAPTYPE_CONTROL_HORIZONTAL]="BMAP_MAPTYPE_CONTROL_HORIZONTAL",N[N.BMAP_MAPTYPE_CONTROL_DROPDOWN]="BMAP_MAPTYPE_CONTROL_DROPDOWN",N[N.BMAP_MAPTYPE_CONTROL_MAP]="BMAP_MAPTYPE_CONTROL_MAP";var I=function(){function e(){}return e.forRoot=function(t){return{ngModule:e,providers:[{provide:a,useValue:t},s,b]}},e}();I.decorators=[{type:n.NgModule,args:[{declarations:[m,g,O,_,v,A,C,M,P],exports:[m,g,O,_,v,A,C,M,P]}]}],t.BaiduMapModule=I,t.MapTypeEnum={BMAP_NORMAL_MAP:"BMAP_NORMAL_MAP",BMAP_PERSPECTIVE_MAP:"BMAP_PERSPECTIVE_MAP",BMAP_SATELLITE_MAP:"BMAP_SATELLITE_MAP",BMAP_HYBRID_MAP:"BMAP_HYBRID_MAP"},t.ControlAnchor=T,t.LengthUnit={BMAP_UNIT_METRIC:"metric",BMAP_UNIT_IMPERIAL:"us"},t.NavigationControlType=L,t.MapTypeControlType=N,t.ɵh=v,t.ɵf=O,t.ɵj=C,t.ɵa=m,t.ɵe=g,t.ɵi=A,t.ɵg=_,t.ɵl=M,t.ɵm=P,t.ɵk=b,t.ɵb=c,t.ɵd=s,t.ɵc=a,Object.defineProperty(t,"__esModule",{value:!0})});
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core")):"function"==typeof define&&define.amd?define("evm-angular2-baidu-map",["exports","@angular/core"],e):e(t["evm-angular2-baidu-map"]={},t.ng.core)}(this,function(t,n){"use strict";function d(t){return null===t||t===undefined}function e(t){return t===undefined}function l(t){return"[object Boolean]"===Object.prototype.toString.call(t)}function u(t){return t?new window.BMap.Point(t.lng,t.lat):new window.BMap.Point}function o(t){return t?t.map(function(t){return new window.BMap.Point(t.lng,t.lat)}):[]}function h(t){return t?new window.BMap.Size(t.width,t.height):new window.BMap.Size}function f(t,e,n){if(!e&&!n)return new window.BMap.Icon(t);if(!e)return new window.BMap.Icon(t,h(e));var o={anchor:h(n.anchor),imageOffset:h(n.imageOffset),infoWindowAnchor:h(n.infoWindowAnchor),printImageUrl:n.printImageUrl};return new window.BMap.Icon(t,h(e),o)}function i(t,e){if(d(t))throw new Error(e)}function y(t){return e=t.getTileLayer,!("[object Function]"===Object.prototype.toString.call(e));var e}var r={NON:0,LOADED:1,LOADING:2};r[r.NON]="NON",r[r.LOADED]="LOADED",r[r.LOADING]="LOADING";var a=function(){this.ak=""};window._scriptLoadState=r.NON,window._loadingCallbacks=[];var s=function(){function t(t){i(t.ak,"ak must be provided"),this._config=t}return t.prototype.load=function(e){if(window._scriptLoadState===r.LOADED)return p("baidu-map .baidu-map-instance","block"),p("baidu-map .baidu-map-offline","none"),e();if(window._scriptLoadState!==r.LOADING){window._scriptLoadState=r.LOADING,window._loadingCallbacks.push(e);var n="https://api.map.baidu.com/api?v=2.0&ak="+this._config.ak+"&callback=baidumapinit";window.baidumapinit=function(){window._scriptLoadState=r.LOADED,p("baidu-map .baidu-map-instance","block"),p("baidu-map .baidu-map-offline","none"),window._loadingCallbacks.forEach(function(t){t()})},function t(e){var n=document.createElement("script");n.type="text/javascript";n.src=e;n.onerror=function(){p("baidu-map .baidu-map-offline","block"),p("baidu-map .baidu-map-instance","none"),document.body.removeChild(n),setTimeout(function(){t(e)},3e4)};document.body.appendChild(n)}(n)}else window._loadingCallbacks.push(e)},t}();function p(t,e){Array.prototype.slice.call(document.querySelectorAll(t)).forEach(function(t){t.style.display=e})}s.decorators=[{type:n.Injectable}],s.ctorParameters=function(){return[{type:a,decorators:[{type:n.Inject,args:[a]}]}]};var c=function(){function t(t){var e=this;this._loader=t,this._map=new Promise(function(t){e._mapResolver=t})}return t.prototype.createMap=function(n,o){var i=this;return new Promise(function(e){i._loader.load(function(){var t=new window.BMap.Map(n,function(n){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return Object.keys(n).filter(function(t){return e.indexOf(t)<0}).reduce(function(t,e){return t[e]=n[e],t},{})}(o,"mapType"));i.setOptions(o),i._mapResolver(t),e(t)})})},t.prototype.setOptions=function(n){var e=n.disableDragging,o=n.enableScrollWheelZoom,i=n.disableDoubleClickZoom,r=n.enableKeyboard,a=n.enableInertialDragging,s=n.enableAutoResize,p=n.enableContinuousZoom,c=n.disablePinchToZoom;l(e)&&this._map.then(function(t){return t[(e?"disable":"enable")+"Dragging"]()}),l(o)&&this._map.then(function(t){return t[(o?"enable":"disable")+"ScrollWheelZoom"]()}),l(s)&&this._map.then(function(t){return t[(s?"enable":"disable")+"AutoResize"]()}),l(i)&&this._map.then(function(t){return t[(i?"disable":"enable")+"DoubleClickZoom"]()}),l(r)&&this._map.then(function(t){return t[(r?"enable":"disable")+"Keyboard"]()}),l(a)&&this._map.then(function(t){return t[(a?"enable":"disable")+"InertialDragging"]()}),l(p)&&this._map.then(function(t){return t[(p?"enable":"disable")+"ContinuousZoom"]()}),l(c)&&this._map.then(function(t){return t[(c?"disable":"enable")+"PinchToZoom"]()}),d(n.cursor)||this._map.then(function(t){return t.setDefaultCursor(n.cursor)}),d(n.draggingCursor)||this._map.then(function(t){return t.setDraggingCursor(n.draggingCursor)}),d(n.currentCity)||this._map.then(function(t){return t.setCurrentCity(n.currentCity)}),d(n.centerAndZoom)||this._map.then(function(t){t.centerAndZoom(u(n.centerAndZoom),n.centerAndZoom.zoom)}),d(n.mapType)||this._map.then(function(t){var e=y(n.mapType)?window[n.mapType]:n.mapType;t.setMapType(e)})},t.prototype.addOverlay=function(n){return this._map.then(function(t){var e=n(t);return t.addOverlay(e),{map:t,overlay:e}})},t.prototype.removeOverlay=function(e){return this._map.then(function(t){t.removeOverlay(e)})},t.prototype.addTileLayer=function(n){return this._map.then(function(t){var e=n(t);return t.addTileLayer(e),{map:t,tilelayer:e}})},t.prototype.removeTileLayer=function(e){return this._map.then(function(t){t.removeOverlay(e)})},t.prototype.addControl=function(n){return this._map.then(function(t){var e=n(t);return t.addControl(e),{map:t,control:e}})},t.prototype.removeControl=function(e){return this._map.then(function(t){t.removeControl(e)})},t.prototype.getNativeMap=function(){return this._map},t}();c.decorators=[{type:n.Injectable}],c.ctorParameters=function(){return[{type:s}]};var O=function(){function t(t){this._service=t,this.loaded=new n.EventEmitter}return t.prototype.ngOnInit=function(){var n=this;i(this.type,"type is required for <control>"),this._service.addControl(function(){return n.control=n.createControl(n.type,n.options),n.control}).then(function(t){var e=t.control;n.loaded.emit(e)})},t.prototype.ngOnDestroy=function(){this._service.removeControl(this.control)},t.prototype.createControl=function(t,e){if("navigation"===t)return new window.BMap.NavigationControl((o={},(n=e)&&(d(n.anchor)||(o.anchor=n.anchor),d(n.enableGeolocation)||(o.enableGeolocation=n.enableGeolocation),d(n.offset)||(o.offset=h(n.offset)),d(n.showZoomInfo)||(o.showZoomInfo=n.showZoomInfo),d(n.type)||(o.type=n.type)),o));var n,o,i,r,a,s,p,c,l,u;if("overviewmap"===t)return new window.BMap.OverviewMapControl((r={},(i=e)&&(d(i.anchor)||(r.anchor=i.anchor),d(i.isOpen)||(r.isOpen=i.isOpen),d(i.offset)||(r.offset=h(i.offset)),d(i.size)||(r.size=h(i.size))),r));if("scale"===t)return new window.BMap.ScaleControl((s={},(a=e)&&(d(a.anchor)||(s.anchor=a.anchor),d(a.offset)||(s.offset=h(a.offset))),s));if("maptype"===t)return new window.BMap.MapTypeControl((c={},(p=e)&&(d(p.type)||(c.type=p.type)),c));if("geolocation"===t)return new window.BMap.GeolocationControl((u={},(l=e)&&(d(l.anchor)||(u.anchor=l.anchor),d(l.offset)||(u.offset=h(l.offset)),d(l.enableAutoLocation)||(u.enableAutoLocation=l.enableAutoLocation),d(l.locationIcon)||(u.locationIcon=f(l.locationIcon.imageUrl,l.locationIcon.size,l.locationIcon)),d(l.showAddressBar)||(u.showAddressBar=l.showAddressBar)),u));if("panorama"===t)return new window.BMap.PanoramaControl;throw new Error("Unsupported type:"+t+" of control")},t}();O.decorators=[{type:n.Directive,args:[{selector:"control"}]}],O.ctorParameters=function(){return[{type:c}]},O.propDecorators={type:[{type:n.Input}],options:[{type:n.Input}],loaded:[{type:n.Output}]};var m=function(){function t(t){this._service=t,this.loaded=new n.EventEmitter,this.clicked=new n.EventEmitter}return t.prototype.ngOnInit=function(){var e=this;i(this.options,"options is required for <baidu-map>"),i(this.options.centerAndZoom,"options.centerAndZoom is required for <baidu-map>"),this._service.createMap(this.mapInstance.nativeElement,this.options).then(function(t){return e.loaded.emit(t),t}).then(function(t){e.addListener(t)})},t.prototype.ngOnChanges=function(t){var e=t.options.currentValue;this._service.setOptions(e)},t.prototype.ngOnDestroy=function(){console.log("on map destroy")},t.prototype.addListener=function(t){var e=this;t.addEventListener("click",function(t){e.clicked.emit(t)})},t}();m.decorators=[{type:n.Component,args:[{providers:[c],selector:"baidu-map",styles:["\n .baidu-map-instance {\n width: 100%;\n height: 100%;\n display: none;\n }\n .baidu-map-offline {\n width: 100%;\n height: 100%;\n background-color: #E6E6E6;\n position: relative;\n display: none;\n }\n .baidu-map-offline label {\n fontSize: 30px;\n margin: 0;\n position: absolute;\n top: 50%;\n left: 50%;\n margin-right: -50%;\n transform: translate(-50%, -50%);\n }\n .tranclude-content {\n display: none;\n }\n "],template:'\n <div #mapinstance class="baidu-map-instance"></div>\n <div class="baidu-map-offline">\n <label>{{ \'NO_NETWORK\' }}</label>\n </div>\n <div class="tranclude-content">\n <ng-content></ng-content>\n </div>\n '}]}],m.ctorParameters=function(){return[{type:c}]},m.propDecorators={options:[{type:n.Input}],loaded:[{type:n.Output}],clicked:[{type:n.Output}],mapInstance:[{type:n.ViewChild,args:["mapinstance"]}]};var g=function(){function t(t){this._service=t,this.loaded=new n.EventEmitter,this.clicked=new n.EventEmitter}return t.prototype.ngOnInit=function(){var n=this;i(this.point,"point is required for <marker>"),this._service.addOverlay(function(){return n.marker=new window.BMap.Marker(u(n.point),(t=n.options,e={},t&&(t.offset&&(e.offset=h(t.offset)),t.icon&&(e.icon=f(t.icon.imageUrl,t.icon.size,t.icon)),d(t.enableMassClear)||(e.enableMassClear=t.enableMassClear),d(t.enableDragging)||(e.enableDragging=t.enableDragging),d(t.enableClicking)||(e.enableClicking=t.enableClicking),d(t.raiseOnDrag)||(e.raiseOnDrag=t.raiseOnDrag),d(t.draggingCursor)||(e.draggingCursor=t.draggingCursor),d(t.rotation)||(e.rotation=t.rotation),d(t.title)||(e.title=t.title),d(t.shadow)||(e.shadow=f(t.shadow.imageUrl,t.shadow.size,t.shadow))),e));var t,e}).then(function(t){var e=t.map;n.loaded.emit(n.marker),n.addListener(n.marker,e)}).then(function(){n.marker.setPosition(new window.BMap.Point(n.point.lng,n.point.lat))})},t.prototype.ngOnChanges=function(t){t.point&&!t.point.isFirstChange()&&this.marker.setPosition(u(t.point.currentValue)),t.options&&!t.options.isFirstChange()&&this.setOptions(t.options.currentValue)},t.prototype.ngOnDestroy=function(){this._service.removeOverlay(this.marker)},t.prototype.setOptions=function(t){d(t)||(d(t.offset)||this.marker.setOffset(h(t.offset)),d(t.icon)||this.marker.setIcon(f(t.icon.imageUrl,t.icon.size,t.icon)),d(t.enableMassClear)||this.marker[(t.enableMassClear?"enable":"disable")+"MassClear"](),d(t.enableDragging)||this.marker[(t.enableDragging?"enable":"disable")+"Dragging"](),d(t.rotation)||this.marker.setRotation(t.rotation),d(t.shadow)||this.marker.setShadow(f(t.shadow.imageUrl,t.shadow.size,t.shadow)),d(t.title)||this.marker.setTitle(t.title))},t.prototype.addListener=function(e,n){var o=this;e.addEventListener("click",function(t){o.clicked.emit({e:t,map:n,marker:e})})},t}();g.decorators=[{type:n.Directive,args:[{selector:"marker"}]}],g.ctorParameters=function(){return[{type:c}]},g.propDecorators={point:[{type:n.Input}],options:[{type:n.Input}],loaded:[{type:n.Output}],clicked:[{type:n.Output}]};var _=function(){function t(t){this._service=t,this.loaded=new n.EventEmitter}return t.prototype.ngOnInit=function(){var t=this;i(this.points,"points is required for <polyline>"),this._service.addOverlay(function(){return t.polyline=new window.BMap.Polyline(o(t.points),t.options)}).then(function(){t.loaded.emit(t.polyline)})},t.prototype.ngOnChanges=function(t){t.points&&!t.points.isFirstChange()&&this.polyline.setPath(o(t.points.currentValue)),t.options&&!t.options.isFirstChange()&&this.setOptions(t.options.currentValue)},t.prototype.ngOnDestroy=function(){this._service.removeOverlay(this.polyline)},t.prototype.setOptions=function(t){d(t)||(e(t.enableEditing)||(t.enableEditing?this.polyline.enableEditing():this.polyline.disableEditing()),e(t.enableMassClear)||(t.enableEditing?this.polyline.enableMassClear():this.polyline.disableMassClear()),e(t.strokeColor)||this.polyline.setStrokeColor(t.strokeColor),e(t.strokeOpacity)||this.polyline.setStrokeOpacity(t.strokeOpacity),e(t.strokeStyle)||this.polyline.setStrokeStyle(t.strokeStyle),e(t.strokeWeight)||this.polyline.setStrokeWeight(t.strokeWeight))},t}();_.decorators=[{type:n.Directive,args:[{selector:"polyline"}]}],_.ctorParameters=function(){return[{type:c}]},_.propDecorators={points:[{type:n.Input}],options:[{type:n.Input}],loaded:[{type:n.Output}]};var v=function(){function t(t){this._service=t,this.loaded=new n.EventEmitter}return t.prototype.ngOnInit=function(){var t=this;i(this.center,"center is required for <circle>"),i(this.radius,"center is required for <circle>"),this._service.addOverlay(function(){return t.circle=new window.BMap.Circle(u(t.center),t.radius,t.options)}).then(function(){t.loaded.emit(t.circle)})},t.prototype.ngOnChanges=function(t){t.center&&!t.center.isFirstChange()&&this.circle.setCenter(u(t.center.currentValue)),t.radius&&!t.radius.isFirstChange()&&this.circle.setRadius(t.radius.currentValue),t.options&&!t.options.isFirstChange()&&this.setOptions(t.options.currentValue)},t.prototype.ngOnDestroy=function(){this._service.removeOverlay(this.circle)},t.prototype.setOptions=function(t){d(t)||(e(t.enableEditing)||(t.enableEditing?this.circle.enableEditing():this.circle.disableEditing()),e(t.enableMassClear)||(t.enableEditing?this.circle.enableMassClear():this.circle.disableMassClear()),e(t.strokeColor)||this.circle.setStrokeColor(t.strokeColor),e(t.fillColor)||this.circle.setFillColor(t.fillColor),e(t.strokeOpacity)||this.circle.setStrokeOpacity(t.strokeOpacity),e(t.fillOpacity)||this.circle.setFillOpacity(t.fillOpacity),e(t.strokeStyle)||this.circle.setStrokeStyle(t.strokeStyle),e(t.strokeWeight)||this.circle.setStrokeWeight(t.strokeWeight))},t}();v.decorators=[{type:n.Directive,args:[{selector:"circle"}]}],v.ctorParameters=function(){return[{type:c}]},v.propDecorators={center:[{type:n.Input}],radius:[{type:n.Input}],options:[{type:n.Input}],loaded:[{type:n.Output}]};var A=function(){function t(t){this._service=t,this.loaded=new n.EventEmitter}return t.prototype.ngOnInit=function(){var t=this;i(this.points,"points is required for <polygon>"),this._service.addOverlay(function(){return t.polygon=new window.BMap.Polygon(o(t.points),t.options)}).then(function(){t.loaded.emit(t.polygon)})},t.prototype.ngOnChanges=function(t){t.points&&!t.points.isFirstChange()&&this.polygon.setPath(o(t.points.currentValue)),t.options&&!t.options.isFirstChange()&&this.setOptions(t.options.currentValue)},t.prototype.ngOnDestroy=function(){this._service.removeOverlay(this.polygon)},t.prototype.setOptions=function(t){d(t)||(e(t.enableEditing)||(t.enableEditing?this.polygon.enableEditing():this.polygon.disableEditing()),e(t.enableMassClear)||(t.enableEditing?this.polygon.enableMassClear():this.polygon.disableMassClear()),e(t.strokeColor)||this.polygon.setStrokeColor(t.strokeColor),e(t.fillColor)||this.polygon.setFillColor(t.fillColor),e(t.strokeOpacity)||this.polygon.setStrokeOpacity(t.strokeOpacity),e(t.fillOpacity)||this.polygon.setFillOpacity(t.fillOpacity),e(t.strokeStyle)||this.polygon.setStrokeStyle(t.strokeStyle),e(t.strokeWeight)||this.polygon.setStrokeWeight(t.strokeWeight))},t}();A.decorators=[{type:n.Directive,args:[{selector:"polygon"}]}],A.ctorParameters=function(){return[{type:c}]},A.propDecorators={points:[{type:n.Input}],options:[{type:n.Input}],loaded:[{type:n.Output}]};var w={NON:0,LOADED:1,LOADING:2};w[w.NON]="NON",w[w.LOADED]="LOADED",w[w.LOADING]="LOADING",window._heatmapLibLoadState=w.NON,window._heatmapLoadingCallbacks=[];var b=function(){function t(){}return t.prototype.load=function(e){if(window._heatmapLibLoadState===w.LOADED)return e();if(window._heatmapLibLoadState!==w.LOADING){window._heatmapLibLoadState=w.LOADING,window._heatmapLoadingCallbacks.push(e);!function t(e){var n=document.createElement("script");n.type="text/javascript";n.src=e;n.onerror=function(){document.body.removeChild(n),setTimeout(function(){t(e)},3e4)};n.onload=function(){window._heatmapLibLoadState=w.LOADED,window._heatmapLoadingCallbacks.forEach(function(t){t()})};document.body.appendChild(n)}("https://api.map.baidu.com/library/Heatmap/2.0/src/Heatmap_min.js")}else window._heatmapLoadingCallbacks.push(e)},t}();b.decorators=[{type:n.Injectable}];var C=function(){function t(t,e){this._service=t,this.heatmapLibLoader=e,this.loaded=new n.EventEmitter}return t.prototype.ngOnInit=function(){var t=this;i(this.dataset,"dataset is required for <heatmap>"),this._service.getNativeMap().then(function(){return t.heatmapLibLoader.load(function(){t._service.addOverlay(function(){return t.heatmap=new window.BMapLib.HeatmapOverlay(t.options)}).then(function(){t.loaded.emit(t.heatmap),t.dataset&&t.heatmap.setDataSet(t.dataset)})})})},t.prototype.ngOnChanges=function(t){t.dataset&&!t.dataset.isFirstChange()&&this.heatmap.setDataSet(t.dataset.currentValue),t.options&&!t.options.isFirstChange()&&this.heatmap.setOptions(t.options.currentValue)},t.prototype.ngOnDestroy=function(){this._service.removeOverlay(this.heatmap)},t}();C.decorators=[{type:n.Directive,args:[{selector:"heatmap"}]}],C.ctorParameters=function(){return[{type:c},{type:b}]},C.propDecorators={dataset:[{type:n.Input}],options:[{type:n.Input}],loaded:[{type:n.Output}]};var M=function(){function t(t){this._service=t,this.loaded=new n.EventEmitter}return t.prototype.ngOnInit=function(){var t=this,n=this.getTilesUrl;this._service.addTileLayer(function(){return t.tilelayer=new window.BMap.TileLayer(t.options),t.getTilesUrl&&(t.tilelayer.getTilesUrl=function(t,e){return n(t,e)}),t.tilelayer}).then(function(){t.loaded.emit(t.tilelayer)})},t.prototype.ngOnDestroy=function(){this._service.removeTileLayer(this.tilelayer)},t}();M.decorators=[{type:n.Directive,args:[{selector:"tilelayer"}]}],M.ctorParameters=function(){return[{type:c}]},M.propDecorators={getTilesUrl:[{type:n.Input}],options:[{type:n.Input}],loaded:[{type:n.Output}]};var P=function(){function t(t){this._service=t,this.loaded=new n.EventEmitter}return t.prototype.ngOnInit=function(){var t=this;this._service.addTileLayer(function(){return t.trafficlayer=new window.BMap.TrafficLayer(t.options),t.trafficlayer}).then(function(){t.loaded.emit(t.trafficlayer)})},t.prototype.ngOnDestroy=function(){this._service.removeTileLayer(this.trafficlayer)},t}();P.decorators=[{type:n.Directive,args:[{selector:"trafficlayer"}]}],P.ctorParameters=function(){return[{type:c}]},P.propDecorators={options:[{type:n.Input}],loaded:[{type:n.Output}]};var T={BMAP_ANCHOR_TOP_LEFT:0,BMAP_ANCHOR_TOP_RIGHT:1,BMAP_ANCHOR_BOTTOM_LEFT:2,BMAP_ANCHOR_BOTTOM_RIGHT:3};T[T.BMAP_ANCHOR_TOP_LEFT]="BMAP_ANCHOR_TOP_LEFT",T[T.BMAP_ANCHOR_TOP_RIGHT]="BMAP_ANCHOR_TOP_RIGHT",T[T.BMAP_ANCHOR_BOTTOM_LEFT]="BMAP_ANCHOR_BOTTOM_LEFT",T[T.BMAP_ANCHOR_BOTTOM_RIGHT]="BMAP_ANCHOR_BOTTOM_RIGHT";var L={BMAP_NAVIGATION_CONTROL_LARGE:0,BMAP_NAVIGATION_CONTROL_SMALL:1,BMAP_NAVIGATION_CONTROL_PAN:2,BMAP_NAVIGATION_CONTROL_ZOOM:3};L[L.BMAP_NAVIGATION_CONTROL_LARGE]="BMAP_NAVIGATION_CONTROL_LARGE",L[L.BMAP_NAVIGATION_CONTROL_SMALL]="BMAP_NAVIGATION_CONTROL_SMALL",L[L.BMAP_NAVIGATION_CONTROL_PAN]="BMAP_NAVIGATION_CONTROL_PAN",L[L.BMAP_NAVIGATION_CONTROL_ZOOM]="BMAP_NAVIGATION_CONTROL_ZOOM";var N={BMAP_MAPTYPE_CONTROL_HORIZONTAL:0,BMAP_MAPTYPE_CONTROL_DROPDOWN:1,BMAP_MAPTYPE_CONTROL_MAP:2};N[N.BMAP_MAPTYPE_CONTROL_HORIZONTAL]="BMAP_MAPTYPE_CONTROL_HORIZONTAL",N[N.BMAP_MAPTYPE_CONTROL_DROPDOWN]="BMAP_MAPTYPE_CONTROL_DROPDOWN",N[N.BMAP_MAPTYPE_CONTROL_MAP]="BMAP_MAPTYPE_CONTROL_MAP";var I=function(){function e(){}return e.forRoot=function(t){return{ngModule:e,providers:[{provide:a,useValue:t},s,b]}},e}();I.decorators=[{type:n.NgModule,args:[{declarations:[m,g,O,_,v,A,C,M,P],exports:[m,g,O,_,v,A,C,M,P]}]}],t.BaiduMapModule=I,t.MapTypeEnum={BMAP_NORMAL_MAP:"BMAP_NORMAL_MAP",BMAP_PERSPECTIVE_MAP:"BMAP_PERSPECTIVE_MAP",BMAP_SATELLITE_MAP:"BMAP_SATELLITE_MAP",BMAP_HYBRID_MAP:"BMAP_HYBRID_MAP"},t.ControlAnchor=T,t.LengthUnit={BMAP_UNIT_METRIC:"metric",BMAP_UNIT_IMPERIAL:"us"},t.NavigationControlType=L,t.MapTypeControlType=N,t.ɵh=v,t.ɵf=O,t.ɵj=C,t.ɵa=m,t.ɵe=g,t.ɵi=A,t.ɵg=_,t.ɵl=M,t.ɵm=P,t.ɵk=b,t.ɵb=c,t.ɵd=s,t.ɵc=a,Object.defineProperty(t,"__esModule",{value:!0})});
//# sourceMappingURL=evm-angular2-baidu-map.umd.min.js.map

@@ -365,3 +365,3 @@ import { Inject, Injectable, Directive, EventEmitter, Input, Output, Component, ViewChild, NgModule } from '@angular/core';

window._loadingCallbacks.push(cb);
const /** @type {?} */ MAP_URL = `https://api.map.baidu.com/api?v=2.0&ak=${this._config.ak}&callback=baidumapinit&s=1`;
const /** @type {?} */ MAP_URL = `https://api.map.baidu.com/api?v=2.0&ak=${this._config.ak}&callback=baidumapinit`;
window.baidumapinit = () => {

@@ -368,0 +368,0 @@ window._scriptLoadState = LOADING_STATE.LOADED;

@@ -232,3 +232,3 @@ import { Inject, Injectable, Directive, EventEmitter, Input, Output, Component, ViewChild, NgModule } from '@angular/core';

window._loadingCallbacks.push(cb);
var MAP_URL = "https://api.map.baidu.com/api?v=2.0&ak=" + this._config.ak + "&callback=baidumapinit&s=1";
var MAP_URL = "https://api.map.baidu.com/api?v=2.0&ak=" + this._config.ak + "&callback=baidumapinit";
window.baidumapinit = function () {

@@ -235,0 +235,0 @@ window._scriptLoadState = LOADING_STATE.LOADED;

{
"name": "evm-angular2-baidu-map",
"version": "4.2.4",
"version": "4.2.6",
"license": "GPL-3.0",

@@ -5,0 +5,0 @@ "description": "Angular2 component for Baidu map,modified by angular2-baidu-map",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc