Google Maps shows “For development purposes only”

前端 未结 11 1827
旧巷少年郎
旧巷少年郎 2020-11-30 17:29

Google Maps show the message \"For development purposes only\" when I try to show it in my webpage:

How could I make this message go away?

My code i

11条回答
  •  没有蜡笔的小新
    2020-11-30 18:33

    If your mapTypeId is SATELLITE or HYBRID

    well, it is just a watermark, you can hide it if you change the

    that has z-index=100 I use

    setInterval(function(){
        $("*").each(function() {
            if ($(this).css("zIndex") == 100) {
                $(this).css("zIndex", "-100");
            }
        })}
    , 10);
    

    or you can use

    map.addListener('idle', function(e) {
        //same function
    }
    

    but it is not as responsive as setInterval

提交回复
热议问题