/*! Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one or more contributor license agreements. * Licensed under the Elastic License 2.0; you may not use this file except in compliance with the Elastic License 2.0. */ (window.maps_bundle_jsonpfunction=window.maps_bundle_jsonpfunction||[]).push([[7],{534:function(e,t,i){"use strict";i.r(t),i.d(t,"getMapsLink",(function(){return c}));var n=i(41),a=i(5),r=i(0),l=i(16);const c=async e=>{var t;const i=await Object(a.u)().get(e.dataViewSpec.id),c=(null==e||null===(t=e.contextualFields)||void 0===t?void 0:t.length)&&"_source"!==(null==e?void 0:e.contextualFields[0]),o=[{id:Object(n.v4)(),visible:!0,type:r.Z.MVT_VECTOR,sourceDescriptor:{id:Object(n.v4)(),type:r.Ab.ES_SEARCH,tooltipProperties:c?e.contextualFields:[],label:i.getIndexPattern(),indexPatternId:e.dataViewSpec.id,geoField:e.fieldName,scalingType:r.vb.MVT}}],u=Object(a.L)().url.locators.get(l.a);return await u.getLocation({filters:Object(a.i)().query.filterManager.getFilters(),query:Object(a.i)().query.queryString.getQuery(),initialLayers:o,timeRange:Object(a.i)().query.timefilter.timefilter.getTime(),dataViewSpec:e.dataViewSpec})}}}]);