<?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 Re: Creating a FeatureLayer from a FeatureCollection. Base64 in Internet Explorer in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/creating-a-featurelayer-from-a-featurecollection/m-p/92926#M8453</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Kelly. Thanks! Wonderful! That did it!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The solution then is easy, as you've described in your first posting: Adjust the url property of the symbol to the full URL and IE will use that URL definition for the rendering. That will do it. Also thanks for your second post for shorten the layer-definition. I will customize the whole layerDefinition in one way. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;All in all I think that this is a cool concept of drawing graphics on the graphics layer without dealing with the symbolization rules. I'll test it with some more sophisticated services and data.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Axel&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;p.s.: to complete the whole thing, a short explanation what I'm doing. I'm uploading a XML and show it in the JS-client. Because some have asked how to do it, here's my way, based on ASPX and JS-API.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;OL&gt;&lt;BR /&gt;&lt;LI&gt;Create an ASPX page (.NET 3.5) and put your JS-Client in it.&lt;/LI&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;LI&gt;Put a form (runat sever) and an asp:ScriptManager in it.&lt;/LI&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;LI&gt;Put an AsyncFileUpload on it. It's part of the AJAX Control Toolkit that is shipped with the AGS 10 (i guess at least: ADF, maybe also Server) installation. This AsyncFileUpload control is a bit clumsy but it avoids a page-refresh after uploading. Haven't tested it with a standard asp File Upload in an iframe.&lt;/LI&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;LI&gt;Put an asp:TextBox in the page, multiline. This will act as a container for communication between ASPX backend and JS frontend.&lt;/LI&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;LI&gt;Put a dijit.form.Button below that with the onClick event: showOnMap(); This method will grab the content of the TextBox (dojo.byId("TextBox1")) as the JSON FeatureSet (created below) and fill the myFeatureSet variable (see previous post) with it.&lt;/LI&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;LI&gt;In the Default.aspx.cs write the AsyncFileUpload1_UploadedComplete method. Grab the contents of your uploaded file, parse it and create the JSON FeatureSet. Push it back into the text-box with:&lt;/LI&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;ScriptManager.RegisterClientScriptBlock(AsyncFileUpload1, AsyncFileUpload1.GetType(), "text", "top.document.getElementById('TextBox1').value='" + json + "';",
&amp;nbsp; true);&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;Take care that the text-box doesn't understand "\r\n" or System.Environment.NewLine. So avoid new lines when you create your JSON. You can choose another way to put the JSON to the client,&amp;nbsp; I tried to give it directly to my showOnMap() method, but it didn't find my GraphicsLayer. With this text-box you can also shortcut for debugging and paste the JSON directly. &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;BR /&gt;&lt;/OL&gt;&lt;BR /&gt;&lt;SPAN&gt;That's in short all you have to do.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Dec 2021 23:33:24 GMT</pubDate>
    <dc:creator>AxelSchaefer</dc:creator>
    <dc:date>2021-12-10T23:33:24Z</dc:date>
    <item>
      <title>Creating a FeatureLayer from a FeatureCollection. Base64 in Internet Explorer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/creating-a-featurelayer-from-a-featurecollection/m-p/92922#M8449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi. This is difficult.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm building a client, where the data is pushed to dynamically (via an upload mechanism, but that is not the topic of this post). My way to implement is the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;UL&gt;&lt;LI&gt;I am using Version 2.1 of the API.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;I am using the FeatureLayer with the esri.layers.FeatureLayer(featureCollectionObject, options?) constructor.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;I want to use a class-break symbolization. Ideally I don't want to do it myself.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;I want to use an existing map service for the symbolization rules and the featureCollection.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;I have to use InternetExplorer.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;I have some problems with the base64 encoding in the PictureMarkerSymbols.&lt;/LI&gt;&lt;BR /&gt;&lt;/UL&gt;&lt;BR /&gt;&lt;SPAN&gt;What is the error? My Picture Marker Symbols are not shown in Internet Explorer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What do I do? Here is the example for you to reproduce. This example is based on the Notes MapService at &lt;/SPAN&gt;&lt;A href="http://sampleserver5.arcgisonline.com/ArcGIS/rest/services/Notes/MapServer/" rel="nofollow noopener noreferrer" target="_blank"&gt;http://sampleserver5.arcgisonline.com/ArcGIS/rest/services/Notes/MapServer/&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;(1) Create a json object that will be my data.&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var myjson = { "displayFieldName": "name", "fieldAliases": { "name": "Name" }, "geometryType": "esriGeometryPoint", "spatialReference": { "wkid": 4326 }, ...&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This JSON is an example content. You can grab the whole JSON from here: &lt;/SPAN&gt;&lt;A href="http://sampleserver5.arcgisonline.com/ArcGIS/rest/services/Notes/MapServer/0/query?text=&amp;amp;geometry=&amp;amp;geometryType=esriGeometryPoint&amp;amp;inSR=&amp;amp;spatialRel=esriSpatialRelIntersects&amp;amp;relationParam=&amp;amp;objectIds=&amp;amp;where=1%3D1&amp;amp;time=&amp;amp;returnIdsOnly=false&amp;amp;returnGeometry=true&amp;amp;maxAllowableOffset=&amp;amp;outSR=&amp;amp;outFields=%2A&amp;amp;f=pjson" rel="nofollow noopener noreferrer" target="_blank"&gt;http://sampleserver5.arcgisonline.com/ArcGIS/rest/services/Notes/MapServer/0/query?text=&amp;amp;geometry=&amp;amp;geometryType=esriGeometryPoint&amp;amp;inSR=&amp;amp;spatialRel=esriSpatialRelIntersects&amp;amp;relationParam=&amp;amp;objectIds=&amp;amp;where=1%3D1&amp;amp;time=&amp;amp;returnIdsOnly=false&amp;amp;returnGeometry=true&amp;amp;maxAllowableOffset=&amp;amp;outSR=&amp;amp;outFields=%2A&amp;amp;f=pjson&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The variable is filled with that value (the parameter f=json).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;(2) Create a feature set from that JSON object:&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var myFeatureSet = new esri.tasks.FeatureSet(myjson);&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;(3) Create a layer definition for the featureCollection:&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var mylayerDefinition = { "id": 0, "name": "Notes", "type": "Feature Layer", ...&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This JSON is an example content. You can grab it from here: &lt;/SPAN&gt;&lt;A href="http://sampleserver5.arcgisonline.com/ArcGIS/rest/services/Notes/MapServer/0?f=json&amp;amp;pretty=true" rel="nofollow noopener noreferrer" target="_blank"&gt;http://sampleserver5.arcgisonline.com/ArcGIS/rest/services/Notes/MapServer/0?f=json&amp;amp;pretty=true&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The variable is filled with that content (without the parameter pretty=true).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;(4) Create a featureCollection from the layerDefinition and the featureSet:&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var featureCollection = {
