rwilson504 / PCFControls

Reusable PowerApps Control Framework (PCF) controls.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pin Clustering

en4cer opened this issue · comments

Would it be possible to add pin clustering to this control?

@en4cer, Thanks for the suggestion. I have updated the control to have clustering now. Additionally i added some code to reduce the number of time the calendar will attempt to load the data which should speed it up a bit. I added a few properties to the controls.

Clustering Enabled (Text) - Set to true or false
Clustering Placement (Enum) - Mean Average or First Location See Definitions
Cluster Grid Size (Number) - The width and height of the gird cells used for clustering in pixels
Cluster Pushpin Color - Set the color to a hex value to distinguish the difference between a cluster pin and a regular pin. If you don't set it the default with be the default pin color.

Important Note - Be aware that because new properties were added to the PCF component you will need to complete the following for each view containing this component. If you do not complete these steps your view may no longer load.

  • Open each view containing this component
  • Click on Custom Controls link on left
  • Click on the component name
  • Update the properties if you want
  • Click the OK button
  • Save the view
  • Publish the view

image

Here is an example using a large data set.

image