1
0
Fork 0
forked from 0x2620/oxjs

Ox.Map: add markerTooltip option (custom format function)

This commit is contained in:
rolux 2012-08-31 09:22:15 +02:00
commit 3e57cbd785
2 changed files with 5 additions and 1 deletions

View file

@ -256,7 +256,7 @@ Ox.MapMarker = function(options) {
+ Ox.getFlagByGeoname(that.place.geoname, 16)
+ '" style="float: left; margin: 1px 0 1px -1px; border-radius: 4px"/>'
+ '<div style="float: left; margin: 4px -1px 0 4px; font-size: 9px;">'
+ (that.place.name || '<span class="OxLight">Unnamed</span>') + '</div>'
+ that.map.options('markerTooltip')(that.place) + '</div>'
})
.addClass('OxMapMarkerTooltip');
}