gem.control. QueryAddedDataControl

new QueryAddedDataControl(initQueryAddedDataOptions, iconLocation, dataOptions)

Control for displaying data from SQL server data source

Parameters:
NameTypeDescription
initQueryAddedDataOptionsobject

options for initializing the SQL query source

Properties
NameTypeDescription
languagesArray.<string>

list of language iso codes

storeIdnumber

available options store id 1 or 2

iconLocationstring

path/url to marker image/icon

dataOptionsobject

options for displaying data source items

Properties
NameTypeAttributesDescription
markerobject<optional>

options for markers display on map

Properties
NameTypeAttributesDefaultDescription
cssClassstring<optional>

specify custom marker style rules

highlightClassstring<optional>

specify selected marker custom highlight style rules

widthnumber<optional>
20
heightnumber<optional>
20
hoverWidthnumber<optional>
25
hoverHeightnumber<optional>
25
markerPosstring<optional>
'center'

where to place the marker relative to the item coordinate

markerFunctioncallbackMarker<optional>

fully customize marker appearance

markerBubbleobject

options for styling the marker bubble on click/hover

Properties
NameTypeAttributesDefaultDescription
titleArray.<string>

data source properties to use for marker bubble title text

imagestring

data source image url property to use for marker bubble image

widthnumber<optional>
240

bubble width in px

heightnumber<optional>
200

bubble height in px

enableHoverbool<optional>
true

disable marker bubble interaction on hover

enableClickbool<optional>
true

disable marker bubble interaction on click

markerBubbleClassstring

custom css class for marker bubble

markerBubbleFunctioncallbackMarkerBubble

fully customize marker bubble

markerGroupingobject

marker grouping options

Properties
NameTypeAttributesDefaultDescription
maxLevelnumber

maximum map level to apply grouping ( max allowed 15 )

styleobject<optional>
gem.control.MarkersGroupStyleType.default

style to apply to marker groups

markerGroupFunctioncallbackMarkerGroup<optional>

fully customize marker groups style