public function encodeTileLayer(TileLayer $layer, Encoder $builder)
    {
        return sprintf(
            '%s = L.tileLayer(%s);',
            $builder->encodeReference($layer),
            $builder->encodeArguments(array($layer->getUrl(), $layer->getOptions()))
        );
    }
public function encodeTileLayer(TileLayer $layer, Encoder $builder)
    {
        return sprintf(
            '%s = L.tileLayer(%s);',
            $builder->encodeReference($layer),
            $builder->encodeArguments(array($layer->getUrl(), $layer->getOptions()))
        );
    }
public function encodeTileLayer ( TileLayer $ layer , Encoder $ builder ) { return sprintf ( '%s = L.tileLayer(%s);' , $ builder -> encodeReference ( $ layer ) , $ builder -> encodeArguments ( array ( $ layer -> getUrl ( ) , $ layer -> getOptions ( ) ) ) ) ; }
Encode a tile layer.

@param TileLayer $layer   The layer.
@param Encoder   $builder The builder.

@return bool
Encode a tile layer .