PHP code example of genealabs / nova-map-marker-field

1. Go to this page and download the library: Download genealabs/nova-map-marker-field 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/ */

    

genealabs / nova-map-marker-field example snippets


use GeneaLabs\NovaMapMarkerField\MapMarker;

MapMarker::make("Location"),

MapMarker::make("Location")
    ->latitude('lat')
    ->longitude('long'),

MapMarker::make("Location")
    ->defaultZoom(8)
    ->defaultLatitude(41.823611)
    ->defaultLongitude(-71.422222),

MapMarker::make("Location")
    ->centerCircle($radiusInMeters, $color, $borderWidth, $backgroundOpacity),

MapMarker::make("Location")
    ->searchProvider('google')
    ->searchProviderKey('xxxxxxxxxxxxxxxxxxxxxxxxxxx'),

MapMarker::make('Location')
    ->searchLabel('Enter Address');

MapMarker::make("Location")
    ->tileProvider('http://{s}.somedomain.com/{foo}/{z}/{x}/{y}.png'),

  MapMarker::make('Location')
      ->listenToEventName('customCenterEventTriggerName');
  
sh
  php artisan vendor:publish --provider="GeneaLabs\NovaMapMarkerField\Providers\Service"