Antw: [Mapbender-users] Layer Abfragbar machen

Ronald Woita Ronald.Woita at rostock.de
Fri Jul 13 01:22:12 EDT 2007


Hi Lucas,

first you have to deactivate the modul FeatureInfoRedirect, that's responsible for redirect featureInfoRequests in the iframe next to the mapframe.
The value for the keyword Template is the (relative) path to the map-file, like
TEMPLATE '../templates/test.html'

at last an example for a template-file :
the attributes in the square brackets are the names of the data columns (in that case Oracle Datastore) 

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
  <head>
    <title>GetFeatureInfo - Results</title>
  </head>

  <body bgcolor="#ffffff">
    <table width="200" border="1" rules="none" Cellspacing="0" style="font-family:arial;font-size:12px">
	<tr>
	  <th colspan="2" align="center" bgcolor="#CCCCCC">Baustellen</th>
	</tr>
	<tr>
	  <td><b>[STRASSE]</b></td>
      </tr>
	<tr>
	  <td><b>[LAGE_DER_BAUSTELLE]</b></td>
      </tr>
	<tr>
	  <td>[ART_DER_SPERRUNG]</td>
      <tr>
	  <td>[MASSNAHME]</td>
      </tr>
	<tr>
	  <td>von: [STARTTIME]<br>
	      bis: [ENDTIME]</td>
      </tr>
     </table>
  </body>
</html>


greetings

Ronald

--
Ronald Woita
http://geoportal.rostock.de
Hansestadt Rostock
Kataster-, Vermessungs- und Liegenschaftsamt
Holbeinplatz 14, 18069 Rostock
email: ronald.woita at rostock.de 
phone: +49 (0)381 - 381 6256

>>> Lucas Beck <lucasbeck at gmx.ch> 12.07.2007 18:47 >>>
nun, die Freude ist doch erst halb.
mir ist nicht ganz klar, wo und wie ich nun dieses template also das
.html file hinlegen muss damit ich so ein schönes popup bekomme und
nicht einfach die rohdaten am rand meines frames...
hat da jemand ein beispiel eines solchen html - templates?

gruss
lucas


Ronald Woita wrote:
> Hi Lucas,
>
> so it is !
> you have to define a template for html-output and set the keyword DUMP 'true'
> I think for output text/plain you must make following entry in the layer metadata section     "wms_include_items" "all"
> at last update the WMS-Service in Mapbender . . . 
>
> Ronald
>  
>
> --
> Ronald Woita
> http://geoportal.rostock.de 
> Hansestadt Rostock
> Kataster-, Vermessungs- und Liegenschaftsamt
> Holbeinplatz 14, 18069 Rostock
> email: ronald.woita at rostock.de 
> phone: +49 (0)381 - 381 6256
>
>   
>>>> Lucas Beck <lucasbeck at gmx.ch> 12.07.2007 14:56 >>>
>>>>         
> Hallo Liste,
>
> ich habe Mapbender 2.4.1 und den UMN mapserver 4.8.1
> Nun möchte ich gerne meine Layer abfragbar machen. Die  entsprechenden
> Kästchen unter "WMS GUI Einstellungen" sind aber inaktiv...
> Was muss ich dazu tun? Liegt das an den Einstellungen im .map-File?
>
> Gruss
> Lucas
> _______________________________________________
> Mapbender_users mailing list
> Mapbender_users at lists.osgeo.org 
> http://lists.osgeo.org/mailman/listinfo/mapbender_users 
>
> _______________________________________________
> Mapbender_users mailing list
> Mapbender_users at lists.osgeo.org 
> http://lists.osgeo.org/mailman/listinfo/mapbender_users 
>   



More information about the Mapbender_users mailing list