nakijun / morisoliver

Automatically exported from code.google.com/p/morisoliver
0 stars 0 forks source link

Allow layergroups to print #174

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Layergroups are GeoServer "layers" that are groups of layers treated as one 
named layer.  Identify on individual layers is not possible, but print should 
be possible, as GetMap is. DEP is using layergroups more. 
Dur to performance issues we only show layergroups in MA State Plane custom 
projection so print would need to be limited to that. 

Here is a sample: 
http://maps.massgis.state.ma.us/map_ol/oliver.php?lyrs=MassGIS%20Default%20Map~m
assgis_basemap~&bbox=-71.06873014309123,42.356537232953485,-71.05852978631525,42
.360761115594855&coordUnit=m&measureUnit=m&base=custom&center=235948.55785844,90
0997.49700101&zoom=10.967141256249137&opacity=1&baseO=1&filt=undefined

Original issue reported on code.google.com by Aleda.Fr...@state.ma.us on 17 Aug 2012 at 1:11

GoogleCodeExporter commented 9 years ago
Due to performance issues we only show layergroups in MA State Plane custom 
projection so print would need to be limited to that. But that might happen 
automatically since layergroups are specified in the folderset XML as 
only_project="EPSG:26986".

Original comment by Aleda.Fr...@state.ma.us on 17 Dec 2012 at 5:48

GoogleCodeExporter commented 9 years ago
I am adding a different, working Permalink with a layergroup: 
http://maps.massgis.state.ma.us/map_ol/oliver.php?lyrs=MassDEP%20Title5%20Map~ma
ssgis_dep_title5~&bbox=-70.96670703295567,42.643259524465876,-70.93267794033284,
42.65197305368695&coordUnit=m&measureUnit=m&base=custom¢er=245127.54619312,9331
49.93769828&zoom=9.272727272727273&opacity=1&baseO=1&filt=undefined

The layergroup name is massgis_dep_title5
In the OLIVER folderset the line is:
<Layer title="MassDEP Title5 Map" style="" name="massgis_dep_title5" 
type="layergroup"/>

The previous sample used the layergroup massgis_basemap which is no longer 
available (we dropped it in favor of our new tilesets).

Original comment by Aleda.Fr...@state.ma.us on 24 Jun 2013 at 3:12

GoogleCodeExporter commented 9 years ago
I had taken the only_project="EPSG:26986" in the folderset off the DEP 
layergroups at their request.  While with the massgis_basemap the reproject too 
much too long, with the DEP layergroups which have fewer datalayers in them 
they were OK with waiting and then eventually getting the map while in 
non-26986 basemaps such as Google.  So to adjust what I initially said above 
layergroups should print in any basemap situation. 

Original comment by Aleda.Fr...@state.ma.us on 24 Jun 2013 at 3:22

GoogleCodeExporter commented 9 years ago
Aleda, I may be imagining things, but when I visit the link you provided and 
hit print, I see a nice image on my printable page.

I'm not sure how long this will last, 
http://maps.massgis.state.ma.us/temp/OL_MORIS_print/1372171143.569300877.html.

Original comment by cpl...@gmail.com on 25 Jun 2013 at 2:40

GoogleCodeExporter commented 9 years ago
Huh, I have to agree, it prints for me.  
I'm going to also try it with only_project="EPSG:26986" added to the folderset.
That works too.
Guess I'll mark this one "invalid" since it's not really a bug...

Original comment by Aleda.Fr...@state.ma.us on 25 Jun 2013 at 3:11