Skip to content

MarkerZoomLevel

Namespace: ThinkGeo.Core

This class defines styles of markers and a zoomlevel range. When the current zoomlevel is in that range, the styles will be applied to the markers.

public class MarkerZoomLevel

Inheritance ObjectMarkerZoomLevel

Remarks:

This class defines how features will be marked based on its scale. Inside of the ZoomLevelSet there are a number of marker zoomlevels. We will determine which MarkerZoomLevel to use based on which one has the Scale property closest to the current scale. The matching one will define the styles that will be used to mark the features on the map.

Properties

IsStyleDefined

Gets whether the style is defined.

public bool IsStyleDefined { get; }

Property Value

Boolean

ApplyUntilZoomLevel

Gets or sets the zoomlevel to which the styles will be applied.

public ApplyUntilZoomLevel ApplyUntilZoomLevel { get; set; }

Property Value

ApplyUntilZoomLevel
A zoomlevel to which the styles will be applied.

Remarks:

Gets or sets the zoomlevel to which the styles will be applied.

DefaultPointMarkerStyle

Gets default style that is applied to the markers if the CustomMarkerStyle is not defined.

public PointMarkerStyle DefaultPointMarkerStyle { get; }

Property Value

PointMarkerStyle

Remarks:

Gets the style that is applied to the markers if the CustomMarkerStyle is not defined.

CustomMarkerStyle

Gets or sets a custom style that can be any type of MarkerStyle.

public MarkerStyle CustomMarkerStyle { get; set; }

Property Value

MarkerStyle

        MarkerStyle object that will be applied to the markers with higher
        priority.

Remarks:

The CustomMarkerStyle has a higher priority than the DefaultMarkerStyle. When you define both styles, the CustomMarkerStyle will be applied. The CustomMarkerStyle can be any kind of MarkStyle while DefaultMarkerStyle can not.

Constructors

MarkerZoomLevel()

Constructor of MarkerZoomLevel class.

public MarkerZoomLevel()

Remarks:

This is the constructor of MarkerZoomLevel class.

Methods

GetMarkers(IEnumerable<Feature>, MapArguments)

This method returns a collection of markers that is applied with the styles when the current zoomlevel falls into the ranges that defined.

public GeoCollection<Marker> GetMarkers(IEnumerable<Feature> features, MapArguments mapArguments)

Parameters

features IEnumerable<Feature>

        A collection of features that is applied with the styles when the current
        zoomlevel falls into the ranges that defined.

mapArguments MapArguments

Returns

GeoCollection<Marker>
A Collection of markers that created from the feature collection.

Remarks:

This method returns a collection of markers that is applied with the styles when the current zoomlevel falls into the ranges that defined.