<?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: How to use Heat Map Renderer in Swift 5 in Swift Maps SDK Questions</title>
    <link>https://community.esri.com/t5/swift-maps-sdk-questions/how-to-use-heat-map-renderer-in-swift-5/m-p/1416784#M259</link>
    <description>&lt;P&gt;Hello &lt;A href="https://community.esri.com/t5/user/viewprofilepage/user-id/713138" target="_self"&gt;&lt;SPAN class=""&gt;mohdarshad&lt;/SPAN&gt;&lt;/A&gt;,&lt;BR /&gt;&lt;BR /&gt;Thanks for your question. This question should likely be posted under the&amp;nbsp;ArcGIS Runtime SDK for iOS Questions &lt;A href="https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/bd-p/arcgis-runtime-sdk-for-ios-questions" target="_self"&gt;forum&lt;/A&gt;&amp;nbsp;since it specifies use of&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://developers.arcgis.com/ios/api-reference/interface_a_g_s_heatmap_renderer.html" target="_self"&gt;AGSArcGISTiledLayer&lt;/A&gt;.&lt;BR /&gt;&lt;BR /&gt;In regards to constructing a &lt;A href="https://developers.arcgis.com/swift/api-reference/documentation/arcgis/heatmaprenderer/" target="_self"&gt;HeatMapRenderer&lt;/A&gt;, it can be constructed in the Swift SDK by creating a Web Map in the AGOL Map Viewer, where the renderer is accessible from the map's feature layer. Another option to construct a HeatMapRenderer is by using the "fromJSON(_:)" method with custom JSON which is covered in this &lt;A href="https://developers.arcgis.com/web-map-specification/objects/heatmapRenderer/" target="_self"&gt;api ref doc&lt;/A&gt;.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="swift"&gt;let renderer = try? HeatmapRenderer.fromJSON(
    """
    {
      "type": "heatmap",
      "blurRadius": 10,
      "colorStops": [
        { "ratio": 0, "color": [ 255, 255, 255, 0 ] },
        { "ratio": 0.1, "color": [ 255, 255, 0, 50 ] },
        { "ratio": 1, "color": [ 255, 0, 0, 200 ] }
      ],
      "field": null,
      "maxPixelIntensity": 100,
      "minPixelIntensity": 0
    }
    """
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please reach out with any further questions.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 30 Apr 2024 16:46:32 GMT</pubDate>
    <dc:creator>Destiny_Hochhalter</dc:creator>
    <dc:date>2024-04-30T16:46:32Z</dc:date>
    <item>
      <title>How to use Heat Map Renderer in Swift 5</title>
      <link>https://community.esri.com/t5/swift-maps-sdk-questions/how-to-use-heat-map-renderer-in-swift-5/m-p/1416380#M258</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I want to implement a heat map with&amp;nbsp;&lt;/SPAN&gt;AGSArcGISTiledLayer but I could not find any document. My mobile application displays multiple markers and marker has their counts. I want to use that count and create a heat map. It would be very helpful If anyone could share some samples or suggestions.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 29 Apr 2024 07:25:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/swift-maps-sdk-questions/how-to-use-heat-map-renderer-in-swift-5/m-p/1416380#M258</guid>
      <dc:creator>mohdarshad</dc:creator>
      <dc:date>2024-04-29T07:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Heat Map Renderer in Swift 5</title>
      <link>https://community.esri.com/t5/swift-maps-sdk-questions/how-to-use-heat-map-renderer-in-swift-5/m-p/1416784#M259</link>
      <description>&lt;P&gt;Hello &lt;A href="https://community.esri.com/t5/user/viewprofilepage/user-id/713138" target="_self"&gt;&lt;SPAN class=""&gt;mohdarshad&lt;/SPAN&gt;&lt;/A&gt;,&lt;BR /&gt;&lt;BR /&gt;Thanks for your question. This question should likely be posted under the&amp;nbsp;ArcGIS Runtime SDK for iOS Questions &lt;A href="https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/bd-p/arcgis-runtime-sdk-for-ios-questions" target="_self"&gt;forum&lt;/A&gt;&amp;nbsp;since it specifies use of&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://developers.arcgis.com/ios/api-reference/interface_a_g_s_heatmap_renderer.html" target="_self"&gt;AGSArcGISTiledLayer&lt;/A&gt;.&lt;BR /&gt;&lt;BR /&gt;In regards to constructing a &lt;A href="https://developers.arcgis.com/swift/api-reference/documentation/arcgis/heatmaprenderer/" target="_self"&gt;HeatMapRenderer&lt;/A&gt;, it can be constructed in the Swift SDK by creating a Web Map in the AGOL Map Viewer, where the renderer is accessible from the map's feature layer. Another option to construct a HeatMapRenderer is by using the "fromJSON(_:)" method with custom JSON which is covered in this &lt;A href="https://developers.arcgis.com/web-map-specification/objects/heatmapRenderer/" target="_self"&gt;api ref doc&lt;/A&gt;.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="swift"&gt;let renderer = try? HeatmapRenderer.fromJSON(
    """
    {
      "type": "heatmap",
      "blurRadius": 10,
      "colorStops": [
        { "ratio": 0, "color": [ 255, 255, 255, 0 ] },
        { "ratio": 0.1, "color": [ 255, 255, 0, 50 ] },
        { "ratio": 1, "color": [ 255, 0, 0, 200 ] }
      ],
      "field": null,
      "maxPixelIntensity": 100,
      "minPixelIntensity": 0
    }
    """
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please reach out with any further questions.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2024 16:46:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/swift-maps-sdk-questions/how-to-use-heat-map-renderer-in-swift-5/m-p/1416784#M259</guid>
      <dc:creator>Destiny_Hochhalter</dc:creator>
      <dc:date>2024-04-30T16:46:32Z</dc:date>
    </item>
  </channel>
</rss>

