将 VueJS 组件渲染到 Google Map Infowindow 中 [英] Rendering VueJS components into a Google Map Infowindow

查看:39
本文介绍了将 VueJS 组件渲染到 Google Map Infowindow 中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试渲染一个简单的 vue js 组件 -

var infowindow_content = "<google-map-infowindow ";infowindow_content += "content='Hello World'";infowindow_content += "></google-map-infowindow>";

通过将其传递到标记的信息窗口

this.current_infowindow = new google.maps.InfoWindow({内容:infowindow_content,});this.current_infowindow.open(context.mapObject, 标记);

而 vueJS 组件是 -