Hotspots Docs
Overriding any JS variable on the Hotspots Map view (Pro feature)
Starting with Hotspots 3.6 you are now able to override any Javascript variable that Hotspots use directly from your menu. In the backend navigate to the Menus -> Your Menu -> Hotpsots Map view. Under the options tab down at the bottom you have a textarea called Settings override. This is where you can override the default component settings. For example if we want to override the Start position of the map. We could enter:
mapStartPosition=Paris, France
If you want to override the start zoom you could enter:
mapStartZoom=18
If you want to override both:
mapStartPosition=Paris, France
mapStartZoom=18
As you can see from the example you need to define a key=value pair per line. Here is a list with the settings that you can currently override:
mapStartPosition
The start position of the map. Can be a string or lat, lng coordinates.
It is advisable to use coordinates as this would save 1 geocode request each time the map loads. Which in terms will center the map a little faster.
mapStartZoom This is the start zoom of the map. Can be a value between 1 and 20.
centerType This determines the method to use for centering. Value between 0 and 2. 0 = by star position zoom, 1 = by category marker bounds, 2 = by using user's position .
highAccuracy Used only when centerType has the value of 2. Turns on or off the HTML5 geolocation feature.
searchZoom Determines the zoom that is used during search. Value between 1 and 20.
staticMapWidth Determines the width of the static map used for print and email. Can be an integer value.
staticMapHeight Determines the height of the static map used for print and email. Can be an integer value.
getDirections Turns off or on the directions feature. The value can be either 0 or 1.
mapType Determines the google map type. 1 = Default, 2 = Satellite, 3 = Hybrid, 4 = Physical
panControl Determines whether or not to show the pan control. The value can be either 0 or 1.
panControlPosition Sets the pan control position.
zoomControl Shows or hides the zoom Control. The value can be either 0 or 1.
zoomControlStyle Determines whether the zoom should be small, large or default. Values can be SMALL, LARGE, DEFAULT.
zoomControlPosition Determines the Zoom control position. Values can be: TOP_CENTER, TOP_LEFT, TOP_RIGHT, LEFT_TOP, RIGHT_TOP, LEFT_CENTER, RIGHT_CENTER, LEFT_BOTTOM, RIGHT_BOTTOM, LEFT_BOTTOM, BOTTOM_CENTER, BOTTOM_LEFT, BOTTOM_RIGHT.
mapTypeControl Should the user be able to change the map type. The value can be either 0 or 1.
mapTypeControlStyle Determines whether one should use a horizontal bar or a dropdown menu to change the map type. Values can be HORIZONTAL_BAR, DROPDOWN_MENU or DEFAULT.
mapTypeControlPosition Sets the position of the map control. Values can be: TOP_CENTER, TOP_LEFT, TOP_RIGHT, LEFT_TOP, RIGHT_TOP, LEFT_CENTER, RIGHT_CENTER, LEFT_BOTTOM, RIGHT_BOTTOM, LEFT_BOTTOM, BOTTOM_CENTER, BOTTOM_LEFT, BOTTOM_RIGHT.
scaleControl Shows or hides the map scale. Value can be eitehr 0 or 1.
streetViewControl Shows or hides the streetview pegman. The value can be either 0 or 1.
streetViewPosition Sets the position of the streetview control. Values can be: TOP_CENTER, TOP_LEFT, TOP_RIGHT, LEFT_TOP, RIGHT_TOP, LEFT_CENTER, RIGHT_CENTER, LEFT_BOTTOM, RIGHT_BOTTOM, LEFT_BOTTOM, BOTTOM_CENTER, BOTTOM_LEFT, BOTTOM_RIGHT.
overviewMapControl Shows or hides the overview map. The value can be either 0 or 1.
scrollwheel Enables or disables the scrollwheel on the map. The value can be either 0 or 1.
print Enables or disables the print map option. The value can be either 0 or 1.
resizeMap Enables or disables the resize map option. The value can be either 0 or 1.
mailMap Enables or disables the mail map option. The value can be either 0 or 1.
listLength Determines the list length in the menu. Values can be any integer number.
Don't go over 100 as this can create performance problems if you have a 1000s of hotspots.
showDirections Turns on/off the directions button in the hotspots description. The value can be either 0 or 1.
showAddress Shows or hides the address in the hotspots description. The value can be either 0 or 1.
showCountry Shows or hides the country in the hotspots address. The value can be either 0 or 1.
showZoomButton Shows or hides the zoom button in the hotspots description. The value can be either 0 or 1.
showAuthor Shows or hides the author of the hotspot. The value can be either 0 or 1.
showDate Shows or hides the date the hotspot was submitted. The value can be either 0 or 1.
showMenu Shows or hides the menu. The value can be either 0 or 1.
numOfCatsToShow Determines how many categories to show in the category slider. Any integer number.
categoryInfo Determines whether to show or hide the category description. The value can be either 0 or 1.
showMarkerCount Determines whether to show or hide the marker count in the menu. The value can be either 0 or 1.
weather Turns on/off the weather layer.
cloudsLayer Turns on/off the clouds layer.
weatherTemperatureUnit Determines the temperature unit for the weather layer. Can be either CELSIUS or FAHRENHEIT.
weatherWindSpeedUnit Determines the wind speed unit for the weather layer. Can be KILOMETERS_PER_HOUR, METERS_PER_SECOND, MILES_PER_HOUR
weatherClickable Determines weather the layer layout should be clickable or not.
trafficLayer Turns on off the traffic layer. The value can be either 0 or 1.
transitLayer Turns on off the transit layer. The value can be either 0 or 1.
bicyclingLayer Turns on off the bicyclingLayer. The value can be either 0 or 1.
panoramioLayer Turns on off the panoramio layer. The value can be either 0 or 1.
panoramioUserId The panoramio user id.
visualRefresh Turns on or off the visual refresh option. The value can be either 0 or 1.
draggableDirections Enables the draggable directions. The value can be either 0 or 1.