ScriptDoc Reference

Properties

static Object Mapifies.CreateAdsManager.defaults.defaults

Default options for CreateAdsManager

Functions

Mapifies.CreateAdsManager(jQuery element, Object options, Function callback) : static Function

Create an adsense ads manager for the map. The Adsense manager will parse your page and show adverts on the map that relate to this. Requires your adsense publisher id and channel

jQueryelementThe jQuery object containing the map element.
ObjectoptionsAn object of options
FunctioncallbackThe callback function that returns the result

Mapifies.CreateAdsManager.defaults(String publisherId, Number maxAdsOnMap, Number channel, Number minZoomLevel) : static Object

Default options for CreateAdsManager

StringpublisherIdYour Adsense publisher ID
NumbermaxAdsOnMapThe maximum number of ads to show on the map at one time
NumberchannelThe AdSense channel this belongs to
NumberminZoomLevelThe minimum zoom level to begin showing ads at