我需要加载Google地图,因此标记偏离中心,换句话说,地图的中心不在中心,而是向右移动.我希望这是有道理的.
这是我正在使用的脚本.
function setCenterCoords($lon,$lat) {
$this->centerLatitude = (float) $lat;
$this->centerLongitude = (float) $lon;
}
Run Code Online (Sandbox Code Playgroud)
我如何制作它以使中心出现在页面右侧2/3而不是页面中间?谢谢