'Initialize Proxy provider with layer and url.'

def __init__(self, layer, url=None, provider_name=None, timeout=None):

    if url:
        self.provider = ModestMaps.Providers.TemplatedMercatorProvider(url)
    elif provider_name:
        if (provider_name in ModestMaps.builtinProviders):
            self.provider = ModestMaps.builtinProviders[provider_name]()
        else:
            raise Exception(('Unkown    Modest    Maps    provider:    "%s"' % provider_name))
    else:
        raise Exception('Missing    required    url    or    provider    parameter    to    Proxy    provider')
    self.timeout = timeout
