User Tools

Site Tools


thinkgeo.mapsuite.core.zoomlevel

This is an old revision of the document!


ThinkGeo.MapSuite.Core.ZoomLevel

This class defines how InternalFeatures will be drawn based on their scale.

Inheritance Hierarchy

  • System.Object
    • ThinkGeo.MapSuite.Core.ZoomLevel

Members Summary

Public Constructors

ZoomLevel

  • Parameters:N/A
  • DeclaringType:N/A
  • Summary:This is a constructor for the class.

ZoomLevel

  • Parameters:Double
  • DeclaringType:N/A
  • Summary:This is a constructor for the class.

Protected Constructors

Public Methods

Draw

Draw

Equals

  • Parameters:Object
  • DeclaringType:Object
  • Summary:N/A

GetHashCode

  • Parameters:N/A
  • DeclaringType:Object
  • Summary:N/A

GetRequiredColumnNames

  • Parameters:N/A
  • DeclaringType:N/A
  • Summary:This method returns the column data for each feature that is required for the styles to properly draw.

GetType

  • Parameters:N/A
  • DeclaringType:Object
  • Summary:N/A

ToString

  • Parameters:N/A
  • DeclaringType:Object
  • Summary:N/A

Protected Methods

DrawCore

Finalize

  • Parameters:N/A
  • DeclaringType:Object
  • Summary:N/A

MemberwiseClone

  • Parameters:N/A
  • DeclaringType:Object
  • Summary:N/A

f0M=

  • Parameters:N/A
  • DeclaringType:N/A
  • Summary:N/A

Public Properties

ApplyUntilZoomLevel

  • Summary:This property gets and sets the zoom to which we will use this zoom level's styles.

CustomStyles

  • Return:Collection<Style>
  • Summary:This property gets a collection of custom styles used to draw.

DefaultAreaStyle

  • Return:AreaStyle
  • Summary:This property gets and sets the default AreaStyle used to draw.

DefaultLineStyle

  • Return:LineStyle
  • Summary:This property gets and sets the default LineStyle used to draw.

DefaultPointStyle

  • Return:PointStyle
  • Summary:This property gets and sets the default PointStyle used to draw.

DefaultTextStyle

  • Return:TextStyle
  • Summary:This property gets and sets the default TextStyle used to draw.

IsActive

  • Return:Boolean
  • Summary:This property gets and sets whether the ZoomLevel is active and should draw.

Name

  • Return:String
  • Summary:This property gets and sets the name for the ZoomLevel.

Scale

  • Return:Double
  • Summary:This property gets and sets the scale for the ZoomLevel.

Protected Properties

uBs=

  • Return:Boolean
  • Summary:N/A

Public Events

Public Constructors

ZoomLevel()

This is a constructor for the class.

Remarks

This is the default constructor. If you use this constructor, you should set the require properties on the class manually.

Parameters

ZoomLevel(Double)

This is a constructor for the class.

Remarks

This constructor allows you to provide the scale for this ZoomLevel.

Parameters

