<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 9.00.8112.16457"></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT color=#000080 size=2 face=Arial><SPAN
class=006025200-12012013>I forgot to mention I also have this php code on top
above the JS code ..</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#000080 size=2 face=Arial><SPAN
class=006025200-12012013></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT color=#000080 size=2 face=Arial><SPAN
class=006025200-12012013><?php<BR># $Id:<BR># add vendor-specific parameters
to MapRequest and FeatureInfoRequests<BR># <A
href="http://www.mapbender.org/index.php/mod_add_vendorspecific.php">http://www.mapbender.org/index.php/mod_add_vendorspecific.php</A><BR>#<BR>#
License:<BR># Copyright (c) 2009, Open Source Geospatial Foundation<BR># This
program is dual licensed under the GNU General Public License <BR># and
Simplified BSD license. <BR># <A
href="http://svn.osgeo.org/mapbender/trunk/mapbender/license/license.txt">http://svn.osgeo.org/mapbender/trunk/mapbender/license/license.txt</A></SPAN></FONT></DIV>
<DIV><FONT color=#000080 size=2 face=Arial></FONT> </DIV>
<DIV dir=ltr align=left><FONT color=#000080 size=2 face=Arial><SPAN
class=006025200-12012013>require_once(dirname(__FILE__)."/../php/mb_validateSession.php");<BR>?></SPAN></FONT></DIV><BR>
<DIV dir=ltr lang=en-us class=OutlookMessageHeader align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>From:</B> karsten [mailto:karsten@terragis.net]
<BR><B>Sent:</B> Friday, January 11, 2013 04:50 PM<BR><B>To:</B>
'mapbender_users@lists.osgeo.org'<BR><B>Subject:</B> mb 2.7.3
vendorspecific<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV><FONT color=#000080 size=2 face=Arial><SPAN class=770223600-12012013>Hi
all,</SPAN></FONT></DIV>
<DIV><FONT color=#000080 size=2 face=Arial><SPAN
class=770223600-12012013></SPAN></FONT> </DIV>
<DIV><FONT color=#000080 size=2 face=Arial><SPAN class=770223600-12012013>I am
working on porting the last pieces of a MB 2.4.3 applciation to MB v 2.7.3.
The alst thing I need to fix is </SPAN></FONT><FONT color=#000080 size=2
face=Arial><SPAN class=770223600-12012013>a custom vendorspecific parameter that
is added to a query layer ( a wms MapServer layer with query string) . The
exisitng code from my 2.4.3 installation is not working any more. The code below
gives me the error</SPAN></FONT></DIV>
<DIV><FONT color=#000080 size=2 face=Arial><SPAN class=770223600-12012013>"Can't
read property wms from undefined "</SPAN></FONT></DIV>
<DIV><FONT color=#000080 size=2 face=Arial><SPAN class=770223600-12012013>in
line
mb_registerVendorSpecific("mod_vs_init(mb_mapObj[i].wms[ii].wms_title,
functionName)");</SPAN></FONT></DIV>
<DIV><FONT color=#000080 size=2 face=Arial><SPAN
class=770223600-12012013></SPAN></FONT> </DIV>
<DIV><FONT color=#000080 size=2 face=Arial><SPAN class=770223600-12012013>In
mod_add_vendorspecific.php I have the following:</SPAN></FONT></DIV>
<DIV><FONT color=#000080 size=2 face=Arial><SPAN
class=770223600-12012013></SPAN></FONT><FONT color=#000080 size=2
face=Arial><SPAN class=770223600-12012013><SPAN
class=770223600-12012013>--------------<SPAN
class=770223600-12012013>--------------<SPAN
class=770223600-12012013>--------------<SPAN
class=770223600-12012013>--------------<SPAN
class=770223600-12012013>--------------<SPAN
class=770223600-12012013>--------------<SPAN
class=770223600-12012013>--------------<SPAN
class=770223600-12012013>--------------</SPAN></SPAN></SPAN></SPAN></SPAN></SPAN></SPAN></SPAN></SPAN></FONT></DIV>
<DIV><FONT color=#000080 size=2
face=Arial>mb_registerVendorSpecific("mod_vs_init(mb_mapObj[i].wms[ii].wms_title,
functionName)");</FONT></DIV>
<DIV> </DIV>
<DIV><FONT color=#000080 size=2 face=Arial>var cruiseFilter = 'select *
from<SPAN class=770223600-12012013> </SPAN>counties where 1=2';<BR>var
addAffectedWMSTitle = "Query";</FONT></DIV>
<DIV> </DIV>
<DIV><FONT color=#000080 size=2 face=Arial>function mod_vs_init(wmsTitle,
functionName) {<BR> if (functionName == 'setMapRequest' || functionName ==
'setSingleMapRequest') { <BR> if (wmsTitle ==
addAffectedWMSTitle){<BR> var cruiseFilterString =
escape(cruiseFilter);<BR> return 'cruiseFilterCondition=' +
cruiseFilterString;<BR> }<BR> }<BR>}</FONT></DIV>
<DIV> </DIV>
<DIV><FONT color=#000080 size=2 face=Arial>function
buildMapfileFilter(themapSQL){<BR></FONT><FONT face=Arial><FONT
color=#000080><FONT size=2> cruiseFilter =
themapSQL;<BR> zoom("mapframe1",
true,0.9999);<BR>}</FONT></FONT></FONT></DIV>
<DIV><FONT color=#000080 size=2 face=Arial></FONT> </DIV>
<DIV><SPAN class=770223600-12012013><FONT color=#000080 size=2
face=Arial>-----------------------------------------------------------------------------------</FONT></SPAN></DIV>
<DIV><SPAN class=770223600-12012013><FONT color=#000080 size=2
face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=770223600-12012013><FONT color=#000080 size=2 face=Arial>Any
hint is greatly appreciated</FONT></SPAN></DIV>
<DIV align=left>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Verdana','sans-serif'; FONT-SIZE: 11pt">Karsten</SPAN></P></DIV><br/><br/><br><br><FONT face="Tahoma" size="2"><br>=======<br>Email scanned by PC Tools - No viruses or spyware found.<br>(Email Guard: 9.0.0.2308, Virus/Spyware Database: 6.20940)<br><a href=http://www.pctools.com/?cclick=EmailFooterClean_51>http://www.pctools.com</a><br>=======</FONT>
</BODY></HTML>