I develop an application using MapSuite 10 for Winforms. I want to know if there is a way to create a custom class that inherits any style (PointStyle, AreaStyle…) and overrides the DrawCore sub in order to display a feature from the IEnurable features input in a custom way (different images, texts…) or dynamically create/exclude features (as the ClusterPointStyle does)
I have already used this code.
Imports System.Collections.ObjectModel
Imports Microsoft.Office.Core
Imports ThinkGeo.MapSuite.Drawing
Imports ThinkGeo.MapSuite.Shapes
Imports ThinkGeo.MapSuite.Styles
<Serializable()>
Public Class MyCustomStyle
Inherits
Sub New()
MyBase.New()
End Sub
Protected Overrides Sub DrawCore(features As IEnumerable(Of Feature), canvas As GeoCanvas, labelsInThisLayer As Collection(Of SimpleCandidate), labelsInAllLayers As Collection(Of SimpleCandidate))
MyBase.DrawCore(features, canvas, labelsInThisLayer, labelsInAllLayers)
'I don't want to use DrawCore as it is. Is there a way for me to create something more custom
End Sub
End Class