<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic [Universal Windows Platform] PictureMarkerSymbol and Local Folder in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/universal-windows-platform-picturemarkersymbol-and/m-p/136381#M1538</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: Helvetica, sans-serif;"&gt;Hi Everyone,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: Helvetica, sans-serif;"&gt;I am currently developing an app on the Universal Windows Platform with Esri Runtime for Dotnet10.2.6.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: Helvetica, sans-serif;"&gt;I have a dynamic list of Images that needs to be applied different Color before being inserted into the Esri Map via PictureMarkerSymbol. I am currently facing problem trying to load an image from my App’s Local folder into the PictureMarkerSymbol although I have no problem loading an image that is already included In the project.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: Helvetica, sans-serif;"&gt;This is the code that is able to load the Image properly into a Image control:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; var folder = Windows.Storage.ApplicationData.Current.LocalFolder;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; var file = await folder.GetFileAsync("test.png");&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; Uri path = new Uri(file.Path, UriKind.Absolute);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; image_Button.Source = new BitmapImage(path);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: Helvetica, sans-serif;"&gt;This is the code that is not loading the same image correctly for the PictureMarkerSymbol:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; var folder = Windows.Storage.ApplicationData.Current.LocalFolder;&lt;/EM&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;EM&gt; var file = await folder.GetFileAsync("test.png");&lt;/EM&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;EM&gt; Uri path = new Uri(file.Path, UriKind.Absolute);&lt;/EM&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;EM&gt; await myPicMarkerSymbol.SetSourceAsync(path)&lt;/EM&gt;&lt;SPAN style="font-size: 10.5pt; font-family: Helvetica, sans-serif;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, if I were to load an image of an image already included in the project, I will be able to load the image correctly within the PictureMarkerSymbol.&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;EM&gt; Uri path = new Uri(@"ms-appx:/// Assets/MapSymbolsDefault/test.png");&lt;/EM&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;EM&gt; await unitPicMarkerSymbol.SetSourceAsync(path);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As the online resources that I have found thus far are currently using some online image as the PictureMarkerSymbol, is the PictureMarkerSymbol able to load images from the Local folder(or Temporary, Cached etc)? If so, may I know if there are sample codes on how to do it? If not, what are the proper ways to do dynamic image generation for usage with PictureMarkerSymbol?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for any help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Dec 2015 07:11:32 GMT</pubDate>
    <dc:creator>steelissteelis</dc:creator>
    <dc:date>2015-12-28T07:11:32Z</dc:date>
    <item>
      <title>[Universal Windows Platform] PictureMarkerSymbol and Local Folder</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/universal-windows-platform-picturemarkersymbol-and/m-p/136381#M1538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: Helvetica, sans-serif;"&gt;Hi Everyone,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: Helvetica, sans-serif;"&gt;I am currently developing an app on the Universal Windows Platform with Esri Runtime for Dotnet10.2.6.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: Helvetica, sans-serif;"&gt;I have a dynamic list of Images that needs to be applied different Color before being inserted into the Esri Map via PictureMarkerSymbol. I am currently facing problem trying to load an image from my App’s Local folder into the PictureMarkerSymbol although I have no problem loading an image that is already included In the project.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: Helvetica, sans-serif;"&gt;This is the code that is able to load the Image properly into a Image control:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; var folder = Windows.Storage.ApplicationData.Current.LocalFolder;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; var file = await folder.GetFileAsync("test.png");&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; Uri path = new Uri(file.Path, UriKind.Absolute);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; image_Button.Source = new BitmapImage(path);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: Helvetica, sans-serif;"&gt;This is the code that is not loading the same image correctly for the PictureMarkerSymbol:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; var folder = Windows.Storage.ApplicationData.Current.LocalFolder;&lt;/EM&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;EM&gt; var file = await folder.GetFileAsync("test.png");&lt;/EM&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;EM&gt; Uri path = new Uri(file.Path, UriKind.Absolute);&lt;/EM&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;EM&gt; await myPicMarkerSymbol.SetSourceAsync(path)&lt;/EM&gt;&lt;SPAN style="font-size: 10.5pt; font-family: Helvetica, sans-serif;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, if I were to load an image of an image already included in the project, I will be able to load the image correctly within the PictureMarkerSymbol.&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;EM&gt; Uri path = new Uri(@"ms-appx:/// Assets/MapSymbolsDefault/test.png");&lt;/EM&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;EM&gt; await unitPicMarkerSymbol.SetSourceAsync(path);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As the online resources that I have found thus far are currently using some online image as the PictureMarkerSymbol, is the PictureMarkerSymbol able to load images from the Local folder(or Temporary, Cached etc)? If so, may I know if there are sample codes on how to do it? If not, what are the proper ways to do dynamic image generation for usage with PictureMarkerSymbol?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for any help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Dec 2015 07:11:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/universal-windows-platform-picturemarkersymbol-and/m-p/136381#M1538</guid>
      <dc:creator>steelissteelis</dc:creator>
      <dc:date>2015-12-28T07:11:32Z</dc:date>
    </item>
    <item>
      <title>Re: [Universal Windows Platform] PictureMarkerSymbol and Local Folder</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/universal-windows-platform-picturemarkersymbol-and/m-p/136382#M1539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have found out how to load from the local folder using the SetSourceAsync(Uri).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of constructing an Uri from a StorageFile path, construct an Uri using the format "ms-appdata://local/&amp;lt;filename&amp;gt;".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was hoping that the input for PictureMarkerSymbol to be similar to BitmapImage or the Image control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it will still be great if someone is able to share how to load the images into the PictureMarkerSymbol using the StorageFile, StorageFolder API for navigating through a Folder(Temp, Local, LocalCached etc..) or Library.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Dec 2015 01:21:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/universal-windows-platform-picturemarkersymbol-and/m-p/136382#M1539</guid>
      <dc:creator>steelissteelis</dc:creator>
      <dc:date>2015-12-29T01:21:41Z</dc:date>
    </item>
  </channel>
</rss>

