import { Component, Input, ViewEncapsulation } from "@angular/core";
import * as i0 from "@angular/core";
import * as i1 from "@agm/core";
import * as i2 from "@angular/common";
function AxoMapComponent_ng_container_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementContainerStart(0);
    i0.ɵɵelement(1, "agm-marker", 2);
    i0.ɵɵelementContainerEnd();
} if (rf & 2) {
    const location_r1 = ctx.$implicit;
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("agmFitBounds", true)("latitude", location_r1.latitude)("longitude", location_r1.longitude);
} }
/**
 * this component is used for creating a map with markers
 * using latitude and longitude
 */
export class AxoMapComponent {
    constructor() {
        this.locations = [];
    }
    ngOnInit() { }
}
AxoMapComponent.ɵfac = function AxoMapComponent_Factory(t) { return new (t || AxoMapComponent)(); };
AxoMapComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AxoMapComponent, selectors: [["axo-map"]], inputs: { locations: "locations" }, decls: 2, vars: 2, consts: [[3, "fitBounds"], [4, "ngFor", "ngForOf"], [3, "agmFitBounds", "latitude", "longitude"]], template: function AxoMapComponent_Template(rf, ctx) { if (rf & 1) {
        i0.ɵɵelementStart(0, "agm-map", 0);
        i0.ɵɵtemplate(1, AxoMapComponent_ng_container_1_Template, 2, 3, "ng-container", 1);
        i0.ɵɵelementEnd();
    } if (rf & 2) {
        i0.ɵɵproperty("fitBounds", true);
        i0.ɵɵadvance(1);
        i0.ɵɵproperty("ngForOf", ctx.locations);
    } }, directives: [i1.AgmMap, i2.NgForOf, i1.AgmMarker, i1.AgmFitBounds], styles: ["axo-map agm-map{height:300px;width:100%}\n"], encapsulation: 2 });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AxoMapComponent, [{
        type: Component,
        args: [{ selector: 'axo-map', encapsulation: ViewEncapsulation.None, template: "<agm-map [fitBounds]=\"true\">\n    <ng-container *ngFor=\"let location of locations\">\n        <agm-marker \n            [agmFitBounds]=\"true\" \n            [latitude]=\"location.latitude\" \n            [longitude]=\"location.longitude\" \n        >\n    </agm-marker>\n    </ng-container>\n</agm-map>\n", styles: ["axo-map agm-map{height:300px;width:100%}\n"] }]
    }], null, { locations: [{
            type: Input
        }] }); })();
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXhvLW1hcC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvYXgtY29tbW9uLXVpLWxpYi9zcmMvbGliL2F4by1tYXAvYXhvLW1hcC5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi9zcmMvYXgtY29tbW9uLXVpLWxpYi9zcmMvbGliL2F4by1tYXAvYXhvLW1hcC5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLEtBQUssRUFBVSxpQkFBaUIsRUFBRSxNQUFNLGVBQWUsQ0FBQzs7Ozs7SUNDeEUsNkJBQWlEO0lBQzdDLGdDQUtTO0lBQ2IsMEJBQWU7OztJQUxQLGVBQXFCO0lBQXJCLG1DQUFxQixrQ0FBQSxvQ0FBQTs7QURNakM7OztHQUdHO0FBQ0gsTUFBTSxPQUFPLGVBQWU7SUFWNUI7UUFXYSxjQUFTLEdBQWtCLEVBQUUsQ0FBQztLQUUxQztJQURHLFFBQVEsS0FBVSxDQUFDOzs4RUFGVixlQUFlO2tFQUFmLGVBQWU7UUNiNUIsa0NBQTRCO1FBQ3hCLGtGQU9lO1FBQ25CLGlCQUFVOztRQVRELGdDQUFrQjtRQUNZLGVBQVk7UUFBWix1Q0FBWTs7dUZEWXRDLGVBQWU7Y0FWM0IsU0FBUzsyQkFDSSxTQUFTLGlCQUdKLGlCQUFpQixDQUFDLElBQUk7Z0JBTzVCLFNBQVM7a0JBQWpCLEtBQUsiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBDb21wb25lb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