MU counts for fields with limiting for small fields

Only at higher zoom levels will counts for small fields show.
This commit is contained in:
Kevin
2013-03-02 21:25:03 -08:00
parent 1e21bbb94d
commit 0ba8631b82
4 changed files with 37 additions and 12 deletions

View File

@ -296,3 +296,8 @@ window.convertTextToTableMagic = function(text) {
table += '</table>';
return table;
}
// Given 3 sets of points in an array[3]{lat, lng} returns the area of the triangle
window.calcTriArea = function(p) {
return Math.abs((p[0].lat*(p[1].lng-p[2].lng)+p[1].lat*(p[2].lng-p[0].lng)+p[2].lat*(p[0].lng-p[1].lng))/2);
}