Usage
Signature:
Generic Parameters
Parameter Description K1 Type of key of the linkData dataprovider K2 Type of key used to specify start-location and end-location D1 Type of data from the linkData dataprovider 
Typescript Import Format
//To typecheck the element APIs, import as below.
import { ThematicMapLinkElement } from "ojs/ojthematicmap";
//For the transpiled javascript to load the element's module, import as below
import "ojs/ojthematicmap";
For additional information visit:
Styling
- 
        
CSS Variables
 
        See JET CSS Variables for additional details.
      
    
      | Name | Type | Description | 
|---|---|---|
--oj-thematic-map-link-color | 
          
            <color> | Thematic map link color | 
Attributes
- 
    
    
categories :Array<string>
 - 
    
      An array of category strings corresponding to this link. This allows highlighting and filtering of links. By default, the label is used as the link category.
- Default Value:
 []
 - 
    
    
color :string
 - 
    
      The link color.
- Default Value:
 ""
 - 
    
    
end-location :object
 - 
    
      An object used to determine the end point of the link.
- Default Value:
 {}
 - 
    
    
end-location.id :any
 - 
    
      The marker or area id to be used as the end point.
 - 
    
    
end-location.location :string
 - 
    
      An identifier corresponding to a Feature provided in the mapProvider geo object to be used as the end point.
 - 
    
    
end-location.x :number
 - 
    
      The x coordinate which can represent longitude of the end point.
 - 
    
    
end-location.y :number
 - 
    
      The y coordinate which can represent latitude of the end point.
 - 
    
    
selectable :"auto"|"off"
 - 
    
      Specifies whether or not the link will be selectable.
- Default Value:
 "auto"
Supported Values:
Value autooff - 
    
    
(nullable) short-desc :(string | ((context: ojThematicMap.LinkShortDescContext<K1,K2,D1>) => string))
 - 
    
      The text that displays in the link's tooltip.
- Default Value:
 ""
 - 
    
    
start-location :object
 - 
    
      An object used to determine the start point of the link.
- Default Value:
 {}
 - 
    
    
start-location.id :any
 - 
    
      The marker id to be used as the start point.
 - 
    
    
start-location.location :string
 - 
    
      An identifier corresponding to a Feature provided in the mapProvider geo object to be used as the start point.
 - 
    
    
start-location.x :number
 - 
    
      The x coordinate which can represent longitude of the start point.
 - 
    
    
start-location.y :number
 - 
    
      The y coordinate which can represent latitude of the start point.
 - 
    
    
svg-class-name :string
 - 
    
      The CSS style class defining the style of the link.
- Deprecated:
 -  
Since Description 19.0.0The svgClassName property is deprecated. This API is not recommended in Redwood theme. Use other customization APIs where appropriate.  
- Default Value:
 ""
 - 
    
    
svg-style :Partial<CSSStyleDeclaration>
 - 
    
      The CSS style object defining the style of the link. Only SVG CSS style properties are supported.
- Deprecated:
 -  
Since Description 19.0.0The svgStyle property is deprecated. This API is not recommended in Redwood theme. Use other customization APIs where appropriate.  
- Default Value:
 {}
 - 
    
    
width :number
 - 
    
      The link width in pixels.
- Default Value:
 2