&amp;nbsp;&amp;nbsp; layerDefinition: mylayerDefinition,
&amp;nbsp;&amp;nbsp; featureSet: myFeatureSet
};&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;(5) Create a FeatureLayer from that FeatureCollection. For example:&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;featureLayer = new esri.layers.FeatureLayer(featureCollection, {
&amp;nbsp; mode: esri.layers.FeatureLayer.MODE_ONDEMAND,
&amp;nbsp; outFields: ["objectid", "note", "link", "name", "email", "phone"]
});&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;(6) Add that FeatureLayer to your map.&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;map.addLayer(featureLayer);&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;What happens?&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The client will show your data from the myFeatureSet. Later I will replace that with my uploaded content. The data will be symbolized by the definitions in the LayerDefinition. So I don't need to make a custom renderer from my object.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Everything works fine in Firefox, Chrome and Opera.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunetaly that doesn't work in Internet Explorer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Why?&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Because the PictureMakerSymbols in the Service are encoded with base64. IE doesn't support that yet. The symbol is places on the make like this (output from Firebug):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[HTML]&amp;lt;image fill-opacity="0" stroke="none" stroke-opacity="0" stroke-width="1" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="4" x="373.3333333333333" y="206.33333333333334" width="37.33333333333333" height="37.33333333333333" preserveAspectRatio="none" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAAAAAXNSR0IB2cksfwAAAAlwSFlzAAAOxAAADsQBlSsOGwAABXhJREFUWIXt2GtsFFUUwPH/3ZnZO93uYluKFNo6uyC0pVJrUaTKM1FeMWpZI1/BD2iiMSqKCmhCRa0EMDHRGAxPrSboiq9QsEahQhUDgihvkL3EhJogNRaU6VbXD7NdOnQL3bU+EjlfdvfOzL2/nHPPzO7q/EdD/7cBPcVlWLrxt8Esy4orpUSm1/c5zLKsOED0zRbEzZnP0yewTsyy+1oIj29xjWeatb8E65odV2hAxkV0IiOYZVnxUH47n72UAAnAk3gV9vmxfwLmzk5Lzxg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55SZhSSmBZ8QNH/JSVmnzTUIRV0UZO0R+UTIoB2S4MwkPLLkXBqGHkVlybxHS2+JMvFGKaOq+vW0NF+wjUyTS6MlXUzLI5uGMA105vS2TGcGHO/NhB6/c/UVxdRMH1I1wY0Hi8biCGriGlwZrVK1FKCZWyiGnAOp8IYya38WXjlXTdvMe2niE0Ngd/QTb+ghwXBgSN27LZ8kUAUxq8Wf86sVisx3tX2rDOyAoEmDG7g0UzdQrLPeRZWQyd6OuGQXh4dV0/Tpw00XUdKQ1WrVzRK1DasM4ODVRUECgPkGcZF2A0wMPcZ/zohoGh6UjpZfWq17pe3+tI+8eIaZoseEFQ/4qRxDwwX8MrTXTdwDR1DN3gnbfqOXPuXNqgjGBKKZGfmxuvuG4U987T0HUd3ZBk+bwYXh1D01m7dnXy3ExAGcHAeRqYpkTTJKZpoHsNTkSjbN++rU9AGcMAzGwf7779dvJzX2G6RtowpZR4cenSvnZ0i//f31B/NS7D0o0/AYDZ1IqRUCINAAAAAElFTkSuQmCC" transform="matrix(1, 0, 0, 1, 0, 0)"/&amp;gt;[/HTML]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The important part is the &lt;/SPAN&gt;&lt;STRONG&gt;"xlink:href="data:image/png;base64,...".&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Questions:&lt;/STRONG&gt;&lt;BR /&gt;&lt;UL&gt;&lt;LI&gt;Is my concept clear? Is it feasible?&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;How to avoid that if I have to use Internet Explorer?&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;The URL to the PictureMarkerSymbol is part of the LayerDefinition. How can I say to the JS-API that it has to use the URL not the imageData?&lt;/LI&gt;&lt;BR /&gt;&lt;/UL&gt;&lt;BR /&gt;&lt;SPAN&gt;If I do a test by simply creating a featureLayer from the URL of this service, it also works in IE. So internally the JS-API has some algorithm to use the URL instead of the imageData.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I achive that?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for any answer. I hope, I made my topic clear... &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Axel&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 23:33:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/creating-a-featurelayer-from-a-featurecollection/m-p/92922#M8449</guid>
      <dc:creator>AxelSchaefer</dc:creator>
      <dc:date>2021-12-10T23:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a FeatureLayer from a FeatureCollection. Base64 in Internet Explorer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/creating-a-featurelayer-from-a-featurecollection/m-p/92923#M8450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Attached is the example html page.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;No warranty. &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Dec 2010 16:16:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/creating-a-featurelayer-from-a-featurecollection/m-p/92923#M8450</guid>
      <dc:creator>AxelSchaefer</dc:creator>
      <dc:date>2010-12-07T16:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a FeatureLayer from a FeatureCollection. Base64 in Internet Explorer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/creating-a-featurelayer-from-a-featurecollection/m-p/92924#M8451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&lt;SPAN&gt;It looks like you'll need to specify the url to the symbol for this to work in IE 8. If the url property doesn't contain &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://" rel="nofollow noopener noreferrer" target="_blank"&gt;http://&lt;/A&gt;&lt;SPAN&gt; it assumes that the location is relative. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
