<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div><span>Hey Rick,</span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: arial, helvetica, sans-serif; background-color: transparent; font-style: normal; "><span><br></span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: arial, helvetica, sans-serif; background-color: transparent; font-style: normal; "><span>Sorry, I totally didn't mean to snub you on this. I'm just bonkers busy between this an other projects.</span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: arial, helvetica, sans-serif; background-color: transparent; font-style: normal; "><span><br></span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: arial, helvetica, sans-serif; background-color: transparent; font-style: normal; "><span>What you'll need to do is hand-craft the WMS requests
with OpenLayers.</span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: arial, helvetica, sans-serif; background-color: transparent; font-style: normal; "><span><br></span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: arial, helvetica, sans-serif; background-color: transparent; font-style: normal; "><span>testLayer = new OpenLAyers.Layer.WMS("WRC WMS",</span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: arial, helvetica, sans-serif; background-color: transparent; font-style: normal; "><span><span class="Apple-tab-span" style="white-space:pre">        </span>"/cgi-bin/mapserv.exe",</span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: arial, helvetica, sans-serif; background-color: transparent; font-style: normal; "><span><span class="Apple-tab-span" style="white-space:pre">        </span>{</span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: arial, helvetica,
sans-serif; background-color: transparent; font-style: normal; "><span><span class="Apple-tab-span" style="white-space:pre">                </span>layers: "county_borders",</span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: arial, helvetica, sans-serif; background-color: transparent; font-style: normal; "><span><span class="Apple-tab-span" style="white-space:pre">                </span>transparent: "true",</span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: arial, helvetica, sans-serif; background-color: transparent; font-style: normal; "><span><span class="Apple-tab-span" style="white-space:pre">                </span>format: "image/png",</span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: arial, helvetica, sans-serif; background-color: transparent; font-style: normal; "><span><span class="Apple-tab-span" style="white-space:pre">                </span>"map" : "... your mapfile path ..."</span></div><div style="color: rgb(0, 0, 0);
font-size: 13px; font-family: arial, helvetica, sans-serif; background-color: transparent; font-style: normal; "><span><span class="Apple-tab-span" style="white-space:pre">        </span>},</span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: arial, helvetica, sans-serif; background-color: transparent; font-style: normal; "><span><span class="Apple-tab-span" style="white-space:pre">        </span>{</span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: arial, helvetica, sans-serif; background-color: transparent; font-style: normal; "><span><span class="Apple-tab-span" style="white-space:pre">                </span>isBaseLayer: false,</span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: arial, helvetica, sans-serif; background-color: transparent; font-style: normal; "><span><span class="Apple-tab-span" style="white-space:pre">                </span>singleTile: true</span></div><div style="color: rgb(0, 0, 0); font-size: 13px;
font-family: arial, helvetica, sans-serif; background-color: transparent; font-style: normal; "><span><span class="Apple-tab-span" style="white-space:pre">        </span>});</span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: arial, helvetica, sans-serif; background-color: transparent; font-style: normal; "><span><br></span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: arial, helvetica, sans-serif; background-color: transparent; font-style: normal; "><span>So, really, this has nothing to do with GeoMOOSE and is just some OL coding. If there was some sponsorship for a GeoMOOSE embeded version I could be talked into it but right now ... that would require funding or a very convincing argument that I should find it really really interesting.</span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: arial, helvetica, sans-serif; background-color: transparent; font-style: normal;
"><span><br></span></div><div><span><br></span></div><div><span class="Apple-style-span" style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(31, 73, 125); "> testLayer = new OpenLayers.Layer.WMS("WRC WMS", "http://gis.wrc.mnsu.edu/mnriver", {layers:"borders"});</span><br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><div style="font-size: 10pt; font-family: arial, helvetica, sans-serif; "><div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "><font size="2" face="Arial"><hr size="1"><b><span style="font-weight:bold;">From:</span></b> "Moore, Richard J" <richard.moore@mnsu.edu><br><b><span style="font-weight: bold;">To:</span></b> "Moore, Richard J" <richard.moore@mnsu.edu>; 'Dan Little' <danlittle@yahoo.com>; "geomoose-users@lists.sourceforge.net"
<geomoose-users@lists.sourceforge.net><br><b><span style="font-weight: bold;">Sent:</span></b> Tuesday, April 12, 2011 8:47 AM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [Geomoose-users] GeoMoose Map embed in webpage<br></font><br> <div id="yiv1933210521">
<style><!--
#yiv1933210521
_filtered #yiv1933210521 {font-family:"Cambria Math";panose-1:2 4 5 3 5 4 6 3 2 4;}
_filtered #yiv1933210521 {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;}
_filtered #yiv1933210521 {font-family:Tahoma;panose-1:2 11 6 4 3 5 4 4 2 4;}
#yiv1933210521
#yiv1933210521 p.yiv1933210521MsoNormal, #yiv1933210521 li.yiv1933210521MsoNormal, #yiv1933210521 div.yiv1933210521MsoNormal
        {margin:0in;margin-bottom:.0001pt;font-size:11.0pt;font-family:"sans-serif";}
#yiv1933210521 a:link, #yiv1933210521 span.yiv1933210521MsoHyperlink
        {color:blue;text-decoration:underline;}
#yiv1933210521 a:visited, #yiv1933210521 span.yiv1933210521MsoHyperlinkFollowed
        {color:purple;text-decoration:underline;}
#yiv1933210521 p.yiv1933210521msochpdefault, #yiv1933210521 li.yiv1933210521msochpdefault, #yiv1933210521 div.yiv1933210521msochpdefault
        {margin-right:0in;margin-left:0in;font-size:10.0pt;font-family:"serif";}
#yiv1933210521 span.yiv1933210521emailstyle17
        {font-family:"sans-serif";color:windowtext;}
#yiv1933210521 span.yiv1933210521emailstyle18
        {font-family:"sans-serif";color:#1F497D;}
#yiv1933210521 span.yiv1933210521EmailStyle20
        {font-family:"sans-serif";color:#1F497D;}
#yiv1933210521 span.yiv1933210521EmailStyle21
        {font-family:"sans-serif";color:#1F497D;}
#yiv1933210521 .yiv1933210521MsoChpDefault
        {font-size:10.0pt;}
_filtered #yiv1933210521 {margin:1.0in 1.0in 1.0in 1.0in;}
#yiv1933210521 div.yiv1933210521WordSection1
        {}
--></style>
<div class="yiv1933210521WordSection1">
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in;">
<div class="yiv1933210521MsoNormal"><span style="color:#1F497D;">I was wondering if anyone was able to help me out on this. I saw some work down by DM Solutions. I appreciate all your help.</span></div>
<div class="yiv1933210521MsoNormal"><span style="color:#1F497D;"> </span></div>
<div class="yiv1933210521MsoNormal"><span style="color:#1F497D;">Rick</span><span style="font-size:10.0pt;"></span></div>
</div>
</div>
<div class="yiv1933210521MsoNormal"> </div>
<div class="yiv1933210521MsoNormal"><span style="color:#1F497D;">Dan and All,</span></div>
<div class="yiv1933210521MsoNormal"><span style="color:#1F497D;"> </span></div>
<div class="yiv1933210521MsoNormal"><span style="color:#1F497D;">I was able to get the open layers to embed in a html page. Now onto adding data to the file. So far I have this and was trying to add an example from the mapbook file.</span></div>
<div class="yiv1933210521MsoNormal"><span style="color:#1F497D;"> </span></div>
<div class="yiv1933210521MsoNormal"><span style="color:#1F497D;">In terms of the server name to load data layers I have on my server, what would be the correct name. mnriver is a folder I created instead of geomoose2. What would be the
layers name if I used the following from the mapbook file.</span></div>
<div class="yiv1933210521MsoNormal"><span style="color:#1F497D;"> </span></div>
<div class="yiv1933210521MsoNormal"><span style="color:#1F497D;">Thanks,</span></div>
<div class="yiv1933210521MsoNormal"><span style="color:#1F497D;">Rick</span></div>
<div class="yiv1933210521MsoNormal"><span style="color:#1F497D;"> </span></div>
<div class="yiv1933210521MsoNormal"><span style="color:#1F497D;">Mapbook_webmercator.xml</span></div>
<div class="yiv1933210521MsoNormal" style=""><span style=""><!-- <map-source name="borders" type="wms" reference="false" projection="EPSG:900913" ></span></div>
<div class="yiv1933210521MsoNormal" style=""><span style=""> <url>/cgi-bin/mapserv.exe</url></span></div>
<div class="yiv1933210521MsoNormal" style=""><span style=""> <param name="map" value="/ms4w/apps/mnriver/maps//demo/statedata/basemap.map"/></span></div>
<div class="yiv1933210521MsoNormal" style=""><span style=""> <param name="format" value="image/png"/></span></div>
<div class="yiv1933210521MsoNormal" style=""><span style=""> <param name="TRANSPARENT" value="TRUE"/></span></div>
<div class="yiv1933210521MsoNormal" style=""><span style=""> <layer name="county_borders"/></span></div>
<div class="yiv1933210521MsoNormal"><span style=""> </map-source> --></span><span style="color:#1F497D;"></span></div>
<div class="yiv1933210521MsoNormal"><span style="color:#1F497D;"> </span></div>
<div class="yiv1933210521MsoNormal"><span style="color:#1F497D;"> </span></div>
<div class="yiv1933210521MsoNormal"><span style="color:#1F497D;">Embed.html</span></div>
<div class="yiv1933210521MsoNormal"><span style="color:#1F497D;"> </span></div>
<div class="yiv1933210521MsoNormal"><span style="color:#1F497D;"><!DOCTYPE html></span></div>
<div class="yiv1933210521MsoNormal"><span style="color:#1F497D;"><html></span></div>
<div class="yiv1933210521MsoNormal"><span style="color:#1F497D;"> <head></span></div>
<div class="yiv1933210521MsoNormal"><span style="color:#1F497D;"> <title>OpenLayers Tutorial - Basic Map Setup</title></span></div>
<div class="yiv1933210521MsoNormal"><span style="color:#1F497D;"> <script src="http://openlayers.org/api/OpenLayers.js"></script></span></div>
<div class="yiv1933210521MsoNormal"><span style="color:#1F497D;"> <script type="text/javascript"></span></div>
<div class="yiv1933210521MsoNormal"><span style="color:#1F497D;"> var map, baseLayer;</span></div>
<div class="yiv1933210521MsoNormal"><span style="color:#1F497D;"> function init(){</span></div>
<div class="yiv1933210521MsoNormal"><span style="color:#1F497D;"> map = new OpenLayers.Map('map');
</span></div>
<div class="yiv1933210521MsoNormal"><span style="color:#1F497D;"> <!-- baseLayer = new OpenLayers.Layer.WMS("OpenLayers WMS", "http://labs.metacarta.com/wms/vmap0", {layers:"basic"}); --></span></div>
<div class="yiv1933210521MsoNormal"><span style="color:#1F497D;"> testLayer = new OpenLayers.Layer.WMS("WRC WMS", "http://gis.wrc.mnsu.edu/mnriver", {layers:"borders"});</span></div>
<div class="yiv1933210521MsoNormal"><span style="color:#1F497D;"> <!-- map.addLayer(baseLayer); --></span></div>
<div class="yiv1933210521MsoNormal"><span style="color:#1F497D;"> map.addLayer(testLayer);</span></div>
<div class="yiv1933210521MsoNormal"><span style="color:#1F497D;">
</span></div>
<div class="yiv1933210521MsoNormal"><span style="color:#1F497D;">
</span></div>
<div class="yiv1933210521MsoNormal"><span style="color:#1F497D;"> layer = new OpenLayers.Layer.MapServer( "World Map",</span></div>
<div class="yiv1933210521MsoNormal"><span style="color:#1F497D;"> "http://localhost/cgi-bin/mapserv.exe", {map: 'C:/world_mapfile.map'} );</span></div>
<div class="yiv1933210521MsoNormal"><span style="color:#1F497D;"> map.addLayer(layer);</span></div>
<div class="yiv1933210521MsoNormal"><span style="color:#1F497D;"> </span></div>
<div class="yiv1933210521MsoNormal"><span style="color:#1F497D;">
</span></div>
<div class="yiv1933210521MsoNormal"><span style="color:#1F497D;">
</span></div>
<div class="yiv1933210521MsoNormal"><span style="color:#1F497D;"> map.setCenter(new OpenLayers.LonLat(-94,46),7);
</span></div>
<div class="yiv1933210521MsoNormal"><span style="color:#1F497D;"> }</span></div>
<div class="yiv1933210521MsoNormal"><span style="color:#1F497D;"> </script></span></div>
<div class="yiv1933210521MsoNormal"><span style="color:#1F497D;"> </span></div>
<div class="yiv1933210521MsoNormal"><span style="color:#1F497D;"> <style></span></div>
<div class="yiv1933210521MsoNormal"><span style="color:#1F497D;"> @media screen</span></div>
<div class="yiv1933210521MsoNormal"><span style="color:#1F497D;"> {</span></div>
<div class="yiv1933210521MsoNormal"><span style="color:#1F497D;"> #map{width: 750px; height:750px; border: 2px solid black;}</span></div>
<div class="yiv1933210521MsoNormal"><span style="color:#1F497D;"> }</span></div>
<div class="yiv1933210521MsoNormal"><span style="color:#1F497D;"> </style></span></div>
<div class="yiv1933210521MsoNormal"><span style="color:#1F497D;"> </head></span></div>
<div class="yiv1933210521MsoNormal"><span style="color:#1F497D;"> <body onload="init()"></span></div>
<div class="yiv1933210521MsoNormal"><span style="color:#1F497D;"> <h3>OpenLayers Tutorial - Basic Map Setup</h3></span></div>
<div class="yiv1933210521MsoNormal"><span style="color:#1F497D;"> <div id="map"></div></span></div>
<div class="yiv1933210521MsoNormal"><span style="color:#1F497D;"> </body></span></div>
<div class="yiv1933210521MsoNormal"><span style="color:#1F497D;"></html></span></div>
<div class="yiv1933210521MsoNormal"><span style="color:#1F497D;"> </span></div>
<div>
<div class="yiv1933210521MsoNormal"><i><span style="color:#4F6228;">Rick Moore</span></i></div>
<div class="yiv1933210521MsoNormal"><i><span style="color:#4F6228;">GIS Research Analyst</span></i></div>
<div class="yiv1933210521MsoNormal"><i><span style="color:#4F6228;">Water Resources Center</span></i></div>
<div class="yiv1933210521MsoNormal"><i><span style="color:#4F6228;">Minnesota State University Mankato</span></i></div>
<div class="yiv1933210521MsoNormal"><i><span style="color:#4F6228;">189 Trafton Science Center South</span></i></div>
<div class="yiv1933210521MsoNormal"><i><span style="color:#4F6228;">Mankato, MN 56001</span></i></div>
<div class="yiv1933210521MsoNormal"><i><span style="color:#4F6228;">(507) 389-3267 - Work</span></i></div>
<div class="yiv1933210521MsoNormal"><i><span style="color:#4F6228;">(507) 381-7398 - Mobile</span></i></div>
<div class="yiv1933210521MsoNormal"><i><span style="color:#4F6228;"><a rel="nofollow" ymailto="mailto:richard.moore@mnsu.edu" target="_blank" href="mailto:richard.moore@mnsu.edu">richard.moore@mnsu.edu</a></span></i></div>
</div>
<div class="yiv1933210521MsoNormal"><span style="color:#1F497D;"> </span></div>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in;">
<div class="yiv1933210521MsoNormal"><b><span style="font-size:10.0pt;">From:</span></b><span style="font-size:10.0pt;"> Dan Little [mailto:danlittle@yahoo.com]
<br>
<b>Sent:</b> Tuesday, March 22, 2011 10:25 AM<br>
<b>To:</b> Moore, Richard J; geomoose-users@lists.sourceforge.net<br>
<b>Subject:</b> Re: [Geomoose-users] GeoMoose Map embed in webpage</span></div>
</div>
</div>
<div class="yiv1933210521MsoNormal"> </div>
<div>
<div>
<div class="yiv1933210521MsoNormal"><span style="font-size:10.0pt;">You can use OpenLayers to do that.</span></div>
</div>
<div>
<div class="yiv1933210521MsoNormal"><span style="font-size:10.0pt;"> </span></div>
</div>
<div>
<div class="yiv1933210521MsoNormal"><span style="font-size:10.0pt;">You can use your GeoMOOSE sources (really easy if you're using WMS for most things) to play nice with OpenLayers embedded maps.</span></div>
</div>
<div>
<div class="yiv1933210521MsoNormal"><span style="font-size:10.0pt;"> </span></div>
</div>
<div>
<div class="yiv1933210521MsoNormal"><span style="font-size:10.0pt;"> </span></div>
</div>
<blockquote style="border:none;border-left:solid #1010FF 1.5pt;padding:0in 0in 0in 4.0pt;margin-left:3.75pt;margin-top:5.0pt;margin-bottom:5.0pt;">
<div>
<div class="yiv1933210521MsoNormal"><span style="font-size:10.0pt;"> </span></div>
<div>
<div class="yiv1933210521MsoNormal" style="margin-bottom:12.0pt;"><b><span style="font-size:10.0pt;">From:</span></b><span style="font-size:10.0pt;"> "Moore, Richard J" <richard.moore@mnsu.edu><br>
<b>To:</b> "geomoose-users@lists.sourceforge.net" <geomoose-users@lists.sourceforge.net><br>
<b>Sent:</b> Tue, March 22, 2011 9:41:43 AM<br>
<b>Subject:</b> [Geomoose-users] GeoMoose Map embed in webpage</span><span style="font-size:12.0pt;"></span></div>
<div>
<div class="yiv1933210521MsoNormal"><span style="color:#1F497D;">Hi all,</span></div>
<div class="yiv1933210521MsoNormal"><span style="color:#1F497D;"> </span></div>
<div class="yiv1933210521MsoNormal"><span style="color:#1F497D;">I was wondering if it is possible to embed either the GeoMoose map into a webpage or somehow use Mapserver to embed the map on a webpage? I am looking for something similar to how Google allows people to embed
Google Maps into a webpage. I would only need the map and navigation controls on the map. Is this at all possible?</span></div>
<div class="yiv1933210521MsoNormal"><span style="color:#1F497D;"> </span></div>
<div>
<div class="yiv1933210521MsoNormal"><i><span style="color:#4F6228;">Rick Moore</span></i></div>
<div class="yiv1933210521MsoNormal"><i><span style="color:#4F6228;">GIS Research Analyst</span></i></div>
<div class="yiv1933210521MsoNormal"><i><span style="color:#4F6228;">Water Resources Center</span></i></div>
<div class="yiv1933210521MsoNormal"><i><span style="color:#4F6228;">Minnesota State University Mankato</span></i></div>
<div class="yiv1933210521MsoNormal"><i><span style="color:#4F6228;">189 Trafton Science Center South</span></i></div>
<div class="yiv1933210521MsoNormal"><i><span style="color:#4F6228;">Mankato, MN 56001</span></i></div>
<div class="yiv1933210521MsoNormal"><i><span style="color:#4F6228;">(507) 389-3267 - Work</span></i></div>
<div class="yiv1933210521MsoNormal"><i><span style="color:#4F6228;">(507) 381-7398 - Mobile</span></i></div>
<div class="yiv1933210521MsoNormal"><i><span style="color:#4F6228;"><a rel="nofollow" ymailto="mailto:richard.moore@mnsu.edu" target="_blank" href="mailto:richard.moore@mnsu.edu">richard.moore@mnsu.edu</a></span></i></div>
</div>
<div class="yiv1933210521MsoNormal"><span style="color:#1F497D;"> </span></div>
</div>
</div>
</div>
</blockquote>
</div>
<div class="yiv1933210521MsoNormal"><span style="font-size:12.0pt;"> </span></div>
</div>
</div><br><br></div></div></blockquote></div></div></body></html>