@Override public void processNode(Node n) { int glat = n.getMapLat(); int glon = n.getMapLon(); densityMap.addNode(glat, glon); details.addToBounds(glat, glon); }
@Override public Area getExactArea() { if (bounds != null) { return bounds; } else { return details.getBounds(); } }
@Override public void processNode(Node n) { // Since we are rounding areas to fit on a low zoom boundary we // can drop the bottom 8 bits of the lat and lon and then fit // the whole lot into a single int. int glat = n.getMapLat(); int glon = n.getMapLon(); int coord = ((glat << 8) & 0xffff0000) + ((glon >> 8) & 0xffff); coords.add(coord); details.addToBounds(glat, glon); }
public void saveMap(String fileName) { if (details != null && details.getBounds() != null) densityMap.saveMap(fileName, details.getBounds(), bounds); }
public Area getExactArea() { if (bounds != null) { return bounds; } return details.getBounds(); }