[OpenLayers-Users] Layers not loading data

Heidt, Christopher M. CHRISTOPHER.M.HEIDT at saic.com
Mon Jun 8 10:17:31 EDT 2009


sphericalMercator is probably the biggest issue people have when using
google layers.

http://docs.openlayers.org/library/spherical_mercator.html

 

-----Original Message-----
From: users-bounces at openlayers.org [mailto:users-bounces at openlayers.org]
On Behalf Of Kevin Galligan
Sent: Monday, June 08, 2009 10:11 AM
To: users at openlayers.org
Subject: [OpenLayers-Users] Layers not loading data

I have a feeling I'm going to see the issue tonight when I take another
look at the code, but I thought I'd send this now and see if there's
maybe something I'm missing that somebody knows off hand.

I have a map with an open street map layer on the bottom, and a wms
layer on top that points to a geoserver/postgis data set.  When I run
the demo map in geoserver's control panel, the data displays fine.  In
my map, however, the layer never shows up.  In fact, the data is never
requested for the layer.  It seems like the map doesn't think its inside
the display area for the layer and doesn't request any data.
when I zoom out significantly, like global level, it starts requesting
data.

The data was converted to the "google" projection, and I tell the map
and layer to explicitly use that projection, and using the demo layer,
it seems like it is in fact in that projection.  However, since it
starts grabbing data at the global level, I think its internally using a
bounding box in standard lon/lat ranges.  I can't post the code until
tonight, but I'm sending this now in case somebody has an obvious thing
that I'm missing.

Thanks in advance,
-Kevin
_______________________________________________
Users mailing list
Users at openlayers.org
http://openlayers.org/mailman/listinfo/users



More information about the Users mailing list