Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/map/MapOutputTab.java @ 1400:96708d81eaf6
Added an initial GetFeatureInfo tool to get information about points in the map.
flys-client/trunk@3285 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Thu, 17 Nov 2011 16:20:55 +0000 |
parents | b3264b5770b3 |
children | 6a7cfe9d87fe |
comparison
equal
deleted
inserted
replaced
1399:748e7c828d03 | 1400:96708d81eaf6 |
---|---|
348 return null; | 348 return null; |
349 } | 349 } |
350 | 350 |
351 AttributedTheme at = (AttributedTheme) theme; | 351 AttributedTheme at = (AttributedTheme) theme; |
352 | 352 |
353 String type = at.getAttr("name"); | 353 String type = at.getAttr("name"); |
354 String desc = at.getAttr("description"); | 354 String desc = at.getAttr("description"); |
355 String url = at.getAttr("url"); | 355 String url = at.getAttr("url"); |
356 String layers = at.getAttr("layers"); | 356 String layers = at.getAttr("layers"); |
357 | 357 |
358 if (url == null || layers == null) { | 358 if (url == null || layers == null) { |
359 return null; | 359 return null; |
360 } | 360 } |
361 | 361 |
369 WMSOptions opts = new WMSOptions(); | 369 WMSOptions opts = new WMSOptions(); |
370 opts.setProjection("EPSG:" + getSrid()); | 370 opts.setProjection("EPSG:" + getSrid()); |
371 opts.setSingleTile(true); | 371 opts.setSingleTile(true); |
372 opts.setRatio(1); | 372 opts.setRatio(1); |
373 | 373 |
374 WMS wms = new WMS(desc, url, params, opts); | 374 WMS wms = new WMS(layers, url, params, opts); |
375 wms.setIsVisible(at.getActive() == 1); | 375 wms.setIsVisible(at.getActive() == 1); |
376 wms.setIsBaseLayer(false); | 376 wms.setIsBaseLayer(false); |
377 | 377 |
378 return wms; | 378 return wms; |
379 } | 379 } |