I tried to specify numZoomLevels:17 for all the layers, including Markers, however, when I zoom to that point, markers still disappear (The Markers layer in the layer chooser is greyed).<br><br>How do I overcome that?<br><br>
I am using version 2.3-rc2<br><br>Zeppe<br><br><div><span class="gmail_quote">On 1/19/07, <b class="gmail_sendername">Pedrazzi Gelsomini</b> <<a href="mailto:pedrazzi.gelsomini@gmail.com">pedrazzi.gelsomini@gmail.com</a>
> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi everyone,<br><br>I have a problem with the "maxZoomLevel" attribute.
<br>I need to have a maxZoomLevel bigger than 16 for my "Google Satellite" layer.<br>So I tried to set the 'maxZoomLevel' at 17 (or more).
<br>The problem is that I can zoom-in the Google map layer until 17, but after 16 my markers disappear.<br>I added my <span id="st" name="st" class="st">marker</span> from mapserver like a WFS layer.<br>What is the trouble?
<br><br>This is a piece of my code:<br>______________________________________________________________________________________________________________________
<br><br> map = new OpenLayers.Map('map', {controls: [], 'numZoomLevels':17, unix:'meters', projection: 'EPSG:4326'});<br><br> var satellite = new OpenLayers.Layer.Google( "Google Satellite" , {type: G_SATELLITE_MAP, 'maxZoomLevel':17} );
<br> var hybrid = new OpenLayers.Layer.Google( "Google Hybrid" , {type: G_HYBRID_MAP, 'maxZoomLevel':17});<br> var normal = new OpenLayers.Layer.Google( "Google Map" , {type: G_NORMAL_MAP, 'maxZoomLevel':17});
<br><br><br> var wfs = new OpenLayers.Layer.WFS( "Points WFS",<br> "<a href="http://localhost/cgi-bin/mapserv?map=/var/www/mysite/mapserver/config/my_points.map&" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://localhost/cgi-bin/mapserv?map=/var/www/mysite/mapserver/config/my_points.map&
</a>", <br> {typename: "points", maxfeatures: 100, maxZoomLevel : 17, 'layers': 'points'},<br> { featureClass: OpenLayers.Feature.WFS}, <br> {isBaseLayer: false});
<br>______________________________________________________________________________________________________________________<br><br>I read a comment (<a href="http://openlayers.org/pipermail/users/2006-November/000108.html" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://openlayers.org/pipermail/users/2006-November/000108.html</a>) about a similar problem, but with a WMS layer and not a WFS layer.<br>The answer was:<br><br>" This problem is probably related to the fact that numZoomLevels for the WMS layer is by default less than that for the Google layer, so you can zoom in farther for Google, and the WMS layer turns off.
<br>I'm not sure though, so if you can't figure out how to resolve it, it probably makes sense to open a ticket in Trac. "<br><br>Do you think that it is the same problem that I have?<br>Any suggestions?<br>
<br>
Thanks so much!<br>Francesca<br>
<br>_______________________________________________<br>Users mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Users@openlayers.org">Users@openlayers.org</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://openlayers.org/mailman/listinfo/users" target="_blank">
http://openlayers.org/mailman/listinfo/users</a><br><br><br></blockquote></div><br>