Doesn't OL need proj4js to work with other projections?<br><br><div class="gmail_quote">2013/1/4 Kunzman, Doug <span dir="ltr"><<a href="mailto:dkunzman@usgs.gov" target="_blank">dkunzman@usgs.gov</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Can someone help with small sample of Nighttime lights. When I set my map to be projected with EPSG:3857 it no longer works.<div>
<br></div><div>Any help would be greatly appreciated.</div><div><br></div><div>Thanks, Doug</div>
<div><br><div><div><b><!DOCTYPE html></b></div><div><b><html></b></div><div><b> <head></b></div><div><b> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"></b></div>
<div><b> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"></b></div><div><b> <meta name="apple-mobile-web-app-capable" content="yes"></b></div>
<div><b> <title>Night Time Lights</title></b></div><div><b> <link rel="stylesheet" href="../theme/default/style.css" type="text/css"></b></div><div><b> <link rel="stylesheet" href="style.css" type="text/css"></b></div>
<div><b> <script src="events_test_files/OpenLayers.js"></script></b></div><div><b> <script type="text/javascript"></b></div><div><b> var map, layer;</b></div><div><b> function init(){</b></div>
<div><b> //map = new OpenLayers.Map( 'map', /*{sphericalMercator : true, projection : "EPSG:3857"} */);</b></div><div><b><span style="white-space:pre-wrap"> </span> map = new OpenLayers.Map( 'map', {sphericalMercator : true, projection : "EPSG:3857"} );</b></div>
<div><b><br></b></div><div><b> layer = new OpenLayers.Layer.WMS( "OpenLayers WMS",</b></div><div><b> "<a href="http://imsref.cr.usgs.gov:80/wmsconnector/com.esri.wms.Esrimap/USGS_EDC_National_Atlas" target="_blank">http://imsref.cr.usgs.gov:80/wmsconnector/com.esri.wms.Esrimap/USGS_EDC_National_Atlas</a>",</b></div>
<div><b> {layers: "ATLAS_NIGHT_LIGHTS", sphericalMercator : true, projection: "EPSG:102113", format: "image/png"} );</b></div><div><b><span style="white-space:pre-wrap"> </span>//aliasproj = new OpenLayers.Projection("EPSG:3857");</b></div>
<div><b><span style="white-space:pre-wrap"> </span>//layer.projection = <span style="white-space:pre-wrap"> </span>aliasproj;</b></div><div><b> map.addLayer(layer);</b></div>
<div><b> map.zoomToMaxExtent();</b></div><div><b><span style="white-space:pre-wrap"> </span>map.setCenter(new OpenLayers.LonLat(lon=-77.44555646516,lat=39.500732399862), 7); </b></div><div><b> }</b></div>
<div><b> </script></b></div><div><b> </head></b></div><div><b> <body onload="init()"></b></div><div><b> <h1 id="title">Basic Single WMS Example</h1></b></div><div>
<b><br></b></div><div><b> <div id="tags"></b></div><div><b> basic, simple, minimal, cleanup</b></div><div><b> </div></b></div><div><b><br></b></div><div><b> <div id="shortdesc">Show a Simple Map</div></b></div>
<div><b><br></b></div><div><b> <div id="map" class="smallmap" style="border:1px solid blue;width:512px;height:256px;"></></div></b></div><div><b><br></b></div><div><b> <div id="docs"></b></div>
<div><b> <p>This example shows a very simple layout with minimal controls.</b></div><div><b> This example uses a single WMS base layer.</p></b></div><div><b> </div></b></div><div><b> </body></b></div>
<div><b></html></b></div></div></div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>
<br></blockquote></div><br>