PHP code example of it-blaster / yandex-maps-form-type-bundle
1. Go to this page and download the library: Download it-blaster/yandex-maps-form-type-bundle library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
it-blaster / yandex-maps-form-type-bundle example snippets
...
new Fenrizbes\YandexMapsFormTypeBundle\FenrizbesYandexMapsFormTypeBundle(),
...
...
->add('coordinates', 'yandex_maps')
...
...
->add('coordinates', 'yandex_maps', array(
'width' => 640, // The map's width
'height' => 480, // The map's height
'default' => array(
'lat' => 55.75319, // The default latitude value
'lng' => 37.619953 // The default longitude value
),
'parameters' => array(
'type' => 'yandex#map', // The default map's type
'zoom' => 11, // The initial zoom size
'scrollZoom' => false, // Enable/disable scroll zoom
'searchSupport' => false, // Enable/disable searching objects by searchControl
'controls' => array( // Enabled map's controls
'zoomControl'
)
)
))
...