All, 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.
cheers, Tom <html xmlns="http://www.w3.org/1999/xhtml"> <head> <?php include('c:\inetpub\wwwroot\functions\phpgeneric\jdiolmapclass.php'); $map = new JDiOLMap(600,600,543443,255213,7); $map->add27700Options(); $map->addWMSLayer('Layer1', 'layername1', 'image/jpeg', null, ' http://mywms?', true, 'Copyright message'); $map->addWMSLayer('Layer2', 'layername2', 'image/jpeg', null, ' http://mywms?', true); $map->addOLControl('MouseDefaults'); $map->overrideZoom(); $map->addOLControl('LayerSwitcher'); $map->addOLControl('PanZoomBar'); $map->addPointClickForForm('x','y', 538073, -5570129); $map->drawHTMLHeaderBits(); $map->drawLoadMethod(); ?> </head> <body onload="init()"> <?php $map->drawMapDiv(); ?> <div name="info" id="info"></div> <form name="the_form"> <input type="text" id="x" name="x" /> <input type="text" id="y" name="y" /> </form> </body> </html> On 8/20/07, Burgholzer,Robert <[EMAIL PROTECTED]> wrote: > > I think this would be quite useful, and really, I would like to see it > as a web-based application, in which case, I would be quite interested > in helping to develop. > > Please keep me tuned in, on or off-list. > > r.b. > > Robert W. Burgholzer > Surface Water Modeler > Office of Water Supply and Planning > Virginia Department of Environmental Quality > [EMAIL PROTECTED] > 804-698-4405 > Open Source Modeling Tools: > http://sourceforge.net/projects/npsource/ > Web-Based Water Supply Planning Demo: > http://soulswimmer.dynalias.net/models/wsdemo/demo_hsi.php > > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > On Behalf Of Darren Cope > Sent: Monday, August 20, 2007 8:47 AM > To: Bart van den Eijnden (OSGIS) > Cc: [email protected] > Subject: Re: [OpenLayers-Users] OpenLayers "wizard" > > Hi Bart, > > Speaking as someone who knows nothing about javascript, yes, I would > find this very useful! > > Cheers, > > Darren > > On 8/20/07, Bart van den Eijnden (OSGIS) <[EMAIL PROTECTED]> wrote: > > Hi list, > > > > is there any interest in a wizard type of functionality, where users > can > > configure their personal settings of an OpenLayers application (which > tools > > they want, which type of map navigation they want etc.)? > > > > Also, this could be used as an application to quickly develop > webmapping > > clients based on OpenLayers for people who know nothing about > javascript. > > > > Any ideas/thoughts appreciated. > > > > Best regards, > > Bart > > > > -- > > Bart van den Eijnden > > OSGIS, Open Source GIS > > http://www.osgis.nl > > > > > > > > > > > > _______________________________________________ > > Users mailing list > > [email protected] > > http://openlayers.org/mailman/listinfo/users > > > > > -- > Darren Cope > http://dmcope.freeshell.org > _______________________________________________ > Users mailing list > [email protected] > http://openlayers.org/mailman/listinfo/users > _______________________________________________ > Users mailing list > [email protected] > http://openlayers.org/mailman/listinfo/users >
_______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
