How to create a new instance of a GraphicCollection

411
2
12-13-2016 01:59 PM
ThomasArnold
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
dotMorten_esri
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.

ThomasArnold
New Contributor II

okay, I understand, like:

GraphicsOverlay overlay = new GraphicsOverlay();

GraphicCollection collection = overlay.Graphics;

0 Kudos