egeloen / IvoryGoogleMapBundle

Google Map API v3 integration for your Symfony2 project.
https://github.com/egeloen/ivory-google-map
MIT License
217 stars 152 forks source link

Some Problems in Autocomplete #200

Closed houssemtayech closed 7 years ago

houssemtayech commented 7 years ago

Autocomplete:

use Ivory\GoogleMapBundle\Form\Type\PlaceAutocompleteType;

$builder->add('field', PlaceAutocompleteType::class);

first of all, there is not "PlaceAutocompleteType", it's PlacesAutocompleteType with "S" (PlaceS).

Also for variable

use Ivory\GoogleMapBundle\Form\Type\PlaceAutocompleteType;

$builder->add('field', PlaceAutocompleteType::class, [
    'variable' => 'place_autocomplete',
]);

it generate this problem:

The option "variable" does not exist. Defined options are: "action", "allow_extra_fields", "async", "attr", "auto_initialize", "block_name", "bound", "by_reference", "cascade_validation", "component_restrictions", "compound", "constraints", "csrf_field_name", "csrf_message", "csrf_protection", "csrf_provider", "csrf_token_id", ...

Configure Country

use Ivory\GoogleMap\Place\AutocompleteType;
use Ivory\GoogleMapBundle\Form\Type\PlaceAutocompleteType;

$builder->add('field', PlaceAutocompleteType::class, [
    AutocompleteComponentType::COUNTRY => 'fr'
]);

Ivory\GoogleMap\Place\AutocompleteType

doesn't exist but there are

Ivory\GoogleMap\Places\AutocompleteType

with "S" (PlaceS), however AutocompleteComponentType::COUNTRY doesn't work

egeloen commented 7 years ago

@houssemtayech Thanks for your report but unfortunatelly, there is nothing to fix. Let make a long story short, the online doc is the 3.x one (not yet release but I will in the next weeks) whereas it seems you rely on the 2.x code.

houssemtayech commented 7 years ago

That's cool I'm waiting :)

egeloen commented 7 years ago

Closing as everything is working fine and it is a duplicate of #197