maps.nyc.gov

Class: HeatSymbolizer

nyc.carto.HeatSymbolizer(options)

new HeatSymbolizer(options)

Class for managing heat map rendering based on zoom level
Parameters:
Name Type Description
options nyc.carto.HeatSymbolizer.Options Constructor options
Implements:
Source:
Fires:

Type Definitions

Options

Object type to hold constructor options for nyc.carto.HeatSymbolizer
Type:
  • Object
Properties:
Name Type Attributes Default Description
map L.Map The Leaflet map containing the heat map layer
layer carto.Layer The Carto heat map layer
css string CartoCSS with optional replacement tokens for rendering the heat map (valid tokens are ${size}, ${sizePlus2} and ${sizePlus4})
sizes Array.<Number> <optional>
[2, 4, 8, 16, 32, 64, 128, 256, 512] An array of marker sizes for replacing tokens in the css where the last number in the array is to be used at zoom level 18
Source:

Events

symbolized

The CartoCSS applied to the heat map layer
Type:
  • string
Implements:
Source:

nyc-lib: Class: HeatSymbolizer

maps.nyc.gov

Class: HeatSymbolizer

nyc.carto.HeatSymbolizer(options)

new HeatSymbolizer(options)

Class for managing heat map rendering based on zoom level
Parameters:
Name Type Description
options nyc.carto.HeatSymbolizer.Options Constructor options
Implements:
Source:
Fires:

Type Definitions

Options

Object type to hold constructor options for nyc.carto.HeatSymbolizer
Type:
  • Object
Properties:
Name Type Attributes Default Description
map L.Map The Leaflet map containing the heat map layer
layer carto.Layer The Carto heat map layer
css string CartoCSS with optional replacement tokens for rendering the heat map (valid tokens are ${size}, ${sizePlus2} and ${sizePlus4})
sizes Array.<Number> <optional>
[2, 4, 8, 16, 32, 64, 128, 256, 512] An array of marker sizes for replacing tokens in the css where the last number in the array is to be used at zoom level 18
Source:

Events

symbolized

The CartoCSS applied to the heat map layer
Type:
  • string
Implements:
Source: