[OpenLayers-Users] OpenLayers Geoserver WMS Layer Added but Tiles Do Not Display
rickm81
rickm81 at yahoo.com
Thu Oct 17 08:44:40 PDT 2013
Hello,
I've searched around and found many topics covering WMS errors, but not the
one I've encountered.
I'm using OpenLayers.Layer.WMS to add a Geoserver WMS layer from the
localhost on which my application resides. The layer is added to the map,
the WMSGetFeatureInfo event listener fires and returns the correct attribute
data for the point on which the layer is clicked, but the tiles for the
layer are never drawn.
Originally I thought I had the wrong URL, but if the attribute data is
visible that does not seem to be the case.
If Geoserver is running on the client machine I do not receive this error
either, so maybe this is related.
In Geoserver the layer preview displays the layer, but the Tile Layers
preview does not. Perhaps this is related too?
Below is my WMS request. If anyone has any thoughts I would greatly
appreciate it. Thanks!
census_blocks = new OpenLayers.Layer.WMS(
"US_Census_Blocks_CensusSummary:2010_BlockGroups_US_CensusSummary -
Tiled",
"http://localhost:8080/geoserver/US_Census_Blocks_CensusSummary/wms",
{
LAYERS:
'US_Census_Blocks_CensusSummary:2010_BlockGroups_US_CensusSummary',
STYLES: 'Census_Population',
format: 'image/png',
tiled: true,
tilesOrigin: map.maxExtent.left + ',' + map.maxExtent.bottom
},
{
buffer: 0,
displayOutsideMaxExtent: true,
isBaseLayer: false,
yx: { 'EPSG:4326': true }
}
);
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/OpenLayers-Geoserver-WMS-Layer-Added-but-Tiles-Do-Not-Display-tp5084225.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
More information about the Users
mailing list