scale

  • Type:Double
  • Description:This paramter is the scale for the ZoomLevel. Go Back ===== Protected Constructors ===== ===== Public Methods ===== === Draw(GeoCanvas,IEnumerable<Feature>,Collection<SimpleCandidate>,Collection<SimpleCandidate>) === This method draws the ZoomLevel. ==== Remarks ==== This method is the concrete wrapper for the abstract method DrawCore. This method draws the representation of the Layer based on the extent you provided. As this is a concrete public method that wraps a Core method, we reserve the right to add events and other logic to pre- or post-process data returned by the Core version of the method. In this way, we leave our framework open on our end, but also allow you the developer to extend our logic to suit your needs. If you have questions about this, please contact our support team as we would be happy to work with you on extending our framework. Return Value * Return Type:Void * Description:None ==== Parameters ==== canvas * Type:GeoCanvas * Description:This parameter is the Canvas used to draw the InternalFeatures. features * Type:IEnumerable<Feature> * Description:This parameter is the collection of features that we will draw. currentLayerLabels * Type:Collection<SimpleCandidate> * Description:This parameter is the collection of labels in the current layer. allLayerLabels * Type:Collection<SimpleCandidate> * Description:This parameter is the collection of labels in all layers. Go Back === Draw(GeoCanvas,IEnumerable<BaseShape>,Collection<SimpleCandidate>,Collection<SimpleCandidate>) === This method draws the ZoomLevel. ==== Remarks ==== This method is the concrete wrapper for the abstract method DrawCore. This method draws the representation of the Layer based on the extent you provided. As this is a concrete public method that wraps a Core method, we reserve the right to add events and other logic to pre- or post-process data returned by the Core version of the method. In this way, we leave our framework open on our end, but also allow you the developer to extend our logic to suit your needs. If you have questions about this, please contact our support team as we would be happy to work with you on extending our framework. Return Value * Return Type:Void * Description:None ==== Parameters ==== canvas * Type:GeoCanvas * Description:This parameter is the Canvas used to draw the InternalFeatures. shapes * Type:IEnumerable<BaseShape> * Description:This parameter is the collection of shapes that we will draw. currentLayerLabels * Type:Collection<SimpleCandidate> * Description:This parameter is the collection of labels in the current layer. allLayerLabels * Type:Collection<SimpleCandidate> * Description:This parameter is the collection of labels in all layers. Go Back === Equals(Object) === N/A ==== Remarks ==== N/A Return Value * Return Type:Boolean * Description:N/A ==== Parameters ==== obj * Type:Object * Description:N/A Go Back === GetHashCode() === N/A ==== Remarks ==== N/A Return Value * Return Type:Int32 * Description:N/A ==== Parameters ==== Go Back === GetRequiredColumnNames() === This method returns the column data for each feature that is required for the styles to properly draw. ==== Remarks ==== In this method, we return the column names that are required for the styles to draw the feature properly. For example, if you have a style that colors areas blue when a certain column value is over 100, then you need to be sure you include the column name. This will ensure that the column data is returned to you in the feature when it is ready to draw. In many of the styles, we add properties to allow the user to specify which field they need; then, in the GetRequiredColumnNamesCore, we read that property and add it to the collection. Return Value * Return Type:Collection<String> * Description:This method returns a collection containing the required column names. ==== Parameters ==== Go Back === GetType() === N/A ==== Remarks ==== N/A Return Value * Return Type:Type * Description:N/A ==== Parameters ==== Go Back === ToString() === N/A ==== Remarks ==== N/A Return Value * Return Type:String * Description:N/A ==== Parameters ==== Go Back ===== Protected Methods ===== === DrawCore(GeoCanvas,IEnumerable<Feature>,Collection<SimpleCandidate>,Collection<SimpleCandidate>) === This method draws the ZoomLevel. ==== Remarks ==== This method draws the representation of the Layer based on the extent you provided. Return Value * Return Type:Void * Description:None ==== Parameters ==== canvas * Type:GeoCanvas * Description:This parameter is the Canvas used to draw the InternalFeatures. features * Type:IEnumerable<Feature> * Description:This parameter is the collection of feature that we will draw. currentLayerLabels * Type:Collection<SimpleCandidate> * Description:This parameter is the collection of labels in the current layer. allLayerLabels * Type:Collection<SimpleCandidate> * Description:This parameter is the collection of labels in all layers. Go Back === Finalize() === N/A ==== Remarks ==== N/A Return Value * Return Type:Void * Description:N/A ==== Parameters ==== Go Back === MemberwiseClone() === N/A ==== Remarks ==== N/A Return Value * Return Type:Object * Description:N/A ==== Parameters ==== Go Back === f0M=() === N/A ==== Remarks ==== N/A Return Value * Return Type:IEnumerable<Style> * Description:N/A ==== Parameters ==== Go Back ===== Public Properties ===== === ApplyUntilZoomLevel === This property gets and sets the zoom to which we will use this zoom level's styles. ==== Remarks ==== This property allows you to apply the current ZoomLevel's styles across many ZoomLevels. For example, you may want to display roads as a thin line from ZoomLevel10 through ZoomLevel15. To accomplish this easily, you can set the correct styles on ZoomLevel10 and then set its ApplyUntilZoomLevel property to Level15. This will mean that Level10's style will be used until Level15. There is no need to set Level11, Level12, Level13 and so on. ==== Return Value ==== Return Type:ApplyUntilZoomLevel Go Back === CustomStyles === This property gets a collection of custom styles used to draw. ==== Remarks ==== This is a collection of styles to draw. If you only need to draw one style, then we suggest you do not use this collection and instead use one of the default styles, such as DefaultAreaStyle, DefaultLineStyle, DefaultTextStyle, etc. ==== Return Value ==== Return Type:Collection<Style> Go Back === DefaultAreaStyle === This property gets and sets the default AreaStyle used to draw. ==== Remarks ==== If you set this style, then it will be used for drawing. If you use the default styles, you should only use one. The one you use should match your feature data. For example, if your features are lines, then you should use the DefaultLineStyle. ==== Return Value ==== Return Type:AreaStyle Go Back === DefaultLineStyle === This property gets and sets the default LineStyle used to draw. ==== Remarks ==== If you set this style, then it will be used for drawing. If you use the default styles, you should only use one. The one you use should match your feature data. For example, if your features are lines, then you should use the DefaultLineStyle. ==== Return Value ==== Return Type:LineStyle Go Back === DefaultPointStyle === This property gets and sets the default PointStyle used to draw. ==== Remarks ==== If you set this style, then it will be used for drawing. If you use the default styles, you should only use one. The one you use should match your feature data. For example, if your features are lines, then you should use the DefaultLineStyle. ==== Return Value ==== Return Type:PointStyle Go Back === DefaultTextStyle === This property gets and sets the default TextStyle used to draw. ==== Remarks ==== If you set this style, then it will be used for drawing. If you use the default styles, you should only use one. The one you use should match your feature data. For example, if your features are lines, then you should use the DefaultLineStyle. ==== Return Value ==== Return Type:TextStyle Go Back === IsActive === This property gets and sets whether the ZoomLevel is active and should draw. ==== Remarks ==== Setting the value to false means that this zoom level will not be considered in the ZoomLevelSet and thus will not draw. ==== Return Value ==== Return Type:Boolean Go Back === Name === This property gets and sets the name for the ZoomLevel. ==== Remarks ==== The name is user defined. It is useful to set, as it may be used for higher level components such as legends, etc. ==== Return Value ==== Return Type:String Go Back === Scale === This property gets and sets the scale for the ZoomLevel. ==== Remarks ==== The scale ==== Return Value ==== Return Type:Double Go Back ===== Protected Properties ===== === uBs= === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type**:Boolean

Go Back

Public Events

thinkgeo.mapsuite.core.zoomlevel.1442486598.txt.gz · Last modified: 2015/09/17 10:43 by admin