/trunk/src/org/tela_botanica/client/vues/observation/CartographieObservationVue.java |
---|
263,8 → 263,11 |
} |
public void recentrerCarte() { |
map.setSize((this.getWidth() - 12)+"px" , (this.getHeight() - 24)+"px"); |
panneauCarto.setSize((this.getWidth() - 12)+"px" , (this.getHeight() - 12)+"px"); |
if(this.getWidth() > 12 && this.getHeight() > 24) { |
map.setSize((this.getWidth() - 12)+"px" , (this.getHeight() - 24)+"px"); |
panneauCarto.setSize((this.getWidth() - 12)+"px" , (this.getHeight() - 12)+"px"); |
} |
map.setCenter(pointCommune, niveauZoom); |
map.checkResizeAndCenter(); |
} |