"symbol": {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "type": "esriPMS",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "url": "http://somename/somelocation/reddot.png",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "imageData": "iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9oGGBcGLvZ5AIUAAATDSURBVFjD3Zg/aBt3FMe/v9+d7iSfUnNClAolFWnsRaF4LKU2HrK4hJYMKUQiJRRClnbKEE8Z2s1Dh9Bkryk+OoQshZAlhGIPaUpxlIDbRgqOIlSZoNxhx2fpTr8/HXynKL.........

&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 23:33:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/creating-a-featurelayer-from-a-featurecollection/m-p/92924#M8451</guid>
      <dc:creator>KellyHutchins</dc:creator>
      <dc:date>2021-12-10T23:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a FeatureLayer from a FeatureCollection. Base64 in Internet Explorer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/creating-a-featurelayer-from-a-featurecollection/m-p/92925#M8452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;On a related note its not necessary to specify all the values for the layer definition. Here's a simple layer definition that worked for me in your test application. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; var mylayerDefinition = {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "geometryType": "esriGeometryPoint",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "drawingInfo": {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "renderer": {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "type": "simple",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "symbol": {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "type": "esriPMS",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "url": "reddot.png",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "imageData": "iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9oGGBcGLvZ5AIUAAATDSURBVFjD3Zg/aBt3FMe/v9+d7iSfUnNClAolFWnsRaF4LKU2HrK4hJYMKUQiJRRClnbKEE8Z2s1Dh9Bkryk+OoQshZAlhGIPaUpxlIDbRgqOIlSZoNxhx2fpTr8/HXynKLXTnGQr/fPgkE7ip/vovff7vvd7REqJfswpFpMAJgFMABgLrt2sElwlAEuXT1mb4RcXP371c0hUMKdYfAvAGQAzGMxuAJi/fMpa2xewHUCaBppKQclmQVMpkNHRXdfJ9XUI2wav1yFsG/D9FwBNy1obGMwpFicBzAJIQtOgZDJQ83kQw+jLVdJ1wVZWwBuNEHATwJxpWUt9gznF4ucATgKAkssNBPRSwGo1/OiqaVlXIoM5xeJsGLrYxASU8XHsp/FyGZ1SqRta07LmXgnW9ZSmQZ+aAjFNDMOk48BbXAxDu8NzdJecOglgqFAAQEwT+tRUeHsy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dAhuQzgFAp1SCdJzhh9Bxeg++c0G+71T+YJZwFQC8xcWhwnUPvM9HBUv/zRHBsIcqneXlMKf6H6r8q8dQQx7cXelN9P/XqPOfGg7/CVtbtVwfC2pGAAAAAElFTkSuQmCC",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "contentType": "image/png",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "width": 15,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "height": 15
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; },
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "fields": [{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "name": "name",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "type": "esriFieldTypeString",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "alias": "Name",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "length": 50
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }]
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; };

