src/ECharts.php
public static function registerMap($map)
    {
        $maps = (array) $map;
        array_walk($maps, function (&$name) {
            $name = 'js/' . $name . '.js';
        });
        static::$_mapJsFiles = array_unique(array_merge(static::$_mapJsFiles, $maps));
        if (static::$_mapJsFiles) {
            MapAsset::register(Yii::$app->getView())->js = static::$_mapJsFiles;
        }
    }
public static function registerMap($map)
    {
        $maps = (array) $map;
        array_walk($maps, function (&$name) {
            $name = 'js/' . $name . '.js';
        });
        static::$_mapJsFiles = array_unique(array_merge(static::$_mapJsFiles, $maps));
        if (static::$_mapJsFiles) {
            MapAsset::register(Yii::$app->getView())->js = static::$_mapJsFiles;
        }
    }
public static function registerMap ( $ map ) { $ maps = ( array ) $ map ; array_walk ( $ maps , function ( & $ name ) { $ name = 'js/' . $ name . '.js' ; } ) ; static :: $ _mapJsFiles = array_unique ( array_merge ( static :: $ _mapJsFiles , $ maps ) ) ; if ( static :: $ _mapJsFiles ) { MapAsset :: register ( Yii :: $ app -> getView ( ) ) -> js = static :: $ _mapJsFiles ; } }
Registers the JS files of the given maps.

@param string|array $map
Registers the JS files of the given maps .