BIOSTALL / CodeIgniter-Google-Maps-V3-API-Library

The library enables you to create a map and overlay multiple markers, polylines, polygons, rectangles, ground overlays and/or circles, all of which are fully customisable. The library also supports showing directions between two points, including the ability to show the textual directions alongside the map too, and marker clustering. The first stages of integration with the Google Places API are available for use too.
http://biostall.com/codeigniter-google-maps-v3-api-library
288 stars 199 forks source link

How can I display two Places Input Autocomplete #39

Open pisix opened 9 years ago

pisix commented 9 years ago

Hello, I try to display in my form two Place input fileds autocomplete, but it doesn't work. Only one (the first) input is able to autocomplete. Below the source of code inside my controller

        $config['places'] = TRUE;
        $config['placesAutocompleteInputID'] = 'startCity';
        $config['map_name'] = 'map_one';
        $this->googlemaps->initialize($config);
        $data['map_one'] = $this->googlemaps->create_map();

        $config['places'] = TRUE;
        $config['placesAutocompleteInputID'] = 'endCity';
        $config['map_name'] = 'map_two';
        $this->googlemaps->initialize($config);
        $data['map_two']= $this->googlemaps->create_map();
surendrasahu12 commented 9 years ago

how to place two autocomplete textboxes for from and to

surendrasahu12 commented 9 years ago

Please urgent help needed