private void detachOverview() { if (!overviewAttached) { return; } for (Marker m : overview) { m.setMap(null); } overviewAttached = false; }
private void attachOverview() { if (overviewAttached) { return; } if (map == null) { return; } for (Marker m : overview) { m.setMap(map); } overviewAttached = true; }
private void attachCurrentHum() { if (currentHum == null || currentHum.getMap() != null) { return; } currentHum.setMap(map); }
private void detachCurrentHum() { if (currentHum == null || currentHum.getMap() == null) { return; } currentHum.setMap(null); }