PHP code example of gabrielesbaiz / nova-card-map

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

    

gabrielesbaiz / nova-card-map example snippets


use Gabrielesbaiz\NovaCardMap;


(new NovaCardMap())->width("1/2")

(new NovaCardMap())
->height('400px') // default is 300px

(new NovaCardMap())
->googleApiKey('')
->googleMapType('roadmap'), // roadmap, satellite or hybrid

(new NovaCardMap())
->type('LatLon')
->point('-6.081689','145.391881')

(new NovaCardMap())
->type('GeoJson')
->geoJson('')

{
  "type": "FeatureCollection",
  "features": [
    {
      "type": "Feature",
      "properties": {
        "popup": "I am a Popup"
      },
      "geometry": {
        "type": "Point",
        "coordinates": [
          23.8623046875,
          -30.221101852485987
        ]
      }
    }
  ]
}

(new NovaCardMap())
->popup('popup')

(new NovaCardMap())
->markerIcon('/images/marker-icon.png')