protected function getLibraries(Map $map)
    {
        $libraries = $map->getLibraries();

        $encodedPolylines = $map->getEncodedPolylines();
        if (!empty($encodedPolylines)) {
            $libraries[] = 'geometry';
        }

        return array_unique($libraries);
    }
protected function getLibraries(Map $map)
    {
        $libraries = $map->getLibraries();

        $encodedPolylines = $map->getEncodedPolylines();
        if (!empty($encodedPolylines)) {
            $libraries[] = 'geometry';
        }

        return array_unique($libraries);
    }
protected function getLibraries ( Map $ map ) { $ libraries = $ map -> getLibraries ( ) ; $ encodedPolylines = $ map -> getEncodedPolylines ( ) ; if ( ! empty ( $ encodedPolylines ) ) { $ libraries [ ] = 'geometry' ; } return array_unique ( $ libraries ) ; }
Gets the libraries needed for the map.

@param \Ivory\GoogleMap\Map $map The map.

@return array The map libraries.
Gets the libraries needed for the map .