comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/map/MapToolbar.java @ 1418:750a53950e9f

The WMSLayerTree displays WMS layers that support a given SRS only. flys-client/trunk@3326 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Mon, 28 Nov 2011 16:27:36 +0000
parents 659a488243da
children d73f503f2465
comparison
equal deleted inserted replaced
1417:42d6cf6e10b7 1418:750a53950e9f
520 return button; 520 return button;
521 } 521 }
522 522
523 523
524 protected ImgButton createWMSControl() { 524 protected ImgButton createWMSControl() {
525 final String srs = floodMap.getRiverProjection();
526
525 ImgButton add = createButton(MSG.addWMS(), new ClickHandler() { 527 ImgButton add = createButton(MSG.addWMS(), new ClickHandler() {
526 public void onClick(ClickEvent event) { 528 public void onClick(ClickEvent event) {
527 MapOutputTab ot = (MapOutputTab) getOutputTab(); 529 MapOutputTab ot = (MapOutputTab) getOutputTab();
528 new ExternalWMSWindow(ot).start(); 530 new ExternalWMSWindow(ot, srs).start();
529 } 531 }
530 }); 532 });
531 533
532 add.setTooltip(MSG.addWMSTooltip()); 534 add.setTooltip(MSG.addWMSTooltip());
533 535

http://dive4elements.wald.intevation.org