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. Don't know if it helps the specific cause of this thread but an example of a calling file is shown below. 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. There's a few fairly bespoke features in the full class (including specific settings for EPSG:27700 [British National Grid]) and it'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;"><html xmlns="<a href="http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml</a>"></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> <head></span><span style="font-family: courier new,monospace;"></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
<?php</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> include('c:\inetpub\wwwroot\functions\phpgeneric\jdiolmapclass.php');</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> </span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> $map = new JDiOLMap(600,600,543443,255213,7);</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> $map->add27700Options();</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> </span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> $map->addWMSLayer('Layer1', 'layername1', 'image/jpeg', null, '<a href="http://mywms?">http://mywms?</a>', true, 'Copyright message');
</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> $map->addWMSLayer('Layer2', 'layername2', 'image/jpeg', null, '<a href="http://mywms?">
http://mywms?</a>', true);</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> </span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
$map->addOLControl('MouseDefaults');</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> $map->overrideZoom();</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> $map->addOLControl('LayerSwitcher');</span><span style="font-family: courier new,monospace;"></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
$map->addOLControl('PanZoomBar');</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> </span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
$map->addPointClickForForm('x','y', 538073, -5570129);</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> </span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> $map->drawHTMLHeaderBits();</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> $map->drawLoadMethod();</span>
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> </span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> ?></span>
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> </head></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> <body onload="init()">
</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> <?php</span><span style="font-family: courier new,monospace;"></span><span style="font-family: courier new,monospace;">
$map->drawMapDiv();</span><span style="font-family: courier new,monospace;"></span><span style="font-family: courier new,monospace;"> ?></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
<div name="info" id="info"></div></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> <form name="the_form"></span>
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> <input type="text" id="x" name="x" /> <input type="text" id="y" name="y" />
</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> </form></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
</body></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"></html></span><br><br><br><br><div><span class="gmail_quote">On 8/20/07, <b class="gmail_sendername">
Burgholzer,Robert</b> <<a href="mailto:rwburgholzer@deq.virginia.gov">rwburgholzer@deq.virginia.gov</a>> 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 "wizard"
<br><br>Hi Bart,<br><br>Speaking as someone who knows nothing about javascript, yes, I would<br>find this very useful!<br><br>Cheers,<br><br>Darren<br><br>On 8/20/07, Bart van den Eijnden (OSGIS) <<a href="mailto:bartvde@osgis.nl">
bartvde@osgis.nl</a>> wrote:<br>> Hi list,<br>><br>> is there any interest in a wizard type of functionality, where users<br>can<br>> configure their personal settings of an OpenLayers application (which<br>
tools<br>> they want, which type of map navigation they want etc.)?<br>><br>> Also, this could be used as an application to quickly develop<br>webmapping<br>> clients based on OpenLayers for people who know nothing about
<br>javascript.<br>><br>> Any ideas/thoughts appreciated.<br>><br>> Best regards,<br>> Bart<br>><br>> --<br>> Bart van den Eijnden<br>> OSGIS, Open Source GIS<br>> <a href="http://www.osgis.nl">
http://www.osgis.nl</a><br>><br>><br>><br>><br>><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><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>