All,<br><br>I have been writing a PHP class to make OpenLayers setup much more straightforward and would be happy to make this available if anyone is interested.&nbsp; Don&#39;t know if it helps the specific cause of this thread but an example of a calling file is shown below.&nbsp; The example includes 2 WMS layers, a layer switcher, standard mouse controls, zoom, pan control and the ability to click a point and have the co-ordinates saved in a form for later submission to cgi.&nbsp; There&#39;s a few fairly bespoke features in the full class (including specific settings for EPSG:27700 [British National Grid])&nbsp; and it&#39;s definitely a work in progress but if anybody was interested in developing it further, or if anyone knows of a similar project let me know.
<br><br>cheers,<br><br>Tom<br><br><span style="font-family: courier new,monospace;">&lt;html xmlns=&quot;<a href="http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml</a>&quot;&gt;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp; &lt;head&gt;</span><span style="font-family: courier new,monospace;"></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
&nbsp;&nbsp;&nbsp; &lt;?php</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; include(&#39;c:\inetpub\wwwroot\functions\phpgeneric\jdiolmapclass.php&#39;);</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; </span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; $map = new JDiOLMap(600,600,543443,255213,7);</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; $map-&gt;add27700Options();</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; </span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; $map-&gt;addWMSLayer(&#39;Layer1&#39;, &#39;layername1&#39;, &#39;image/jpeg&#39;, null, &#39;<a href="http://mywms?">http://mywms?</a>&#39;, true, &#39;Copyright message&#39;);
</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; $map-&gt;addWMSLayer(&#39;Layer2&#39;, &#39;layername2&#39;, &#39;image/jpeg&#39;, null, &#39;<a href="http://mywms?">
http://mywms?</a>&#39;, true);</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
&nbsp;&nbsp;&nbsp; $map-&gt;addOLControl(&#39;MouseDefaults&#39;);</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; $map-&gt;overrideZoom();</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; $map-&gt;addOLControl(&#39;LayerSwitcher&#39;);</span><span style="font-family: courier new,monospace;"></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
&nbsp;&nbsp;&nbsp; $map-&gt;addOLControl(&#39;PanZoomBar&#39;);</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; </span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
&nbsp;&nbsp;&nbsp; $map-&gt;addPointClickForForm(&#39;x&#39;,&#39;y&#39;, 538073, -5570129);</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; </span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; $map-&gt;drawHTMLHeaderBits();</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; $map-&gt;drawLoadMethod();</span>
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; </span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; ?&gt;</span>
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp; &lt;/head&gt;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp; &lt;body onload=&quot;init()&quot;&gt;
</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; &lt;?php</span><span style="font-family: courier new,monospace;"></span><span style="font-family: courier new,monospace;">
 $map-&gt;drawMapDiv();</span><span style="font-family: courier new,monospace;"></span><span style="font-family: courier new,monospace;"> ?&gt;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
&nbsp;&nbsp;&nbsp; &lt;div name=&quot;info&quot; id=&quot;info&quot;&gt;&lt;/div&gt;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; &lt;form name=&quot;the_form&quot;&gt;</span>
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; &lt;input type=&quot;text&quot; id=&quot;x&quot; name=&quot;x&quot; /&gt; &lt;input type=&quot;text&quot; id=&quot;y&quot; name=&quot;y&quot; /&gt;
</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; &lt;/form&gt;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
&nbsp; &lt;/body&gt;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&lt;/html&gt;</span><br><br><br><br><div><span class="gmail_quote">On 8/20/07, <b class="gmail_sendername">
Burgholzer,Robert</b> &lt;<a href="mailto:rwburgholzer@deq.virginia.gov">rwburgholzer@deq.virginia.gov</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I think this would be quite useful, and really, I would like to see it<br>as a web-based application, in which case, I would be quite interested<br>in helping to develop.<br><br>Please keep me tuned in, on or off-list.<br>
<br>r.b.<br><br>Robert W. Burgholzer<br>Surface Water Modeler<br>Office of Water Supply and Planning<br>Virginia Department of Environmental Quality<br><a href="mailto:rwburgholzer@deq.virginia.gov">rwburgholzer@deq.virginia.gov
</a><br>804-698-4405<br>Open Source Modeling Tools:<br><a href="http://sourceforge.net/projects/npsource/">http://sourceforge.net/projects/npsource/</a><br>Web-Based Water Supply Planning Demo:<br><a href="http://soulswimmer.dynalias.net/models/wsdemo/demo_hsi.php">
http://soulswimmer.dynalias.net/models/wsdemo/demo_hsi.php</a><br><br>-----Original Message-----<br>From: <a href="mailto:users-bounces@openlayers.org">users-bounces@openlayers.org</a> [mailto:<a href="mailto:users-bounces@openlayers.org">
users-bounces@openlayers.org</a>]<br>On Behalf Of Darren Cope<br>Sent: Monday, August 20, 2007 8:47 AM<br>To: Bart van den Eijnden (OSGIS)<br>Cc: <a href="mailto:users@openlayers.org">users@openlayers.org</a><br>Subject: Re: [OpenLayers-Users] OpenLayers &quot;wizard&quot;
<br><br>Hi Bart,<br><br>Speaking as someone who knows nothing about javascript, yes,&nbsp;&nbsp;I would<br>find this very useful!<br><br>Cheers,<br><br>Darren<br><br>On 8/20/07, Bart van den Eijnden (OSGIS) &lt;<a href="mailto:bartvde@osgis.nl">
bartvde@osgis.nl</a>&gt; wrote:<br>&gt; Hi list,<br>&gt;<br>&gt; is there any interest in a wizard type of functionality, where users<br>can<br>&gt; configure their personal settings of an OpenLayers application (which<br>
tools<br>&gt; they want, which type of map navigation they want etc.)?<br>&gt;<br>&gt; Also, this could be used as an application to quickly develop<br>webmapping<br>&gt; clients based on OpenLayers for people who know nothing about
<br>javascript.<br>&gt;<br>&gt; Any ideas/thoughts appreciated.<br>&gt;<br>&gt; Best regards,<br>&gt; Bart<br>&gt;<br>&gt; --<br>&gt; Bart van den Eijnden<br>&gt; OSGIS, Open Source GIS<br>&gt; <a href="http://www.osgis.nl">
http://www.osgis.nl</a><br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt; _______________________________________________<br>&gt; Users mailing list<br>&gt; <a href="mailto:Users@openlayers.org">Users@openlayers.org</a><br>
&gt; <a href="http://openlayers.org/mailman/listinfo/users">http://openlayers.org/mailman/listinfo/users</a><br>&gt;<br><br><br>--<br>Darren Cope<br><a href="http://dmcope.freeshell.org">http://dmcope.freeshell.org</a><br>
_______________________________________________<br>Users mailing list<br><a href="mailto:Users@openlayers.org">Users@openlayers.org</a><br><a href="http://openlayers.org/mailman/listinfo/users">http://openlayers.org/mailman/listinfo/users
</a><br>_______________________________________________<br>Users mailing list<br><a href="mailto:Users@openlayers.org">Users@openlayers.org</a><br><a href="http://openlayers.org/mailman/listinfo/users">http://openlayers.org/mailman/listinfo/users
</a><br></blockquote></div><br>