bradcornford / Googlmapper

An easy way to integrate Google Maps with Laravel
MIT License
464 stars 142 forks source link

How can the buttons be removed from the map? #369

Closed xbfast closed 3 years ago

xbfast commented 3 years ago

Good evening and thanks for your show. Is it possible to remove the control buttons from the map?

Mapper::map($ubicacion->latitud, $ubicacion->longitud, ['marker' => false, 'zoom' => 15, 'markers' => ['title' => 'You are here', 'animation' => 'DROP', 'icon' => 'http://app.sesami.fr/images/marker-black.svg']]);
        Mapper::informationWindow($ubicacion->latitud, $ubicacion->longitud, 'Location 1', ['open' => true, 'markers' => ['title' => 'Title']]);
bradcornford commented 3 years ago

Hi,

Yes, buttons can be removed from the maps using the following config options in the config/packages/cornford/googlmapper/config.php and setting their values to false:

Or by setting the config item on the map itself:

Mapper::map($ubicacion->latitud, $ubicacion->longitud, ['marker' => false, 'zoom' => 15, 'markers' => ['title' => 'You are here', 'animation' => 'DROP', 'icon' => 'http://app.sesami.fr/images/marker-black.svg', 'zoomControl' => false...]]);