MarkerZoomLevelSet¶
Namespace: ThinkGeo.Core
This class represents a collection of MarkerZoomLevel that determines the appearance of markers at different zoomlevels.
public class MarkerZoomLevelSet
Inheritance Object → MarkerZoomLevelSet
Remarks:
This class represents a collection of MarkerZoomLevel. Each MarkerZoomLevel has a different scale and style definition which will be applied to markers when it is the current zoomlevel.
The MarkerZoomLevelSet decides which zoomlevel applys its styles to the markers base on the current zoomlevel.
If current zoomlevel is level 03 and we defined the styles on zoomlevel as below:
markerOverlay.ZoomLevelSet.ZoomLevel04.DefaultMarkerStyle.WebImage = ...; markerOverlay.ZoomLevelSet.ZoomLevel04.DefaultMarkerStyle.Popup = ...; markerOverlay.ZoomLevelSet.ZoomLevel04.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level10;
then no zoomlevel will apply styles to the markers. There will be no markers display on the screen.
When we change the current zoomlevel to level 04, now current zoomlevel falls into the zoomlevel range (04-10) that defines styles. The ZoomlevelSet will apply the styles on the zoomlevel 04 to the markers.
Properties¶
ZoomLevel01¶
Gets the MarkerZoomLevel for Level01.
public MarkerZoomLevel ZoomLevel01 { get; }
Property Value¶
MarkerZoomLevel
A MarkerZoomLevel object which represents the Level01.
ZoomLevel02¶
Gets the MarkerZoomLevel for Level02.
public MarkerZoomLevel ZoomLevel02 { get; }
Property Value¶
MarkerZoomLevel
A MarkerZoomLevel object which represents the Level02.
ZoomLevel03¶
Gets the MarkerZoomLevel for Level03.
public MarkerZoomLevel ZoomLevel03 { get; }
Property Value¶
MarkerZoomLevel
A MarkerZoomLevel object which represents the Level03.
ZoomLevel04¶
Gets the MarkerZoomLevel for Level04.
public MarkerZoomLevel ZoomLevel04 { get; }
Property Value¶
MarkerZoomLevel
A MarkerZoomLevel object which represents the Level04.
ZoomLevel05¶
Gets the MarkerZoomLevel for Level05.
public MarkerZoomLevel ZoomLevel05 { get; }
Property Value¶
MarkerZoomLevel
A MarkerZoomLevel object which represents the Level05.
ZoomLevel06¶
Gets the MarkerZoomLevel for Level06.
public MarkerZoomLevel ZoomLevel06 { get; }
Property Value¶
MarkerZoomLevel
A MarkerZoomLevel object which represents the Level06.
ZoomLevel07¶
Gets the MarkerZoomLevel for Level07.
public MarkerZoomLevel ZoomLevel07 { get; }
Property Value¶
MarkerZoomLevel
A MarkerZoomLevel object which represents the Level07.
ZoomLevel08¶
Gets the MarkerZoomLevel for Level08.
public MarkerZoomLevel ZoomLevel08 { get; }
Property Value¶
MarkerZoomLevel
A MarkerZoomLevel object which represents the Level08.
ZoomLevel09¶
Gets the MarkerZoomLevel for Level09.
public MarkerZoomLevel ZoomLevel09 { get; }
Property Value¶
MarkerZoomLevel
A MarkerZoomLevel object which represents the Level09.
ZoomLevel10¶
Gets the MarkerZoomLevel for Level10.
public MarkerZoomLevel ZoomLevel10 { get; }
Property Value¶
MarkerZoomLevel
A MarkerZoomLevel object which represents the Level10.
ZoomLevel11¶
Gets the MarkerZoomLevel for Level11.
public MarkerZoomLevel ZoomLevel11 { get; }
Property Value¶
MarkerZoomLevel
A MarkerZoomLevel object which represents the Level11.
ZoomLevel12¶
Gets the MarkerZoomLevel for Level12.
public MarkerZoomLevel ZoomLevel12 { get; }
Property Value¶
MarkerZoomLevel
A MarkerZoomLevel object which represents the Level12.
ZoomLevel13¶
Gets the MarkerZoomLevel for Level13.
public MarkerZoomLevel ZoomLevel13 { get; }
Property Value¶
MarkerZoomLevel
A MarkerZoomLevel object which represents the Level13.
ZoomLevel14¶
Gets the MarkerZoomLevel for Level14.
public MarkerZoomLevel ZoomLevel14 { get; }
Property Value¶
MarkerZoomLevel
A MarkerZoomLevel object which represents the Level14.
ZoomLevel15¶
Gets the MarkerZoomLevel for Level15.
public MarkerZoomLevel ZoomLevel15 { get; }
Property Value¶
MarkerZoomLevel
A MarkerZoomLevel object which represents the Level15.
ZoomLevel16¶
Gets the MarkerZoomLevel for Level16.
public MarkerZoomLevel ZoomLevel16 { get; }
Property Value¶
MarkerZoomLevel
A MarkerZoomLevel object which represents the Level16.
ZoomLevel17¶
Gets the MarkerZoomLevel for Level17.
public MarkerZoomLevel ZoomLevel17 { get; }
Property Value¶
MarkerZoomLevel
A MarkerZoomLevel object which represents the Level17.
ZoomLevel18¶
Gets the MarkerZoomLevel for Level18.
public MarkerZoomLevel ZoomLevel18 { get; }
Property Value¶
MarkerZoomLevel
A MarkerZoomLevel object which represents the Level18.
ZoomLevel19¶
Gets the MarkerZoomLevel for Level19.
public MarkerZoomLevel ZoomLevel19 { get; }
Property Value¶
MarkerZoomLevel
A MarkerZoomLevel object which represents the Level19.
ZoomLevel20¶
Gets the MarkerZoomLevel for Level20.
public MarkerZoomLevel ZoomLevel20 { get; }
Property Value¶
MarkerZoomLevel
A MarkerZoomLevel object which represents the Level20.
CustomZoomLevels¶
Gets a MarkerZoomLevel collection that is used for you to define your own custom zoomlevels.
public Collection<MarkerZoomLevel> CustomZoomLevels { get; }
Property Value¶
Remarks:
When you add custom zoomlevels to the CustomZoomLevels collection, the default ZoomLevel01-20 will be disabled. The zoomLevels in the CustomZoomLevels are matched with the scales defined in the Map.ZoomLevelScales. For example,
CustomZoomLevels[0] has the scale that equals to Map.ClientZoomLevelScales[0].
Constructors¶
MarkerZoomLevelSet()¶
Initialize a new instance of the MarkerZoomLevelSet class.
public MarkerZoomLevelSet()
Methods¶
SelectZoomLevelById(Int32)¶
Select MarkerZoomLevel instance by its id.
internal MarkerZoomLevel SelectZoomLevelById(int id)
Parameters¶
id
Int32
parameter can be 1 - 20.
Returns¶
GetZoomLevelForDrawing(Int32)¶
Returns the MarkerZoomLevel object whose styles will be applies to the markers base on the current zoomlevel that passed in.
public MarkerZoomLevel GetZoomLevelForDrawing(int currentZoomLevelId)
Parameters¶
currentZoomLevelId
Int32
An int value that indicates which zoomlevel is the current zoomlevel. The int
value can only be in 1-20.
Returns¶
The MarkerZoomLevel object whose styles will be applies to the markers
base on the current zoomlevel that passed in.