"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getLocationFromEvent = getLocationFromEvent;
function getLocationFromEvent(event) {
    return event.location
        ? {
            type: event.location.type,
            spatialReference: event.location.spatialReference,
            extent: event.location.extent,
            geometries: event.location.geometries,
            name: event.location.placeName,
        }
        : { type: "none" };
}
//# sourceMappingURL=getLocationFromEvent.js.map