Available options
Storelocatorjs contains many options to allow you to easily configure your map according to your needs. List of all options with their default values.
apiKey
¶
mandatory - default: string = ''
Tells storelocatorjs the API key to use Google Maps API.
1 2 3 4 5 |
|
webServiceUrl
¶
mandatory - default: string = ''
Tells storelocatorjs where is located the cloud function web service to get JSON store datas.
1 2 3 4 5 |
|
cluster.options
¶
default: object
Tells storelocatorjs marker clusters options. Documentation is available on Google Developers.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
|
cluster.status
¶
default: boolean = false
Tells storelocatorjs whether to enable the marker clustering.
1 2 3 4 5 6 7 |
|
debug
¶
default: boolean = false
Tells storelocatorjs whether to display the debug overlay.
1 2 3 4 5 |
|
geolocation.startOnLoad
¶
default: integer = false
Tells storelocatorjs whether to enable an auto geolocation request on page load.
1 2 3 4 5 6 7 |
|
geolocation.status
¶
default: boolean = true
Tells storelocatorjs whether to enable the geolocation.
1 2 3 4 5 6 7 |
|
map.markers.width
¶
default: integer = 30
Tells storelocatorjs what is the marker width in pixel (without unity).
1 2 3 4 5 6 7 8 9 |
|
map.markers.height
¶
default: integer = 40
Tells storelocatorjs what is the marker height in pixel (without unity).
1 2 3 4 5 6 7 8 9 |
|
map.markers.styles
¶
default: array
Tells storelocatorjs what are the geolocation marker styles. The category userPosition
is reserved to identify the geolocation marker.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
|
The array map.markers.styles
can accept entries for each category to customize markers by category.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
|
map.options
¶
default: object
Tells storelocatorjs marker options. Documentation is available on Google Developers.
map.options.styles
can be used to stylized the map. Documentation is available on the feature page
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
|
requests.searchRadius
¶
default: integer = 50
Tells storelocatorjs what is the search radius in kilometers, when a search is triggered by the user.
1 2 3 4 5 6 7 |
|
requests.storesLimit
¶
default: integer = 20
Tells storelocatorjs what is the limit of results return by the request. Use 0
to return unlimited stores, according to the JSON database.
1 2 3 4 5 6 7 |
|
selectors
¶
default: object
Tells storelocatorjs what are HTML identifier (class or data attribute) for each elements. You can personalize them.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
|
markersUpdate.limitInViewport
¶
default: integer = 30
Tells storelocatorjs what is the maximum of results in the main viewport when an auto-search is triggered. Zoom or move events may trigger an auto-search if user extends the area.
1 2 3 4 5 6 7 |
|
markersUpdate.maxRadius
¶
default: integer = 150
Tells storelocatorjs what is the maximum search radius in kilometers during an auto-search.
1 2 3 4 5 6 7 |
|
markersUpdate.status
¶
default: boolean = true
Tells storelocatorjs whether to enable auto-search to refresh markers on area bounds changed. Zoom or move events may trigger an auto-search if user extends the area.
1 2 3 4 5 6 7 |
|
markersUpdate.stepRadius
¶
default: integer = 50
Tells storelocatorjs what is the search radius when the default search limit of 30 kilometers is exceeded. Zoom or move events may trigger an auto-search if user extends the area.
1 2 3 4 5 6 7 |
|