Skip to content

MarkerZoomLevelSet

Namespace: ThinkGeo.UI.Blazor

This class represents a collection of MarkerZoomLevels that determines the appearance of markers at different zoomlevels.

public class MarkerZoomLevelSet

Inheritance ObjectMarkerZoomLevelSet

Remarks:

This class represents a collection of MarkerZoomLevels. Each MarkerZoomLevel has a different scale and style definition that will be applied to a marker when it is the current zoomlevel.

The MarkerZoomLevelSet decides which zoomlevel applies its styles to the markers based on the current zoomlevel.

For example, if the current zoomlevel is level 03, and we defined the styles on that zoomlevel as follows:

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 displayed on the screen.

But when we change the current zoomlevel to level 04, now our current zoomlevel falls into the zoomlevel range (04-10) that defines styles. This time, the ZoomlevelSet will apply the styles on zoomlevel 04 to the markers.

Properties

ZoomLevel01

Gets the MarkerZoomLevel for Level01.

public MarkerZoomLevel ZoomLevel01 { get; }

Property Value

MarkerZoomLevel
A MarkerZoomLevel object that represents Level01.

ZoomLevel02

Gets the MarkerZoomLevel for Level02.

public MarkerZoomLevel ZoomLevel02 { get; }

Property Value

MarkerZoomLevel
A MarkerZoomLevel object that represents Level02.

ZoomLevel03

Gets the MarkerZoomLevel for Level03.

public MarkerZoomLevel ZoomLevel03 { get; }

Property Value

MarkerZoomLevel
A MarkerZoomLevel object that represents Level03.

ZoomLevel04

Gets the MarkerZoomLevel for Level04.

public MarkerZoomLevel ZoomLevel04 { get; }

Property Value

MarkerZoomLevel
A MarkerZoomLevel object that represents Level04.

ZoomLevel05

Gets the MarkerZoomLevel for Level05.

public MarkerZoomLevel ZoomLevel05 { get; }

Property Value

MarkerZoomLevel
A MarkerZoomLevel object that represents Level05.

ZoomLevel06

Gets the MarkerZoomLevel for Level06.

public MarkerZoomLevel ZoomLevel06 { get; }

Property Value

MarkerZoomLevel
A MarkerZoomLevel object that represents Level06.

ZoomLevel07

Gets the MarkerZoomLevel for Level07.

public MarkerZoomLevel ZoomLevel07 { get; }

Property Value

MarkerZoomLevel
A MarkerZoomLevel object that represents Level07.

ZoomLevel08

Gets the MarkerZoomLevel for Level08.

public MarkerZoomLevel ZoomLevel08 { get; }

Property Value

MarkerZoomLevel
A MarkerZoomLevel object that represents Level08.

ZoomLevel09

Gets the MarkerZoomLevel for Level09.

public MarkerZoomLevel ZoomLevel09 { get; }

Property Value

MarkerZoomLevel
A MarkerZoomLevel object that represents Level09.

ZoomLevel10

Gets the MarkerZoomLevel for Level10.

public MarkerZoomLevel ZoomLevel10 { get; }

Property Value

MarkerZoomLevel
A MarkerZoomLevel object that represents Level10.

ZoomLevel11

Gets the MarkerZoomLevel for Level11.

public MarkerZoomLevel ZoomLevel11 { get; }

Property Value

MarkerZoomLevel
A MarkerZoomLevel object that represents Level11.

ZoomLevel12

Gets the MarkerZoomLevel for Level12.

public MarkerZoomLevel ZoomLevel12 { get; }

Property Value

MarkerZoomLevel
A MarkerZoomLevel object that represents Level12.

ZoomLevel13

Gets the MarkerZoomLevel for Level13.

public MarkerZoomLevel ZoomLevel13 { get; }

Property Value

MarkerZoomLevel
A MarkerZoomLevel object that represents Level13.

ZoomLevel14

Gets the MarkerZoomLevel for Level14.

public MarkerZoomLevel ZoomLevel14 { get; }

Property Value

MarkerZoomLevel
A MarkerZoomLevel object that represents Level14.

ZoomLevel15

Gets the MarkerZoomLevel for Level15.

public MarkerZoomLevel ZoomLevel15 { get; }

Property Value

MarkerZoomLevel
A MarkerZoomLevel object that represents Level15.

ZoomLevel16

Gets the MarkerZoomLevel for Level16.

public MarkerZoomLevel ZoomLevel16 { get; }

Property Value

MarkerZoomLevel
A MarkerZoomLevel object that represents Level16.

ZoomLevel17

Gets the MarkerZoomLevel for Level17.

public MarkerZoomLevel ZoomLevel17 { get; }

Property Value

MarkerZoomLevel
A MarkerZoomLevel object that represents Level17.

ZoomLevel18

Gets the MarkerZoomLevel for Level18.

public MarkerZoomLevel ZoomLevel18 { get; }

Property Value

MarkerZoomLevel
A MarkerZoomLevel object that represents Level18.

ZoomLevel19

Gets the MarkerZoomLevel for Level19.

public MarkerZoomLevel ZoomLevel19 { get; }

Property Value

MarkerZoomLevel
A MarkerZoomLevel object that represents Level19.

ZoomLevel20

Gets the MarkerZoomLevel for Level20.

public MarkerZoomLevel ZoomLevel20 { get; }

Property Value

MarkerZoomLevel
A MarkerZoomLevel object that represents Level20.

CustomZoomLevels

Gets a MarkerZoomLevel collection that is used for you to define your own custom zoomlevels.

public Collection<MarkerZoomLevel> CustomZoomLevels { get; }

Property Value

Collection<MarkerZoomLevel>
A MarkerZoomLevel collection that holds custom zoomlevels.

Remarks:

When you add custom zoomlevels to the CustomZoomLevels collection, the default ZoomLevels 01 through 20 will be disabled. The zoomLevels in the CustomZoomLevels are matched with the scales defined in the Map.ClientZoomLevelScales. 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 a MarkerZoomLevel instance by its ID.

internal MarkerZoomLevel SelectZoomLevelById(int id)

Parameters

id Int32
This parameter can be a value from 1 - 20.

Returns

MarkerZoomLevel

GetZoomLevelForDrawing(Int32)

Returns the MarkerZoomLevel object whose styles will be applied to the markers based on the current zoomlevel that is passed in.

public MarkerZoomLevel GetZoomLevelForDrawing(int currentZoomLevelId)

Parameters

currentZoomLevelId Int32

        An int value that indicates which zoomlevel is the current zoomlevel. The int
        value must be a number from 1 - 20.

Returns

MarkerZoomLevel