.netwindows-phone-8deepzoommultiscaleimage

MultiScaleImage in Windows Phone 8 app with local source


I'm trying to use MultiScaleImage in a WP8 app with local source. I've composed the image structure using Deep Zoom Composer and added the files to the app project.

<MultiScaleImage x:Name="ImageMap" Source="Map/dzc_output.xml" />

The above doesn't work, no errors, just doesn't display anything. I also tried setting the source from code, but no success.

ImageMap.Source = new DeepZoomImageTileSource()
{
    UriSource = new Uri("file:///Map/dzc_output.xml")
};

I did not try with remote source - for purposes of this application I need strictly local source. Sadly, the documentation is very poor on explaining how this (or if) can be done in Windows Phone. Has anyone attempted this before?


Solution

  • MultiScaleImage doesn't support local images as tile source. There was proposal to support local storage, but it was not accepted.

    https://wpdev.uservoice.com/forums/110705-dev-platform/suggestions/1946653-deep-zoom-pan-multiscale-image