added improvement from https://code.google.com/p/tikouka/source/browse/trunk/tikouka-appengine/js/heatmap-openlayers.js?spec=svn71&r=71