Thanks for the info, I actually already got that far. my problem really seem to be in the loop.
The Zone method you pointed to has this:
foreach (var item in ordered_hack(Shape))
I know I have access to a @Model. but how do I loop through the shapes that is contains? @Model is dynamic so no intellisense really.
I would think it would go something like this:
@foreach (var shape in Model)
but the problem is that Model has some things that aren't shapes. Like Model.ID and Model.Classes.