Daniel,<br><br>Adding a viewer with zoom and pan capabilities is a good idea which is better then having a single image in some cases. I foresee a reasonable Web administration interface to mapserver could 
also be established by such additions which would be a requirement too.<br>However embedding code from a separate project seems to be a hassle, though the technical solution hasn&#39;t yet been mentioned in the ticket.<br>
<br>I would be in favour of doing either:<br><br>1. Create a simple  (mapserver specific) .js to provide the required functionality (which could be extended later with further options)<br>2. Provide a (pluggable) interface for use by the potential viewers in mapserver, and  create a separate support package for at least one (like openlayers for instance) and include the external code to this package.<br>
<br><br>(Just to put my 2 cents in)<br><br>Best regards,<br><br>Tamas<br><br><br><br><br><br><div class="gmail_quote">2010/9/24 Daniel Morissette <span dir="ltr">&lt;<a href="mailto:dmorissette@mapgears.com">dmorissette@mapgears.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">This was discussed at the code sprint in Barcelona, and I just created a<br>
ticket for it. We&#39;d like to add this to 6.0... but I am realizing just<br>
now that maybe I should start with a RFC...<br>
<br>
Anyway, here is what I wrote in the ticket, please feel free to comment,<br>
keeping in mind this has to remain __simple__:<br>
<br>
<a href="http://trac.osgeo.org/mapserver/ticket/3549" target="_blank">http://trac.osgeo.org/mapserver/ticket/3549</a><br>
<br>
Every once in a while we get requests for a simple way to test a<br>
mapfile. One way to handle this could be to do as GeoServer does and<br>
provide a built-in OpenLayers based map viewer. In the GeoServer case,<br>
this viewer is returned when one issues a WMS GetMap request with<br>
format=application/openlayers in it.<br>
<br>
I propose that we provide a similar functionality in MapServer, which<br>
would be triggered in one of two ways:<br>
<br>
1- Using mapserv?map=/path/to/my.map&amp;&#39;&#39;&#39;mode=openlayers&#39;&#39;&#39; ... in this<br>
case the viewer would be initialized based on the mapfile defaults, and<br>
some of the traditional mapserv CGI params may also work (such as map<br>
size, layer selection, etc.)<br>
<br>
2- Using &#39;&#39;&#39;format=application/openlayers&#39;&#39;&#39; in a WMS GetMap request as<br>
GeoServer does. Note that in this case the rest of the GetMap parameters<br>
would be used to configure the map to view (BBOX, WIDTH, HEIGHT, LAYERS,<br>
etc.)<br>
<br>
Both cases would call the same function internally to produce a simple<br>
OpenLayeres viewer with one singletile layer for the whole map with the<br>
selected layers.<br>
<font color="#888888"><br>
<br>
--<br>
Daniel Morissette<br>
<a href="http://www.mapgears.com/" target="_blank">http://www.mapgears.com/</a><br>
_______________________________________________<br>
mapserver-dev mailing list<br>
<a href="mailto:mapserver-dev@lists.osgeo.org">mapserver-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-dev</a><br>
</font></blockquote></div><br>