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")

<div class="wmsGetFeatureInfo">
<br />
<b>IGLEHART AVE:</b> WHEELER ST N - CARROLL AVE<br/>
<b>Synergen ID: </b>S-0509229<br/>
</div>
:


<!-- MapServer Template -->
<html>
<head>
<style>
.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;
}
</style>
</head>
<body>

<h2>Image Text</h2>
                                <br />
                <b>[streetall]:</b> [f_xstreet] - [t_xstreet]<br/>
                <b>Synergen ID: </b>[cmmsparent]<br/>
                [shpxy]<br/>

<div class="container">
  <img 
src="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">
  <div class="center"><input type="text" size="5" value="9999" 
align="right"></div>
</div>

</body>
</html>

From: mapserver-users <[email protected]> On Behalf Of 
Basques, Bob (CI-StPaul)
Sent: Wednesday, August 11, 2021 2:16 PM
To: [email protected]
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
[email protected]
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to