五申请秘钥在 入口文件里面引入 写入key值
<script src="http://maps.google.cn/maps/api/js?key="></script>
写入一个存放地图的div标签
<div id="googleMap" style="height: 100%;"></div>
五在vue模板里面引入自定义的聚合图标并且挂在在vue实例是哪个
import mar0 from "./img/img/0.png";
import mar1 from "./img/img/1.png";
import mar2 from "./img/img/2.png";
import mar3 from "./img/img/3.png";
import mar4 from "./img/img/4.png";
export default {
data() {
return {
map:null,
infowindow:null,
clickTimer: null,
imgUrl22 :require("../../../../static/img/marker-1.png"),
imgUrl11 :require("../../../../static/img/marker0.png"),
markerStyles:[
{
url:mar0,
width:53,
height:53,