[OpenLayers-Users] Layer visibility problem
sunny74
sb.ray at hotmail.com
Thu Sep 10 01:16:51 EDT 2009
Hi,
Thanks for your reply.
I have been trying to load layers at higher zoomin levels using MAX/MIN
SCALEDOM but i find that the layers are being loaded at PageLoad but only
visible at those zoom levels(scale).
Regarding your method I need to ask the following questions:
1) How do u decide when the layers are required by the user?
2) How to check if a layer is already loaded?
3) I was trying to check the scale and load layers accordingly. Initially
when the Page loads the scale is 1:3M
I was trying to get this value using the getScale() method but it is giving
different value.I also tried the getResolution() method but it is also
giving different value.
How to check the scale and load layers accordingly?
Regards.
ezigoing wrote:
>
> I load my layers when they required by the user. I first check to see if
> the
> layer is already loaded and if not I load it but if its already been
> loaded
> I just manage its visibility. That way you never have to load all the
> layers
> up front. Just a thought.
>
> Brad...
>
> -----Original Message-----
> From: users-bounces at openlayers.org [mailto:users-bounces at openlayers.org]
> On
> Behalf Of sunny74
> Sent: Wednesday, September 09, 2009 7:15 PM
> To: users at openlayers.org
> Subject: [OpenLayers-Users] Layer visibility problem
>
>
> Dear Friends,
>
> I am now loading the layers in groups instead of individually.
> First I am loading the base layer followed by 4 groups of layers, first
> group contains 2 while others contain 3 each.
>
> But the problem now is that at PageLoad for the first time the layers of
> group1 are not visible because it is getting overlapped by the other
> layers.
> The other layers are also not visible bec' they are mandated to be visible
> at higher zoomin levels because of max/min scaledom.
>
> Now if I load the group1 layers last then not only is it visible at
> initial
> zoom level but also at higher zoom levels bec' in that case it is
> overlapping the other layers mandated to be visible at that level.
>
> So how to tackle the problem.
>
> Can it be solved by changing the z-index of the first group at initial
> PageLoad.
>
> Pls provide some solution to this problem.
>
> Thanks & Regards.
> --
> View this message in context:
> http://n2.nabble.com/Layer-visibility-problem-tp3609424p3609424.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
>
--
View this message in context: http://n2.nabble.com/Layer-visibility-problem-tp3609424p3616274.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
More information about the Users
mailing list