简体   繁体   English

在div中加载google map网址

[英]load a google map url inside a div

I have customized a map with the google maps engine and I have the corresponding url. 我已经使用Google Maps Engine自定义了地图,并且具有相应的网址。 I just want to load this url inside a div by using the simple load() method. 我只想使用简单的load()方法在div中加载此网址。 Unfortunatelly, I get a P3P error message. 不幸的是,我收到一条P3P错误消息。

    jQuery('#map-canvas').load( "https://mapsengine.google.com/map/edit?whatever", function() {
        alert( "Load was performed." );
    });

The error I'm getting: 我得到的错误:
This is not a P3P policy! 这不是P3P政策! See http://www.google.com/support/accounts/bin/answer.py?hl=en&answer=151657 for more info. 有关更多信息,请参见http://www.google.com/support/accounts/bin/answer.py?hl=zh_CN&answer=151657 The info in the link is not as usefull as expected. 链接中的信息不如预期的有用。
Any hints? 有什么提示吗?
How can I accomplish the P3P policy and load the map? 如何完成P3P策略并加载地图?

$(function(){$(“#map”)。googleMap({zoom:10,//初始缩放级别(可选),坐标:[48.895651,2.290569],//地图中心(可选)类型:“ ROADMAP” / /地图类型(可选)});})

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM