UNPKG

@firestitch/address

Version:
1,106 lines (1,041 loc) 5.91 MB
webpackJsonp([0],{ /***/ "../node_modules/@agm/core/core.module.js": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* unused harmony export coreDirectives */ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AgmCoreModule; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__("../node_modules/@angular/core/esm2015/core.js"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__directives_map__ = __webpack_require__("../node_modules/@agm/core/directives/map.js"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__directives_circle__ = __webpack_require__("../node_modules/@agm/core/directives/circle.js"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__directives_info_window__ = __webpack_require__("../node_modules/@agm/core/directives/info-window.js"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__directives_marker__ = __webpack_require__("../node_modules/@agm/core/directives/marker.js"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__directives_polygon__ = __webpack_require__("../node_modules/@agm/core/directives/polygon.js"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__directives_polyline__ = __webpack_require__("../node_modules/@agm/core/directives/polyline.js"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__directives_polyline_point__ = __webpack_require__("../node_modules/@agm/core/directives/polyline-point.js"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__directives_kml_layer__ = __webpack_require__("../node_modules/@agm/core/directives/kml-layer.js"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__directives_data_layer__ = __webpack_require__("../node_modules/@agm/core/directives/data-layer.js"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__services_maps_api_loader_lazy_maps_api_loader__ = __webpack_require__("../node_modules/@agm/core/services/maps-api-loader/lazy-maps-api-loader.js"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__services_maps_api_loader_maps_api_loader__ = __webpack_require__("../node_modules/@agm/core/services/maps-api-loader/maps-api-loader.js"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__utils_browser_globals__ = __webpack_require__("../node_modules/@agm/core/utils/browser-globals.js"); /** * @internal */ function coreDirectives() { return [ __WEBPACK_IMPORTED_MODULE_1__directives_map__["a" /* AgmMap */], __WEBPACK_IMPORTED_MODULE_4__directives_marker__["a" /* AgmMarker */], __WEBPACK_IMPORTED_MODULE_3__directives_info_window__["a" /* AgmInfoWindow */], __WEBPACK_IMPORTED_MODULE_2__directives_circle__["a" /* AgmCircle */], __WEBPACK_IMPORTED_MODULE_5__directives_polygon__["a" /* AgmPolygon */], __WEBPACK_IMPORTED_MODULE_6__directives_polyline__["a" /* AgmPolyline */], __WEBPACK_IMPORTED_MODULE_7__directives_polyline_point__["a" /* AgmPolylinePoint */], __WEBPACK_IMPORTED_MODULE_8__directives_kml_layer__["a" /* AgmKmlLayer */], __WEBPACK_IMPORTED_MODULE_9__directives_data_layer__["a" /* AgmDataLayer */] ]; } /** * The angular-google-maps core module. Contains all Directives/Services/Pipes * of the core module. Please use `AgmCoreModule.forRoot()` in your app module. */ var AgmCoreModule = (function () { function AgmCoreModule() { } /** * Please use this method when you register the module at the root level. */ AgmCoreModule.forRoot = function (lazyMapsAPILoaderConfig) { return { ngModule: AgmCoreModule, providers: __WEBPACK_IMPORTED_MODULE_12__utils_browser_globals__["a" /* BROWSER_GLOBALS_PROVIDERS */].concat([ { provide: __WEBPACK_IMPORTED_MODULE_11__services_maps_api_loader_maps_api_loader__["a" /* MapsAPILoader */], useClass: __WEBPACK_IMPORTED_MODULE_10__services_maps_api_loader_lazy_maps_api_loader__["c" /* LazyMapsAPILoader */] }, { provide: __WEBPACK_IMPORTED_MODULE_10__services_maps_api_loader_lazy_maps_api_loader__["b" /* LAZY_MAPS_API_CONFIG */], useValue: lazyMapsAPILoaderConfig } ]), }; }; return AgmCoreModule; }()); AgmCoreModule.decorators = [ { type: __WEBPACK_IMPORTED_MODULE_0__angular_core__["NgModule"], args: [{ declarations: coreDirectives(), exports: coreDirectives() },] }, ]; /** @nocollapse */ AgmCoreModule.ctorParameters = function () { return []; }; //# sourceMappingURL=core.module.js.map /***/ }), /***/ "../node_modules/@agm/core/directives.js": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__directives_map__ = __webpack_require__("../node_modules/@agm/core/directives/map.js"); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return __WEBPACK_IMPORTED_MODULE_0__directives_map__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__directives_circle__ = __webpack_require__("../node_modules/@agm/core/directives/circle.js"); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_1__directives_circle__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__directives_info_window__ = __webpack_require__("../node_modules/@agm/core/directives/info-window.js"); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return __WEBPACK_IMPORTED_MODULE_2__directives_info_window__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__directives_kml_layer__ = __webpack_require__("../node_modules/@agm/core/directives/kml-layer.js"); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return __WEBPACK_IMPORTED_MODULE_3__directives_kml_layer__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__directives_data_layer__ = __webpack_require__("../node_modules/@agm/core/directives/data-layer.js"); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_4__directives_data_layer__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__directives_marker__ = __webpack_require__("../node_modules/@agm/core/directives/marker.js"); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return __WEBPACK_IMPORTED_MODULE_5__directives_marker__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__directives_polygon__ = __webpack_require__("../node_modules/@agm/core/directives/polygon.js"); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return __WEBPACK_IMPORTED_MODULE_6__directives_polygon__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__directives_polyline__ = __webpack_require__("../node_modules/@agm/core/directives/polyline.js"); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return __WEBPACK_IMPORTED_MODULE_7__directives_polyline__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__directives_polyline_point__ = __webpack_require__("../node_modules/@agm/core/directives/polyline-point.js"); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return __WEBPACK_IMPORTED_MODULE_8__directives_polyline_point__["a"]; }); //# sourceMappingURL=directives.js.map /***/ }), /***/ "../node_modules/@agm/core/directives/circle.js": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AgmCircle; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__("../node_modules/@angular/core/esm2015/core.js"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__services_managers_circle_manager__ = __webpack_require__("../node_modules/@agm/core/services/managers/circle-manager.js"); var AgmCircle = (function () { function AgmCircle(_manager) { this._manager = _manager; /** * Indicates whether this Circle handles mouse events. Defaults to true. */ this.clickable = true; /** * If set to true, the user can drag this circle over the map. Defaults to false. */ // tslint:disable-next-line:no-input-rename this.draggable = false; /** * If set to true, the user can edit this circle by dragging the control points shown at * the center and around the circumference of the circle. Defaults to false. */ this.editable = false; /** * The radius in meters on the Earth's surface. */ this.radius = 0; /** * The stroke position. Defaults to CENTER. * This property is not supported on Internet Explorer 8 and earlier. */ this.strokePosition = 'CENTER'; /** * The stroke width in pixels. */ this.strokeWeight = 0; /** * Whether this circle is visible on the map. Defaults to true. */ this.visible = true; /** * This event is fired when the circle's center is changed. */ this.centerChange = new __WEBPACK_IMPORTED_MODULE_0__angular_core__["EventEmitter"](); /** * This event emitter gets emitted when the user clicks on the circle. */ this.circleClick = new __WEBPACK_IMPORTED_MODULE_0__angular_core__["EventEmitter"](); /** * This event emitter gets emitted when the user clicks on the circle. */ this.circleDblClick = new __WEBPACK_IMPORTED_MODULE_0__angular_core__["EventEmitter"](); /** * This event is repeatedly fired while the user drags the circle. */ this.drag = new __WEBPACK_IMPORTED_MODULE_0__angular_core__["EventEmitter"](); /** * This event is fired when the user stops dragging the circle. */ this.dragEnd = new __WEBPACK_IMPORTED_MODULE_0__angular_core__["EventEmitter"](); /** * This event is fired when the user starts dragging the circle. */ this.dragStart = new __WEBPACK_IMPORTED_MODULE_0__angular_core__["EventEmitter"](); /** * This event is fired when the DOM mousedown event is fired on the circle. */ this.mouseDown = new __WEBPACK_IMPORTED_MODULE_0__angular_core__["EventEmitter"](); /** * This event is fired when the DOM mousemove event is fired on the circle. */ this.mouseMove = new __WEBPACK_IMPORTED_MODULE_0__angular_core__["EventEmitter"](); /** * This event is fired on circle mouseout. */ this.mouseOut = new __WEBPACK_IMPORTED_MODULE_0__angular_core__["EventEmitter"](); /** * This event is fired on circle mouseover. */ this.mouseOver = new __WEBPACK_IMPORTED_MODULE_0__angular_core__["EventEmitter"](); /** * This event is fired when the DOM mouseup event is fired on the circle. */ this.mouseUp = new __WEBPACK_IMPORTED_MODULE_0__angular_core__["EventEmitter"](); /** * This event is fired when the circle's radius is changed. */ this.radiusChange = new __WEBPACK_IMPORTED_MODULE_0__angular_core__["EventEmitter"](); /** * This event is fired when the circle is right-clicked on. */ this.rightClick = new __WEBPACK_IMPORTED_MODULE_0__angular_core__["EventEmitter"](); this._circleAddedToManager = false; this._eventSubscriptions = []; } /** @internal */ AgmCircle.prototype.ngOnInit = function () { this._manager.addCircle(this); this._circleAddedToManager = true; this._registerEventListeners(); }; /** @internal */ AgmCircle.prototype.ngOnChanges = function (changes) { if (!this._circleAddedToManager) { return; } if (changes['latitude'] || changes['longitude']) { this._manager.setCenter(this); } if (changes['editable']) { this._manager.setEditable(this); } if (changes['draggable']) { this._manager.setDraggable(this); } if (changes['visible']) { this._manager.setVisible(this); } if (changes['radius']) { this._manager.setRadius(this); } this._updateCircleOptionsChanges(changes); }; AgmCircle.prototype._updateCircleOptionsChanges = function (changes) { var options = {}; var optionKeys = Object.keys(changes).filter(function (k) { return AgmCircle._mapOptions.indexOf(k) !== -1; }); optionKeys.forEach(function (k) { options[k] = changes[k].currentValue; }); if (optionKeys.length > 0) { this._manager.setOptions(this, options); } }; AgmCircle.prototype._registerEventListeners = function () { var _this = this; var events = new Map(); events.set('center_changed', this.centerChange); events.set('click', this.circleClick); events.set('dblclick', this.circleDblClick); events.set('drag', this.drag); events.set('dragend', this.dragEnd); events.set('dragStart', this.dragStart); events.set('mousedown', this.mouseDown); events.set('mousemove', this.mouseMove); events.set('mouseout', this.mouseOut); events.set('mouseover', this.mouseOver); events.set('mouseup', this.mouseUp); events.set('radius_changed', this.radiusChange); events.set('rightclick', this.rightClick); events.forEach(function (eventEmitter, eventName) { _this._eventSubscriptions.push(_this._manager.createEventObservable(eventName, _this).subscribe(function (value) { switch (eventName) { case 'radius_changed': _this._manager.getRadius(_this).then(function (radius) { return eventEmitter.emit(radius); }); break; case 'center_changed': _this._manager.getCenter(_this).then(function (center) { return eventEmitter.emit({ lat: center.lat(), lng: center.lng() }); }); break; default: eventEmitter.emit({ coords: { lat: value.latLng.lat(), lng: value.latLng.lng() } }); } })); }); }; /** @internal */ AgmCircle.prototype.ngOnDestroy = function () { this._eventSubscriptions.forEach(function (s) { s.unsubscribe(); }); this._eventSubscriptions = null; this._manager.removeCircle(this); }; /** * Gets the LatLngBounds of this Circle. */ AgmCircle.prototype.getBounds = function () { return this._manager.getBounds(this); }; AgmCircle.prototype.getCenter = function () { return this._manager.getCenter(this); }; return AgmCircle; }()); AgmCircle._mapOptions = [ 'fillColor', 'fillOpacity', 'strokeColor', 'strokeOpacity', 'strokePosition', 'strokeWeight', 'visible', 'zIndex', 'clickable' ]; AgmCircle.decorators = [ { type: __WEBPACK_IMPORTED_MODULE_0__angular_core__["Directive"], args: [{ selector: 'agm-circle' },] }, ]; /** @nocollapse */ AgmCircle.ctorParameters = function () { return [ { type: __WEBPACK_IMPORTED_MODULE_1__services_managers_circle_manager__["a" /* CircleManager */], }, ]; }; AgmCircle.propDecorators = { 'latitude': [{ type: __WEBPACK_IMPORTED_MODULE_0__angular_core__["Input"] },], 'longitude': [{ type: __WEBPACK_IMPORTED_MODULE_0__angular_core__["Input"] },], 'clickable': [{ type: __WEBPACK_IMPORTED_MODULE_0__angular_core__["Input"] },], 'draggable': [{ type: __WEBPACK_IMPORTED_MODULE_0__angular_core__["Input"], args: ['circleDraggable',] },], 'editable': [{ type: __WEBPACK_IMPORTED_MODULE_0__angular_core__["Input"] },], 'fillColor': [{ type: __WEBPACK_IMPORTED_MODULE_0__angular_core__["Input"] },], 'fillOpacity': [{ type: __WEBPACK_IMPORTED_MODULE_0__angular_core__["Input"] },], 'radius': [{ type: __WEBPACK_IMPORTED_MODULE_0__angular_core__["Input"] },], 'strokeColor': [{ type: __WEBPACK_IMPORTED_MODULE_0__angular_core__["Input"] },], 'strokeOpacity': [{ type: __WEBPACK_IMPORTED_MODULE_0__angular_core__["Input"] },], 'strokePosition': [{ type: __WEBPACK_IMPORTED_MODULE_0__angular_core__["Input"] },], 'strokeWeight': [{ type: __WEBPACK_IMPORTED_MODULE_0__angular_core__["Input"] },], 'visible': [{ type: __WEBPACK_IMPORTED_MODULE_0__angular_core__["Input"] },], 'zIndex': [{ type: __WEBPACK_IMPORTED_MODULE_0__angular_core__["Input"] },], 'centerChange': [{ type: __WEBPACK_IMPORTED_MODULE_0__angular_core__["Output"] },], 'circleClick': [{ type: __WEBPACK_IMPORTED_MODULE_0__angular_core__["Output"] },], 'circleDblClick': [{ type: __WEBPACK_IMPORTED_MODULE_0__angular_core__["Output"] },], 'drag': [{ type: __WEBPACK_IMPORTED_MODULE_0__angular_core__["Output"] },], 'dragEnd': [{ type: __WEBPACK_IMPORTED_MODULE_0__angular_core__["Output"] },], 'dragStart': [{ type: __WEBPACK_IMPORTED_MODULE_0__angular_core__["Output"] },], 'mouseDown': [{ type: __WEBPACK_IMPORTED_MODULE_0__angular_core__["Output"] },], 'mouseMove': [{ type: __WEBPACK_IMPORTED_MODULE_0__angular_core__["Output"] },], 'mouseOut': [{ type: __WEBPACK_IMPORTED_MODULE_0__angular_core__["Output"] },], 'mouseOver': [{ type: __WEBPACK_IMPORTED_MODULE_0__angular_core__["Output"] },], 'mouseUp': [{ type: __WEBPACK_IMPORTED_MODULE_0__angular_core__["Output"] },], 'radiusChange': [{ type: __WEBPACK_IMPORTED_MODULE_0__angular_core__["Output"] },], 'rightClick': [{ type: __WEBPACK_IMPORTED_MODULE_0__angular_core__["Output"] },], }; //# sourceMappingURL=circle.js.map /***/ }), /***/ "../node_modules/@agm/core/directives/data-layer.js": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AgmDataLayer; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__("../node_modules/@angular/core/esm2015/core.js"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__services_managers_data_layer_manager__ = __webpack_require__("../node_modules/@agm/core/services/managers/data-layer-manager.js"); var layerId = 0; /** * AgmDataLayer enables the user to add data layers to the map. * * ### Example * ```typescript * import { Component } from 'angular2/core'; * import { AgmMap, AgmDataLayer } from * 'angular-google-maps/core'; * * @Component({ * selector: 'my-map-cmp', * directives: [AgmMap, AgmDataLayer], * styles: [` * .agm-container { * height: 300px; * } * `], * template: ` * <agm-map [latitude]="lat" [longitude]="lng" [zoom]="zoom"> * <agm-data-layer [geoJson]="geoJsonObject" (layerClick)="clicked($event)" [style]="styleFunc"> * </agm-data-layer> * </agm-map> * ` * }) * export class MyMapCmp { * lat: number = -25.274449; * lng: number = 133.775060; * zoom: number = 5; * * clicked(clickEvent) { * console.log(clickEvent); * } * * styleFunc(feature) { * return ({ * clickable: false, * fillColor: feature.getProperty('color'), * strokeWeight: 1 * }); * } * * geoJsonObject: Object = { * "type": "FeatureCollection", * "features": [ * { * "type": "Feature", * "properties": { * "letter": "G", * "color": "blue", * "rank": "7", * "ascii": "71" * }, * "geometry": { * "type": "Polygon", * "coordinates": [ * [ * [123.61, -22.14], [122.38, -21.73], [121.06, -21.69], [119.66, -22.22], [119.00, -23.40], * [118.65, -24.76], [118.43, -26.07], [118.78, -27.56], [119.22, -28.57], [120.23, -29.49], * [121.77, -29.87], [123.57, -29.64], [124.45, -29.03], [124.71, -27.95], [124.80, -26.70], * [124.80, -25.60], [123.61, -25.64], [122.56, -25.64], [121.72, -25.72], [121.81, -26.62], * [121.86, -26.98], [122.60, -26.90], [123.57, -27.05], [123.57, -27.68], [123.35, -28.18], * [122.51, -28.38], [121.77, -28.26], [121.02, -27.91], [120.49, -27.21], [120.14, -26.50], * [120.10, -25.64], [120.27, -24.52], [120.67, -23.68], [121.72, -23.32], [122.43, -23.48], * [123.04, -24.04], [124.54, -24.28], [124.58, -23.20], [123.61, -22.14] * ] * ] * } * }, * { * "type": "Feature", * "properties": { * "letter": "o", * "color": "red", * "rank": "15", * "ascii": "111" * }, * "geometry": { * "type": "Polygon", * "coordinates": [ * [ * [128.84, -25.76], [128.18, -25.60], [127.96, -25.52], [127.88, -25.52], [127.70, -25.60], * [127.26, -25.79], [126.60, -26.11], [126.16, -26.78], [126.12, -27.68], [126.21, -28.42], * [126.69, -29.49], [127.74, -29.80], [128.80, -29.72], [129.41, -29.03], [129.72, -27.95], * [129.68, -27.21], [129.33, -26.23], [128.84, -25.76] * ], * [ * [128.45, -27.44], [128.32, -26.94], [127.70, -26.82], [127.35, -27.05], [127.17, -27.80], * [127.57, -28.22], [128.10, -28.42], [128.49, -27.80], [128.45, -27.44] * ] * ] * } * }, * { * "type": "Feature", * "properties": { * "letter": "o", * "color": "yellow", * "rank": "15", * "ascii": "111" * }, * "geometry": { * "type": "Polygon", * "coordinates": [ * [ * [131.87, -25.76], [131.35, -26.07], [130.95, -26.78], [130.82, -27.64], [130.86, -28.53], * [131.26, -29.22], [131.92, -29.76], [132.45, -29.87], [133.06, -29.76], [133.72, -29.34], * [134.07, -28.80], [134.20, -27.91], [134.07, -27.21], [133.81, -26.31], [133.37, -25.83], * [132.71, -25.64], [131.87, -25.76] * ], * [ * [133.15, -27.17], [132.71, -26.86], [132.09, -26.90], [131.74, -27.56], [131.79, -28.26], * [132.36, -28.45], [132.93, -28.34], [133.15, -27.76], [133.15, -27.17] * ] * ] * } * }, * { * "type": "Feature", * "properties": { * "letter": "g", * "color": "blue", * "rank": "7", * "ascii": "103" * }, * "geometry": { * "type": "Polygon", * "coordinates": [ * [ * [138.12, -25.04], [136.84, -25.16], [135.96, -25.36], [135.26, -25.99], [135, -26.90], * [135.04, -27.91], [135.26, -28.88], [136.05, -29.45], [137.02, -29.49], [137.81, -29.49], * [137.94, -29.99], [137.90, -31.20], [137.85, -32.24], [136.88, -32.69], [136.45, -32.36], * [136.27, -31.80], [134.95, -31.84], [135.17, -32.99], [135.52, -33.43], [136.14, -33.76], * [137.06, -33.83], [138.12, -33.65], [138.86, -33.21], [139.30, -32.28], [139.30, -31.24], * [139.30, -30.14], [139.21, -28.96], [139.17, -28.22], [139.08, -27.41], [139.08, -26.47], * [138.99, -25.40], [138.73, -25.00], [138.12, -25.04] * ], * [ * [137.50, -26.54], [136.97, -26.47], [136.49, -26.58], [136.31, -27.13], [136.31, -27.72], * [136.58, -27.99], [137.50, -28.03], [137.68, -27.68], [137.59, -26.78], [137.50, -26.54] * ] * ] * } * }, * { * "type": "Feature", * "properties": { * "letter": "l", * "color": "green", * "rank": "12", * "ascii": "108" * }, * "geometry": { * "type": "Polygon", * "coordinates": [ * [ * [140.14, -21.04], [140.31, -29.42], [141.67, -29.49], [141.59, -20.92], [140.14, -21.04] * ] * ] * } * }, * { * "type": "Feature", * "properties": { * "letter": "e", * "color": "red", * "rank": "5", * "ascii": "101" * }, * "geometry": { * "type": "Polygon", * "coordinates": [ * [ * [144.14, -27.41], [145.67, -27.52], [146.86, -27.09], [146.82, -25.64], [146.25, -25.04], * [145.45, -24.68], [144.66, -24.60], [144.09, -24.76], [143.43, -25.08], [142.99, -25.40], * [142.64, -26.03], [142.64, -27.05], [142.64, -28.26], [143.30, -29.11], [144.18, -29.57], * [145.41, -29.64], [146.46, -29.19], [146.64, -28.72], [146.82, -28.14], [144.84, -28.42], * [144.31, -28.26], [144.14, -27.41] * ], * [ * [144.18, -26.39], [144.53, -26.58], [145.19, -26.62], [145.72, -26.35], [145.81, -25.91], * [145.41, -25.68], [144.97, -25.68], [144.49, -25.64], [144, -25.99], [144.18, -26.39] * ] * ] * } * } * ] * }; * } * ``` */ var AgmDataLayer = (function () { function AgmDataLayer(_manager) { this._manager = _manager; this._addedToManager = false; this._id = (layerId++).toString(); this._subscriptions = []; /** * This event is fired when a feature in the layer is clicked. */ this.layerClick = new __WEBPACK_IMPORTED_MODULE_0__angular_core__["EventEmitter"](); /** * The geoJson to be displayed */ this.geoJson = null; } AgmDataLayer.prototype.ngOnInit = function () { if (this._addedToManager) { return; } this._manager.addDataLayer(this); this._addedToManager = true; this._addEventListeners(); }; AgmDataLayer.prototype._addEventListeners = function () { var _this = this; var listeners = [ { name: 'click', handler: function (ev) { return _this.layerClick.emit(ev); } }, ]; listeners.forEach(function (obj) { var os = _this._manager.createEventObservable(obj.name, _this).subscribe(obj.handler); _this._subscriptions.push(os); }); }; /** @internal */ AgmDataLayer.prototype.id = function () { return this._id; }; /** @internal */ AgmDataLayer.prototype.toString = function () { return "AgmDataLayer-" + this._id.toString(); }; /** @internal */ AgmDataLayer.prototype.ngOnDestroy = function () { this._manager.deleteDataLayer(this); // unsubscribe all registered observable subscriptions this._subscriptions.forEach(function (s) { return s.unsubscribe(); }); }; /** @internal */ AgmDataLayer.prototype.ngOnChanges = function (changes) { var _this = this; if (!this._addedToManager) { return; } var geoJsonChange = changes['geoJson']; if (geoJsonChange) { this._manager.updateGeoJson(this, geoJsonChange.currentValue); } var dataOptions = {}; AgmDataLayer._dataOptionsAttributes.forEach(function (k) { return dataOptions[k] = changes.hasOwnProperty(k) ? changes[k].currentValue : _this[k]; }); this._manager.setDataOptions(this, dataOptions); }; return AgmDataLayer; }()); AgmDataLayer._dataOptionsAttributes = ['style']; AgmDataLayer.decorators = [ { type: __WEBPACK_IMPORTED_MODULE_0__angular_core__["Directive"], args: [{ selector: 'agm-data-layer' },] }, ]; /** @nocollapse */ AgmDataLayer.ctorParameters = function () { return [ { type: __WEBPACK_IMPORTED_MODULE_1__services_managers_data_layer_manager__["a" /* DataLayerManager */], }, ]; }; AgmDataLayer.propDecorators = { 'layerClick': [{ type: __WEBPACK_IMPORTED_MODULE_0__angular_core__["Output"] },], 'geoJson': [{ type: __WEBPACK_IMPORTED_MODULE_0__angular_core__["Input"] },], 'style': [{ type: __WEBPACK_IMPORTED_MODULE_0__angular_core__["Input"] },], }; //# sourceMappingURL=data-layer.js.map /***/ }), /***/ "../node_modules/@agm/core/directives/info-window.js": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AgmInfoWindow; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__("../node_modules/@angular/core/esm2015/core.js"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__services_managers_info_window_manager__ = __webpack_require__("../node_modules/@agm/core/services/managers/info-window-manager.js"); var infoWindowId = 0; /** * AgmInfoWindow renders a info window inside a {@link AgmMarker} or standalone. * * ### Example * ```typescript * import { Component } from '@angular/core'; * * @Component({ * selector: 'my-map-cmp', * styles: [` * .agm-map-container { * height: 300px; * } * `], * template: ` * <agm-map [latitude]="lat" [longitude]="lng" [zoom]="zoom"> * <agm-marker [latitude]="lat" [longitude]="lng" [label]="'M'"> * <agm-info-window [disableAutoPan]="true"> * Hi, this is the content of the <strong>info window</strong> * </agm-info-window> * </agm-marker> * </agm-map> * ` * }) * ``` */ var AgmInfoWindow = (function () { function AgmInfoWindow(_infoWindowManager, _el) { this._infoWindowManager = _infoWindowManager; this._el = _el; /** * Sets the open state for the InfoWindow. You can also call the open() and close() methods. */ this.isOpen = false; /** * Emits an event when the info window is closed. */ this.infoWindowClose = new __WEBPACK_IMPORTED_MODULE_0__angular_core__["EventEmitter"](); this._infoWindowAddedToManager = false; this._id = (infoWindowId++).toString(); } AgmInfoWindow.prototype.ngOnInit = function () { this.content = this._el.nativeElement.querySelector('.agm-info-window-content'); this._infoWindowManager.addInfoWindow(this); this._infoWindowAddedToManager = true; this._updateOpenState(); this._registerEventListeners(); }; /** @internal */ AgmInfoWindow.prototype.ngOnChanges = function (changes) { if (!this._infoWindowAddedToManager) { return; } if ((changes['latitude'] || changes['longitude']) && typeof this.latitude === 'number' && typeof this.longitude === 'number') { this._infoWindowManager.setPosition(this); } if (changes['zIndex']) { this._infoWindowManager.setZIndex(this); } if (changes['isOpen']) { this._updateOpenState(); } this._setInfoWindowOptions(changes); }; AgmInfoWindow.prototype._registerEventListeners = function () { var _this = this; this._infoWindowManager.createEventObservable('closeclick', this).subscribe(function () { _this.isOpen = false; _this.infoWindowClose.emit(); }); }; AgmInfoWindow.prototype._updateOpenState = function () { this.isOpen ? this.open() : this.close(); }; AgmInfoWindow.prototype._setInfoWindowOptions = function (changes) { var options = {}; var optionKeys = Object.keys(changes).filter(function (k) { return AgmInfoWindow._infoWindowOptionsInputs.indexOf(k) !== -1; }); optionKeys.forEach(function (k) { options[k] = changes[k].currentValue; }); this._infoWindowManager.setOptions(this, options); }; /** * Opens the info window. */ AgmInfoWindow.prototype.open = function () { return this._infoWindowManager.open(this); }; /** * Closes the info window. */ AgmInfoWindow.prototype.close = function () { var _this = this; return this._infoWindowManager.close(this).then(function () { _this.infoWindowClose.emit(); }); }; /** @internal */ AgmInfoWindow.prototype.id = function () { return this._id; }; /** @internal */ AgmInfoWindow.prototype.toString = function () { return 'AgmInfoWindow-' + this._id.toString(); }; /** @internal */ AgmInfoWindow.prototype.ngOnDestroy = function () { this._infoWindowManager.deleteInfoWindow(this); }; return AgmInfoWindow; }()); AgmInfoWindow._infoWindowOptionsInputs = ['disableAutoPan', 'maxWidth']; AgmInfoWindow.decorators = [ { type: __WEBPACK_IMPORTED_MODULE_0__angular_core__["Component"], args: [{ selector: 'agm-info-window', template: "<div class='agm-info-window-content'>\n <ng-content></ng-content>\n </div>\n " },] }, ]; /** @nocollapse */ AgmInfoWindow.ctorParameters = function () { return [ { type: __WEBPACK_IMPORTED_MODULE_1__services_managers_info_window_manager__["a" /* InfoWindowManager */], }, { type: __WEBPACK_IMPORTED_MODULE_0__angular_core__["ElementRef"], }, ]; }; AgmInfoWindow.propDecorators = { 'latitude': [{ type: __WEBPACK_IMPORTED_MODULE_0__angular_core__["Input"] },], 'longitude': [{ type: __WEBPACK_IMPORTED_MODULE_0__angular_core__["Input"] },], 'disableAutoPan': [{ type: __WEBPACK_IMPORTED_MODULE_0__angular_core__["Input"] },], 'zIndex': [{ type: __WEBPACK_IMPORTED_MODULE_0__angular_core__["Input"] },], 'maxWidth': [{ type: __WEBPACK_IMPORTED_MODULE_0__angular_core__["Input"] },], 'isOpen': [{ type: __WEBPACK_IMPORTED_MODULE_0__angular_core__["Input"] },], 'infoWindowClose': [{ type: __WEBPACK_IMPORTED_MODULE_0__angular_core__["Output"] },], }; //# sourceMappingURL=info-window.js.map /***/ }), /***/ "../node_modules/@agm/core/directives/kml-layer.js": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AgmKmlLayer; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__("../node_modules/@angular/core/esm2015/core.js"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__services_managers_kml_layer_manager__ = __webpack_require__("../node_modules/@agm/core/services/managers/kml-layer-manager.js"); var layerId = 0; var AgmKmlLayer = (function () { function AgmKmlLayer(_manager) { this._manager = _manager; this._addedToManager = false; this._id = (layerId++).toString(); this._subscriptions = []; /** * If true, the layer receives mouse events. Default value is true. */ this.clickable = true; /** * By default, the input map is centered and zoomed to the bounding box of the contents of the * layer. * If this option is set to true, the viewport is left unchanged, unless the map's center and zoom * were never set. */ this.preserveViewport = false; /** * Whether to render the screen overlays. Default true. */ this.screenOverlays = true; /** * Suppress the rendering of info windows when layer features are clicked. */ this.suppressInfoWindows = false; /** * The URL of the KML document to display. */ this.url = null; /** * The z-index of the layer. */ this.zIndex = null; /** * This event is fired when a feature in the layer is clicked. */ this.layerClick = new __WEBPACK_IMPORTED_MODULE_0__angular_core__["EventEmitter"](); /** * This event is fired when the KML layers default viewport has changed. */ this.defaultViewportChange = new __WEBPACK_IMPORTED_MODULE_0__angular_core__["EventEmitter"](); /** * This event is fired when the KML layer has finished loading. * At this point it is safe to read the status property to determine if the layer loaded * successfully. */ this.statusChange = new __WEBPACK_IMPORTED_MODULE_0__angular_core__["EventEmitter"](); } AgmKmlLayer.prototype.ngOnInit = function () { if (this._addedToManager) { return; } this._manager.addKmlLayer(this); this._addedToManager = true; this._addEventListeners(); }; AgmKmlLayer.prototype.ngOnChanges = function (changes) { if (!this._addedToManager) { return; } this._updatePolygonOptions(changes); }; AgmKmlLayer.prototype._updatePolygonOptions = function (changes) { var options = Object.keys(changes) .filter(function (k) { return AgmKmlLayer._kmlLayerOptions.indexOf(k) !== -1; }) .reduce(function (obj, k) { obj[k] = changes[k].currentValue; return obj; }, {}); if (Object.keys(options).length > 0) { this._manager.setOptions(this, options); } }; AgmKmlLayer.prototype._addEventListeners = function () { var _this = this; var listeners = [ { name: 'click', handler: function (ev) { return _this.layerClick.emit(ev); } }, { name: 'defaultviewport_changed', handler: function () { return _this.defaultViewportChange.emit(); } }, { name: 'status_changed', handler: function () { return _this.statusChange.emit(); } }, ]; listeners.forEach(function (obj) { var os = _this._manager.createEventObservable(obj.name, _this).subscribe(obj.handler); _this._subscriptions.push(os); }); }; /** @internal */ AgmKmlLayer.prototype.id = function () { return this._id; }; /** @internal */ AgmKmlLayer.prototype.toString = function () { return "AgmKmlLayer-" + this._id.toString(); }; /** @internal */ AgmKmlLayer.prototype.ngOnDestroy = function () { this._manager.deleteKmlLayer(this); // unsubscribe all registered observable subscriptions this._subscriptions.forEach(function (s) { return s.unsubscribe(); }); }; return AgmKmlLayer; }()); AgmKmlLayer._kmlLayerOptions = ['clickable', 'preserveViewport', 'screenOverlays', 'suppressInfoWindows', 'url', 'zIndex']; AgmKmlLayer.decorators = [ { type: __WEBPACK_IMPORTED_MODULE_0__angular_core__["Directive"], args: [{ selector: 'agm-kml-layer' },] }, ]; /** @nocollapse */ AgmKmlLayer.ctorParameters = function () { return [ { type: __WEBPACK_IMPORTED_MODULE_1__services_managers_kml_layer_manager__["a" /* KmlLayerManager */], }, ]; }; AgmKmlLayer.propDecorators = { 'clickable': [{ type: __WEBPACK_IMPORTED_MODULE_0__angular_core__["Input"] },], 'preserveViewport': [{ type: __WEBPACK_IMPORTED_MODULE_0__angular_core__["Input"] },], 'screenOverlays': [{ type: __WEBPACK_IMPORTED_MODULE_0__angular_core__["Input"] },], 'suppressInfoWindows': [{ type: __WEBPACK_IMPORTED_MODULE_0__angular_core__["Input"] },], 'url': [{ type: __WEBPACK_IMPORTED_MODULE_0__angular_core__["Input"] },], 'zIndex': [{ type: __WEBPACK_IMPORTED_MODULE_0__angular_core__["Input"] },], 'layerClick': [{ type: __WEBPACK_IMPORTED_MODULE_0__angular_core__["Output"] },], 'defaultViewportChange': [{ type: __WEBPACK_IMPORTED_MODULE_0__angular_core__["Output"] },], 'statusChange': [{ type: __WEBPACK_IMPORTED_MODULE_0__angular_core__["Output"] },], }; //# sourceMappingURL=kml-layer.js.map /***/ }), /***/ "../node_modules/@agm/core/directives/map.js": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AgmMap; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__("../node_modules/@angular/core/esm2015/core.js"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__services_google_maps_api_wrapper__ = __webpack_require__("../node_modules/@agm/core/services/google-maps-api-wrapper.js"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__services_managers_circle_manager__ = __webpack_require__("../node_modules/@agm/core/services/managers/circle-manager.js"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__services_managers_info_window_manager__ = __webpack_require__("../node_modules/@agm/core/services/managers/info-window-manager.js"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__services_managers_marker_manager__ = __webpack_require__("../node_modules/@agm/core/services/managers/marker-manager.js"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__services_managers_polygon_manager__ = __webpack_require__("../node_modules/@agm/core/services/managers/polygon-manager.js"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__services_managers_polyline_manager__ = __webpack_require__("../node_modules/@agm/core/services/managers/polyline-manager.js"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__services_managers_kml_layer_manager__ = __webpack_require__("../node_modules/@agm/core/services/managers/kml-layer-manager.js"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__services_managers_data_layer_manager__ = __webpack_require__("../node_modules/@agm/core/services/managers/data-layer-manager.js"); /** * AgmMap renders a Google Map. * **Important note**: To be able see a map in the browser, you have to define a height for the * element `agm-map`. * * ### Example * ```typescript * import { Component } from '@angular/core'; * * @Component({ * selector: 'my-map-cmp', * styles: [` * agm-map { * height: 300px; * } * `], * template: ` * <agm-map [latitude]="lat" [longitude]="lng" [zoom]="zoom"> * </agm-map> * ` * }) * ``` */ var AgmMap = (function () { function AgmMap(_elem, _mapsWrapper) { this._elem = _elem; this._mapsWrapper = _mapsWrapper; /** * The longitude that defines the center of the map. */ this.longitude = 0; /** * The latitude that defines the center of the map. */ this.latitude = 0; /** * The zoom level of the map. The default zoom level is 8. */ this.zoom = 8; /** * Enables/disables if map is draggable. */ // tslint:disable-next-line:no-input-rename this.draggable = true; /** * Enables/disables zoom and center on double click. Enabled by default. */ this.disableDoubleClickZoom = false; /** * Enables/disables all default UI of the Google map. Please note: When the map is created, this * value cannot get updated. */ this.disableDefaultUI = false; /** * If false, disables scrollwheel zooming on the map. The scrollwheel is enabled by default. */ this.scrollwheel = true; /** * If false, prevents the map from being controlled by the keyboard. Keyboard shortcuts are * enabled by default. */ this.keyboardShortcuts = true; /** * The enabled/disabled state of the Zoom control. */ this.zoomControl = true; /** * Styles to apply to each of the default map types. Note that for Satellite/Hybrid and Terrain * modes, these styles will only apply to labels and geometry. */ this.styles = []; /** * When true and the latitude and/or longitude values changes, the Google Maps panTo method is * used to * center the map. See: https://developers.google.com/maps/documentation/javascript/reference#Map */ this.usePanning = false; /** * The initial enabled/disabled state of the Street View Pegman control. * This control is part of the default UI, and should be set to false when displaying a map type * on which the Street View road overlay should not appear (e.g. a non-Earth map type). */ this.streetViewControl = true; /** * Sets the viewport to contain the given bounds. */ this.fitBounds = null; /** * The initial enabled/disabled state of the Scale control. This is disabled by default. */ this.scaleControl = false; /** * The initial enabled/disabled state of the Map type control. */ this.mapTypeControl = false; /** * The initial enabled/disabled state of the Pan control. */ this.panControl = false; /** * The initial enabled/disabled state of the Rotate control. */ this.rotateControl = false; /** * The initial enabled/disabled state of the Fullscreen control. */ this.fullscreenControl = false; /** * The map mapTypeId. Defaults to 'roadmap'. */ this.mapTypeId = 'roadmap'; /** * When false, map icons are not clickable. A map icon represents a point of interest, * also known as a POI. By default map icons are clickable. */ this.clickableIcons = true; /** * This setting controls how gestures on the map are handled. * Allowed values: * - 'cooperative' (Two-finger touch gestures pan and zoom the map. One-finger touch gestures are not handled by the map.) * - 'greedy' (All touch gestures pan or zoom the map.) * - 'none' (The map cannot be panned or zoomed by user gestures.) * - 'auto' [default] (Gesture handling is either cooperative or greedy, depending on whether the page is scrollable or not. */ this.gestureHandling = 'auto'; this._observableSubscriptions = []; /** * This event emitter gets emitted when the user clicks on the map (but not when they click on a * marker or infoWindow). */ this.mapClick = new __WEBPACK_IMPORTED_MODULE_0__angular_core__["EventEmitter"](); /** * This event emitter gets emitted when the user right-clicks on the map (but not when they click * on a marker or infoWindow). */ this.mapRightClick = new __WEBPACK_IMPORTED_MODULE_0__angular_core__["EventEmitter"](); /** * This event emitter gets emitted when the user double-clicks on the map (but not when they click * on a marker or infoWindow). */ this.mapDblClick = new __WEBPACK_IMPORTED_MODULE_0__angular_core__["EventEmitter"](); /** * This event emitter is fired when the map center changes. */ this.centerChange = new __WEBPACK_IMPORTED_MODULE_0__angular_core__["EventEmitter"](); /** * This event is fired when the viewport bounds have changed. */ this.boundsChange = new __WEBPACK_IMPORTED_MODULE_0__angular_core__["EventEmitter"](); /** * This event is fired when the map becomes idle after panning or zooming. */ this.idle = new __WEBPACK_IMPORTED_MODULE_0__angular_core__["EventEmitter"](); /** * This event is fired when the zoom level has changed. */ this.zoomChange = new __WEBPACK_IMPORTED_MODULE_0__angular_core__["EventEmitter"](); /** * This event is fired when the google map is fully initialized. * You get the google.maps.Map instance as a result of this EventEmitter. */ this.mapReady = new __WEBPACK_IMPORTED_MODULE_0__angular_core__["EventEmitter"](); } /** @internal */ AgmMap.prototype.ngOnInit = function () { // todo: this should be solved with a new component and a viewChild decorator var container = this._elem.nativeElement.querySelector('.agm-map-container-inner'); this._initMapInstance(container); }; AgmMap.prototype._initMapInstance = function (el) { var _this = this; this._mapsWrapper.createMap(el, { center: { lat: this.latitude || 0, lng: this.longitude || 0 }, zoom: this.zoom, minZoom: this.minZoom, maxZoom: this.maxZoom, disableDefaultUI: this.disableDefaultUI, disableDoubleClickZoom: this.disableDoubleClickZoom, scrollwheel: this.scrollwheel, backgroundColor: this.backgroundColor, draggable: this.draggable, draggableCursor: this.draggableCursor, draggingCursor: this.draggingCursor, keyboardShortcuts: this.keyboardShortcuts, styles: this.styles, zoomControl: this.zoomControl, zoomControlOptions: this.zoomControlOptions, streetViewControl: this.streetViewControl, streetViewControlOptions: this.streetViewControlOptions, scaleControl: this.scaleControl, scaleControlOptions: this.scaleControlOptions, mapTypeControl: this.mapTypeControl, mapTypeControlOptions: this.mapTypeControlOptions, panControl: this.panControl, panControlOptions: this.panControlOptions, rotateControl: this.rotateControl, rotateC