Skip to content

Component API calls

petewarden edited this page Sep 14, 2010 · 25 revisions

These are the functions you can call on an OpenHeatMap object from Javascript within a page. The object itself should be retrieved by calling getOpenHeatMap() from the supplied openheatmap.js script.

addInlay(leftX, topY, rightX, bottomY, topLat, leftLon, bottomLat, rightLon)
This

getLatLonViewingArea

getPixelsPerDegreeLatitude

getValueForWayId

getValuePointsNearLatLon

getWayForWayId

getWaysContainingLatLon

loadValuesFromCSVString

loadValuesFromFile

loadWaysFromFile

removeAllInlays

removeAllWays

setColorGradient

setEventHandler

setGradientValueRange

setLatLonViewingArea

setOceanColor

setPixelsPerDegreeLatitude

setSetting

setSize

setWayDefault

translateMapByScreenPixels

zoomMapByFactorAroundPoint