gem.control. CustomQueryAddedDataControl

new CustomQueryAddedDataControl(iconUrl, iconFilteropt, dataOptionsopt, feedDataOptions)

Control for displaying data on a map using a server database as source

Parameters:
NameTypeAttributesDescription
iconUrlstring

path/url to marker image/icon

iconFilterArray.<object><optional>

filters for applying different icons to markers based on their poperties

Properties
NameTypeDescription
keystring

data source item property key

valuestring

data source item property value

iconClassstring

css class to use for this filter

dataOptionsobject<optional>

options for displaying data source items

Properties
NameTypeDescription
markerobject

options for markers display on map

Properties
NameTypeAttributesDefaultDescription
cssClassstring

specify custom marker style rules

highlightClassstring

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

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<optional>
13

maximum map level to apply grouping ( max allowed 15 ), not available for studio data

styleobject<optional>
gem.control.MarkersGroupStyleType.default

style to apply to marker groups

markerGroupFunctioncallbackMarkerGroup<optional>

fully customize marker groups style

feedDataOptionsobject
Properties
NameTypeAttributesDefaultDescription
populateForMapBrowsebool<optional>
true
markersFeedFunctioncallbackMarkersFeed

callback for adding data during map browse

markersAreaSelectionFunctioncallbackMarkersAreaSelection

callback for adding data in the selected area