Hey John... if you believe it or not.... a good year and change later
we may have finally gotten a fix
cooked up for this. See
http://trac.openlayers.org/ticket/987

This fix will be in the 2.7 release of OpenLayers, hopefully out by
late september.
Erik

On Tue, Jul 10, 2007 at 10:04 AM, John Cole <[EMAIL PROTECTED]> wrote:
> Erik,
>  I simply copied the resolution list passed to the base layer, as an option
> on the marker layer.  I think Christopher was concerned that the marker
> layer was not picking up the valid zoom levels from the base layer by
> default.  I tend to think that the markers, given no other parameters,
> should be visible at all zoom levels valid for the base layers.
>
>  Hope this makes things clearer :-)
>
> John
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Erik Uzureau
> Sent: Monday, July 09, 2007 4:42 PM
> To: John Cole
> Cc: Christopher Schmidt; Lee Keel; [email protected];
> [EMAIL PROTECTED]
> Subject: Re: [OpenLayers-Users] Marker Disappearing
>
> Hi John,
>
> Can you be more specific about what you did that fixed your problem?
>
> Is this something that we should fix in the code?
>
> Still not quite clear to me.
> Erik
>
> On 6/27/07, John Cole <[EMAIL PROTECTED]> wrote:
>> Christopher,
>>   Just wanted to let you know that adding the resolutions to the new
>> OpenLayers.Layer.Markers call worked.  Thanks for the help!
>>
>> John
>>
>> -----Original Message-----
>> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> On
>> Behalf Of Christopher Schmidt
>> Sent: Wednesday, June 27, 2007 10:26 AM
>> To: Lee Keel
>> Cc: [email protected]; [EMAIL PROTECTED]
>> Subject: Re: [OpenLayers-Users] Marker Disappearing
>>
>> On Wed, Jun 27, 2007 at 09:44:59AM -0500, Lee Keel wrote:
>> > Hello All,
>> >
>> >
>> >
>> > We are experiencing a disappearing marker when the user zooms in after
>> > placement of the marker.  You can see this @
>> > http://hud.uai.com/hudpls/ViewMap.aspx?FindAddTI=1 then by doing an
>> address
>> > search.  The marker will remain as long as you are at the current zoom
>> level
>> > or above, but disappears when you zoom in beyond the initial level.
> Here
>> is
>> > the code I am using to create the marker.
>>
>> Change this:
>>
>> >    addressMarkers = new OpenLayers.Layer.Markers("Find Address");
>>
>> To this:
>>
>> addressMarkers = new OpenLayers.Layer.Markers("Find Address",
>> {'calculateInRange': function() { return true; }});
>>
>> Alternatively, I think the following should work:
>>
>> addressMarkers = new OpenLayers.Layer.Markers("Find Address",
>> {'numZoomLevels':25});
>>
>> But I'm not 100% sure.
>>
>> The problem is that your markers layer is considered 'out of range' for
>> some reason -- changing the numZoomLevels should fix that, but
>> overrdiding the calculateInRange function to always return true should
>> also work.
>>
>> The source of the problem here is probably related to the 'resolutions'
>> setting on your base_wms.
>>
>> Erik, is this the behavior you expected? I think your'e closest to this
>> code -- to reproduce it, simply create a map with an explicit list of
>> resolutions which reaches farther in than the default, and then watch
>> your markers layer turn off when you zoom in past that point.
>>
>> Regards,
>> --
>> Christopher Schmidt
>> MetaCarta
>> _______________________________________________
>> Users mailing list
>> [email protected]
>> http://openlayers.org/mailman/listinfo/users
>> This email and any files transmitted with it are confidential and intended
> solely for the use of the individual or entity to whom they are addressed.
> If you have received this email in error please notify the sender. This
> message contains confidential information and is intended only for the
> individual named. If you are not the named addressee you should not
> disseminate, distribute or copy this e-mail.
>> _______________________________________________
>> Users mailing list
>> [email protected]
>> http://openlayers.org/mailman/listinfo/users
>>
> This email and any files transmitted with it are confidential and intended 
> solely for the use of the individual or entity to whom they are addressed. If 
> you have received this email in error please notify the sender. This message 
> contains confidential information and is intended only for the individual 
> named. If you are not the named addressee you should not disseminate, 
> distribute or copy this e-mail.
>
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

Reply via email to