ClemensFischer / XAML-Map-Control

XAML Map Control Library
Microsoft Public License
205 stars 61 forks source link

Bing map cache #35

Closed shvarevdv closed 5 years ago

shvarevdv commented 5 years ago

Hi, when i offline bingmap not showing images from cache.

ClemensFischer commented 5 years ago

BingMapsTileLayer always checks the Bing Maps Imagery Metadata Service for tile URLs. Their terms and conditions do not allow "pure" offline use. You can however directly access the cached image files by local file:// URLs.

shvarevdv commented 5 years ago

Sory, but i don't understand, i must in Maplayers class in Tilesource write way to folder with tiles?

ClemensFischer commented 5 years ago

Use a MapTileLayer with a TileSource like

TileSource = new TileSource
{
    UriFormat = @"C:\ProgramData\MapControl\TileCache\Bing Maps Road\{z}\{x}\{y}.png"
}

or similar, depending on where you cached files are stored.