PHP code example of naif / map_address

1. Go to this page and download the library: Download naif/map_address 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/ */

    

naif / map_address example snippets



MapAddress::make('address'),

//You can set the initial map location. By default (United States)
 MapAddress::make('address')
    ->initLocation(40.730610,-98.935242),

//You can also set the map zoom level. By default (4)
 MapAddress::make('address')
    ->initLocation(40.730610,-98.935242)
    ->zoom(12),

bash
php artisan vendor:publish --provider="Naif\MapAddress\FieldServiceProvider"