public function setMapTypeIds(array $types)
    {
        $parsed = [];
        foreach ($types as $type) {
            $parsed[] = MapTypeId::getIsValid($type)
                ? new JsExpression($type)
                : $type;
        }

        $this->options['mapTypeIds'] = $parsed;
    }
public function setMapTypeIds(array $types)
    {
        $parsed = [];
        foreach ($types as $type) {
            $parsed[] = MapTypeId::getIsValid($type)
                ? new JsExpression($type)
                : $type;
        }

        $this->options['mapTypeIds'] = $parsed;
    }
public function setMapTypeIds ( array $ types ) { $ parsed = [ ] ; foreach ( $ types as $ type ) { $ parsed [ ] = MapTypeId :: getIsValid ( $ type ) ? new JsExpression ( $ type ) : $ type ; } $ this -> options [ 'mapTypeIds' ] = $ parsed ; }
Sets the map type ids and makes sure to get the proper value on the array

@param array $types
Sets the map type ids and makes sure to get the proper value on the array