[OpenLayers-Users] The code that I forgot ^^
Mike Adair
madair at dmsolutions.ca
Tue Apr 15 09:49:59 EDT 2008
I just encountered something similar with the latest MS4W. I was
getting an error on the image requests:
loadForm(): Web application error. Invalid mode.
but when I change the MapServer URL from 'localhost' to
http://127.0.0.1/cgi-bin/mapserv.exe
it worked, not at all sure why.
Mike
Clemiou wrote:
> Excuse but my mail box doesn't like the HTML code :)
>
> Sincerely yours
> Clement
>
>
>
> function init()
> {
> map = new OpenLayers.Map( 'map' );
> layer = new OpenLayers.Layer.MapServer( "OpenLayers WMS",
> "http://localhost/cgi-bin/mapserv?map=/var/www/html/ms/map_files/france.map", {layers: 'FRANCE'},
> {gutter: 1});
> map.addLayer(layer);
>
> map.setCenter(new OpenLayers.LonLat(lon, lat), zoom);
> map.addControl( new OpenLayers.Control.LayerSwitcher() );
> }
>
>
> _________________________________________________________________
> Avec Hotmail, vos e-mails vous suivent partout ! Mettez Hotmail sur votre mobile !
> http://www.messengersurvotremobile.com/?d=hotmail
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
>
More information about the Users
mailing list