Re: [mapserver-users] CSS in a WMS GetFeatureInfo request

2021-08-12 Thread Basques, Bob (CI-StPaul)
James,

Thanks for the reply. The reason I need to have the CSS in the return is that I 
want to use Variable substitution inside the CSS from the template.  I need to 
style some stuff from the TEMPLATE call and attributes from the DB.

My next try was going to be with inline Styles, but for some reason DIV tags 
are not being  passed through the TEMPLATE call, need to figure that out first 
I think, maybe there is a way around requiring DIVs

Bobb



On 8/12/21, 3:27 AM, "mapserver-users on behalf of James Passmore - BGS" 
 wrote:

Think Before You Click: This email originated outside our organization.


Message: 1
Date: Wed, 11 Aug 2021 19:15:42 +
From: "Basques, Bob (CI-StPaul)" 
To: "mapserver-users@lists.osgeo.org"
    
    Subject: [mapserver-users] CSS in a WMS GetFeatureInfo request.
Message-ID:



Content-Type: text/plain; charset="us-ascii"

Can/should CSS stuff be returned in a GetFeatureInfo request?  Does it need 
to be formatted a certain way?

Thanks

Bobb


I add CSS  mostly as a file on the web server and reference the file in the 
HTML Query_header.html

like:


http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
http://www.w3.org/1999/xhtml";>
Terrafirma legacy PSI data service OGC WMS query result
...
http://ogc.bgs.ac.uk/jq/jquery.min.js"</a>;>
http://ogc.bgs.ac.uk/jq/jquery.jqplot.min.js"</a>;>
http://ogc.bgs.ac.uk/jq/jqplot.dateAxisRenderer.min.js"</a>;>
http://ogc.bgs.ac.uk/jq/jquery.jqplot.min.css"; />
http://ogc.bgs.ac.uk/BGS_ESA_EN_Terrafirma/default.css"; />


Legend
http://ogc.bgs.ac.uk/cgi-bin/TFL-PSI/ows?language=eng&version=1.3.0&service=WMS&request=GetLegendGraphic&sld_version=1.1.0&format=image/png&STYLE=default&layer=[layer]&";
 alt="Legend for [layer]" />


but use some  inline styling in the template like:


Request debugging:crs=[CRS]i=[I]j=[J]query_layers=[query_layers]bbox=[BBOX]feature_count=[FEATURE_COUNT]

Terrafirma 1:5000 ground motion 
report


Re: [mapserver-users] CSS in a WMS GetFeatureInfo request

2021-08-12 Thread James Passmore - BGS
Message: 1
Date: Wed, 11 Aug 2021 19:15:42 +
From: "Basques, Bob (CI-StPaul)" 
To: "mapserver-users@lists.osgeo.org"

Subject: [mapserver-users] CSS in a WMS GetFeatureInfo request.
Message-ID:



Content-Type: text/plain; charset="us-ascii"

Can/should CSS stuff be returned in a GetFeatureInfo request?  Does it need to 
be formatted a certain way?

Thanks

Bobb


I add CSS  mostly as a file on the web server and reference the file in the 
HTML Query_header.html

like:


http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
http://www.w3.org/1999/xhtml";>
Terrafirma legacy PSI data service OGC WMS query result
...
http://ogc.bgs.ac.uk/jq/jquery.min.js"</a>;>
http://ogc.bgs.ac.uk/jq/jquery.jqplot.min.js"</a>;>
http://ogc.bgs.ac.uk/jq/jqplot.dateAxisRenderer.min.js"</a>;>
http://ogc.bgs.ac.uk/jq/jquery.jqplot.min.css"; />
http://ogc.bgs.ac.uk/BGS_ESA_EN_Terrafirma/default.css"; />


Legend
http://ogc.bgs.ac.uk/cgi-bin/TFL-PSI/ows?language=eng&version=1.3.0&service=WMS&request=GetLegendGraphic&sld_version=1.1.0&format=image/png&STYLE=default&layer=[layer]&";
 alt="Legend for [layer]" />


but use some  inline styling in the template like:


Request debugging:crs=[CRS]i=[I]j=[J]query_layers=[query_layers]bbox=[BBOX]feature_count=[FEATURE_COUNT]

Terrafirma 1:5000 ground motion 
report


Re: [mapserver-users] CSS in a WMS GetFeatureInfo request.

2021-08-11 Thread Basques, Bob (CI-StPaul)
More info:

I'm getting back a result from the GetFeatureInfo request, but only a Fragment 
of it.

The highlighted chunk of the following TEMPLATE is what comes out of the 
request (and wrapped int the WMS DIV : class="wmsGetFeatureInfo")



IGLEHART AVE: WHEELER ST N - CARROLL AVE
Synergen ID: S-0509229

:






.container {
  position: relative;
}

.center {
  position: absolute;
  left: 60px;
  top: 30px;

  text-align: center;
  font-size: 18px;
  transform:rotate(45deg);
-ms-transform:rotate(45deg);
-webkit-transform:rotate(45deg);
}

img {
  width: 100%;
  height: auto;
  opacity: 0.5;
}




Image Text

[streetall]: [f_xstreet] - [t_xstreet]
Synergen ID: [cmmsparent]
[shpxy]


  https://gis.ci.stpaul.mn.us/datasets/PUBLIC/TRANSPORTATION/STP_CENTERLINE/centerlines_stpaul_public.map?LAYERS=all&QUERY_LAYERS=all&STYLES=&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&BBOX=552775.769888%2C157191.136116%2C554819.538797%2C158508.950911&FEATURE_COUNT=10&HEIGHT=855&WIDTH=1326&FORMAT=image%2Fpng&INFO_FORMAT=text%2Fhtml&SRS=EPSG%3A200068&X=556&Y=452&TRANSPARENT=TRUE";
 alt="Map" width="1326" height="855">
  





From: mapserver-users  On Behalf Of 
Basques, Bob (CI-StPaul)
Sent: Wednesday, August 11, 2021 2:16 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] CSS in a WMS GetFeatureInfo request.

Think Before You Click: This email originated outside our organization.

Can/should CSS stuff be returned in a GetFeatureInfo request?  Does it need to 
be formatted a certain way?

Thanks

Bobb




___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] CSS in a WMS GetFeatureInfo request.

2021-08-11 Thread Basques, Bob (CI-StPaul)
Can/should CSS stuff be returned in a GetFeatureInfo request?  Does it need to 
be formatted a certain way?

Thanks

Bobb




___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users