[OpenLayers-Users] difference between OpenLayers.Layer.WMS and OpenLayers.Layer.MapServer?

Christopher Schmidt crschmidt at metacarta.com
Fri Mar 13 10:08:41 EDT 2009


On Fri, Mar 13, 2009 at 01:19:40PM +0100, Asle Benoni wrote:
> So can I use a mapfile from mapserver like this even if the map is a XX.map
> file? :
> 
> layer = new OpenLayers.Layer.WMS( "My map",
> attribues_like_for_a_wms_file.....

Except that you forgot the "url" parameter, ys. You'll probably put
{'map': '/my/map/file.map', ...} as your first parameter.

> I am a newbie so forgive if it is a stupid question.
> 
> /asle
> 
> 2009/3/13 Christopher Schmidt <crschmidt at metacarta.com>
> >
> > On Fri, Mar 13, 2009 at 08:25:09AM +0100, Guillaume Sueur wrote:
> > > Hi,
> > >
> > > The first one uses WMS and the second one is directly hitting the
> > > mapfile. For performance, security, robustness and so I would suggest to
> > > use WMS, but if you don't care about all these (and you can) just use
> > > .MapServer and use it like your old cgi buddy !
> >
> > Please don't use Layer.MapServer unless you have to. It is really only
> > there for pople who are uanble to configure the server side of their
> > MapSever to act as a WMS, and it will cause you more pain than you will
> > gain.
> >
> > > Regards
> > >
> > > Guillaume
> > >
> > > MeLv1n wAuRaN a écrit :
> > > > hi all,
> > > >
> > > > what's the difference between OpenLayers.Layer.WMS and
> > > > OpenLayers.Layer.MapServer? i'm using a mapserver cgi to render my
> > > > mapfile. so, which one should i use? the wms or the mapserver?
> > > >
> > > >
> > > >
> ------------------------------------------------------------------------
> > > >
> > > > _______________________________________________
> > > > Users mailing list
> > > > Users at openlayers.org
> > > > http://openlayers.org/mailman/listinfo/users
> > > _______________________________________________
> > > Users mailing list
> > > Users at openlayers.org
> > > http://openlayers.org/mailman/listinfo/users
> >
> > --
> > Christopher Schmidt
> > MetaCarta
> > _______________________________________________
> > Users mailing list
> > Users at openlayers.org
> > http://openlayers.org/mailman/listinfo/users

-- 
Christopher Schmidt
MetaCarta



More information about the Users mailing list