<template <google-map> <google-map-marker :key=”index” v-for=”(marker, index) in markers” :position=”marker.position” /> <google-map-infowindow :key=”index” v-for=”(marker, index) in markers” :position=”marker.position” /> </google-map> </template> <script> import { connectGeoSearch } from ‘instantsearch.js/es/connectors’ import { createWidgetMixin } from ‘vue-instantsearch’ import { Map, Marker, InfoWindow } from ‘vue2-google-maps’ export default { mixins: [createWidgetMixin({ connector: connectGeoSearch })], computed: { markers() { return Boolean(this.state) ? [] : this.state.items.map(({ /* … / }) => ({ / … / })) } }, / … */ } </script>