&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 23:33:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/creating-a-featurelayer-from-a-featurecollection/m-p/92925#M8452</guid>
      <dc:creator>KellyHutchins</dc:creator>
      <dc:date>2021-12-10T23:33:21Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a FeatureLayer from a FeatureCollection. Base64 in Internet Explorer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/creating-a-featurelayer-from-a-featurecollection/m-p/92926#M8453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Kelly. Thanks! Wonderful! That did it!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The solution then is easy, as you've described in your first posting: Adjust the url property of the symbol to the full URL and IE will use that URL definition for the rendering. That will do it. Also thanks for your second post for shorten the layer-definition. I will customize the whole layerDefinition in one way. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;All in all I think that this is a cool concept of drawing graphics on the graphics layer without dealing with the symbolization rules. I'll test it with some more sophisticated services and data.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Axel&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;p.s.: to complete the whole thing, a short explanation what I'm doing. I'm uploading a XML and show it in the JS-client. Because some have asked how to do it, here's my way, based on ASPX and JS-API.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;OL&gt;&lt;BR /&gt;&lt;LI&gt;Create an ASPX page (.NET 3.5) and put your JS-Client in it.&lt;/LI&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;LI&gt;Put a form (runat sever) and an asp:ScriptManager in it.&lt;/LI&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;LI&gt;Put an AsyncFileUpload on it. It's part of the AJAX Control Toolkit that is shipped with the AGS 10 (i guess at least: ADF, maybe also Server) installation. This AsyncFileUpload control is a bit clumsy but it avoids a page-refresh after uploading. Haven't tested it with a standard asp File Upload in an iframe.&lt;/LI&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;LI&gt;Put an asp:TextBox in the page, multiline. This will act as a container for communication between ASPX backend and JS frontend.&lt;/LI&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;LI&gt;Put a dijit.form.Button below that with the onClick event: showOnMap(); This method will grab the content of the TextBox (dojo.byId("TextBox1")) as the JSON FeatureSet (created below) and fill the myFeatureSet variable (see previous post) with it.&lt;/LI&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;LI&gt;In the Default.aspx.cs write the AsyncFileUpload1_UploadedComplete method. Grab the contents of your uploaded file, parse it and create the JSON FeatureSet. Push it back into the text-box with:&lt;/LI&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;ScriptManager.RegisterClientScriptBlock(AsyncFileUpload1, AsyncFileUpload1.GetType(), "text", "top.document.getElementById('TextBox1').value='" + json + "';",
&amp;nbsp; true);&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;Take care that the text-box doesn't understand "\r\n" or System.Environment.NewLine. So avoid new lines when you create your JSON. You can choose another way to put the JSON to the client,&amp;nbsp; I tried to give it directly to my showOnMap() method, but it didn't find my GraphicsLayer. With this text-box you can also shortcut for debugging and paste the JSON directly. &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;BR /&gt;&lt;/OL&gt;&lt;BR /&gt;&lt;SPAN&gt;That's in short all you have to do.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 23:33:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/creating-a-featurelayer-from-a-featurecollection/m-p/92926#M8453</guid>
      <dc:creator>AxelSchaefer</dc:creator>
      <dc:date>2021-12-10T23:33:24Z</dc:date>
    </item>
  </channel>
</rss>

