TileStache知识集锦
常见问题
如何缓存Bing、Yahoo等厂商提供的卫星图
添加代理(proxy)类型的图层,设置provider为相应的厂商。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
{ "layers": { ...... "bing-satellite": { "provider": { "name" : "proxy", "provider" : "MICROSOFT_AERIAL" } } } } |
内置的可用厂商可以到下面的代码中寻找:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# a handy list of possible providers, which isn't # to say that you can't go writing your own. builtinProviders = { 'OPENSTREETMAP': OpenStreetMap.Provider, 'OPEN_STREET_MAP': OpenStreetMap.Provider, 'BLUE_MARBLE': BlueMarble.Provider, 'MAPQUEST_ROAD': MapQuest.RoadProvider, 'MAPQUEST_AERIAL': MapQuest.AerialProvider, 'MICROSOFT_ROAD': Microsoft.RoadProvider, 'MICROSOFT_AERIAL': Microsoft.AerialProvider, 'MICROSOFT_HYBRID': Microsoft.HybridProvider, 'YAHOO_ROAD': Yahoo.RoadProvider, 'YAHOO_AERIAL': Yahoo.AerialProvider, 'YAHOO_HYBRID': Yahoo.HybridProvider, 'CLOUDMADE_ORIGINAL': CloudMade.OriginalProvider, 'CLOUDMADE_FINELINE': CloudMade.FineLineProvider, 'CLOUDMADE_TOURIST': CloudMade.TouristProvider, 'CLOUDMADE_FRESH': CloudMade.FreshProvider, 'CLOUDMADE_PALEDAWN': CloudMade.PaleDawnProvider, 'CLOUDMADE_MIDNIGHTCOMMANDER': CloudMade.MidnightCommanderProvider, 'STAMEN_TONER': Stamen.TonerProvider, 'STAMEN_TERRAIN': Stamen.TerrainProvider, 'STAMEN_WATERCOLOR': Stamen.WatercolorProvider, } |
Leave a Reply