forked from 0x2620/oxjs
Ox.Map: add markerTooltip option (custom format function)
This commit is contained in:
parent
6f545969e4
commit
3e57cbd785
2 changed files with 5 additions and 1 deletions
|
|
@ -14,6 +14,7 @@ Ox.Map <f> Basic map object
|
|||
keys <a|[]> Additional place properties to be requested
|
||||
markerColor <[n]|f|s|'auto'> Color of place markers ([r, g, b])
|
||||
markerSize <n|f||s|'auto'> Size of place markers in px
|
||||
markerTooltip <f> Format function for place marker tooltips
|
||||
maxMarkers <n|100> Maximum number of markers to be displayed
|
||||
places <[o]|f|null> Array of, or function that returns, place objects
|
||||
countryCode <s> ISO 3166 country code
|
||||
|
|
@ -94,6 +95,9 @@ Ox.Map = function(options, self) {
|
|||
keys: [],
|
||||
markerColor: 'auto',
|
||||
markerSize: 'auto',
|
||||
markerTooltip: function(place) {
|
||||
return place.name || '<span class="OxLight">Unnamed</span>';
|
||||
},
|
||||
maxMarkers: 100,
|
||||
places: null,
|
||||
selected: '',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue