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

Reply via email to