0

I'm using CodeIgniter Google Maps V3 API Library and need to load the map each time I do a new direction, i can't refresh the page so i need to refresh just the map. how can done that ?

what i have to add in this code ?

    $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();
Mina Magdy
  • 141
  • 1
  • 15
  • there is possibility 'google.maps.event.trigger(map, "resize");' can work, and if yes how can add it in library ? – Mina Magdy Sep 20 '18 at 16:13
  • have you tried using AJAX? or why not just use the legit Google Maps JavaScript API for your CodeIgniter application? In fact, JavaScript works well with PHP. – tomjosef Sep 24 '18 at 06:05

0 Answers0