From e3b9a2b1ec799ce8622167168b79e707b9cefc01 Mon Sep 17 00:00:00 2001 From: Kevin Date: Sun, 3 Mar 2013 01:08:46 -0800 Subject: [PATCH] Fix up nits --- code/map_data.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/code/map_data.js b/code/map_data.js index b9c71724..dd741ee7 100644 --- a/code/map_data.js +++ b/code/map_data.js @@ -199,7 +199,7 @@ window.cleanUp = function() { }); fieldsLayer.eachLayer(function(fieldgroup) { fieldgroup.eachLayer(function(item) { - if(!item.options.guid) return true; + if(!item.options.guid) return true; // Skip MU div container as this doesn't have the bounds we need if(b.intersects(item.getBounds())) return; cnt[2]++; fieldsLayer.removeLayer(fieldgroup); @@ -542,13 +542,13 @@ window.renderField = function(ent) { var reg = ent[2].capturedRegion; var latlngs = [ - new L.LatLng(reg.vertexA.location.latE6/1E6, reg.vertexA.location.lngE6/1E6), - new L.LatLng(reg.vertexB.location.latE6/1E6, reg.vertexB.location.lngE6/1E6), - new L.LatLng(reg.vertexC.location.latE6/1E6, reg.vertexC.location.lngE6/1E6) + L.latLng(reg.vertexA.location.latE6/1E6, reg.vertexA.location.lngE6/1E6), + L.latLng(reg.vertexB.location.latE6/1E6, reg.vertexB.location.lngE6/1E6), + L.latLng(reg.vertexC.location.latE6/1E6, reg.vertexC.location.lngE6/1E6) ]; // Curve fit equation to normalize zoom window area - var areaZoomRatio = calcTriArea(latlngs)/Math.exp(14.2714860198866-1.384987247*map.getZoom()) + var areaZoomRatio = calcTriArea(latlngs)/Math.exp(14.2714860198866-1.384987247*map.getZoom()); // Do nothing if zoom did not change. We need to recheck the field if the // zoom level is different then when the field was rendered as it could