-
Notifications
You must be signed in to change notification settings - Fork 0
Class InterMap
The class has the following variables. All of them are saved as protected.
protected $regions; //The array of Regions
protected $map; //The map name
protected $callMap; //The map name used for HTML
protected $actions; //The array of Actions
protected $images; //The array of Images
protected $style; //The string that will be added into <style> during the drawMap()
Structure:
regions[region_id][information][sub_information]
Available data during the drawMap stage:
regions[id]["id"] - Returns ID of the region
regions[id]["coords"] - Return the coordinations
regions[id]["shape"] - Returns shape
regions[id]["actions"] - Actions available for this region
regions[id]["actions"]["mouseover"] - Returns an action to be called on mouse over
regions[id]["actions"]["mouseout"] - Returns an action to be called on mouse out
regions[id]["actions"]["mouseclick"] - Returns an action to be called on mouse click
Structure:
actions[name][information]
Available data during the drawMap() stage:
actions[name]["name"] - Returns a name of the action
actions[name]["script"] - Returns a script to be called on action
Structure:
images[id][information]
Available data during the drawMap() stage:
images[id]["id"] - Returns ID of the action
images[id]["link"] - Returns a link to image
Functions
- InterMap Class
- _f_setMap()
- _f_addRegion()
- _f_setRegions()
- _f_addRegionAttr()
- _f_addAction()
- _f_addImage()
- _f_setStyle()
- _f_drawMap()