If you use the geocoding API, you need to install Geocoder which is a PHP 5.3 library for issuing Geocoding and his dependencies (Buzz or other adapters).
Add IvoryGoogleMapBundle in your composer.json:
{
"require": {
"egeloen/google-map-bundle": "*"
}
}
Now tell composer to download the bundle by running the command:
$ php composer.phar update egeloen/google-map-bundle
Add the following lines in your deps
file
[buzz]
git=http://github.com/kriswallsmith/Buzz.git
[geocoder]
git=http://github.com/willdurand/Geocoder.git
[IvoryGoogleMapBundle]
git=http://github.com/egeloen/IvoryGoogleMapBundle.git
target=/bundles/Ivory/GoogleMapBundle
Run the vendors script
./bin/vendors update
$ git submodule add http://github.com/kriswallsmith/Buzz.git vendor
$ git submodule add http://github.com/willdurand/Geocoder.git vendor
$ git submodule add http://github.com/egeloen/IvoryGoogleMapBundle.git vendor/bundles/Ivory/GoogleMapBundle
<?php
// app/autoload.php
$loader->registerNamespaces(array(
'Buzz' => __DIR__.'/../vendor/buzz/lib',
'Geocoder' => __DIR__.'/../vendor/geocoder/src',
'Ivory' => __DIR__.'/../vendor/bundles',
// ...
);
<?php
// app/AppKernel.php
public function registerBundles()
{
return array(
new Ivory\GoogleMapBundle\IvoryGoogleMapBundle(),
// ...
);
}
Next: Usage