src/AddressDataExtension.php
public static function getMapStyleJSON()
    {
        $folders = [
            'client/dist/js/',
            'client/dist/javascript/',
            'dist/js/',
            'dist/javascript/',
            'src/javascript/thirdparty',
            'js/',
            'javascript/',
        ];
        $file = 'mapStyle.json';

        foreach ($folders as $folder) {
            if ($style = ThemeResourceLoader::inst()->findThemedResource(
                "{$folder}{$file}",
                SSViewer::get_themes()
            )) {
                return $style;
            }
        }

        return false;
    }
public static function getMapStyleJSON()
    {
        $folders = [
            'client/dist/js/',
            'client/dist/javascript/',
            'dist/js/',
            'dist/javascript/',
            'src/javascript/thirdparty',
            'js/',
            'javascript/',
        ];
        $file = 'mapStyle.json';

        foreach ($folders as $folder) {
            if ($style = ThemeResourceLoader::inst()->findThemedResource(
                "{$folder}{$file}",
                SSViewer::get_themes()
            )) {
                return $style;
            }
        }

        return false;
    }
public static function getMapStyleJSON ( ) { $ folders = [ 'client/dist/js/' , 'client/dist/javascript/' , 'dist/js/' , 'dist/javascript/' , 'src/javascript/thirdparty' , 'js/' , 'javascript/' , ] ; $ file = 'mapStyle.json' ; foreach ( $ folders as $ folder ) { if ( $ style = ThemeResourceLoader :: inst ( ) -> findThemedResource ( "{$folder}{$file}" , SSViewer :: get_themes ( ) ) ) { return $ style ; } } return false ; }
Gets the style of the map
@return string|null
Gets the style of the map