ExternalRenderer

new ExternalRenderer(imgSource, sname, view, parentDiv, cssClassopt, optionsopt)

Parameters:
NameTypeAttributesDescription
imgSourcestring

path to the image source used for icons.

snamestring

name of the external Renderer.

viewgem.d3Scene.MapView

View in which we are using the external renderer.

parentDivstring

the div in which to add the created html elements.

cssClassstring<optional>

Custom css class

optionsobject<optional>

marker render options

Properties
NameTypeAttributesDefaultDescription
markerCssClassstring<optional>

marker style class

markerFunctioncallbackMarker<optional>
markerWidthnumber<optional>
20
markerHeightnumber<optional>
20
markerHoverWidthnumber<optional>
25
markerHoverHeightnumber<optional>
25
markerPosstring<optional>
'center'

where to place the marker relative to the item coordinate, options are center, bottom-right, bottom-center, bottom-left, top-right, top-center, top-left, right-center, left-center

markerGroupStylegem.control.markerGroupStyleType<optional>
gem.control.MarkersGroupStyleType.default

set different marker groups style

markerGroupFunctioncallbackMarkerGroup<optional>

fully customize marker groups