0

我正在使用CodeIgniter Google Maps V3 API 库,每次执行新方向时都需要加载地图,我无法刷新页面,所以我只需要刷新地图。怎么能做到呢?

我必须在这段代码中添加什么?

    $config['center'] = 'auto';
    $config['zoom'] = 'auto';
    $config['directions'] = TRUE;
    $config['directionsStart'] = $directionsStart;
    $config['directionsWaypointArray'] = $directionsWaypointArray;
    $config['directionsEnd'] = $directionsEnd;
    $config['directionsDivID'] = 'directionsDiv';
    $this->googlemaps->initialize($config);
    $data['map'] = $this->googlemaps->create_map();
4

0 回答 0