<?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 Clustering with picture markers using GeoJsonLayer in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/clustering-with-picture-markers-using-geojsonlayer/m-p/1260494#M80335</link>
    <description>&lt;P&gt;Hi guys, we started developing map couple of years ago when clustering wasn't supported but now I see that ArcGIS has native clustering with good performance and I want to migrate.&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I have a question: lets imagine a map with some bunch of points in different places, points on the map are some kind of buildings, first of all I want have an ability to group these points (buildings) with specific radius and additionally when user "zoom in" to buildings he should see the picture marker (pins like in google) with type of building (residential / business / land). Marker should look like pin with one-letter type R, B, L. So clusters should look like circle with random color, but when user zoom in he should see marked points.&lt;/P&gt;&lt;P&gt;Is it possible to implement using GeoJsonLayer?&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;geoJsonLayer &lt;/SPAN&gt;&lt;SPAN&gt;= &lt;/SPAN&gt;&lt;SPAN&gt;new &lt;/SPAN&gt;&lt;SPAN&gt;GeoJSONLayer&lt;/SPAN&gt;&lt;SPAN&gt;({&lt;BR /&gt;&lt;/SPAN&gt;  &lt;SPAN&gt;url&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;'url-to-get-data-in-geojson-format'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;  &lt;SPAN&gt;copyright&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"USGS Earthquakes"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;  &lt;SPAN&gt;popupTemplate&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;template&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;  &lt;SPAN&gt;renderer&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;renderer2&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;  &lt;SPAN&gt;outFields&lt;/SPAN&gt;&lt;SPAN&gt;: [&lt;/SPAN&gt;&lt;SPAN&gt;'buildingNumber&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;'buildingType'&lt;/SPAN&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;});&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;So data should be clustered by geo json points but when user "zoom in" he should see different picture markers depending on "buildingType"&lt;/P&gt;&lt;P&gt;Greatly thankful for any info or help links how to implement it!&lt;/P&gt;</description>
    <pubDate>Wed, 22 Feb 2023 15:46:18 GMT</pubDate>
    <dc:creator>RomanUC</dc:creator>
    <dc:date>2023-02-22T15:46:18Z</dc:date>
    <item>
      <title>Clustering with picture markers using GeoJsonLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/clustering-with-picture-markers-using-geojsonlayer/m-p/1260494#M80335</link>
      <description>&lt;P&gt;Hi guys, we started developing map couple of years ago when clustering wasn't supported but now I see that ArcGIS has native clustering with good performance and I want to migrate.&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I have a question: lets imagine a map with some bunch of points in different places, points on the map are some kind of buildings, first of all I want have an ability to group these points (buildings) with specific radius and additionally when user "zoom in" to buildings he should see the picture marker (pins like in google) with type of building (residential / business / land). Marker should look like pin with one-letter type R, B, L. So clusters should look like circle with random color, but when user zoom in he should see marked points.&lt;/P&gt;&lt;P&gt;Is it possible to implement using GeoJsonLayer?&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;geoJsonLayer &lt;/SPAN&gt;&lt;SPAN&gt;= &lt;/SPAN&gt;&lt;SPAN&gt;new &lt;/SPAN&gt;&lt;SPAN&gt;GeoJSONLayer&lt;/SPAN&gt;&lt;SPAN&gt;({&lt;BR /&gt;&lt;/SPAN&gt;  &lt;SPAN&gt;url&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;'url-to-get-data-in-geojson-format'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;  &lt;SPAN&gt;copyright&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"USGS Earthquakes"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;  &lt;SPAN&gt;popupTemplate&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;template&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;  &lt;SPAN&gt;renderer&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;renderer2&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;  &lt;SPAN&gt;outFields&lt;/SPAN&gt;&lt;SPAN&gt;: [&lt;/SPAN&gt;&lt;SPAN&gt;'buildingNumber&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;'buildingType'&lt;/SPAN&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;});&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;So data should be clustered by geo json points but when user "zoom in" he should see different picture markers depending on "buildingType"&lt;/P&gt;&lt;P&gt;Greatly thankful for any info or help links how to implement it!&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2023 15:46:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/clustering-with-picture-markers-using-geojsonlayer/m-p/1260494#M80335</guid>
      <dc:creator>RomanUC</dc:creator>
      <dc:date>2023-02-22T15:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: Clustering with picture markers using GeoJsonLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/clustering-with-picture-markers-using-geojsonlayer/m-p/1264161#M80456</link>
      <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure if you already found your answers. What you are asking can be done and much more.&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have tons of samples that show different use cases:&amp;nbsp;&lt;A href="https://next.sites.afd.arcgis.com/javascript/latest/sample-code/?tagged=clustering" target="_blank"&gt;https://next.sites.afd.arcgis.com/javascript/latest/sample-code/?tagged=clustering&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Clustering is also really well documented including this guide:&amp;nbsp;&lt;A href="https://next.sites.afd.arcgis.com/javascript/latest/visualization/high-density-data/clustering/" target="_blank"&gt;https://next.sites.afd.arcgis.com/javascript/latest/visualization/high-density-data/clustering/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a simple codepen just in case: &lt;A href="https://codepen.io/U_B_U/pen/eYLWXpP?editors=100" target="_blank"&gt;https://codepen.io/U_B_U/pen/eYLWXpP?editors=100&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;-Undral&lt;/P&gt;</description>
      <pubDate>Fri, 03 Mar 2023 21:00:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/clustering-with-picture-markers-using-geojsonlayer/m-p/1264161#M80456</guid>
      <dc:creator>UndralBatsukh</dc:creator>
      <dc:date>2023-03-03T21:00:50Z</dc:date>
    </item>
  </channel>
</rss>

