How to create a new instance of a GraphicCollection

12-13-2016 01:59 PM
New Contributor II

In Xamarin I am trying:

GraphicCollection Graphics = new GraphicCollection(); 

it does not work -> does not take 0 arguments

what I want to do is to rewrite the PointClusterer sample for the windows desktop into Xamarin Forms

0 Kudos
2 Replies
Esri Frequent Contributor

It isn't creatable or settable on the overlay.

Instead create a GraphicsOverlay. It comes with a GraphicsCollection in it that you can use. To put if another way: Think of your overlay as the graphics collection.

New Contributor II

okay, I understand, like:

GraphicsOverlay overlay = new GraphicsOverlay();

GraphicCollection collection = overlay.Graphics;

0 Kudos