MarkerZoomLevel¶
Namespace: ThinkGeo.UI.Blazor
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 Object → MarkerZoomLevel
Remarks:
This class defines how a feature 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¶
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.
DefaultMarkerStyle¶
Gets or sets the style that is applied to the markers if the CustomMarkerStyle is not defined.
public PointMarkerStyle DefaultMarkerStyle { get; }
Property Value¶
PointMarkerStyle
a style object that is applied to the markers.
CustomMarkerStyle¶
Gets or sets a style that can be any type of MarkerStyle.
public MarkerStyle CustomMarkerStyle { get; set; }
Property Value¶
Any type of 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 MarkerStyle while the DefaultMarkerStyle cannot.
Constructors¶
MarkerZoomLevel()¶
Initialize a new instance of the MarkerZoomLevel class.
public MarkerZoomLevel()
Remarks:
This is the default constructor. If you use this constructor, you should set the require properties on the class manually.
Methods¶
GetMarkers(IEnumerable<Feature>)¶
Returns a collection of markers to which the styles will be applied when the current zoomlevel falls into the ranges defined.
public Collection<Marker> GetMarkers(IEnumerable<Feature> features)
Parameters¶
features
IEnumerable<Feature>
A collection of markers to which the styles will be applied when the current
zoomlevel falls into the ranges defined.