Hi, David<br><br>well, just thought: your extent is <span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">16617, 777514,</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"> 348089, 959747</span>, but center you are setting as <span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">(-71.1491479425792,42.5394078098106</span>), which does not fall into your extent<br>

<br>regards, michael<br><br><div class="gmail_quote">2009/10/14 David Lozzi <span dir="ltr">&lt;<a href="mailto:dlozzi@delphi-ts.com">dlozzi@delphi-ts.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">










<div link="blue" vlink="purple" lang="EN-US">

<div>

<p class="MsoNormal">Hello,</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">See my code below. When I specify maxExtent: bounds in the
new map, my maps don’t appear. All of the added controls appear but no
maps. IE shows download 75 items then down to Done, but there is nothing to
see.</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">        <span style="color: blue;">var</span> lon =
50;</span></p>

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">        <span style="color: blue;">var</span> lat = 0;</span></p>

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">        <span style="color: blue;">var</span> zoom =
0;</span></p>

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">        <span style="color: blue;">var</span> map,
layer;</span></p>

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">        <span style="color: blue;">var</span> markers;</span></p>

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">        <span style="color: blue;">var</span> icon;</span></p>

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">        </span></p>

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">        <span style="color: blue;">function</span>
init(){</span></p>

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">            <span style="color: blue;">var</span>
bounds = <span style="color: blue;">new</span> OpenLayers.Bounds(</span></p>

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">                    16617, 777514,</span></p>

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">                    348089, 959747</span></p>

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">                );</span></p>

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">            OpenLayers.DOTS_PER_INCH = 72;</span></p>

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"> </span></p>

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">            <span style="color: blue;">var</span>
options = {</span></p>

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">                controls: [</span></p>

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">                    <span style="color: blue;">new</span>
OpenLayers.Control.Navigation(),</span></p>

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">                    <span style="color: blue;">new</span>
OpenLayers.Control.PanZoomBar(),</span></p>

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">                    <span style="color: blue;">new</span>
OpenLayers.Control.ScaleLine(),</span></p>

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">                    <span style="color: blue;">new</span>
OpenLayers.Control.MousePosition(),</span></p>

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">                    <span style="color: blue;">new</span>
OpenLayers.Control.LayerSwitcher()</span></p>

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">                ],</span></p>

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">                numZoomLevels: 20,</span></p>

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">                maxExtent: bounds,</span></p>

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">                maxResolution: 1294.8125,</span></p>

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">                projection: <span style="color: rgb(163, 21, 21);">&quot;EPSG:26986&quot;</span>,</span></p>

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">                units: <span style="color: rgb(163, 21, 21);">&#39;m&#39;</span></span></p>

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">            };</span></p>

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">            map = <span style="color: blue;">new</span>
OpenLayers.Map( <span style="color: rgb(163, 21, 21);">&#39;map&#39;</span>,{maxExtent: bounds,
numZoomLevels: 10,controls: [</span></p>

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">                    <span style="color: blue;">new</span>
OpenLayers.Control.Navigation(),</span></p>

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">                    <span style="color: blue;">new</span>
OpenLayers.Control.PanZoomBar(),</span></p>

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">                    <span style="color: blue;">new</span>
OpenLayers.Control.LayerSwitcher()</span></p>

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">                ]});</span></p>

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">            </span></p>

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">            <span style="color: green;">//MassGIS
Layers are available at
<a href="http://lyceum.massgis.state.ma.us/wiki/doku.php?id=wms:layers" target="_blank">http://lyceum.massgis.state.ma.us/wiki/doku.php?id=wms:layers</a></span></span></p>

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">            format = <span style="color: rgb(163, 21, 21);">&#39;image/png&#39;</span>;</span></p>

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">            </span></p>

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">            <span style="color: green;">// setup tiled
layer</span></span></p>

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">            tiled = <span style="color: blue;">new</span>
OpenLayers.Layer.WMS(</span></p>

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">                <span style="color: rgb(163, 21, 21);">&quot;Roads
and Boundaries&quot;</span>, <span style="color: rgb(163, 21, 21);">&quot;<a href="http://giswebservices.massgis.state.ma.us:80/geoserver/wms" target="_blank">http://giswebservices.massgis.state.ma.us:80/geoserver/wms</a>&quot;</span>,</span></p>



<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">                {</span></p>

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">                    layers: <span style="color: rgb(163, 21, 21);">&#39;massgis:GISDATA.NAVTEQRDS_ARC,massgis:GISDATA.NAVTEQRDS_ARC_STATE&#39;</span></span></p>



<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(163, 21, 21);"> </span></p>

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">                }</span></p>

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">            );</span></p>

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">            markers = <span style="color: blue;">new</span>
OpenLayers.Layer.Markers( <span style="color: rgb(163, 21, 21);">&quot;Markers&quot;</span>
);</span></p>

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"> </span></p>

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">            <span style="color: blue;">var</span> size
= <span style="color: blue;">new</span> OpenLayers.Size(10,17);</span></p>

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">            <span style="color: blue;">var</span>
offset = <span style="color: blue;">new</span> OpenLayers.Pixel(-(size.w/2),
-size.h);</span></p>

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">            icon = <span style="color: blue;">new</span>
OpenLayers.Icon(<span style="color: rgb(163, 21, 21);">&#39;/_layouts/DHQMap/img/marker.png&#39;</span>,size,offset);</span></p>

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">            </span></p>

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">            map.addLayers([tiled, markers]);</span></p>

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">            map.setCenter(<span style="color: blue;">new</span>
OpenLayers.LonLat(-71.1491479425792,42.5394078098106), 14);</span></p>

<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">       
}</span></p>

<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"> </span></p>

<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"> </span></p>

<p class="MsoNormal"><b><span style="color: rgb(31, 73, 125);">David Lozzi</span></b></p>

<p class="MsoNormal"><b><i><span style="font-size: 10pt; color: rgb(31, 73, 125);">Product
Development Manager</span></i></b></p>

<p class="MsoNormal"><span style="font-size: 10pt; color: rgb(31, 73, 125);">Delphi
Technology Solutions, Inc.</span></p>

<p class="MsoNormal"><span style="font-size: 10pt; color: rgb(31, 73, 125);">(978) 988-8007 x204
- <a href="http://www.delphi-ts.com/" target="_blank"><span style="color: blue;">www.delphi-ts.com</span></a></span></p>

<p class="MsoNormal"><span style="font-size: 10pt; color: rgb(31, 73, 125);"> </span></p>

<p class="MsoNormal"><span style="font-size: 10pt; color: rgb(31, 73, 125);"><a href="http://www.delphi-ts.com/blogs/lozzi" target="_blank"><span style="color: blue;">Blog</span></a> 
-  <a href="http://www.linkedin.com/in/davidlozzi" target="_blank"><span style="color: blue;">LinkedIn</span></a>  - <a href="http://www.twitter.com/davidlozzi" target="_blank"><span style="color: blue;">Twitter</span></a>  </span></p>



<p class="MsoNormal"> </p>

</div>

</div>


<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@openlayers.org">Users@openlayers.org</a><br>
<a href="http://openlayers.org/mailman/listinfo/users" target="_blank">http://openlayers.org/mailman/listinfo/users</a><br>
<br></blockquote></div><br>