I am having trouble displaying a shp-file map on a web browser using
OpenLayers. The map displays fine within GeoServer using the demo viewer.and
the following script:
http://localhost:8088/geoserver/wms?bbox=-88,11,-84,15&styles=nicbase,l4Roads&Format=application/openlayers&request=GetMap&layers=Nicaragua:nicbase,Nicaragua:l4Roads&width=800&height=600&srs=EPSG:4326
I am a newbie on learning how to use GeoServer and to make it a little more
challenging using the Windows install package without the benefit of having the
souce code.
I ran file ol_demo.html that I found in a subdirectory of the data_dir and
compared it to the Request WMS_get_map_OpenLayres.url in the Demo viewer. Both
use the same sample file, topp:states. But the Demo viewer works fine in
Geoserver, whereas the ol-demo.html does not display any map, only decorations.
The usBounds appear to use the wrong set of numbers, for one:
var usBounds = new OpenLayers.Bounds(
-14392000, 2436200, -7279500, 6594375
);
I am able to display my map by using some of the code in this file, but I had
to change the numbers above to -88,11,-84,15, the coordinates of my map
bounding box. Currently my map displays, but without controls (the zoom bar
briefly appears, then disappears) and I cannot zoom in below scale 14K.
Bottom line, I would like to find the OpenLayers code used by the Request
WMS_get_map_OpenLayres.url Demo request. Can anybody out there help me?
Thanks,
Al Vigil
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users