Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)
Return map instance given a provider, two corner locations, and dimensions point.
    

        def mapByExtent(provider, locationA, locationB, dimensions):
    """ Return map instance given a provider, two corner locations, and dimensions point.
    """
    mapCoord, mapOffset = calculateMapExtent(provider, dimensions.x, dimensions.y, locationA, locationB)

    return Map(provider, dimensions, mapCoord, mapOffset)
        


src/t/i/TileStache-HEAD/scripts/tilestache-compose.py   TileStache(Download)
            locationB = ModestMaps.Geo.Location(latB, lonB)
 
            map = ModestMaps.mapByExtent(provider, locationA, locationB, dimensions)
 
        elif options.extent and options.zoom:

src/m/o/modestmaps-py-HEAD/compose.py   modestmaps-py(Download)
            locationB = ModestMaps.Geo.Location(latB, lonB)
 
            map = ModestMaps.mapByExtent(provider, locationA, locationB, dimensions)
 
        elif options.extent and options.zoom:

src/m/o/modestmaps-py-HEAD/wscompose/__init__.py   modestmaps-py(Download)
        dims = ModestMaps.Core.Point(self.ctx['width'], self.ctx['height']);
 
        self.ctx['map'] = ModestMaps.mapByExtent(provider, sw, ne, dims)
 
        coord, offset = ModestMaps.calculateMapExtent(provider,

src/f/l/flickr-tools-HEAD/draw_shapefiles.py   flickr-tools(Download)
        provider = ModestMaps.builtinProviders[kwargs['provider']]()
 
        mm_obj = ModestMaps.mapByExtent(provider, sw, ne, dims)
        mm_img = mm_obj.draw()